居民身份认证所属网格
This commit is contained in:
@@ -48,18 +48,15 @@
|
|||||||
<input class="item-right" v-else type="idNumber" v-model="userIdNumber" maxlength="18">
|
<input class="item-right" v-else type="idNumber" v-model="userIdNumber" maxlength="18">
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<p>所属地区</p>
|
<p>所属网格</p>
|
||||||
<div class="item-right" v-if="!editArea">
|
<div class="item-right" v-if="!editGird">
|
||||||
<p class="name">{{ user.areaName || '' }}</p>
|
<p class="name">{{ user.girdName || '' }}</p>
|
||||||
</div>
|
</div>
|
||||||
<AiAreaPicker v-else :selectRoot="false" class="item-right" :areaId="$areaId" v-model="userAreaId" :fullName.sync="userAreaName">
|
<AiPagePicker type="gird" class="item-right" v-model="userGirdId" :params="{formType:2}" @select="handleSelectGrid" nodeKey="id" v-else>
|
||||||
<div class="ai-area__wrapper">
|
<AiMore v-model="userGirdName" />
|
||||||
<span class="label" v-if="userAreaName">{{ userAreaName }}</span>
|
</AiPagePicker>
|
||||||
<i v-else>请选择</i>
|
|
||||||
<u-icon name="arrow-right" color="#ddd"/>
|
|
||||||
</div>
|
|
||||||
</AiAreaPicker>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="btn-wrapper btn-edit">
|
<div class="btn-wrapper btn-edit">
|
||||||
<b class="btn" @click="btnText? submit(): editBtn()">{{ btnText? '提交': '修改' }}</b>
|
<b class="btn" @click="btnText? submit(): editBtn()">{{ btnText? '提交': '修改' }}</b>
|
||||||
@@ -90,14 +87,14 @@ export default {
|
|||||||
editPhone: false,
|
editPhone: false,
|
||||||
editRealName: false,
|
editRealName: false,
|
||||||
editIdNumber: false,
|
editIdNumber: false,
|
||||||
editArea: false,
|
editGird: false,
|
||||||
avatar: '',
|
avatar: '',
|
||||||
userName: '',
|
userName: '',
|
||||||
userPhone: '',
|
userPhone: '',
|
||||||
userRealName: '',
|
userRealName: '',
|
||||||
userIdNumber: '',
|
userIdNumber: '',
|
||||||
userAreaId: '',
|
userGirdId: '',
|
||||||
userAreaName: '',
|
userGirdName: '',
|
||||||
btnText: false,
|
btnText: false,
|
||||||
isFromTabbar: '',
|
isFromTabbar: '',
|
||||||
path: '',
|
path: '',
|
||||||
@@ -117,9 +114,9 @@ export default {
|
|||||||
this.userRealName = this.user.realName
|
this.userRealName = this.user.realName
|
||||||
this.editIdNumber = true;
|
this.editIdNumber = true;
|
||||||
this.userIdNumber = this.user.idNumber
|
this.userIdNumber = this.user.idNumber
|
||||||
this.editArea = true;
|
this.editGird = true
|
||||||
this.userAreaId = this.user.areaId
|
this.userGirdId = this.user.girdId
|
||||||
this.userAreaName = this.user.areaName
|
this.userGirdName = this.user.girdName
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
if(this.flag) return
|
if(this.flag) return
|
||||||
@@ -141,12 +138,15 @@ export default {
|
|||||||
if (!this.$idCardNoUtil.checkIdCardNo(this.userIdNumber)) {
|
if (!this.$idCardNoUtil.checkIdCardNo(this.userIdNumber)) {
|
||||||
return this.$u.toast('请输入正确的身份证号码')
|
return this.$u.toast('请输入正确的身份证号码')
|
||||||
}
|
}
|
||||||
if (!this.userAreaId) {
|
if (!this.userGirdId) {
|
||||||
return this.$u.toast('请选择所属地区')
|
return this.$u.toast('请选择所属网格')
|
||||||
}
|
|
||||||
if (!/[^0]0{0,2}$/.test(this.userAreaId)) {
|
|
||||||
return this.$u.toast('所属地区必须选到村级')
|
|
||||||
}
|
}
|
||||||
|
// if (!this.userAreaId) {
|
||||||
|
// return this.$u.toast('请选择所属地区')
|
||||||
|
// }
|
||||||
|
// if (!/[^0]0{0,2}$/.test(this.userAreaId)) {
|
||||||
|
// return this.$u.toast('所属地区必须选到村级')
|
||||||
|
// }
|
||||||
this.flag = true
|
this.flag = true
|
||||||
this.$instance.post(`/app/appwechatuserqujing/idNumberAttestation`, {
|
this.$instance.post(`/app/appwechatuserqujing/idNumberAttestation`, {
|
||||||
avatarUrl: this.avatar,
|
avatarUrl: this.avatar,
|
||||||
@@ -154,8 +154,8 @@ export default {
|
|||||||
phone: this.userPhone,
|
phone: this.userPhone,
|
||||||
name: this.userRealName,
|
name: this.userRealName,
|
||||||
idNumber: this.userIdNumber,
|
idNumber: this.userIdNumber,
|
||||||
areaId: this.userAreaId,
|
girdId: this.userGirdId,
|
||||||
areaName: this.userAreaName
|
girdName: this.userGirdName
|
||||||
}).then(res=> {
|
}).then(res=> {
|
||||||
if(res?.code==0) {
|
if(res?.code==0) {
|
||||||
this.$u.toast('提交成功')
|
this.$u.toast('提交成功')
|
||||||
@@ -198,6 +198,10 @@ export default {
|
|||||||
if(avatarUrl?.length) {
|
if(avatarUrl?.length) {
|
||||||
this.upLoad(avatarUrl)
|
this.upLoad(avatarUrl)
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
handleSelectGrid(v) {
|
||||||
|
this.userGirdName = v.girdName
|
||||||
|
this.userGirdId = v.id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
getList() {
|
getList() {
|
||||||
this.$instance.post(`/app/appintegralsupermarketgoods/list`).then(res => {
|
this.$instance.post(`/app/appintegralsupermarketshop/goodsListXCX`).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
this.flowList = res.data.records
|
this.flowList = res.data.records
|
||||||
if(res.data && res.data.records.length) {
|
if(res.data && res.data.records.length) {
|
||||||
|
|||||||
Reference in New Issue
Block a user