From 0dabf05bfe9df453ffd394e2f280f878c848942a Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期三, 04 十二月 2024 13:19:32 +0800
Subject: [PATCH] 1.客服电话 2.订单优惠券自动选择 3.合伙人送货详情等

---
 pages/user/supplier-user.vue |   43 +++++++++++++++++++++++++++++++++++--------
 1 files changed, 35 insertions(+), 8 deletions(-)

diff --git a/pages/user/supplier-user.vue b/pages/user/supplier-user.vue
index 9f57d57..3b3f4a5 100644
--- a/pages/user/supplier-user.vue
+++ b/pages/user/supplier-user.vue
@@ -36,9 +36,25 @@
 
 				<view class="name" v-if="currentInfo.id">
 					<view class="t1">
-						{{
+						<!-- {{
               (!!currentInfo.partnerDTO ? (currentInfo.partnerDTO.name) : "") ||  (!!currentInfo.supplierDTO ? (currentInfo.supplierDTO.name) : "") || (!!currentInfo.customerDTO ? (currentInfo.customerDTO.name) : "") || currentInfo.nickName || currentInfo.loginName || '-'
-            }}
+            }} -->
+						<span v-if="currentInfo.partnerDTO && currentInfo.partnerDTO.name">
+							{{ currentInfo.partnerDTO.name }}
+						</span>
+						<span v-else-if="currentInfo.supplierDTO && currentInfo.supplierDTO.name">
+							{{ currentInfo.supplierDTO.name }}
+						</span>
+						<span v-else-if="currentInfo.customerDTO && currentInfo.customerDTO.name">
+							{{ currentInfo.customerDTO.name }}
+						</span>
+						<span v-else-if="currentInfo.nickName">
+							{{ currentInfo.nickName }}
+						</span>
+						<span v-else-if="currentInfo.loginName">
+							{{ currentInfo.loginName }}
+						</span>
+						<span v-else>-</span>
 						<span v-if="currentInfo.supplierDTO&&currentInfo.supplierDTO.status!=='P'">
 							({{ currentInfo.supplierDTO ? currentInfo.supplierDTO.statusStr : '' }})</span>
 						<span v-if="currentInfo.partnerDTO&&currentInfo.partnerDTO.status!=='P'">
@@ -300,13 +316,13 @@
 		</view>
 		<!-- #endif -->
 		<view class="user-utils m-20">
-			<view class="user-util m-t-12 flex" v-if="selftype==='customer'||!selftype"
+			<!-- <view class="user-util m-t-12 flex" v-if="selftype==='customer'||!selftype"
 				@click="goto('/sub_pages/customer/customer-info/customer-info',true)">
 				<view class="title">个人信息</view>
 				<view class="right-icon">
 					<uni-icons type="right"></uni-icons>
 				</view>
-			</view>
+			</view> -->
 			<view class="user-util m-t-12 flex" v-if="selftype==='partner'||!selftype"
 				@click="goto('/sub_pages/partner/partner-info/partner-info-personal',true)">
 				<view class="title">个人资料</view>
@@ -363,8 +379,17 @@
 					<uni-icons type="right"></uni-icons>
 				</view>
 			</view>
+			<!-- <view class="user-util m-t-12 flex" v-if="selftype==='supplier'||selftype==='partner'"
+				@click="goto('/sub_pages/customer/setup/account-self',true)">
+				<view class="title">账户安全</view>
+				<view class="right-icon">
+					<uni-icons type="right"></uni-icons>
+				</view>
+			</view> -->
 
-			<view class="user-util m-t-12 flex" @click="goto('/pages/user/user-pwd/user-pwd',true)">
+			<view class="user-util m-t-12 flex"
+			 v-if="selftype==='supplier'||selftype==='partner'"
+			 @click="goto('/pages/user/user-pwd/user-pwd',true)">
 				<view class="title">修改密码</view>
 				<view class="right-icon">
 					<uni-icons type="right"></uni-icons>
@@ -377,7 +402,7 @@
 					<uni-icons type="right"></uni-icons>
 				</view>
 			</view> -->
-			<view class="user-util m-t-12 flex" v-if="currentInfo&&currentInfo.id"
+			<view class="user-util m-t-12 flex" v-if="currentInfo&&currentInfo.id &&(selftype==='supplier'||selftype==='partner') "
 				@click="goto('/pages/user/user-bind-wx/user-bind-wx',true)">
 				<view class="title">绑定当前微信</view>
 				<view class="right-icon">
@@ -392,7 +417,9 @@
 			</view> -->
 
 			<!-- v-if="selftype==='customer'" -->
-			<view class="user-util m-t-12 flex" @click="clearlogout">
+			<view class="user-util m-t-12 flex"
+			  v-if="selftype==='supplier'||selftype==='partner'"
+			 @click="clearlogout">
 				<view class="title">退出登录</view>
 				<view class="right-icon">
 					<uni-icons type="right"></uni-icons>
@@ -521,7 +548,7 @@
 				tcode: '',
 				inviterName: '',
 				// StatusBar:0,
-				tel: '15974805814',
+				tel: '19288780072',
 				tj: {},
 				tj_order: {},
 				cacheUserId: '',

--
Gitblit v1.9.3