|
|
@@ -11,7 +11,7 @@
|
|
|
<view class="text-desc">保管资金是门店责任,此小程序仅是收款管理工具</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="name-edit-section">
|
|
|
+ <view v-if="userName.includes('尾号')" class="name-edit-section">
|
|
|
<view class="section-label">请完善真实姓名,以便消费时核对信息</view>
|
|
|
<view class="input-group">
|
|
|
<input v-model="form.name" class="input-field" name="name" placeholder="请填写" @focus="clearInputOnFocus" />
|
|
|
@@ -45,7 +45,8 @@ export default {
|
|
|
hdInfo:{},
|
|
|
form:{
|
|
|
name:''
|
|
|
- }
|
|
|
+ },
|
|
|
+ userName:''
|
|
|
}
|
|
|
},
|
|
|
onLoad(){
|
|
|
@@ -71,6 +72,7 @@ export default {
|
|
|
currentInfo().then(res=>{
|
|
|
if(res.code == 1){
|
|
|
this.form.name = res.data.info && res.data.info.name ? res.data.info.name : ''
|
|
|
+ this.userName = this.form.name
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
@@ -103,8 +105,10 @@ export default {
|
|
|
submitNameForm(){
|
|
|
updateInfo(this.form).then(res=>{
|
|
|
if(res.code == 1){
|
|
|
- this.$msg('已修改')
|
|
|
- this.name = this.form.name
|
|
|
+ this.$msg('修改成功')
|
|
|
+ setTimeout(() => {
|
|
|
+ this.userName = this.form.name
|
|
|
+ }, 1500)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
@@ -246,8 +250,7 @@ export default {
|
|
|
width: 100%;
|
|
|
box-sizing: border-box;
|
|
|
transition: all 0.3s;
|
|
|
- margin-bottom: 24upx;
|
|
|
-
|
|
|
+ margin-bottom: 30upx;
|
|
|
&:last-child {
|
|
|
margin-bottom: 0;
|
|
|
}
|