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
1fb19829
Commit
1fb19829
authored
Aug 11, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
07f3fbf7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
4 deletions
+14
-4
alreadyAcquired.do.json
project/mock/webNet/wallet/alreadyAcquired.do.json
+1
-1
WebNet.ts
project/src/WebNet.ts
+1
-1
NewbieScene.ts
project/src/scenes/NewbieScene.ts
+5
-1
ShareScene.ts
project/src/scenes/ShareScene.ts
+7
-1
No files found.
project/mock/webNet/wallet/alreadyAcquired.do.json
View file @
1fb19829
{
"code"
:
null
,
"data"
:
1
,
"data"
:
0
,
"message"
:
null
,
"success"
:
true
}
\ No newline at end of file
project/src/WebNet.ts
View file @
1fb19829
...
...
@@ -172,7 +172,7 @@ export function getProjectId(): string {
let
splitArr
=
windowUrl
.
split
(
projectxString
);
if
(
splitArr
.
length
!=
2
)
{
return
projectId
=
"
p
rojectId"
return
projectId
=
"
unknownP
rojectId"
}
let
start
=
windowUrl
.
indexOf
(
projectxString
)
+
projectxString
.
length
;
...
...
project/src/scenes/NewbieScene.ts
View file @
1fb19829
...
...
@@ -11,7 +11,7 @@ import { hideShareMask } from "../common/ShareMask";
import
{
PrizePanel
}
from
"../panels/prize"
;
import
{
RulePanel
}
from
"../panels/rule"
;
import
updateShareFunc
from
"../share"
;
import
{
getPxTokenSave
,
sendWebNet
,
WebNetName
}
from
"../WebNet"
;
import
{
getPxTokenSave
,
send
Log
,
send
WebNet
,
WebNetName
}
from
"../WebNet"
;
import
{
IndexScene
}
from
"./IndexScene"
;
let
prize
;
export
class
NewbieScene
extends
Scene
{
...
...
@@ -37,6 +37,8 @@ export class NewbieScene extends Scene {
if
(
query
.
autoprize
==
1
)
{
this
.
openPrize
();
}
sendLog
(
"exposure"
,
1
);
}
openPrize
()
{
...
...
@@ -71,6 +73,8 @@ export class NewbieScene extends Scene {
}
onClick_openBtn
()
{
sendLog
(
"click"
,
1
);
FYGE
.
Tween
.
removeTweens
(
this
.
newbie_open
);
this
.
newbie_open
.
stop
();
this
.
openPrize
()
...
...
project/src/scenes/ShareScene.ts
View file @
1fb19829
...
...
@@ -26,7 +26,13 @@ export class ShareScene extends Scene {
showToast
(
'助力机会已用完,明天再来吧~'
);
break
;
case
'200305'
:
showToast
(
'不能再给他助力了,明天再来吧~'
);
showToast
(
'今日已经为好友助力过,请明日再来。'
);
break
;
case
'20008'
:
showToast
(
'好友体验金已达到上限,不能助力。'
);
break
;
case
'200306'
:
showToast
(
'不能给自己助力'
);
break
;
default
:
showToast
(
res
.
message
||
'网络异常~'
);
...
...
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