Commit bca77fc1 by 李伟康

还原

1 parent 8b527a1d
...@@ -40,8 +40,7 @@ export default { ...@@ -40,8 +40,7 @@ export default {
appId: shopmall_appid, appId: shopmall_appid,
envVersion envVersion
} }
let url = window.location.origin let url = window.location.origin.replace('scrm', 'wechatlink')
// .replace('scrm', 'wechatlink')
wxConfig.shareToExternalMoments({ wxConfig.shareToExternalMoments({
attachments: [ attachments: [
{ {
...@@ -49,7 +48,7 @@ export default { ...@@ -49,7 +48,7 @@ export default {
link: { link: {
title: materialTitle || `「${userName}」邀请您查看「${materialName}」`, // H5消息标题 title: materialTitle || `「${userName}」邀请您查看「${materialName}」`, // H5消息标题
imgUrl: titleUrl || frameUrl, // H5消息封面图片URL imgUrl: titleUrl || frameUrl, // H5消息封面图片URL
url: `${url}/wechat-link?linkData=${encodeURIComponent(JSON.stringify(data))}` // H5消息页面url 必填 url: `${url}?linkData=${encodeURIComponent(JSON.stringify(data))}` // H5消息页面url 必填
}, },
} }
] ]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!