From 339f8e3346dba62b419518c718128799ddc8441a Mon Sep 17 00:00:00 2001 From: ghusermoon <2673031505@qq.com> Date: Tue, 15 Sep 2020 15:40:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BE=BE=E4=BA=BA=E7=94=B3=E8=AF=B7=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E8=BA=AB=E4=BB=BD=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/api/user.js | 4 ++-- pageE/more/ApplyLive.vue | 33 +++++++++++++++++++++++++-------- pages/shop/index.vue | 2 +- 3 files changed, 28 insertions(+), 11 deletions(-) diff --git a/common/api/user.js b/common/api/user.js index 909f210..944b6cd 100644 --- a/common/api/user.js +++ b/common/api/user.js @@ -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() { diff --git a/pageE/more/ApplyLive.vue b/pageE/more/ApplyLive.vue index 703aa84..214b31b 100644 --- a/pageE/more/ApplyLive.vue +++ b/pageE/more/ApplyLive.vue @@ -3,12 +3,16 @@ - + + + + + @@ -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('地址不能为空'); - return false; - } - if(this.$u.test.isEmpty(this.details)) { - this.$u.toast('详细地址不能为空'); - return false; + if(this.$u.test.isEmpty(this.idCard)) { + 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) { 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, diff --git a/pages/shop/index.vue b/pages/shop/index.vue index e960d99..ed9b622 100644 --- a/pages/shop/index.vue +++ b/pages/shop/index.vue @@ -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);