达人申请添加身份证

This commit is contained in:
ghusermoon 2020-09-15 16:07:59 +08:00
parent 339f8e3346
commit 28c324e449
2 changed files with 11 additions and 11 deletions

View File

@ -475,9 +475,9 @@ export default {
return vm.$u.post("Expertapply/hobbyList") return vm.$u.post("Expertapply/hobbyList")
}, },
// 达人申请 // 达人申请
applyExpert({ name, mobile, idCard, address, industry, hobby }) { applyExpert({ name, mobile, idcard, address, industry, hobby }) {
return vm.$u.post("Expertapply/expertApply", { return vm.$u.post("Expertapply/expertApply", {
name, mobile, idCard, address, industry, hobby name, mobile, idcard, address, industry, hobby
}) })
}, },
getInvoiceList() { getInvoiceList() {

View File

@ -152,10 +152,10 @@ export default {
this.$u.toast('身份证号不可为空'); this.$u.toast('身份证号不可为空');
return false; return false;
} }
if(!this.$u.test.idCard(this.idCard)) { // if(!this.$u.test.idCard(this.idCard)) {
this.$u.toast('请正确填写身份证号'); // this.$u.toast('');
return false; // return false;
} // }
// if(this.$u.test.isEmpty(this.address)) { // if(this.$u.test.isEmpty(this.address)) {
// this.$u.toast(''); // this.$u.toast('');
// return false; // return false;
@ -181,16 +181,16 @@ 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, 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,
}).then(res => { }).then(res => {
if(res.errCode == 0) { if(res.errCode == 0) {
this.$refs.uToast.show({ // this.$refs.uToast.show({
title: res.message, // title: res.message,
back: true, // back: true,
}) // })
} else { } else {
this.isSubmit = true; this.isSubmit = true;
this.$u.toast(res.message); this.$u.toast(res.message);