diff --git a/pages/agent/user/list.vue b/pages/agent/user/list.vue index 21f5a09..bb448d5 100644 --- a/pages/agent/user/list.vue +++ b/pages/agent/user/list.vue @@ -14,9 +14,14 @@ {{ item.user.nickname || '' }} - {{ getAgentTypeText(item) }} + {{ item.corporate_name || '' }} - + + + {{ item.user.phone || '' }} + {{ getAddressText(item) }} + + @@ -151,6 +156,27 @@ export default { return title; }, + // 渲染地址 + getAddressText(info){ + let title = ''; + switch (Number(info.agent_type)) { + case 2: + case 3: + case 4: + if(info.province_name) title = `${info.province_name}`; + break; + case 5: + case 6: + if(info.province_name || info.area_name || info.area_name) title = `${info.province_name}${info.city_name}${info.area_name}`; + break; + } + + return title; + } + + + + } } @@ -228,6 +254,26 @@ export default { border-radius: 5rpx; } } + .top-bottom-info{ + margin-top: 15rpx; + display: inline-flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: space-between; + align-items: center; + width: 100%; + .contact_phone{ + width: 200rpx; + text-align: left; + } + .address{ + width: calc(100% - 220rpx); + text-align: right; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + } } .list-box:not(:last-child){ margin-bottom: 20rpx!important;