From 73b874c72ad55eb9eef21c36160ac0de58f0189e Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Thu, 05 Feb 2026 10:30:43 +0800
Subject: [PATCH] 优化名片
---
mobile/pages/plus/business/detail.vue | 19 ++++++++++++++-----
1 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/mobile/pages/plus/business/detail.vue b/mobile/pages/plus/business/detail.vue
index 09811de..076c033 100644
--- a/mobile/pages/plus/business/detail.vue
+++ b/mobile/pages/plus/business/detail.vue
@@ -25,10 +25,10 @@
<image src="@/static/icon/fenx.png" class="btn-icon"></image>
<text class="btn-text">分享名片</text>
</button>
- <!-- <view class="action-btn" @click="contactWithChat">
+ <view class="action-btn" @click="contactWithChat">
<image src="@/static/icon/communication.png" class="btn-icon"></image>
<text class="btn-text">在线聊天</text>
- </view> -->
+ </view>
</view>
<!-- 名片简介 -->
@@ -194,7 +194,7 @@
} else {
this.showError('暂未填写微信');
}
- },
+ },/*
// 通过聊天联系
contactWithChat() {
console.log(this.businessInfo);
@@ -203,7 +203,7 @@
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
@@ -238,6 +238,7 @@
},
// 跳转到平台
goToPlatform() {
+ uni.setStorageSync('shop_supplier_id', 1)
uni.navigateTo({
url: '/pages/shop/shop?shop_supplier_id=1'
});
@@ -249,6 +250,7 @@
user_id: _this.businessInfo.user_id
}, function(res) {
if (res.data.list) {
+ uni.setStorageSync('shop_supplier_id', res.data.list.shop_supplier_id)
uni.navigateTo({
url: '/pages/shop/shop?shop_supplier_id=' + res.data.list.shop_supplier_id
});
@@ -322,7 +324,7 @@
}
return {
title: '电子名片',
- path: `/pages/plus/business/detail?business_card_id=${this.business_card_id}`
+ path: `/pages/plus/business/detail?business_card_id=${this.business_card_id}&referee_id=${this.businessInfo.user_id}`
};
},
onShareTimeline() {
@@ -496,6 +498,13 @@
font-size: 28rpx;
color: #666;
line-height: 1.6;
+ white-space: normal;
+ word-break: break-word;
+ word-wrap: break-word;
+ overflow-wrap: break-word;
+ overflow: hidden;
+ max-width: 100%;
+ line-height: 1.4;
}
}
}
--
Gitblit v1.9.2