From f26f29d84e0a68831a6af14dab3eec5500496d2e Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期三, 28 五月 2025 16:48:52 +0800 Subject: [PATCH] 初始化项目 --- uview-ui/libs/mixin/mpShare.js | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/uview-ui/libs/mixin/mpShare.js b/uview-ui/libs/mixin/mpShare.js new file mode 100644 index 0000000..057d369 --- /dev/null +++ b/uview-ui/libs/mixin/mpShare.js @@ -0,0 +1,18 @@ +module.exports = { + onLoad() { + // 璁剧疆榛樿鐨勮浆鍙戝弬鏁� + this.$u.mpShare = { + title: '', // 榛樿涓哄皬绋嬪簭鍚嶇О + path: '', // 榛樿涓哄綋鍓嶉〉闈㈣矾寰� + imageUrl: '' // 榛樿涓哄綋鍓嶉〉闈㈢殑鎴浘 + } + }, + onShareAppMessage() { + return this.$u.mpShare + }, + // #ifdef MP-WEIXIN + onShareTimeline() { + return this.$u.mpShare + } + // #endif +} -- Gitblit v1.9.3