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 @@
+
+
+