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