Browse Source

bug修复

guessPrice
sui 5 years ago
parent
commit
b8016a49b1
2 changed files with 1 additions and 2 deletions
  1. +1
    -1
      496_dongfengqichen/app.js
  2. +0
    -1
      496_dongfengqichen/pages/index/index.js

+ 1
- 1
496_dongfengqichen/app.js View File

this.globalData.mobileData = null; this.globalData.mobileData = null;
this.wxRequest(this.globalData.urlRoot + "userInfo/getUserPhoneNumber", { encryptedData: encryptedData, iv: iv }, res => { this.wxRequest(this.globalData.urlRoot + "userInfo/getUserPhoneNumber", { encryptedData: encryptedData, iv: iv }, res => {
if (res.code == 200) { if (res.code == 200) {
if (res.data.decodeData && res.data.decodeData.phoneNumber) {
if (res.data && res.data.decodeData) {
wx.setStorageSync('userMobile', res.data.decodeData.phoneNumber); wx.setStorageSync('userMobile', res.data.decodeData.phoneNumber);
this.globalData.userMobile = res.data.decodeData.phoneNumber; this.globalData.userMobile = res.data.decodeData.phoneNumber;
} }

+ 0
- 1
496_dongfengqichen/pages/index/index.js View File

if (e.detail.errMsg=='getPhoneNumber:ok'){ if (e.detail.errMsg=='getPhoneNumber:ok'){
app.getMobile(e.detail.encryptedData, e.detail.iv,res=>{ app.getMobile(e.detail.encryptedData, e.detail.iv,res=>{
if (res.code == 200) { if (res.code == 200) {
res.data=null;
if(res.data){ if(res.data){
this.data.subscribeData.mobile = res.data.decodeData.phoneNumber; this.data.subscribeData.mobile = res.data.decodeData.phoneNumber;
this.setData({ this.setData({

Loading…
Cancel
Save