达人申请添加身份证
This commit is contained in:
		
							parent
							
								
									1a9f06e722
								
							
						
					
					
						commit
						339f8e3346
					
				@ -475,9 +475,9 @@ export default {
 | 
				
			|||||||
				return vm.$u.post("Expertapply/hobbyList")
 | 
									return vm.$u.post("Expertapply/hobbyList")
 | 
				
			||||||
			},
 | 
								},
 | 
				
			||||||
			// 达人申请
 | 
								// 达人申请
 | 
				
			||||||
			applyExpert({ name, mobile, address, industry, hobby }) {
 | 
								applyExpert({ name, mobile, idCard, address, industry, hobby }) {
 | 
				
			||||||
				return vm.$u.post("Expertapply/expertApply", {
 | 
									return vm.$u.post("Expertapply/expertApply", {
 | 
				
			||||||
					name, mobile, address, industry, hobby
 | 
										name, mobile, idCard, address, industry, hobby
 | 
				
			||||||
				})
 | 
									})
 | 
				
			||||||
			},
 | 
								},
 | 
				
			||||||
			getInvoiceList() {
 | 
								getInvoiceList() {
 | 
				
			||||||
 | 
				
			|||||||
@ -3,12 +3,16 @@
 | 
				
			|||||||
    <view class="basic-info">
 | 
					    <view class="basic-info">
 | 
				
			||||||
      <view>
 | 
					      <view>
 | 
				
			||||||
        <label for="name">姓名:</label>
 | 
					        <label for="name">姓名:</label>
 | 
				
			||||||
        <input type="text" id="name"  @input="names" 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" @input="phones" maxlength="11" placeholder="请输入手机号" />
 | 
					        <input type="number" id="phone" @input="phones" maxlength="11" placeholder="请输入手机号" />
 | 
				
			||||||
      </view>
 | 
					      </view>
 | 
				
			||||||
 | 
					      <view>
 | 
				
			||||||
 | 
					        <label for="idCard">身份证号:</label>
 | 
				
			||||||
 | 
					        <input type="text" id="idCard" placeholder="请输入身份证号" @input="setIdCard" />
 | 
				
			||||||
 | 
					      </view>
 | 
				
			||||||
      <view @click="show=true">
 | 
					      <view @click="show=true">
 | 
				
			||||||
        <label for="address">居住地址:</label>
 | 
					        <label for="address">居住地址:</label>
 | 
				
			||||||
        <input type="text" id="address" v-model="address" disabled placeholder="请选择居住地址" />
 | 
					        <input type="text" id="address" v-model="address" disabled placeholder="请选择居住地址" />
 | 
				
			||||||
@ -65,6 +69,7 @@ export default {
 | 
				
			|||||||
      areaList: [],
 | 
					      areaList: [],
 | 
				
			||||||
      name: '',
 | 
					      name: '',
 | 
				
			||||||
      phone: '',
 | 
					      phone: '',
 | 
				
			||||||
 | 
					      idCard: '',
 | 
				
			||||||
      address: '',
 | 
					      address: '',
 | 
				
			||||||
      details: '',
 | 
					      details: '',
 | 
				
			||||||
      industryList: [],
 | 
					      industryList: [],
 | 
				
			||||||
@ -87,6 +92,9 @@ export default {
 | 
				
			|||||||
    phones(a){
 | 
					    phones(a){
 | 
				
			||||||
      this.phone = a.detail.value
 | 
					      this.phone = a.detail.value
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    setIdCard(v) {
 | 
				
			||||||
 | 
					      this.idCard = v.detail.value;
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    detailss(a){
 | 
					    detailss(a){
 | 
				
			||||||
      this.details = a.detail.value
 | 
					      this.details = a.detail.value
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@ -140,14 +148,22 @@ export default {
 | 
				
			|||||||
        this.$u.toast('手机号错误');
 | 
					        this.$u.toast('手机号错误');
 | 
				
			||||||
				return false;
 | 
									return false;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			if(this.$u.test.isEmpty(this.address)) {
 | 
					      if(this.$u.test.isEmpty(this.idCard)) {
 | 
				
			||||||
        this.$u.toast('地址不能为空');
 | 
					        this.$u.toast('身份证号不可为空');
 | 
				
			||||||
				return false;
 | 
					        return false;
 | 
				
			||||||
			}
 | 
					 | 
				
			||||||
			if(this.$u.test.isEmpty(this.details)) {
 | 
					 | 
				
			||||||
        this.$u.toast('详细地址不能为空');
 | 
					 | 
				
			||||||
				return false;
 | 
					 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					      if(!this.$u.test.idCard(this.idCard)) {
 | 
				
			||||||
 | 
					        this.$u.toast('请正确填写身份证号');
 | 
				
			||||||
 | 
					        return false;
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
								// if(this.$u.test.isEmpty(this.address)) {
 | 
				
			||||||
 | 
					      //   this.$u.toast('地址不能为空');
 | 
				
			||||||
 | 
								// 	return false;
 | 
				
			||||||
 | 
								// }
 | 
				
			||||||
 | 
								// if(this.$u.test.isEmpty(this.details)) {
 | 
				
			||||||
 | 
					      //   this.$u.toast('详细地址不能为空');
 | 
				
			||||||
 | 
								// 	return false;
 | 
				
			||||||
 | 
					      // }
 | 
				
			||||||
      if(!this.checkedIndustryList.length) {
 | 
					      if(!this.checkedIndustryList.length) {
 | 
				
			||||||
        this.$u.toast('行业领域不能为空');
 | 
					        this.$u.toast('行业领域不能为空');
 | 
				
			||||||
				return false;
 | 
									return false;
 | 
				
			||||||
@ -165,6 +181,7 @@ export default {
 | 
				
			|||||||
      this.$u.api.applyExpert({
 | 
					      this.$u.api.applyExpert({
 | 
				
			||||||
        name: this.name, 
 | 
					        name: this.name, 
 | 
				
			||||||
        mobile: this.phone, 
 | 
					        mobile: this.phone, 
 | 
				
			||||||
 | 
					        idCard: this.idCard,
 | 
				
			||||||
        address: this.address + this.details, 
 | 
					        address: this.address + this.details, 
 | 
				
			||||||
        industry: this.checkedIndustryList, 
 | 
					        industry: this.checkedIndustryList, 
 | 
				
			||||||
        hobby: this.checkedHobbyList,
 | 
					        hobby: this.checkedHobbyList,
 | 
				
			||||||
 | 
				
			|||||||
@ -351,7 +351,7 @@
 | 
				
			|||||||
			z-index: 9;
 | 
								z-index: 9;
 | 
				
			||||||
			position: fixed;
 | 
								position: fixed;
 | 
				
			||||||
			right: 30rpx;
 | 
								right: 30rpx;
 | 
				
			||||||
			bottom: 300rpx;
 | 
								bottom: 110rpx;
 | 
				
			||||||
			width: 100rpx;
 | 
								width: 100rpx;
 | 
				
			||||||
			height: 100rpx;
 | 
								height: 100rpx;
 | 
				
			||||||
			background: rgba(253, 211, 96, 1);
 | 
								background: rgba(253, 211, 96, 1);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user