|
|
@@ -296,7 +296,6 @@ Page({ |
|
|
|
}); |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
console.log(err); |
|
|
|
that.setData({ |
|
|
|
showbutton: false, |
|
|
|
showbutton1: false, |
|
|
@@ -360,18 +359,9 @@ Page({ |
|
|
|
mask: false |
|
|
|
}); |
|
|
|
} else if (err.code == 3012) { |
|
|
|
wx.showModal({ |
|
|
|
title: '提示', |
|
|
|
content: '您有未支付订单,请先进行支付', |
|
|
|
confirmText: "去支付", |
|
|
|
success: function (res) { |
|
|
|
console.log(res.confirm) |
|
|
|
if (res.confirm) { |
|
|
|
wx.navigateTo({ |
|
|
|
url: '/pages/order/index/index?id=all', |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
wx.showToast({ |
|
|
|
title: err.message, |
|
|
|
icon: "none" |
|
|
|
}) |
|
|
|
} else if (err.code == 11005) { |
|
|
|
/** |
|
|
@@ -475,13 +465,6 @@ Page({ |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 生命周期函数--监听页面初次渲染完成 |
|
|
|
*/ |
|
|
|
onReady: function () { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* 生命周期函数--监听页面显示 |
|
|
|
*/ |
|
|
@@ -519,12 +502,5 @@ Page({ |
|
|
|
*/ |
|
|
|
onPullDownRefresh: function () { |
|
|
|
this.checkUser(this.data.paramData) |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* 页面上拉触底事件的处理函数 |
|
|
|
*/ |
|
|
|
onReachBottom: function () { |
|
|
|
|
|
|
|
} |
|
|
|
}) |