Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
group-buy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
group-buy-ui
Commits
349d21b4
Commit
349d21b4
authored
Oct 08, 2021
by
beisir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:默认分享羊小咩
parent
b28b5eff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
utils.service.js
src/service/utils.service.js
+15
-2
No files found.
src/service/utils.service.js
View file @
349d21b4
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment