Commit 349d21b4 authored by beisir's avatar beisir

feat:默认分享羊小咩

parent b28b5eff
......@@ -379,6 +379,20 @@ export function firstGroupShare(shareInfo, type) {
if (!isWxMp) {
return;
}
const nativeBridge = new MpBridge();
if (!shareInfo) {
nativeBridge.run({
event: 'showShareView',
data: {
shareDic: {
title: `[0元购] 羊小咩Plus`,
link: '/pages/index/index', // 页面地址
imgUrl: 'https://img.lkbang.net/activity/share/default/shareDefault.png' // 图片地
}
}
});
return;
}
// eslint-disable-next-line no-unused-vars
let linkPath = '';
let detailData = {
......@@ -416,8 +430,7 @@ export function firstGroupShare(shareInfo, type) {
link: shareInfo.linkPath, // 页面地址
imgUrl: shareInfo.skuImg // 图片地
};
console.log(shareDic);
new MpBridge().run({
nativeBridge.run({
event: 'showShareView',
data: {
shareDic
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment