From 6abfa21b225bd5539b5fee2c7dfcaf7e6dbca1fc Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Sat, 15 Nov 2025 18:15:12 +0800
Subject: [PATCH] 服务器地址忘了改回来了

---
 mobile/pages/plus/business/detail.vue |   25 ++++++++++++++++++++++++-
 1 files changed, 24 insertions(+), 1 deletions(-)

diff --git a/mobile/pages/plus/business/detail.vue b/mobile/pages/plus/business/detail.vue
index 0ba36fd..2cf1d7e 100644
--- a/mobile/pages/plus/business/detail.vue
+++ b/mobile/pages/plus/business/detail.vue
@@ -25,6 +25,10 @@
 						<image src="@/static/icon/fenx.png" class="btn-icon"></image>
 						<text class="btn-text">分享名片</text>
 					</button>
+					<view class="action-btn" @click="contactWithChat">
+						<image src="@/static/icon/communication.png" class="btn-icon"></image>
+						<text class="btn-text">在线聊天</text>
+					</view>
 				</view>
 
 				<!-- 名片简介 -->
@@ -188,6 +192,15 @@
 					this.showError('暂未填写微信');
 				}
 			},
+			// 通过聊天联系
+			contactWithChat() {
+				console.log(this.businessInfo);
+				if (!this.businessInfo) return;
+				
+				uni.navigateTo({
+					url: `/pages/plus/business/chat/chat?user_id=${this.businessInfo.user_id}&business_card_id=${this.business_card_id}&nickName=${this.businessInfo.name}`
+				});
+			},
 			// 打开地图
 			openLocation(businessInfo) {
 				let address = businessInfo.region.province + ' ' + businessInfo.region.city + ' ' + businessInfo.region
@@ -277,13 +290,22 @@
 					if (res.code === 1) {
 						// 跳转到收银台支付
 						uni.redirectTo({
-							url: '/pages/order/cashier?order_id=' + res.data.order_id + '&order_type=100'
+							url: '/pages/plus/business/cashier?order_id=' + res.data.order_id + '&order_type=100'
 						});
 					} else {
 						this.showError(res.msg || '支付失败');
 					}
 				}, (err) => {
 					this.showError('支付失败,请重试');
+				});
+			},
+			// 在线聊天
+			contactWithChat() {
+				console.log(this.businessInfo);
+				if (!this.businessInfo) return;
+				
+				uni.navigateTo({
+					url: `/pages/plus/business/chat/chat?user_id=${this.businessInfo.user_id}&business_card_id=${this.business_card_id}&nickName=${this.businessInfo.name}`
 				});
 			}
 		},
@@ -428,6 +450,7 @@
 			flex: 1;
 			line-height: normal;
 			background: #ffffff00;
+			padding: 0;
 
 			.btn-icon {
 				font-size: 56rpx;

--
Gitblit v1.9.2