dengjie commit : 我的页面部分接口
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<u--image src="/static/my/wo_icon_hyzxbj.png" width="750rpx" height="349rpx" :lazy-load="true">
|
||||
</u--image>
|
||||
<myAvatar :center="show"></myAvatar>
|
||||
<myForm></myForm>
|
||||
<myForm ref="nameAndphone"></myForm>
|
||||
<view class="commitment">
|
||||
{{commitment}}
|
||||
</view>
|
||||
@@ -20,6 +20,8 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
name: '',
|
||||
phone: '',
|
||||
showM: false,
|
||||
//会员中心的用户名旁边不显示edit图标
|
||||
show: false,
|
||||
@@ -28,6 +30,10 @@
|
||||
commitment: '承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置'
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.name = this.$refs.nameAndphone.model.userInfo.name
|
||||
this.phone = this.$refs.nameAndphone.model.userInfo.phone
|
||||
},
|
||||
methods: {
|
||||
// 联系客服模态框
|
||||
showModal() {
|
||||
@@ -35,6 +41,14 @@
|
||||
},
|
||||
confirm() {
|
||||
this.showM = false
|
||||
this.$apiServe.bindComponyAndUpdate({
|
||||
uid: 1,
|
||||
type: 2,
|
||||
companyPhone: this.phone,
|
||||
companyName: this.name
|
||||
}).then(res => {
|
||||
console.log('升级VIP', res);
|
||||
}).finally(_ => {})
|
||||
},
|
||||
cancel() {
|
||||
this.showM = false
|
||||
@@ -63,30 +77,10 @@
|
||||
border-radius: 20rpx !important;
|
||||
}
|
||||
|
||||
.u-modal {
|
||||
width: 472rpx !important;
|
||||
}
|
||||
|
||||
|
||||
.u-modal__content {
|
||||
padding: 43rpx 104rpx !important;
|
||||
text-indent: 14rpx;
|
||||
}
|
||||
|
||||
.u-modal__content__text {
|
||||
font-size: 32rpx !important;
|
||||
font-weight: 400;
|
||||
color: #252421 !important;
|
||||
}
|
||||
|
||||
.u-modal__button-group__wrapper--hover {
|
||||
background: #0EBB5B !important;
|
||||
}
|
||||
|
||||
.u-modal__button-group__wrapper--confirm {
|
||||
background: #0EBB5B;
|
||||
|
||||
.u-modal__button-group__wrapper__text {
|
||||
color: #fff !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user