|
|
|
@ -88,7 +88,7 @@ const initWxSDK = (shareConfig = {}) => {
|
|
|
|
title: shareConfig.title || '打卡苏州市党史教育基地',
|
|
|
|
title: shareConfig.title || '打卡苏州市党史教育基地',
|
|
|
|
desc: shareConfig.desc || '打卡苏州市党史教育基地',
|
|
|
|
desc: shareConfig.desc || '打卡苏州市党史教育基地',
|
|
|
|
link: shareConfig.link || window.location.href,
|
|
|
|
link: shareConfig.link || window.location.href,
|
|
|
|
imgUrl: shareConfig.imgUrl || `${window.location.origin}/static/share.jpg`,
|
|
|
|
imgUrl: shareConfig.imgUrl || `${window.location.origin}/h5walksz/static/share.jpg`,
|
|
|
|
success: () => {
|
|
|
|
success: () => {
|
|
|
|
console.log('分享到朋友成功')
|
|
|
|
console.log('分享到朋友成功')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -98,7 +98,7 @@ const initWxSDK = (shareConfig = {}) => {
|
|
|
|
wx.updateTimelineShareData({
|
|
|
|
wx.updateTimelineShareData({
|
|
|
|
title: shareConfig.title || '打卡苏州市党史教育基地',
|
|
|
|
title: shareConfig.title || '打卡苏州市党史教育基地',
|
|
|
|
link: shareConfig.link || window.location.href,
|
|
|
|
link: shareConfig.link || window.location.href,
|
|
|
|
imgUrl: shareConfig.imgUrl || `${window.location.origin}/static/share.jpg`,
|
|
|
|
imgUrl: shareConfig.imgUrl || `${window.location.origin}/h5walksz/static/share.jpg`,
|
|
|
|
success: () => {
|
|
|
|
success: () => {
|
|
|
|
console.log('分享到朋友圈成功')
|
|
|
|
console.log('分享到朋友圈成功')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|