Showing
1 changed file
with
8 additions
and
1 deletions
| 1 | /* | 1 | /* |
| 2 | * @Date: 2022-06-13 17:42:32 | 2 | * @Date: 2022-06-13 17:42:32 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2022-06-14 18:47:36 | 4 | + * @LastEditTime: 2022-06-18 21:14:42 |
| 5 | * @FilePath: /tswj/src/composables/useShare.js | 5 | * @FilePath: /tswj/src/composables/useShare.js |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | */ | 7 | */ |
| 8 | import wx from 'weixin-js-sdk'; | 8 | import wx from 'weixin-js-sdk'; |
| 9 | // import { Toast } from 'vant'; | 9 | // import { Toast } from 'vant'; |
| 10 | 10 | ||
| 11 | +/** | ||
| 12 | + * @description: 微信分享功能 | ||
| 13 | + * @param {*} title 标题 | ||
| 14 | + * @param {*} desc 描述 | ||
| 15 | + * @param {*} imgUrl 图标 | ||
| 16 | + * @return {*} | ||
| 17 | + */ | ||
| 11 | export const sharePage = ({title = '童声无界', desc = '共读一本书,传递一份爱。', imgUrl = 'http://voice.onwall.cn/f/voice/images/weixin_logo.jpg'}) => { | 18 | export const sharePage = ({title = '童声无界', desc = '共读一本书,传递一份爱。', imgUrl = 'http://voice.onwall.cn/f/voice/images/weixin_logo.jpg'}) => { |
| 12 | const shareData = { | 19 | const shareData = { |
| 13 | title, // 分享标题 | 20 | title, // 分享标题 | ... | ... |
-
Please register or login to post a comment