hookehuyr

fix

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 17:55:36 4 + * @LastEditTime: 2022-06-14 18:29:43
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 9
10 export const sharePage = ({title = '童声无界', desc = '共读一本书,传递一份爱。', imgUrl = 'http://voice.onwall.cn/f/voice/images/weixin_logo.jpg'}) => { 10 export const sharePage = ({title = '童声无界', desc = '共读一本书,传递一份爱。', imgUrl = 'http://voice.onwall.cn/f/voice/images/weixin_logo.jpg'}) => {
11 - console.warn(imgUrl);
12 const shareData = { 11 const shareData = {
13 title, // 分享标题 12 title, // 分享标题
14 desc, // 分享描述 13 desc, // 分享描述
......
...@@ -112,7 +112,7 @@ watch( ...@@ -112,7 +112,7 @@ watch(
112 112
113 setTimeout(() => { 113 setTimeout(() => {
114 // TAG:微信分享 114 // TAG:微信分享
115 - sharePage(); 115 + sharePage({});
116 // 测试自定义分享内容 116 // 测试自定义分享内容
117 // const title = kgInfo.value.multi_name ? `${kgInfo.value.multi_name[0]} ${kgInfo.value.multi_name[1]}` : kgInfo.value.name 117 // const title = kgInfo.value.multi_name ? `${kgInfo.value.multi_name[0]} ${kgInfo.value.multi_name[1]}` : kgInfo.value.name
118 // sharePage({ title, imgUrl: kgInfo.value.logo }); 118 // sharePage({ title, imgUrl: kgInfo.value.logo });
......