diff --git a/pages/bargain/bargainDatail/bargainDatail.js b/pages/bargain/bargainDatail/bargainDatail.js index 1c5f94d..0258480 100644 --- a/pages/bargain/bargainDatail/bargainDatail.js +++ b/pages/bargain/bargainDatail/bargainDatail.js @@ -383,12 +383,19 @@ Page({ mask: false }); } else if (err.code == 3012) { - wx.showToast({ - title: "您有未支付订单", - image: './../../../assets/images/fail.png', - duration: 2000, - mask: false - }); + wx.showModal({ + title: '提示', + content: '您有未支付订单,请先进行支付', + confirmText: "去支付", + success: function (res) { + console.log(res.confirm) + if (res.confirm) { + wx.navigateTo({ + url: '/pages/order/index/index?id=all', + }) + } + } + }) }else if (err.code == 11005) { /** * 将值传到用户手机号授权的页面 @@ -680,12 +687,19 @@ Page({ mask: false }); } else if (err.code == 3012) { - wx.showToast({ - title: "您已超过限购", - image: './../../../assets/images/fail.png', - duration: 2000, - mask: false - }); + wx.showModal({ + title: '提示', + content: '您有未支付订单,请先进行支付', + confirmText: "去支付", + success: function (res) { + console.log(res.confirm) + if (res.confirm) { + wx.navigateTo({ + url: '/pages/order/index/index?id=all', + }) + } + } + }) }else if (err.code == 11005) { /** * 将值传到用户手机号授权的页面 diff --git a/pages/cardListDetail/cardListDetail.js b/pages/cardListDetail/cardListDetail.js index 8dcd0ba..fa0b35e 100644 --- a/pages/cardListDetail/cardListDetail.js +++ b/pages/cardListDetail/cardListDetail.js @@ -397,12 +397,19 @@ Page({ mask: false }); } else if (err.code == 3012) { - wx.showToast({ - title: "您有未支付订单", - image: './../../../assets/images/fail.png', - duration: 2000, - mask: false - }); + wx.showModal({ + title: '提示', + content: '您有未支付订单,请先进行支付', + confirmText: "去支付", + success: function (res) { + console.log(res.confirm) + if (res.confirm) { + wx.navigateTo({ + url: '/pages/order/index/index?id=all', + }) + } + } + }) } else if (err.code == 11005) { /** * 将值传到用户手机号授权的页面 diff --git a/pages/coupon/detail/index.js b/pages/coupon/detail/index.js index 7847711..3fe52a4 100644 --- a/pages/coupon/detail/index.js +++ b/pages/coupon/detail/index.js @@ -698,12 +698,19 @@ Page({ mask: false }); } else if (err.code == 3012) { - wx.showToast({ - title: "您有未支付订单", - image: './../../../assets/images/fail.png', - duration: 2000, - mask: false - }); + wx.showModal({ + title: '提示', + content: '您有未支付订单,请先进行支付', + confirmText:"去支付", + success: function (res) { + console.log(res.confirm) + if(res.confirm){ + wx.navigateTo({ + url: '/pages/order/index/index?id=all', + }) + } + } + }) } else if (err.code == 11005) { /** * 将值传到用户手机号授权的页面 diff --git a/pages/integralmall/payIntegcoupondetail/index.js b/pages/integralmall/payIntegcoupondetail/index.js index 0992e29..859f345 100644 --- a/pages/integralmall/payIntegcoupondetail/index.js +++ b/pages/integralmall/payIntegcoupondetail/index.js @@ -152,12 +152,19 @@ Page({ mask: false }); } else if (err.code == 3012) { - wx.showToast({ - title: "您有未支付订单", - image: './../../../assets/images/fail.png', - duration: 2000, - mask: false - }); + wx.showModal({ + title: '提示', + content: '您有未支付订单,请先进行支付', + confirmText: "去支付", + success: function (res) { + console.log(res.confirm) + if (res.confirm) { + wx.navigateTo({ + url: '/pages/order/index/index?id=all', + }) + } + } + }) } else if (err.code == 11005) { /** * 将值传到用户手机号授权的页面 diff --git a/pages/joinFrDpell/index.js b/pages/joinFrDpell/index.js index f964861..d12c0b9 100644 --- a/pages/joinFrDpell/index.js +++ b/pages/joinFrDpell/index.js @@ -361,12 +361,19 @@ Page({ mask: false }); } else if (err.code == 3012) { - wx.showToast({ - title: "您有未支付订单", - image: './../../../assets/images/fail.png', - duration: 2000, - mask: false - }); + wx.showModal({ + title: '提示', + content: '您有未支付订单,请先进行支付', + confirmText: "去支付", + success: function (res) { + console.log(res.confirm) + if (res.confirm) { + wx.navigateTo({ + url: '/pages/order/index/index?id=all', + }) + } + } + }) } else if (err.code == 11005) { /** * 将值传到用户手机号授权的页面 diff --git a/pages/spellGroup/mySpellGroup/index.js b/pages/spellGroup/mySpellGroup/index.js index c39dd26..17eef7b 100644 --- a/pages/spellGroup/mySpellGroup/index.js +++ b/pages/spellGroup/mySpellGroup/index.js @@ -346,12 +346,19 @@ Page({ mask: false }); }else if (err.code == 3012) { - wx.showToast({ - title: "您有未支付订单", - image: './../../../assets/images/fail.png', - duration: 2000, - mask: false - }); + wx.showModal({ + title: '提示', + content: '您有未支付订单,请先进行支付', + confirmText: "去支付", + success: function (res) { + console.log(res.confirm) + if (res.confirm) { + wx.navigateTo({ + url: '/pages/order/index/index?id=all', + }) + } + } + }) } else if (err.code == 11005) { /** * 将值传到用户手机号授权的页面