From fad1ca2b30fbd7960c2d18d327dca4ecf47f6bd2 Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Wed, 31 Jan 2024 17:31:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/users/login/login_copy.vue | 54 ++++++++++++++++------------- pages/users/order_confirm/index.vue | 39 ++++++++++++++++++++- 2 files changed, 67 insertions(+), 26 deletions(-) diff --git a/pages/users/login/login_copy.vue b/pages/users/login/login_copy.vue index bbf2f6a..5b26705 100644 --- a/pages/users/login/login_copy.vue +++ b/pages/users/login/login_copy.vue @@ -883,31 +883,35 @@ checkOpenId(user) { if (user.wechat_user_id === 0) { let that = this - wx.getUserInfo({ - success: function(res) { - const encryptedData = res.encryptedData - const iv = res.iv - wx.login({ - success(res) { - if (res.code) { - bindMp({ - code: res.code, - iv: iv, - encryptedData: encryptedData, - phone: that.account - }).then(res => { - // console.log(res); - }) - } else { - // console.log('登录失败!' + res.errMsg) - } - } - }) - }, - fail(e) { - // console.log('登录失败!' + res.errMsg) - } - }) + try{ + wx.getUserInfo({ + success: function(res) { + const encryptedData = res.encryptedData + const iv = res.iv + wx.login({ + success(res) { + if (res.code) { + bindMp({ + code: res.code, + iv: iv, + encryptedData: encryptedData, + phone: that.account + }).then(res => { + // console.log(res); + }) + } else { + // console.log('登录失败!' + res.errMsg) + } + } + }) + }, + fail(e) { + // console.log('登录失败!' + res.errMsg) + } + }) + }catch(e){ + console.log(e); + } } // #ifdef APP-PLUS jpushModule.initJPushService() diff --git a/pages/users/order_confirm/index.vue b/pages/users/order_confirm/index.vue index 6ea3512..0ad2cc8 100644 --- a/pages/users/order_confirm/index.vue +++ b/pages/users/order_confirm/index.vue @@ -434,6 +434,20 @@ + + + + + 优惠提示 + 当前订单金额已大于100元 + 建议参与惠农供销活动进行购买,下单满100元即可获得红包 + + + + + + +