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
cf8c5925
Commit
cf8c5925
authored
Aug 10, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
1c02ebf9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
7 deletions
+12
-7
index.html
project/index.html
+1
-1
createItem.do.json
project/mock/webNet/shareAssist/createItem.do.json
+1
-1
ShareScene.ts
project/src/scenes/ShareScene.ts
+2
-0
share.ts
project/src/share.ts
+8
-5
No files found.
project/index.html
View file @
cf8c5925
...
...
@@ -11,7 +11,7 @@
<meta
name=
"screen-orientation"
content=
"portrait"
/>
<meta
name=
"x5-fullscreen"
content=
"true"
/>
<meta
name=
"360-fullscreen"
content=
"true"
/>
<script
src=
"//res.wx.qq.com/open/js/jweixin-1.3.2.js"
crossorigin=
"anonymous"
></script>
<script
src=
"//res.wx.qq.com/open/js/jweixin-1.3.2.js"
></script>
<!-- 渲染引擎 -->
<script
src=
"//yun.duiba.com.cn/db_games/libs0924/fyge2018.minSpine.js"
crossorigin=
"anonymous"
></script>
<!-- svga解析库 -->
...
...
project/mock/webNet/shareAssist/createItem.do.json
View file @
cf8c5925
{
"code"
:
null
,
"data"
:
"
704OSQ
"
,
"data"
:
"
ZZN5QH
"
,
"message"
:
null
,
"success"
:
true
}
\ No newline at end of file
project/src/scenes/ShareScene.ts
View file @
cf8c5925
...
...
@@ -7,6 +7,7 @@ import Marquee from "../common/Marquee";
import
{
getAutoPrizeUrl
}
from
"../getShareUrl"
;
import
{
AssistPanel
}
from
"../panels/assist"
;
import
{
RulePanel
}
from
"../panels/rule"
;
import
updateShareFunc
from
"../share"
;
import
{
getPxTokenSave
,
sendWebNet
,
WebNetName
}
from
"../WebNet"
;
export
class
ShareScene
extends
Scene
{
...
...
@@ -43,6 +44,7 @@ export class ShareScene extends Scene {
async
start
(
data
)
{
super
.
start
();
updateShareFunc
(
'inShareScene'
,
''
);
console
.
log
(
'ShareScene query>>'
,
JSON
.
stringify
(
getQueryParams
()));
const
query
=
getQueryParams
();
...
...
project/src/share.ts
View file @
cf8c5925
...
...
@@ -5,14 +5,17 @@
import
{
start
,
WeixinMini
,
updateShare
}
from
'@spark/share'
import
{
getShareUrl
}
from
'./getShareUrl'
;
let
ready
=
0
;
start
([
WeixinMini
],
(
way
,
success
,
payload
)
=>
{
console
.
log
(
'分享'
+
success
?
'成功'
:
'失败'
)
console
.
log
(
'分享'
+
success
?
'成功'
:
'失败'
);
ready
=
1
;
});
const
updateShareFunc
=
(
type
,
code
)
=>
{
console
.
log
(
'updateShare'
,
'type='
,
type
,
'code='
,
code
)
const
updateShareFunc
=
(
type
,
code
)
=>
{
if
(
ready
==
0
)
console
.
log
(
'分享组件没有准备成功'
);
console
.
log
(
'updateShare'
,
'type='
,
type
,
'ready='
,
ready
,
'url='
,
getShareUrl
({
code
:
code
,
sxbankIsSharePage
:
1
}));
updateShare
({
title
:
'title'
,
//分享标题
content
:
'content'
,
//分享内容
...
...
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