From 8aa82df35da58d84a189df66c71d85f9eed8ad0e Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期五, 02 八月 2024 11:35:43 +0800
Subject: [PATCH] 1

---
 pages/user/supplier-user.vue |   50 +++++++++++++++++++++++++++++---------------------
 1 files changed, 29 insertions(+), 21 deletions(-)

diff --git a/pages/user/supplier-user.vue b/pages/user/supplier-user.vue
index e490fb8..5d66b3e 100644
--- a/pages/user/supplier-user.vue
+++ b/pages/user/supplier-user.vue
@@ -199,19 +199,19 @@
 					<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="title">修改密码</view>
 				<view class="right-icon">
 					<uni-icons type="right"></uni-icons>
 				</view>
-			</view>
-			<view class="user-util m-t-12 flex" v-if="currentInfo&&currentInfo.id"
-				@click="goto('/pages/user/user-bind-wx/user-bind-wx',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" v-if="currentInfo&&currentInfo.id"
+				@click="goto('/pages/user/user-bind-wx/user-bind-wx',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" v-if="selftype==='customer'" @click="clearlogout">
 				<view class="title">退出登录</view>
@@ -222,15 +222,18 @@
 
 			<view class="user-util m-t-12 " v-if="selftype==='supplier'||selftype==='customer' || !selftype">
 				<view class="title">我的客服</view>
-				<view class="flex" open-type="contact">
-					<image class="icon-clock m-r-6 m-t-2" src="../../static/common/icon-call.png"></image>
-					 <!-- @click="callTel" -->
-					<view class="name">
-						客服电话 : &nbsp;&nbsp; <span class="topic-gray">{{ tel }}</span>
-					</view>
-					<view class="right-icon" >
-						<uni-icons type="right"></uni-icons>
-					</view>
+				<view class="flex flex-wrap-normal">
+					<image class="icon-clock m-r-6 m-t-2" src="../../static/common/icon-call.png"></image>
+					<!-- @click="callTel" -->
+					<button open-type="contact" class="component-button-contact" @handleContact="handleContact">
+						<view class="name">
+							客服电话 : &nbsp;&nbsp; <span class="topic-gray">{{ tel }}</span>
+						</view>
+						<view class="right-icon">
+							<uni-icons type="right"></uni-icons>
+						</view>
+					</button>
+
 				</view>
 			</view>
 			<!-- 			<view class="user-util m-t-12 " @click="callTel" v-if="selftype==='partner'">
@@ -365,20 +368,25 @@
 									data
 								} = await that.$http.request('post', '/api/customer/bind/partner', {
 									data: {
-										partnerId: partnerId
+										userId: partnerId
 									}
 								})
 								that.$message.hideLoading()
 								if (code == 0) {
-									that.$message.showToast(`绑定合伙人${partnerName}成功`)
-									await this.$store.dispatch('getCurrentInfo')
+									that.$message.showToast(`绑定合伙人${partnerName}成功`)
+									await that.$store.dispatch('getCurrentInfo')
+									
+									// setTimeout(async () => {
+									// 	that.$message.showLoading()
+									// 	that.$message.hideLoading()
+									// }, 1000)
 
 								}
 							} else {
 								that.$message.showToast('二维码格式不正确扫码失败')
 							}
 						} catch (e) {
-							that.$message.showToast('二维码格式不正确扫码失败')
+							that.$message.showToast('二维码扫码错误')
 						}
 					},
 					fail() {

--
Gitblit v1.9.3