业务员签约
This commit is contained in:
@@ -12,7 +12,11 @@
|
||||
</view>
|
||||
<view class="info-flex">
|
||||
<label>昵称</label>
|
||||
<input class="info-input" maxlength="8" v-model="nickname" type="text" placeholder="昵称" @blur="onNickname">
|
||||
<input class="info-input" maxlength="8" v-model="nickname" type="text" placeholder="昵称" disabled @blur="onNickname">
|
||||
</view>
|
||||
<view class="info-flex">
|
||||
<label>通讯地址</label>
|
||||
<input class="info-input" v-model="sign.address" type="text" placeholder="输入通讯地址" :disabled="sign.isSign" @blur="onAddress">
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -28,6 +32,10 @@
|
||||
url : '',
|
||||
path: ''
|
||||
}, // 上传头像
|
||||
sign : {
|
||||
isSign : false,
|
||||
address : ''
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
@@ -40,12 +48,13 @@
|
||||
title: '加载中...'
|
||||
})
|
||||
info().then(res => {
|
||||
let { nickname, avatar} = res
|
||||
let { nickname, avatar, sign } = res
|
||||
this.nickname = nickname
|
||||
this.avatar = {
|
||||
url : avatar,
|
||||
path: ''
|
||||
}
|
||||
this.sign = sign
|
||||
uni.hideLoading()
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
@@ -58,6 +67,10 @@
|
||||
onNickname(e){
|
||||
this.updInfo('nickname', this.nickname)
|
||||
},
|
||||
// 更新通讯地址
|
||||
onAddress(e){
|
||||
this.updInfo('address', this.sign.address)
|
||||
},
|
||||
// 更新资料
|
||||
updInfo(key, val){
|
||||
uni.showLoading({
|
||||
|
||||
Reference in New Issue
Block a user