|
|
@@ -65,6 +65,16 @@
|
|
|
<image src="../../static/arrow-right2.png" mode=""></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
+
|
|
|
+ <button class="list-content change-phone" style="border-bottom: none;"
|
|
|
+ open-type="getPhoneNumber" @getphonenumber="changePhoneNumber">
|
|
|
+ <text class="margin-left5">更改手机号码</text>
|
|
|
+ <view class="apply-box">
|
|
|
+ <text style="color: #999;visibility: hidden;">点击申请</text>
|
|
|
+ <image src="../../static/arrow-right2.png" mode=""></image>
|
|
|
+ </view>
|
|
|
+ </button>
|
|
|
+
|
|
|
</view>
|
|
|
<uni-popup ref="showtip" type="center" :mask-click="false" @change="change">
|
|
|
<view class="uni-tip">
|
|
|
@@ -294,9 +304,20 @@ export default {
|
|
|
complete: () => {}
|
|
|
});
|
|
|
},
|
|
|
+ changePhoneNumber(e){
|
|
|
+ let that = this;
|
|
|
+ console.log(e,'change')
|
|
|
+ if (e.detail.errMsg == 'getPhoneNumber:ok') { //允许授权执行跳转
|
|
|
+ console.log(e.detail.iv)
|
|
|
+ that.phoneRequest(e.detail.iv, e.detail.encryptedData, getApp().globalData.session_key)
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ // that.isNeedPhone = false;
|
|
|
+ }
|
|
|
+ },
|
|
|
getPhoneNumber(e){
|
|
|
let that = this;
|
|
|
- console.log(e)
|
|
|
+ console.log(e,'get')
|
|
|
if (e.detail.errMsg == 'getPhoneNumber:ok') { //允许授权执行跳转
|
|
|
console.log(e.detail.iv)
|
|
|
that.phoneRequest(e.detail.iv, e.detail.encryptedData, getApp().globalData.session_key)
|
|
|
@@ -423,6 +444,12 @@ export default {
|
|
|
height: 100rpx;
|
|
|
border-bottom: 1px solid #dbdbdb;
|
|
|
}
|
|
|
+.change-phone {
|
|
|
+ padding-left: 0!important;
|
|
|
+ padding-right: 0!important;
|
|
|
+ color: #000!important;
|
|
|
+ font-size: 30rpx!important;
|
|
|
+}
|
|
|
.apply-box {
|
|
|
display: flex;
|
|
|
align-items: center;
|