From d23c25ffba52e073fbf120c45b511fc8ab683b0f Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期一, 23 九月 2024 14:45:37 +0800
Subject: [PATCH] 1.合伙人-个人资料修改

---
 pages/home/supplier-home.vue |   31 ++++++++++++++++++++++++-------
 1 files changed, 24 insertions(+), 7 deletions(-)

diff --git a/pages/home/supplier-home.vue b/pages/home/supplier-home.vue
index 97c9d4b..e673783 100644
--- a/pages/home/supplier-home.vue
+++ b/pages/home/supplier-home.vue
@@ -13,11 +13,28 @@
 
 			</view>
 			<view class="flex user-info" v-if="currentInfo&&(currentInfo.id)">
-				<!-- 头像 -->
-				<image class="user-icon" v-if="!currentInfo.picture"
+				
+				<image class="user-icon" v-if="
+					(currentInfo.customerDTO&&currentInfo.customerDTO.cover)
+					||(currentInfo.supplierDTO&&currentInfo.supplierDTO.cover)
+					||(currentInfo.partnerDTO&&currentInfo.partnerDTO.cover)
+					|| currentInfo.picture
+					" :src="
+					(currentInfo.customerDTO&&currentInfo.customerDTO.cover)
+					||(currentInfo.supplierDTO&&currentInfo.supplierDTO.cover)
+					||(currentInfo.partnerDTO&&currentInfo.partnerDTO.cover)
+					|| currentInfo.picture
+					" mode="aspectFit"></image>
+					
+				<image class="user-icon" v-else
 					src='https://youzhen123.oss-cn-huhehaote.aliyuncs.com/WechatOwnerProperty/images/mrtx.png'
 					mode="aspectFit"></image>
-				<image class="user-icon" v-if="currentInfo.picture" :src="currentInfo.picture" mode="aspectFit"></image>
+					
+				<!-- 头像 -->
+			<!-- 	<image class="user-icon" v-if="!currentInfo.picture"
+					src='https://youzhen123.oss-cn-huhehaote.aliyuncs.com/WechatOwnerProperty/images/mrtx.png'
+					mode="aspectFit"></image>
+				<image class="user-icon" v-if="currentInfo.picture" :src="currentInfo.picture" mode="aspectFit"></image> -->
 
 				<view class="name">
 					<view class="t1">
@@ -135,14 +152,14 @@
 					</view>
 					<view class="order-desc tg">订单管理</view>
 				</view>
-			<!-- 	<view class="nav row margin-tb" v-if="selftype==='supplier'"
+				<view class="nav row margin-tb" v-if="selftype==='supplier'"
 					@click="goto('/sub_pages/supplier/order-manage/order-manage',true)">
 					<view class="img-c">
 						<image class="icon margin-bottom order-icon ddgl"
 							src="/static/images/partner/user/user-icon-ddgl.png" mode="scaleToFill" />
 					</view>
 					<view class="order-desc tg">订单统计</view>
-				</view> -->
+				</view>
 
 				<view class="nav row margin-tb"
 					@click="goto('/sub_pages/supplier/order-settlement/order-settlement',true)">
@@ -167,7 +184,7 @@
 					</view>
 					<view class="order-desc tg">加价配置</view>
 				</view>
-				<view class="nav row margin-tb" @click="goto('/sub_pages/supplier/order-sale/order-sale',true)">
+				<view class="nav row margin-tb" @click="goto('/pages/order/order-sale/order-sale',true)">
 					<view class="img-c">
 						<image class="icon margin-bottom order-icon shlp"
 							src="/static/images/supplier/user/user-icon-shlp.png" mode="scaleToFill" />
@@ -267,7 +284,7 @@
 				}
 			}).then(res => {
 				if (res.code == 0) {
-					this.noticeList = (res.data && res.data.records || [])
+					this.noticeList = (res.data && res.data || [])
 					console.log('this.noticeList', this.noticeList)
 					if (this.noticeList.length > 0) {
 						this.currentNotice = this.noticeList[0]

--
Gitblit v1.9.3