let loginRequest = (uids:any,passwords:any,callbacks:any) => {
//发送接口请求
console.log(login_url),//打印服务器返回的对象
wx.request({
url: login_url,
method:'POST',
header: {
'content-type': 'application/json'
},
data: {
uid: uids,
password: passwords,
},
success: (res:any) => {
callbacks.success(res.data)
},
fail: (res) => {
if (callbacks.fail)
callbacks.fail(res.errMsg)
},
})
}
callbacks 从哪来的