Merge pull request '修复抖动' (#351) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/351
This commit is contained in:
commit
5bca242f28
@ -3,11 +3,11 @@
|
|||||||
<view class="basic-info">
|
<view class="basic-info">
|
||||||
<view>
|
<view>
|
||||||
<label for="name">姓名:</label>
|
<label for="name">姓名:</label>
|
||||||
<input type="text" id="name" v-model="name" placeholder="请输入姓名" />
|
<input type="text" id="name" @input="names" placeholder="请输入姓名" />
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<label for="phone">手机号:</label>
|
<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>
|
||||||
<view @click="show=true">
|
<view @click="show=true">
|
||||||
<label for="address">居住地址:</label>
|
<label for="address">居住地址:</label>
|
||||||
@ -16,7 +16,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<label for="details">详细地址:</label>
|
<label for="details">详细地址:</label>
|
||||||
<input type="text" id="details" v-model="details" placeholder="请填写详细地址" />
|
<input type="text" id="details" @input="detailss" placeholder="请填写详细地址" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="other-info">
|
<view class="other-info">
|
||||||
@ -80,6 +80,17 @@ export default {
|
|||||||
this.getHobbyList();
|
this.getHobbyList();
|
||||||
},
|
},
|
||||||
methods: {
|
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() {
|
getAreaData() {
|
||||||
this.$u.api.getArea().then((res)=>{
|
this.$u.api.getArea().then((res)=>{
|
||||||
if (res.errCode == 0) {
|
if (res.errCode == 0) {
|
||||||
@ -121,11 +132,11 @@ export default {
|
|||||||
this.$u.toast('姓名不能为空');
|
this.$u.toast('姓名不能为空');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(this.$u.test.isEmpty(this.$refs.phone.valueSync)) {
|
if(this.$u.test.isEmpty(this.phone)) {
|
||||||
this.$u.toast('手机号不能为空');
|
this.$u.toast('手机号不能为空');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(!this.$u.test.mobile(this.$refs.phone.valueSync)) {
|
if(!this.$u.test.mobile(this.phone)) {
|
||||||
this.$u.toast('手机号错误');
|
this.$u.toast('手机号错误');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -153,7 +164,7 @@ export default {
|
|||||||
this.isSubmit = false;
|
this.isSubmit = false;
|
||||||
this.$u.api.applyExpert({
|
this.$u.api.applyExpert({
|
||||||
name: this.name,
|
name: this.name,
|
||||||
mobile: this.$refs.phone.valueSync,
|
mobile: this.phone,
|
||||||
address: this.address + this.details,
|
address: this.address + this.details,
|
||||||
industry: this.checkedIndustryList,
|
industry: this.checkedIndustryList,
|
||||||
hobby: this.checkedHobbyList,
|
hobby: this.checkedHobbyList,
|
||||||
|
Loading…
Reference in New Issue
Block a user