解决数据绑定和升级VIP问题
This commit is contained in:
@@ -3,13 +3,14 @@
|
||||
<u-navbar :autoBack="true" title="会员中心"></u-navbar>
|
||||
<u--image src="/static/my/wo_icon_hyzxbj.png" width="750rpx" height="349rpx" :lazy-load="true">
|
||||
</u--image>
|
||||
<myAvatar :center="show"></myAvatar>
|
||||
<myAvatar ref="myavatar" :center="show"></myAvatar>
|
||||
<view style="height: 56rpx;"></view>
|
||||
<myForm ref="nameAndphone"></myForm>
|
||||
<view class="commitment">
|
||||
{{commitment}}
|
||||
</view>
|
||||
<u-button type="success" text="升级VIP" color="#0EBB5B" @click="handleSureClick()"></u-button>
|
||||
<u-button type="success" :text="btnText" color="#0EBB5B" @click="handleSureClick()" :disabled="btnDisabled">
|
||||
</u-button>
|
||||
<u-modal :show="showM" closeOnClickOverlay="false" confirmText="确定" @confirm="confirm">
|
||||
<rich-text :nodes="content"></rich-text>
|
||||
</u-modal>
|
||||
@@ -23,17 +24,29 @@
|
||||
name: '',
|
||||
phone: '',
|
||||
showM: false,
|
||||
btnText: '升级VIP',
|
||||
btnDisabled: false,
|
||||
//部分产品无权限访问,需升级VIP
|
||||
needAsk: '',
|
||||
//会员中心的用户名旁边不显示edit图标
|
||||
show: false,
|
||||
content: `请保持手机畅通<br>
|
||||
客服会及时联系您`,
|
||||
commitment: '承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置'
|
||||
commitment: ''
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
console.log('ask', option.ask);
|
||||
console.log('uni.getStorageSync', uni.getStorageSync('member'));
|
||||
if (uni.getStorageSync('member') == 2) {
|
||||
this.btnText = '升级VIP'
|
||||
} else if (uni.getStorageSync('member') == 3) {
|
||||
this.btnText = '升级VIP'
|
||||
this.btnDisabled = true
|
||||
} else if (uni.getStorageSync('member') == 99) {
|
||||
this.btnText = '升级vip,正在审核中'
|
||||
this.btnDisabled = true
|
||||
}
|
||||
this.commitment = uni.getStorageSync('agreement')
|
||||
if (option.ask == 1) {
|
||||
this.needAsk = option.ask
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user