@@ -83,13 +83,7 @@ const http = (url = '', date = {}, type = 'POST', header = {
}else if(res.data.code==409){
// getToken(url,date,type,header)
}
- else if(res.data.code==1){
- uni.showToast({
- title: res.data.msg,
- icon:'none',
- duration: 3000,
- });
- }
+
resolve(res.data);
}).catch(error => {
let [err, res] = error;
@@ -417,9 +417,20 @@
sheetId: this.id,
}, 'GET').then(res => {
-
- if (res.code == 0) {
+ uni.hideLoading();
+ if(res.code==1){
+ uni.showModal({
+ title: '提示',
+ showCancel:false,
+ content: res.msg,
+ success: function(res) {
+ }
+ });
+ else if (res.code == 0) {
uni.navigateTo({
url: '../changeStore/changeStore?sheetId=' + this.id +'&oldShopID='+this.orderData.ShopID+ '&oldStoreName=' + this
.orderData.ShopName + '&oldStoreAddress=' + this.orderData.ProvinceName +
@@ -584,8 +595,20 @@
url: '../refundMoney/refundMoney?sheetId=' + this.id + '&maxMoney=' + this