mui.ajax('https://tongchengbaihuo.newxm.kuaidiantong.cn/api/ShopBranchLogin/GetUser',{
data:himall.md5Data(loginInfo),
dataType:'JSON',
type:'GET',
timeout:20000,
crossDomain:true,
success:function(data){
var data = JSON.parse(data)
if(data.UserKey){
plus.storage.setItem('username',''+loginInfo.userName);
himall.createState(data.UserId,data.UserKey,data.type,function(){
toMain();
});
}else{
plus.nativeUI.toast(data.msg);
w.close();
}
},
error:function(xhr,type,errorThrown){
console.log("a1"+JSON.stringify(xhr))
console.log(type)
console.log(JSON.stringify(errorThrown))
w.close();
if(xhr.readyState == 4){
}
plus.nativeUI.toast('请求失败,请检查网络');
},
});
请求报error
{"readyState":4,"responseText":"","responseXML":null,"status":0,"statusText":null,"responseType":null,"response":null,"withCredentials":true,"timeout":120000,"noParseResponseHeader":null,"requestHeaders":{"X-Requested-With":"XMLHttpRequest","Accept":"application/json"},"responseHeaders":{},"cacheReponseHeaders":{},"progessEvent":{"lengthComputable":false,"loaded":0,"total":0},"UUID":"xhr671595409598179"}
baiyun_rain
请问解决了吗?
2022-06-29 19:06
1***@qq.com
回复 baiyun_rain: 木有,暂时不管了而已
2022-10-24 10:34