Преглед на файлове

用户id发送验证码

lucheng преди 1 година
родител
ревизия
53f63af07b
променени са 3 файла, в които са добавени 2 реда и са изтрити 4 реда
  1. 1 0
      pages/bindPhone/bindPhone.js
  2. 0 4
      pages/forget/forget.js
  3. 1 0
      pages/ucenter/accountsecurity/unbindphone/unbindphone.js

+ 1 - 0
pages/bindPhone/bindPhone.js

@@ -128,6 +128,7 @@ Page({
     wx.request({
       url: getApp().globalData.postHeadAgreement + '/restapi/wechat/sendPhoneVcodeUnique',
       data: {
+        userId: that.data.userInfo.userId,
         scene: that.data.scene,
         terminal: phone,
       },

+ 0 - 4
pages/forget/forget.js

@@ -26,10 +26,6 @@ Page({
     let that = this;
     let { phone, vcode } = this.data;
     //跳转到下一步
-    let url = `/pages/reset_password/reset_password?phone=`+phone;
-    wx.redirectTo({
-      url
-    });
     wx.request({
       url: getApp().globalData.postHeadAgreement + '/restapi/wechat/forget',
       data: {

+ 1 - 0
pages/ucenter/accountsecurity/unbindphone/unbindphone.js

@@ -129,6 +129,7 @@ Page({
     wx.request({
       url: getApp().globalData.postHeadAgreement + '/restapi/wechat/sendPhoneVcodeUnique',
       data: {
+        userId: that.data.userInfo.userId,
         scene: that.data.scene,
         terminal: phone,
       },