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
76ad7180
Commit
76ad7180
authored
Aug 10, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
484c1133
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
36 additions
and
8 deletions
+36
-8
index.html
project/index.html
+2
-2
assist.do.json
project/mock/webNet/shareAssist/assist.do.json
+1
-1
alreadyAcquired.do.json
project/mock/webNet/wallet/alreadyAcquired.do.json
+1
-1
ResJson.ts
project/src/ResJson.ts
+1
-1
getShareUrl.ts
project/src/getShareUrl.ts
+9
-3
assist.ts
project/src/panels/assist.ts
+16
-0
ShareScene.ts
project/src/scenes/ShareScene.ts
+6
-0
No files found.
project/index.html
View file @
76ad7180
...
...
@@ -67,8 +67,8 @@
</script>
<!-- 构建的js -->
<
!-- <script src="output.js" crossorigin="anonymous"></script> --
>
<
script
src=
"https://yun.duiba.com.cn/db_games/activity/template/1628580191/output.js"
crossorigin=
"anonymous"
></script
>
<
script
src=
"output.js"
crossorigin=
"anonymous"
></script
>
<
!-- <script src="https://yun.duiba.com.cn/db_games/activity/template/1628580191/output.js" crossorigin="anonymous"></script> --
>
...
...
project/mock/webNet/shareAssist/assist.do.json
View file @
76ad7180
...
...
@@ -2,5 +2,5 @@
"code"
:
null
,
"data"
:
"1234567890123"
,
"message"
:
123
,
"success"
:
0
"success"
:
1
}
\ No newline at end of file
project/mock/webNet/wallet/alreadyAcquired.do.json
View file @
76ad7180
{
"code"
:
null
,
"data"
:
1
,
"data"
:
0
,
"message"
:
null
,
"success"
:
true
}
\ No newline at end of file
project/src/ResJson.ts
View file @
76ad7180
...
...
@@ -912,5 +912,5 @@ export const ResJson = {
"name"
:
"svga"
}
],
"path"
:
"https://yun.duiba.com.cn/db_games/activity/template/16285
78111
/resource/"
"path"
:
"https://yun.duiba.com.cn/db_games/activity/template/16285
80956
/resource/"
}
\ No newline at end of file
project/src/getShareUrl.ts
View file @
76ad7180
export
default
(
queryParams
)
=>
{
const
base
=
'http://0.0.0.0:8080/?'
;
export
const
getShareUrl
=
(
queryParams
)
=>
{
let
str
=
''
;
for
(
const
key
in
queryParams
)
{
str
+=
`
${
key
}
=
${
queryParams
[
key
]}
&`
str
+=
`
${
key
}
=
${
queryParams
[
key
]}
&`
}
const
url
=
`
http://0.0.0.0:8080/?
${
str
}
`
;
const
url
=
`
${
base
}
${
str
}
`
;
return
url
;
}
export
const
getAutoPrizeUrl
=
()
=>
{
return
getShareUrl
({
autoPrize
:
1
})
}
\ No newline at end of file
project/src/panels/assist.ts
View file @
76ad7180
...
...
@@ -2,8 +2,12 @@ import { RES } from "../../module/RES";
import
{
Panel
}
from
"../../module/views/Panel"
;
import
centerTextField
from
"../common/centerTextField"
;
import
getObject
from
"../common/getObject"
;
import
{
getAutoPrizeUrl
}
from
"../getShareUrl"
;
export
class
AssistPanel
extends
Panel
{
onClick_share_go
(){
location
.
href
=
getAutoPrizeUrl
()
}
initUi
()
{
super
.
initUi
();
var
skin
=
RES
.
getSkinDataByName
(
this
.
skinName
);
...
...
@@ -30,4 +34,16 @@ export class AssistPanel extends Panel {
prize_tips1
.
x
=
prize_tips2
.
x
+
prize_tips2
.
textWidth
;
centerTextField
(
getObject
(
this
,
'assist_tips2'
),
595
)
}
initEvents
()
{
super
.
initEvents
();
getObject
(
this
,
'assist_btn'
).
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_share_go
,
this
);
}
removeEvents
()
{
super
.
removeEvents
();
getObject
(
this
,
'assist_btn'
).
removeEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_share_go
,
this
);
}
}
\ No newline at end of file
project/src/scenes/ShareScene.ts
View file @
76ad7180
...
...
@@ -4,6 +4,7 @@ import centerTextField from "../common/centerTextField";
import
getObject
from
"../common/getObject"
;
import
getQueryParams
from
"../common/getQueryParams"
;
import
Marquee
from
"../common/Marquee"
;
import
{
getAutoPrizeUrl
}
from
"../getShareUrl"
;
import
{
AssistPanel
}
from
"../panels/assist"
;
import
{
RulePanel
}
from
"../panels/rule"
;
import
{
getPxTokenSave
,
sendWebNet
,
WebNetName
}
from
"../WebNet"
;
...
...
@@ -24,6 +25,9 @@ export class ShareScene extends Scene {
onClick_share_rule
()
{
showPanel
(
RulePanel
);
}
onClick_share_go
()
{
location
.
href
=
getAutoPrizeUrl
();
}
async
start
(
data
)
{
...
...
@@ -69,11 +73,13 @@ export class ShareScene extends Scene {
getObject
(
this
,
'share_rule'
).
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_share_rule
,
this
);
getObject
(
this
,
'share_assist'
).
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_share_assist
,
this
);
getObject
(
this
,
'share_go'
).
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_share_go
,
this
);
}
removeEvents
()
{
super
.
removeEvents
();
getObject
(
this
,
'share_rule'
).
removeEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_share_rule
,
this
);
getObject
(
this
,
'share_assist'
).
removeEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_share_assist
,
this
);
getObject
(
this
,
'share_go'
).
removeEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_share_go
,
this
);
}
get
groupNames
()
{
return
[
"share"
]
}
...
...
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