Commit 349d21b4 authored by beisir's avatar beisir

feat:默认分享羊小咩

parent b28b5eff
...@@ -379,6 +379,20 @@ export function firstGroupShare(shareInfo, type) { ...@@ -379,6 +379,20 @@ export function firstGroupShare(shareInfo, type) {
if (!isWxMp) { if (!isWxMp) {
return; 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 // eslint-disable-next-line no-unused-vars
let linkPath = ''; let linkPath = '';
let detailData = { let detailData = {
...@@ -416,8 +430,7 @@ export function firstGroupShare(shareInfo, type) { ...@@ -416,8 +430,7 @@ export function firstGroupShare(shareInfo, type) {
link: shareInfo.linkPath, // 页面地址 link: shareInfo.linkPath, // 页面地址
imgUrl: shareInfo.skuImg // 图片地 imgUrl: shareInfo.skuImg // 图片地
}; };
console.log(shareDic); nativeBridge.run({
new MpBridge().run({
event: 'showShareView', event: 'showShareView',
data: { data: {
shareDic 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