From 2005385a87690d764a8d335347bf05005cbb01d4 Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Fri, 10 May 2019 14:27:21 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=94=AF=E4=BB=98][=E4=BF=AE=E6=94=B9]:[?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=82=A8=E6=9C=89=E5=BE=85=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E7=9A=84=E8=AE=A2=E5=8D=95=E7=9A=84=E4=BA=A4=E4=BA=92=E6=B5=81?= =?UTF-8?q?=E7=A8=8B]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/bargain/bargainDatail/bargainDatail.js | 38 +++++++++++++------ pages/cardListDetail/cardListDetail.js | 19 +++++++--- pages/coupon/detail/index.js | 19 +++++++--- .../payIntegcoupondetail/index.js | 19 +++++++--- pages/joinFrDpell/index.js | 19 +++++++--- pages/spellGroup/mySpellGroup/index.js | 19 +++++++--- 6 files changed, 91 insertions(+), 42 deletions(-) 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) { /** * 将值传到用户手机号授权的页面