初始化

This commit is contained in:
2019-12-13 10:29:54 +08:00
parent 3bc53a2f29
commit e47bb87558
12 changed files with 406 additions and 129 deletions

31
utils/bin.js Normal file
View File

@@ -0,0 +1,31 @@
//请求接口
let request = function (obj){
let {
url,
method,
header,
dataType,
responseType,
complete
} = obj
return new Promise((res,rej)=>{
Wx.request({
url,
method,
header,
dataType,
responseType,
success(data){
res(data)
},
fail(data){
rej(data)
},
complete
})
})
}
module.exports = {
request
}