소스 검색

用户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,
       },