@@ -44,16 +44,25 @@ const http = (url = '', date = {}, type = 'POST', header = {
uni.hideLoading();
}, 200); */
let [error, res] = response;
-
- if(res.data.number == 200 || res.data.number == 5212){
- }else{
+ //console.log(res.data)
+ if(res.data.code==403){
uni.showToast({
title: res.data.msg,
icon:'none',
duration: 3000,
});
+ }else{
+ if(res.data.data.number == 200 || res.data.data.number == 5212){
+
+ uni.showToast({
+ title: res.data.msg,
+ icon:'none',
+ duration: 3000,
+ });
+ }
}
// if(res.data.code==1){
// uni.showToast({
// title: res.data.msg,