mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 16:13:26 +08:00
uniapp【优化】:首页优化分享
This commit is contained in:
@@ -16,8 +16,9 @@ interface RequestParam {
|
||||
const getDefaultShareData = () => {
|
||||
const shopConfigStore = useShopConfigStore();
|
||||
return {
|
||||
title: shopConfigStore.config?.shopName,
|
||||
imageUrl: shopConfigStore.config?.shopLogo,
|
||||
title: shopConfigStore.config?.shareTitle || shopConfigStore.config?.shopName,
|
||||
imageUrl: shopConfigStore.config?.shareImage || shopConfigStore.config?.shopLogo,
|
||||
desc: shopConfigStore.config?.shareDesc || shopConfigStore.config?.shopDesc,
|
||||
path: "/pages/home/home"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,6 +139,7 @@
|
||||
onShareAppMessage(() => {
|
||||
return {
|
||||
title: getDefaultShareData().title,
|
||||
desc: getDefaultShareData().desc,
|
||||
imageUrl: getDefaultShareData().imageUrl,
|
||||
path: state.shareUrl
|
||||
}
|
||||
@@ -146,6 +147,7 @@
|
||||
onShareTimeline(() => {
|
||||
return {
|
||||
title: getDefaultShareData().title,
|
||||
desc: getDefaultShareData().desc,
|
||||
imageUrl: getDefaultShareData().imageUrl,
|
||||
path: state.shareUrl
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user