forked from gxwebsoft/mp-10550
refactor(share): 更新分享标题和内容
- 将"云上商店"改为"网宿小店"作为分享标题的一部分 -优化商品详情页的分享逻辑- 调整订单确认页的样式 - 移除购物车页面的冗余代码
This commit is contained in:
@@ -28,13 +28,13 @@ function Cart() {
|
||||
|
||||
useShareTimeline(() => {
|
||||
return {
|
||||
title: '购物车 - 云上商店'
|
||||
title: '购物车 - 网宿小店'
|
||||
};
|
||||
});
|
||||
|
||||
useShareAppMessage(() => {
|
||||
return {
|
||||
title: '购物车 - 云上商店',
|
||||
title: '购物车 - 网宿小店',
|
||||
success: function (res) {
|
||||
console.log('分享成功', res);
|
||||
},
|
||||
|
||||
@@ -49,7 +49,7 @@ const BestSellers = () => {
|
||||
// 分享到朋友圈
|
||||
useShareTimeline(() => {
|
||||
return {
|
||||
title: `${goods?.name || '精选商品'} - 云上商店`,
|
||||
title: `${goods?.name || '精选商品'} - 网宿小店`,
|
||||
path: `/shop/goodsDetail/index?id=${goods?.goodsId}`,
|
||||
imageUrl: goods?.image
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user