Browse Source

报错bug

xiaohaizhao 3 months ago
parent
commit
f89a266dac
2 changed files with 2 additions and 2 deletions
  1. 1 1
      packageA/shopping/modules/tool/index.js
  2. 1 1
      pages/login/phone.js

+ 1 - 1
packageA/shopping/modules/tool/index.js

@@ -107,7 +107,7 @@ Component({
             }).then(res => {
                 console.log("转化订单", res)
                 if (res.code != '1') return wx.showToast({
-                    title: 'res.msg',
+                    title: res.msg,
                     icon: "none"
                 });
                 wx.showModal({

+ 1 - 1
pages/login/phone.js

@@ -98,7 +98,7 @@ Page({
 					}).then(res => {
 						console.log("微信快捷登录", res)
 						if (res.code == 0) return wx.showToast({
-							title: getApp().globalData.Language.getMapText('res.msg'),
+							title: getApp().globalData.Language.getMapText(res.msg == '' ? '未查询到绑定账号' : res.msg),
 							icon: "none"
 						})
 						require("./modules/login").loginMsg(res);