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