XWookey 1 year ago
parent
commit
0136e730a5
1 changed files with 9 additions and 3 deletions
  1. 9 3
      pages/register/register.js

+ 9 - 3
pages/register/register.js

@@ -135,9 +135,15 @@ Page({
                 //console.log(res1);
                 //console.log(res1.data.code == 1);
                 if (res1.data.code == 1) {
-                  that.setData({
-                    errorMsg: res1.data.msg
-                  })
+                  // that.setData({
+                  //   errorMsg: res1.data.msg
+                  // })
+                  wx.showModal({
+                    title: '提示',
+                    content: res1.data.msg,
+                    showCancel:false,
+                    confirmColor:'#00AADD',
+                  });
                 } else {
                   //返回该用户
                   //跳转到上一页