diff --git a/pages/userManage/index.scss b/pages/userManage/index.scss index 8087632..834ec5b 100644 --- a/pages/userManage/index.scss +++ b/pages/userManage/index.scss @@ -40,4 +40,15 @@ .pd4{ padding: 1% 4% 2% 4%; box-sizing: border-box; +} + +.btn-share { + border: none; + padding: 0; + display: inline-block; + margin: 0; + + color: #000000; + font-size: 28rpx; + line-height: 40rpx; } \ No newline at end of file diff --git a/pages/userManage/index.vue b/pages/userManage/index.vue index 8155050..0646a1e 100644 --- a/pages/userManage/index.vue +++ b/pages/userManage/index.vue @@ -86,12 +86,14 @@ height="68rpx"> 联系客服 - - + + - 分享好友 - + 分享好友 + + @@ -119,7 +121,8 @@ useStore } from "vuex" import { - onShow + onShow, + onShareAppMessage, } from "@dcloudio/uni-app" import { petList @@ -136,6 +139,15 @@ onMounted(() => { content.value = configList.value?.['home-agreement']?.paramValueArea || "" + + // 分享好友 + onShareAppMessage(() => { + return { + title: configList.value.applet_info.paramValueText, // 分享标题 + imageUrl: configList.value.applet_info.paramValueImage, // 分享图片地址,非必须 + path: '/pages/workbenchManage/index', // 分享路径 + }; + }) }) const store = useStore();