commit | 070005a28c5acc53a30da3a77ff0ff542497c4ff | [log] [tgz] |
---|---|---|
author | guangchao.xu <guangchao.xu@supwisdom.com> | 周一 12月 07 09:56:40 2020 +0800 |
committer | guangchao.xu <guangchao.xu@supwisdom.com> | 周一 12月 07 09:56:40 2020 +0800 |
tree | 940554ee4a1b12c26bc2694586a7d80c42d9cc37 | |
parent | 5653eca0850571e2f03479bbb17ec056ce0770a9 [diff] [blame] |
更新大理市民卡app
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 +}