修改错误性别校验

This commit is contained in:
shishengjie
2019-09-29 15:07:40 +08:00
parent 2484c50bb1
commit 1c52f3fcd1

View File

@@ -5,7 +5,7 @@
<van-cell-group class="pl15 mt10">
<van-cell title="业务员工号" :value="userInfo.jobNo" />
<van-cell title="业务员姓名" :value="userInfo.name" />
<van-cell title="性别" :value="userInfo.sex === 1 ? '女' : '男'" />
<van-cell title="性别" :value="userInfo.sex === '1' ? '女' : '男'" />
<van-cell title="证件类型" :value="userInfo.cardType" />
<van-cell title="证件号码" :value="userInfo.cardNo" />
<van-cell title="营销服务部" :value="userInfo.saleArea" />
@@ -53,7 +53,7 @@ export default {
if (res.result == 0) {
this.userInfo = res
// document.title = this.userInfo.name + '(' + this.userInfo.jobNo + ')'
console.log('-----代理人证件类型:',this.userInfo.cardType)
console.log('-----代理人证件类型:', this.userInfo.cardType)
obj.idType.some(item => {
if (item.id == res.cardType) {
res.cardType = item.text