提交 8c2fddec 编写于 作者: tao.wu's avatar tao.wu

微信二次分享调整

上级 e27b0f97
...@@ -122,10 +122,11 @@ export default { ...@@ -122,10 +122,11 @@ export default {
// 滚动交互 // 滚动交互
this.scrollHandle(); this.scrollHandle();
// 微信分享 // 微信分享
const shareUrl = encodeURIComponent(window.location.href);
this.$picaWxShare({ this.$picaWxShare({
// baseUrl: BASE_URL[process.env.NUXT_ENV_APP], // baseUrl: BASE_URL[process.env.NUXT_ENV_APP],
baseUrl: 'https://test1-sc.yunqueyi.com', baseUrl: 'https://test1-sc.yunqueyi.com',
authUrl: window.location.href, authUrl: shareUrl,
isDebug: false, isDebug: false,
type: 15, type: 15,
jsApiList: [ jsApiList: [
...@@ -134,7 +135,6 @@ export default { ...@@ -134,7 +135,6 @@ export default {
'onMenuShareAppMessage' 'onMenuShareAppMessage'
] ]
},(wx)=>{ },(wx)=>{
const shareUrl = encodeURIComponent(window.location.href);
// 分享给朋友 // 分享给朋友
wx.onMenuShareAppMessage({ wx.onMenuShareAppMessage({
title: this.shareObj.title1, title: this.shareObj.title1,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册