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>
 | 
			
		||||
        <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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user