From 0200061192c29e2b75054dcf818420ce5d567104 Mon Sep 17 00:00:00 2001
From: wuhui_zzw <1760308791@qq.com>
Date: Fri, 31 May 2024 16:25:36 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E8=BF=90=E8=90=A5?=
=?UTF-8?q?=E4=B8=AD=E5=BF=83=20=20-=20=E4=B8=8B=E7=BA=A7=E7=AE=A1?=
=?UTF-8?q?=E7=90=86=E6=98=BE=E7=A4=BA=E4=BC=98=E5=8C=96=EF=BC=8C=E5=A2=9E?=
=?UTF-8?q?=E5=8A=A0=E5=85=AC=E5=8F=B8=E5=90=8D=E7=A7=B0=E5=92=8C=E6=89=8B?=
=?UTF-8?q?=E6=9C=BA=E5=8F=B7=EF=BC=8C=E8=B0=83=E6=95=B4=E5=9C=B0=E5=8C=BA?=
=?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=96=B9=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/agent/user/list.vue | 50 +++++++++++++++++++++++++++++++++++++--
1 file changed, 48 insertions(+), 2 deletions(-)
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;