Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wfc13
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wildfirecode13
wfc13
Commits
d38092a3
Commit
d38092a3
authored
Aug 30, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
8725beb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
share.ts
project/src/share.ts
+11
-8
No files found.
project/src/share.ts
View file @
d38092a3
// import { start, WeixinMini, updateShare } from '@spark/share'
export
const
startShare
=
()
=>
{
export
const
startShare
=
()
=>
{
console
.
log
(
'wx.miniProgram.postMessage'
)
//@ts-ignore
//@ts-ignore
wx
.
miniProgram
.
postMessage
(
{
dataIntent
:
1
,
//必传 1参数用于分享
limitation
:
0
,
//进入条件 0随便进;1开卡会员;2认证会员
sharable
:
1
,
//被分享者打开后能否进行分享 0不能;1可以
title
:
"我正在参加d
\
'zzit拆盲盒"
,
imageUrl
:
"https://yun.duiba.com.cn/db_games/activity/disulogo2.jpg"
,
//分享弹窗显示的图片
h5url
:
"https://85337.activity-1.m.duiba.com.cn/projectx/pf80f49cf/index.html?appID=85337&iscustom=1&issharepage=1"
,
//分享的链接(不需要encode)
data
:
{
dataIntent
:
1
,
//必传 1参数用于分享
limitation
:
0
,
//进入条件 0随便进;1开卡会员;2认证会员
sharable
:
1
,
//被分享者打开后能否进行分享 0不能;1可以
title
:
"我正在参加d
\
'zzit拆盲盒"
,
imageUrl
:
"https://yun.duiba.com.cn/db_games/activity/disulogo2.jpg"
,
//分享弹窗显示的图片
h5url
:
"https://85337.activity-1.m.duiba.com.cn/projectx/pf80f49cf/index.html?appID=85337&iscustom=1&issharepage=1"
,
//分享的链接(不需要encode)
}
}
)
}
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