|
在h5页面用axios 这样传值正确,但是在app上这样传却不过接口,ajax不能这样用吗还是哪里错了?
axios.get('http://121/wx/wxpnAuth', {
params: {
code: this.code,
state: {
invitecode: inviteCode,
companyId: companyId,
mdnumber: mdnumber,
superInviteCode: superInviteCode,
relationId: relationId,
userId: userId,
ai: "ai"
}
}
}).then(res => {
})
$api.ajax({
url: 'http://121/wx/wxnAuth',
method: 'get',
data: {
values: {
code: ret.code,
deviceId: deviceId,
deviceModel: deviceModel,
deviceName: deviceName,
systemVersion: systemVersion,
state: {
invitecode: "sdfsd",
companyId: 34
}
}
},
}, function(ret, err) {
|
|