no message

This commit is contained in:
shijingjing
2022-04-29 19:36:01 +08:00
2 changed files with 4 additions and 8 deletions

View File

@@ -519,7 +519,7 @@ export default {
handler: function (v) { handler: function (v) {
let {name, idNumber, currentAreaId, currentAreaName} = v?.[0] || {} let {name, idNumber, currentAreaId, currentAreaName} = v?.[0] || {}
this.form = {...this.form, name, idNumber, currentAreaId, currentAreaName} this.form = {...this.form, name, idNumber, currentAreaId, currentAreaName}
this.form.sex = this.idCardNoUtil.getIdCardInfo(idNumber)?.sex this.form.sex = this.$idCardNoUtil.getIdCardInfo(idNumber)?.sex
}, },
deep: true, deep: true,
}, },

View File

@@ -94,8 +94,7 @@
<span>现住址</span> <span>现住址</span>
</div> </div>
<div class="right"> <div class="right">
<AiAreaPicker ref="address" class="aiArea" :fullName.sync="form.currentAreaName" v-model="form.currentAreaId" :root="user.areaId" <AiAreaPicker :fullName.sync="form.currentAreaName" v-model="form.currentAreaId">
@select="onAreaChange">
<div class="aiArea"> <div class="aiArea">
<span class="label" style="color: #333;" v-if="form.currentAreaName">{{ form.currentAreaName }}</span> <span class="label" style="color: #333;" v-if="form.currentAreaName">{{ form.currentAreaName }}</span>
<i v-else>请选择</i> <i v-else>请选择</i>
@@ -490,7 +489,7 @@ export default {
} }
this.isGirdUser() this.isGirdUser()
this.$areaId = this.$store.state.user.areaId this.$areaId = this.user.areaId
uni.$on('reload', () => { uni.$on('reload', () => {
this.getInfo() this.getInfo()
}) })
@@ -501,9 +500,6 @@ export default {
}, },
methods: { methods: {
onAreaChange(e) {
this.form.currentAreaId = e
},
userClick(row, i) { userClick(row, i) {
if (!this.helthList[i].checked) { if (!this.helthList[i].checked) {
this.helthList[i].checked = true // 确定 this.helthList[i].checked = true // 确定
@@ -677,7 +673,7 @@ export default {
handler: function (v) { handler: function (v) {
let {name, idNumber, currentAreaId, currentAreaName} = v?.[0] || {} let {name, idNumber, currentAreaId, currentAreaName} = v?.[0] || {}
this.form = {...this.form, name, idNumber, currentAreaId, currentAreaName} this.form = {...this.form, name, idNumber, currentAreaId, currentAreaName}
this.form.sex = this.idCardNoUtil.getIdCardInfo(idNumber)?.sex this.form.sex = this.$idCardNoUtil.getIdCardInfo(idNumber)?.sex
}, },
deep: true, deep: true,
}, },