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
479dde76
Commit
479dde76
authored
Aug 16, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
72d6bd42
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
+17
-9
Main.ts
project/src/Main.ts
+2
-0
share.ts
project/src/share.ts
+15
-9
No files found.
project/src/Main.ts
View file @
479dde76
...
...
@@ -13,6 +13,7 @@ import { getUrlParams } from "../module/tools/WebTool";
import
getQueryParams
from
"./common/getQueryParams"
;
import
{
WebNetName
}
from
"./WebNetName"
;
import
{
getUnionid
}
from
"./getUnionid"
;
import
{
startShare
}
from
"./share"
;
/**
...
...
@@ -60,6 +61,7 @@ export class Main {
return
;
}
startShare
();
//初始化层级
layers
.
init
(
this
.
stage
);
console
.
log
(
"初始化层级完成"
)
...
...
project/src/share.ts
View file @
479dde76
import
{
start
,
WeixinMini
,
updateShare
}
from
'@spark/share'
start
([
WeixinMini
],
(
way
,
success
,
payload
)
=>
{
console
.
log
(
'分享'
+
success
?
'成功'
:
'失败'
);
updateShare
({
title
:
'百万体验金等你来拿'
,
//分享标题
content
:
'三湘银行体验金活动'
,
//分享内容
url
:
'http://www.baidu.com'
,
//分享链接
thumbnail
:
'https://yun.duiba.com.cn/db_games/sxbank.png'
,
//分享缩略图
export
const
startShare
=
()
=>
{
console
.
log
(
'start WeixinMini'
)
start
([
WeixinMini
],
(
way
,
success
,
payload
)
=>
{
console
.
log
(
'分享'
+
success
?
'成功'
:
'失败'
);
updateShare
({
title
:
'百万体验金等你来拿'
,
//分享标题
content
:
'三湘银行体验金活动'
,
//分享内容
url
:
'http://www.baidu.com'
,
//分享链接
thumbnail
:
'https://yun.duiba.com.cn/db_games/sxbank.png'
,
//分享缩略图
});
});
});
\ No newline at end of file
}
\ No newline at end of file
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