Showing
5 changed files
with
24 additions
and
5 deletions
| 1 | +import App from '../../utils/api'; | ||
| 1 | Component({ | 2 | Component({ |
| 2 | methods:{ | 3 | methods:{ |
| 3 | getphone(e){ | 4 | getphone(e){ |
| 4 | console.log(e) | 5 | console.log(e) |
| 6 | + let parmdata={ | ||
| 7 | + session_key:wx.getStorageSync('customer_session_key'), | ||
| 8 | + encryptedData:e.detail.encryptedData, | ||
| 9 | + iv:e.detail.iv | ||
| 10 | + | ||
| 11 | + } | ||
| 12 | + App.Customer.GetCustomerTel(parmdata).then((json)=>{ | ||
| 13 | + console.log(json) | ||
| 14 | + if(json.ret==200){ | ||
| 15 | + let phoneNumber=JSON.parse(json.data).phoneNumber; | ||
| 16 | + this.triggerEvent('getphoneNumber',{phone:phoneNumber}) | ||
| 17 | + } | ||
| 18 | + }) | ||
| 5 | } | 19 | } |
| 6 | } | 20 | } |
| 7 | }) | 21 | }) |
| @@ -2,6 +2,7 @@ | @@ -2,6 +2,7 @@ | ||
| 2 | "usingComponents": { | 2 | "usingComponents": { |
| 3 | "nav":"/components/nav/nav", | 3 | "nav":"/components/nav/nav", |
| 4 | "formids":"/components/formids/formids", | 4 | "formids":"/components/formids/formids", |
| 5 | - "card":"/components/seller-card/seller-card" | 5 | + "card":"/components/seller-card/seller-card", |
| 6 | + "phone":"/components/userinfo/getphone" | ||
| 6 | } | 7 | } |
| 7 | } | 8 | } |
| @@ -50,8 +50,9 @@ | @@ -50,8 +50,9 @@ | ||
| 50 | type="number" | 50 | type="number" |
| 51 | value="{{user.phone}}" | 51 | value="{{user.phone}}" |
| 52 | placeholder-class="input-pl"/> | 52 | placeholder-class="input-pl"/> |
| 53 | - <view class="flex-rr switch"> | ||
| 54 | - 一键获取 | 53 | + <view class="flex-rr"> |
| 54 | + <!-- 一键获取 --> | ||
| 55 | + <phone></phone> | ||
| 55 | </view> | 56 | </view> |
| 56 | </view> | 57 | </view> |
| 57 | </view> | 58 | </view> |
| @@ -7,7 +7,7 @@ | @@ -7,7 +7,7 @@ | ||
| 7 | "minified": true, | 7 | "minified": true, |
| 8 | "newFeature": true, | 8 | "newFeature": true, |
| 9 | "nodeModules": true, | 9 | "nodeModules": true, |
| 10 | - "autoAudits": true, | 10 | + "autoAudits": false, |
| 11 | "uglifyFileName": false, | 11 | "uglifyFileName": false, |
| 12 | "checkInvalidKey": true, | 12 | "checkInvalidKey": true, |
| 13 | "enhance": true, | 13 | "enhance": true, |
| @@ -284,5 +284,8 @@ export default { | @@ -284,5 +284,8 @@ export default { | ||
| 284 | 'App.Customer.GetHouseFullDateTimes':null, | 284 | 'App.Customer.GetHouseFullDateTimes':null, |
| 285 | 285 | ||
| 286 | //根据指定年份月份获取当月满房的日期 | 286 | //根据指定年份月份获取当月满房的日期 |
| 287 | - 'App.Customer.GetHouseFullDate':null | 287 | + 'App.Customer.GetHouseFullDate':null, |
| 288 | + | ||
| 289 | + //获取微信用户绑定的手机号 | ||
| 290 | + 'App.Customer.GetCustomerTel':null | ||
| 288 | } | 291 | } |
-
Please register or login to post a comment