refactor(taro): 移除朋友圈分享相关代码

- 删除了多个组件中的 useShareTimeline钩子
- 移除了 BestSellers 组件中关于朋友圈分享的逻辑
- 删除了 common.ts 中的 showShareGuide 函数- 优化了分享相关代码,仅保留 app 消息分享功能
This commit is contained in:
2025-09-01 11:29:23 +08:00
parent c1742e9996
commit 7a7d8b4605
8 changed files with 17 additions and 81 deletions

View File

@@ -78,18 +78,6 @@ export function shareGoodsLink(goodsId: string | number) {
copyText(shareUrl);
}
/**
* 显示分享引导提示
*/
export function showShareGuide() {
Taro.showModal({
title: '分享提示',
content: '请点击右上角的"..."按钮,然后选择"转发"来分享给好友,或选择"分享到朋友圈"',
showCancel: false,
confirmText: '知道了'
});
}
/**
* 截取字符串,确保不超过指定的汉字长度
* @param text 原始文本