mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-03-22 18:07:20 +08:00
Merge branch 'dev' into 'master'
uniapp【优化】:首页优化分享 See merge request jianweie/coreshoppro!109
This commit is contained in:
@@ -16,8 +16,9 @@ interface RequestParam {
|
|||||||
const getDefaultShareData = () => {
|
const getDefaultShareData = () => {
|
||||||
const shopConfigStore = useShopConfigStore();
|
const shopConfigStore = useShopConfigStore();
|
||||||
return {
|
return {
|
||||||
title: shopConfigStore.config?.shopName,
|
title: shopConfigStore.config?.shareTitle || shopConfigStore.config?.shopName,
|
||||||
imageUrl: shopConfigStore.config?.shopLogo,
|
imageUrl: shopConfigStore.config?.shareImage || shopConfigStore.config?.shopLogo,
|
||||||
|
desc: shopConfigStore.config?.shareDesc || shopConfigStore.config?.shopDesc,
|
||||||
path: "/pages/home/home"
|
path: "/pages/home/home"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -139,6 +139,7 @@
|
|||||||
onShareAppMessage(() => {
|
onShareAppMessage(() => {
|
||||||
return {
|
return {
|
||||||
title: getDefaultShareData().title,
|
title: getDefaultShareData().title,
|
||||||
|
desc: getDefaultShareData().desc,
|
||||||
imageUrl: getDefaultShareData().imageUrl,
|
imageUrl: getDefaultShareData().imageUrl,
|
||||||
path: state.shareUrl
|
path: state.shareUrl
|
||||||
}
|
}
|
||||||
@@ -146,6 +147,7 @@
|
|||||||
onShareTimeline(() => {
|
onShareTimeline(() => {
|
||||||
return {
|
return {
|
||||||
title: getDefaultShareData().title,
|
title: getDefaultShareData().title,
|
||||||
|
desc: getDefaultShareData().desc,
|
||||||
imageUrl: getDefaultShareData().imageUrl,
|
imageUrl: getDefaultShareData().imageUrl,
|
||||||
path: state.shareUrl
|
path: state.shareUrl
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user