refactor(share): 更新分享标题和内容

- 将"云上商店"改为"网宿小店"作为分享标题的一部分
-优化商品详情页的分享逻辑- 调整订单确认页的样式
- 移除购物车页面的冗余代码
This commit is contained in:
2025-08-11 16:11:17 +08:00
parent 044c6f8580
commit 20984811d7
5 changed files with 21 additions and 21 deletions

View File

@@ -28,13 +28,13 @@ function Cart() {
useShareTimeline(() => {
return {
title: '购物车 - 云上商店'
title: '购物车 - 网宿小店'
};
});
useShareAppMessage(() => {
return {
title: '购物车 - 云上商店',
title: '购物车 - 网宿小店',
success: function (res) {
console.log('分享成功', res);
},

View File

@@ -49,7 +49,7 @@ const BestSellers = () => {
// 分享到朋友圈
useShareTimeline(() => {
return {
title: `${goods?.name || '精选商品'} - 云上商`,
title: `${goods?.name || '精选商品'} - 网宿小`,
path: `/shop/goodsDetail/index?id=${goods?.goodsId}`,
imageUrl: goods?.image
};

View File

@@ -17,14 +17,14 @@ function Home() {
useShareTimeline(() => {
return {
title: '云上商店 - 网宿软件',
title: '网宿小店 - 网宿软件',
path: `/pages/index/index`
};
});
useShareAppMessage(() => {
return {
title: '云上商店 - 网宿软件',
title: '网宿小店 - 网宿软件',
path: `/pages/index/index`,
success: function (res) {
console.log('分享成功', res);