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
a829a3bc
Commit
a829a3bc
authored
Aug 09, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
360b7bd5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
assist.do.json
project/mock/webNet/shareAssist/assist.do.json
+1
-1
ResJson.ts
project/src/ResJson.ts
+1
-1
assist.ts
project/src/panels/assist.ts
+5
-3
ShareScene.ts
project/src/scenes/ShareScene.ts
+2
-2
No files found.
project/mock/webNet/shareAssist/assist.do.json
View file @
a829a3bc
{
"code"
:
null
,
"data"
:
"
success
"
,
"data"
:
"
123
"
,
"message"
:
null
,
"success"
:
true
}
\ No newline at end of file
project/src/ResJson.ts
View file @
a829a3bc
...
...
@@ -941,5 +941,5 @@ export const ResJson = {
}
}
],
"path"
:
"https://yun.duiba.com.cn/db_games/activity/template/162847
6556
/resource/"
"path"
:
"https://yun.duiba.com.cn/db_games/activity/template/162847
7708
/resource/"
}
\ No newline at end of file
project/src/panels/assist.ts
View file @
a829a3bc
...
...
@@ -6,7 +6,7 @@ export class AssistPanel extends Panel {
initUi
()
{
super
.
initUi
();
var
skin
=
RES
.
getSkinDataByName
(
this
.
skinName
);
this
.
position
.
set
(
skin
.
x
,
skin
.
y
);
this
.
position
.
set
(
skin
.
x
,
skin
.
y
);
}
//两个按钮都是关闭作用
get
closeBtns
()
{
...
...
@@ -15,10 +15,12 @@ export class AssistPanel extends Panel {
get
groupNames
()
{
return
[
"assist"
]
}
get
skinName
()
{
return
"assist"
}
async
start
(
data
)
{
super
.
start
(
data
);
getObject
(
this
,
'assist_amout'
).
text
=
`
${
data
}
`
}
}
\ No newline at end of file
project/src/scenes/ShareScene.ts
View file @
a829a3bc
...
...
@@ -12,7 +12,7 @@ export class ShareScene extends Scene {
const
query
=
getQueryParams
();
getPxTokenSave
().
then
(
token
=>
{
sendWebNet
(
WebNetName
.
assist
,{
code
:
query
.
code
}).
then
(
res
=>
{
showPanel
(
AssistPanel
)
showPanel
(
AssistPanel
,
res
.
data
)
})
})
...
...
@@ -29,7 +29,7 @@ export class ShareScene extends Scene {
getPxTokenSave
().
then
(
token
=>
{
sendWebNet
(
WebNetName
.
shareInfo
,{
code
:
getQueryParams
().
code
,
token
:
token
}).
then
(
res
=>
{
const
{
experienceAmount
,
preIncom
,
remainAssist
}
=
res
.
data
;
getObject
(
this
,
'share_tips1'
).
text
=
`
${
experienceAmount
}
元体验金,预期收益
${
preIncom
}
元`
getObject
(
this
,
'share_tips1'
).
text
=
`
${
experienceAmount
}
F
${
preIncom
}
元`
getObject
(
this
,
'share_tips2'
).
text
=
`今日剩余助力次数:
${
remainAssist
}
次`
});
})
...
...
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