dengjie commit : 代码完善
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
<view class="commitment">
|
||||
{{commitment}}
|
||||
</view>
|
||||
<u-button type="success" text="升级VIP" color="#0EBB5B" @click="showModal()"></u-button>
|
||||
<u-modal :show="showM" closeOnClickOverlay confirmText="确定" @confirm="confirm" @close="close">
|
||||
<u-button type="success" text="升级VIP" color="#0EBB5B" @click="handleSureClick()"></u-button>
|
||||
<u-modal :show="showM" closeOnClickOverlay="false" confirmText="确定" @confirm="confirm">
|
||||
<rich-text :nodes="content"></rich-text>
|
||||
</u-modal>
|
||||
</view>
|
||||
@@ -30,32 +30,32 @@
|
||||
commitment: '承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置'
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.name = this.$refs.nameAndphone.model.userInfo.name
|
||||
this.phone = this.$refs.nameAndphone.model.userInfo.phone
|
||||
},
|
||||
methods: {
|
||||
// 联系客服模态框
|
||||
showModal() {
|
||||
this.showM = true
|
||||
},
|
||||
confirm() {
|
||||
this.showM = false
|
||||
handleSureClick() {
|
||||
let name = this.$refs.nameAndphone.model.userInfo.name
|
||||
let phone = this.$refs.nameAndphone.model.userInfo.phone
|
||||
this.$apiServe.bindComponyAndUpdate({
|
||||
uid: 1,
|
||||
type: 2,
|
||||
companyPhone: this.phone,
|
||||
companyName: this.name
|
||||
companyName: name,
|
||||
companyPhone: phone
|
||||
}).then(res => {
|
||||
console.log('升级VIP', res);
|
||||
console.log('升级VIP', res.data);
|
||||
if (res.data.code == 20003) {
|
||||
this.showM = true
|
||||
} else if (res.data.code == 20005) {
|
||||
this.$toast.warn('请完善数据')
|
||||
}
|
||||
|
||||
}).finally(_ => {})
|
||||
},
|
||||
cancel() {
|
||||
confirm() {
|
||||
this.showM = false
|
||||
},
|
||||
close() {
|
||||
this.showM = false
|
||||
},
|
||||
// uni.switchTab({
|
||||
// url: '/pages/my/my'
|
||||
// })
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -81,4 +81,8 @@
|
||||
padding: 43rpx 104rpx !important;
|
||||
text-indent: 14rpx;
|
||||
}
|
||||
|
||||
.u-modal__button-group__wrapper--hover {
|
||||
background: #0EBB5B !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user