修复抖动
This commit is contained in:
parent
72bfc5fa18
commit
dd5db56bf8
@ -3,11 +3,11 @@
|
||||
<view class="basic-info">
|
||||
<view>
|
||||
<label for="name">姓名:</label>
|
||||
<input type="text" id="name" v-model="name" placeholder="请输入姓名" />
|
||||
<input type="text" id="name" @input="names" placeholder="请输入姓名" />
|
||||
</view>
|
||||
<view>
|
||||
<label for="phone">手机号:</label>
|
||||
<input type="number" id="phone" ref='phone' maxlength="11" placeholder="请输入手机号" />
|
||||
<input type="number" id="phone" @input="phones" maxlength="11" placeholder="请输入手机号" />
|
||||
</view>
|
||||
<view @click="show=true">
|
||||
<label for="address">居住地址:</label>
|
||||
@ -16,7 +16,7 @@
|
||||
</view>
|
||||
<view>
|
||||
<label for="details">详细地址:</label>
|
||||
<input type="text" id="details" v-model="details" placeholder="请填写详细地址" />
|
||||
<input type="text" id="details" @input="detailss" placeholder="请填写详细地址" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="other-info">
|
||||
@ -80,6 +80,17 @@ export default {
|
||||
this.getHobbyList();
|
||||
},
|
||||
methods: {
|
||||
names(a){
|
||||
console.log(a.detail)
|
||||
this.name = a.detail.value
|
||||
},
|
||||
phones(a){
|
||||
this.phone = a.detail.value
|
||||
},
|
||||
detailss(a){
|
||||
this.details = a.detail.value
|
||||
},
|
||||
|
||||
getAreaData() {
|
||||
this.$u.api.getArea().then((res)=>{
|
||||
if (res.errCode == 0) {
|
||||
@ -121,11 +132,11 @@ export default {
|
||||
this.$u.toast('姓名不能为空');
|
||||
return false;
|
||||
}
|
||||
if(this.$u.test.isEmpty(this.$refs.phone.valueSync)) {
|
||||
if(this.$u.test.isEmpty(this.phone)) {
|
||||
this.$u.toast('手机号不能为空');
|
||||
return false;
|
||||
}
|
||||
if(!this.$u.test.mobile(this.$refs.phone.valueSync)) {
|
||||
if(!this.$u.test.mobile(this.phone)) {
|
||||
this.$u.toast('手机号错误');
|
||||
return false;
|
||||
}
|
||||
@ -153,7 +164,7 @@ export default {
|
||||
this.isSubmit = false;
|
||||
this.$u.api.applyExpert({
|
||||
name: this.name,
|
||||
mobile: this.$refs.phone.valueSync,
|
||||
mobile: this.phone,
|
||||
address: this.address + this.details,
|
||||
industry: this.checkedIndustryList,
|
||||
hobby: this.checkedHobbyList,
|
||||
|
Loading…
Reference in New Issue
Block a user