From 1c5d6a4b20d3b2577431db0ef7b4a845174e7c66 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期六, 10 八月 2024 18:41:24 +0800
Subject: [PATCH] fix bug

---
 sub_pages/customer/trade/detail.vue |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/sub_pages/customer/trade/detail.vue b/sub_pages/customer/trade/detail.vue
index 214e032..75ded1d 100644
--- a/sub_pages/customer/trade/detail.vue
+++ b/sub_pages/customer/trade/detail.vue
@@ -39,8 +39,11 @@
 					<span class="num">{{ dto.price || '-' }}</span>
 					元/扎
 				</view>
-				<view class="m-l-a m-r-15">
-					<image src="../../../static/common/icon-kf.png" class="icon-kf m-l-15 img100"></image>
+				<view class="m-l-a m-r-15">
+					<button open-type="contact" class="component-button-contact" >
+						<image src="../../../static/common/icon-kf.png" class="icon-kf m-l-15 img100"></image>
+						
+					</button>	
 
 				</view>
 				<view class="m-r-0 gwc" @click="submitShopping(dto)" v-if="!dto.shopnum">
@@ -97,7 +100,7 @@
 			<swiper class="swiper-box" :interval="10000" :circular="true" :current="0" :autoplay="true">
 				<swiper-item v-for="(url, index) in dto.bannerList" :key="index">
 					<view class="swiper-item" :class="'swiper-item' + index">
-						<image class="home-banner-image" mode="scaleToFill" @click="previewImg(url)" :src="url">
+						<image class="home-banner-image m-auto m-t-12 m-b-12" style="display: block;" mode="scaleToFill" @click="previewImg(url)" :src="url">
 						</image>
 					</view>
 				</swiper-item>
@@ -183,13 +186,18 @@
 			this.id = options.id || ''
 
 			// #ifdef PUB_CUSTOMER
+			
 			if (options.partnerUserId) {
 				let tmp = this
 				tmp.sharePartnerUserId = options.partnerUserId
 				//合伙人绑定的,判断当前用户,是否有登录,登录没绑定,没登录先缓存合伙人id,等注册和登录时候再弄
 				setTimeout(() => {
+					//并且当前用户没有绑定
+					if(tmp.currentInfo.id&&tmp.currentInfo.customerDTO.partnerId){
+						return
+					}
 					if (tmp.currentInfo.id) {
-						tmp.bindPartnerUser(tmp.currentInfo.id, '')
+						tmp.bindPartnerUser(options.partnerUserId, '')
 					} else {
 						tmp.sharePartnerUserId = options.partnerUserId
 						//没有登录到话设置到缓存

--
Gitblit v1.9.3