解决身份证隐藏

This commit is contained in:
shijingjing
2022-01-14 15:37:29 +08:00
parent fdb22dc918
commit 173a7c55b9
2 changed files with 3 additions and 14 deletions

View File

@@ -22,7 +22,7 @@
<span class="user-name">{{item.name}}</span> <span class="user-name">{{item.name}}</span>
<span class="user-tel">{{item.phone}}</span> <span class="user-tel">{{item.phone}}</span>
</div> </div>
<div class="idCard">{{item.idNumber}}</div> <div class="idCard">{{item.idNumber && item.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")}}</div>
<div class="address">{{item.householdAddress}}</div> <div class="address">{{item.householdAddress}}</div>
</div> </div>
</div> </div>

View File

@@ -14,7 +14,7 @@
<span class="user-name">{{item.name}}</span> <span class="user-name">{{item.name}}</span>
<span class="user-tel">{{item.phone}}</span> <span class="user-tel">{{item.phone}}</span>
</div> </div>
<div class="idCard">{{item.idNumber}}</div> <div class="idCard">{{item.idNumber && item.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")}}</div>
<div class="address">{{item.householdAddress}}</div> <div class="address">{{item.householdAddress}}</div>
</div> </div>
</div> </div>
@@ -22,7 +22,7 @@
</ul> </ul>
</div> </div>
<AiEmpty description="暂无数据" class="emptyWrap" v-if="!list.length"></AiEmpty> <AiEmpty description="暂无数据" class="emptyWrap" v-if="!list.length"></AiEmpty>
<div class="footer" @click="toAddFamily()" v-if="checkType == 2">新增责任家庭</div> <div class="footer" @click="toAddFamily()">新增责任家庭</div>
</div> </div>
</template> </template>
@@ -32,7 +32,6 @@ export default {
return { return {
list:[], list:[],
current:1, current:1,
checkType: '',
userId: '', userId: '',
} }
}, },
@@ -47,15 +46,6 @@ export default {
toAddFamily(){ toAddFamily(){
uni.navigateTo({url: `./AddFamily?id=${this.userId}`}) uni.navigateTo({url: `./AddFamily?id=${this.userId}`})
}, },
isGirdUser() {
this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
if (res.code == 0) {
if (res.data.checkType) {
this.checkType = res.data.checkType
}
}
})
},
}, },
onLoad(option) { onLoad(option) {
this.userId = option.id this.userId = option.id
@@ -68,7 +58,6 @@ export default {
this.current = 1 this.current = 1
this.getList() this.getList()
}) })
this.isGirdUser()
}, },
onReachBottom() { onReachBottom() {
this.current = this.current + 1 this.current = this.current + 1