【功能完善】积分商城分享

pull/126/head
puhui999 2024-11-29 10:29:31 +08:00
parent 7017561242
commit 530410fcf0
3 changed files with 12 additions and 6 deletions

View File

@ -241,7 +241,7 @@
padding: 20rpx;
color: #fff;
background: linear-gradient(90deg, var(--ui-BG-Main), var(--ui-BG-Main-gradient));
margin-top: 18px;
margin-top: 3px;
margin-bottom: 9px;
border-top-left-radius: 10px;
border-bottom-right-radius: 10px;
@ -249,7 +249,7 @@
&.admin {
background: #fff;
color: #333;
margin-top: 18px;
margin-top: 3px;
margin-bottom: 9px;
border-radius: 0 10px 10px 10px;
}

View File

@ -171,7 +171,6 @@
}
//
// TODO puhui999: fix
const shareInfo = computed(() => {
if (isEmpty(unref(activity))) return {};
return sheep.$platform.share.getShareInfo(
@ -179,7 +178,7 @@
title: activity.value.name,
image: sheep.$url.cdn(state.goodsInfo.picUrl),
params: {
page: '4',
page: '6',
query: activity.value.id,
},
},
@ -187,8 +186,8 @@
type: 'goods', //
title: activity.value.name, //
image: sheep.$url.cdn(state.goodsInfo.picUrl), //
price: state.goodsInfo.price, //
marketPrice: state.goodsInfo.marketPrice, //
price: (getShowPrice.value.price || 0) + ` + ${getShowPrice.value.point} 积分`, //
marketPrice: fen2yuan(state.goodsInfo.marketPrice), //
},
);
});

View File

@ -158,6 +158,13 @@ const decryptSpm = (spm) => {
id: shareParamsArray[2],
};
break;
case '6':
// 积分商品
shareParams.page = '/pages/goods/point';
shareParams.query = {
id: shareParamsArray[2],
};
break;
}
shareParams.platform = platformMap[shareParamsArray[3] - 1];
shareParams.from = fromMap[shareParamsArray[4] - 1];