Bläddra i källkod

页面请求超时catch捕获

tags/2.2.9
海洋之声 6 år sedan
förälder
incheckning
31d6a72441
9 ändrade filer med 53 tillägg och 38 borttagningar
  1. +17
    -9
      pages/coupon/detail/index.js
  2. +2
    -2
      pages/getphoneInfo/index.js
  3. +2
    -2
      pages/getuserinfo/index.js
  4. +2
    -2
      pages/index/coupons/index.js
  5. +2
    -2
      pages/index/index.js
  6. +9
    -10
      pages/managelicenseplate/managelicenseplate.js
  7. +10
    -2
      pages/order/detail/index.js
  8. +2
    -2
      pages/orderquanma/index.js
  9. +7
    -7
      pages/passCar/passCar.js

+ 17
- 9
pages/coupon/detail/index.js Visa fil

@@ -97,8 +97,8 @@ Page({
})
.catch(err => {
wx.showToast({
title: err.message,
image: "../../../assets/img/fail.png",
title: err.errMsg,
icon: 'none',
duration: 2000,
mask: false
});
@@ -204,8 +204,8 @@ Page({
}
}).catch(err => {
wx.showToast({
title: err.message,
image: "../../../assets/img/fail.png",
title: err.errMsg,
icon: 'none',
duration: 2000,
mask: false
});
@@ -230,8 +230,8 @@ Page({
})
.catch(err => {
wx.showToast({
title: err.message,
image: "../../../assets/img/fail.png",
title: err.errMsg,
icon: 'none',
duration: 2000,
mask: false
});
@@ -349,8 +349,8 @@ Page({
});
} else {
wx.showToast({
title: err.message,
image: "./../../../assets/img/fail.png",
title: err.errMsg,
icon: 'none',
duration: 2000,
mask: false
});
@@ -429,7 +429,15 @@ Page({
//var payOrderId = "" + res.data.out_trade_no;
//that.payOrderUpdate(that.data.orderId, payOrderId, 1); // 支付成功
///// end virtual pay
});
})
.catch(err => {
wx.showToast({
title: err.errMsg,
icon: 'none',
duration: 2000,
mask: false
});
})
} else {
/**
* @Meo


+ 2
- 2
pages/getphoneInfo/index.js Visa fil

@@ -42,8 +42,8 @@ Page({
})
.catch(err => {
wx.showToast({
title: err.message,
image: "../../assets/img/fail.png",
title: err.errMsg,
icon: 'none',
duration: 2000,
mask: false
});


+ 2
- 2
pages/getuserinfo/index.js Visa fil

@@ -27,8 +27,8 @@ Page({
})
.catch(err => {
wx.showToast({
title: err.message,
image: "../../assets/img/fail.png",
title: err.errMsg,
icon: 'none',
duration: 2000,
mask: false
});


+ 2
- 2
pages/index/coupons/index.js Visa fil

@@ -137,8 +137,8 @@ Component({
})
.catch(err => {
wx.showToast({
title: err.message,
image: "../../../assets/img/fail.png",
title: err.errMsg,
icon: 'none',
duration: 2000,
mask: false
});


+ 2
- 2
pages/index/index.js Visa fil

@@ -63,8 +63,8 @@ Page({
});
} else {
wx.showToast({
title: err.message,
image: "../../assets/img/fail.png",
title: err.errMsg,
icon: 'none',
duration: 2000,
mask: false
});


+ 9
- 10
pages/managelicenseplate/managelicenseplate.js Visa fil

@@ -21,8 +21,8 @@ Page({
})
.catch(err => {
wx.showToast({
title: err.message,
image: "../../assets/img/fail.png",
title: err.errMsg,
icon: 'none',
duration: 2000,
mask: false
});
@@ -94,15 +94,14 @@ Page({
success: function() {}
});
})
.catch(error => {
console.log(error);
wx.showModal({
title: "提示",
showCancel: false,
content: error.data.message,
success: function() {}
.catch(err => {
wx.showToast({
title: err.errMsg,
icon: 'none',
duration: 2000,
mask: false
});
});
})
},
jumpToAdd: function() {
wx.navigateTo({


+ 10
- 2
pages/order/detail/index.js Visa fil

@@ -86,8 +86,8 @@ Page({
})
.catch(err => {
wx.showToast({
title: err.message,
image: "../../../assets/img/fail.png",
title: err.errMsg,
icon: 'none',
duration: 2000,
mask: false
});
@@ -117,6 +117,14 @@ Page({
staticGamedata: res.data
})
})
.catch(err => {
wx.showToast({
title: err.errMsg,
icon: 'none',
duration: 2000,
mask: false
});
})
},
/**
* 发起支付


+ 2
- 2
pages/orderquanma/index.js Visa fil

@@ -57,8 +57,8 @@ Page({
})
.catch(err => {
wx.showToast({
title: err.message,
image: "../../assets/img/fail.png",
title: err.errMsg,
icon: 'none',
duration: 2000,
mask: false
});


+ 7
- 7
pages/passCar/passCar.js Visa fil

@@ -299,13 +299,13 @@ Page({
.then(res => {
that.initUsrCarList();
})
.catch(error => {
wx.showModal({
content: error.message,
showCancel: false,
confirmText: "确定",
})
console.log(error);
.catch(err => {
wx.showToast({
title: err.errMsg,
icon: 'none',
duration: 2000,
mask: false
});
})
},
/**


Laddar…
Avbryt
Spara