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
bc5ca4e3
Commit
bc5ca4e3
authored
Aug 09, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
4f44f6dc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
16 deletions
+31
-16
index.html
project/index.html
+1
-1
carouselInfo.do.json
project/mock/webNet/carousel/carouselInfo.do.json
+16
-8
IndexScene.ts
project/src/scenes/IndexScene.ts
+14
-7
No files found.
project/index.html
View file @
bc5ca4e3
...
...
@@ -67,7 +67,7 @@
<!-- 构建的js -->
<!-- <script src="output.js" crossorigin="anonymous"></script> -->
<script
src=
"https://yun.duiba.com.cn/db_games/activity/template/16284
78599
/output.js"
crossorigin=
"anonymous"
></script>
<script
src=
"https://yun.duiba.com.cn/db_games/activity/template/16284
80312
/output.js"
crossorigin=
"anonymous"
></script>
...
...
project/mock/webNet/carousel/carouselInfo.do.json
View file @
bc5ca4e3
...
...
@@ -2,35 +2,43 @@
"code"
:
null
,
"data"
:
[
{
"amount"
:
"
7
0"
,
"amount"
:
"
20
0"
,
"nickname"
:
"n**l"
},
{
"amount"
:
"30"
,
"amount"
:
"30
0
"
,
"nickname"
:
"n**l"
},
{
"amount"
:
"
6
00"
,
"amount"
:
"
5
00"
,
"nickname"
:
"n**l"
},
{
"amount"
:
"
5
00"
,
"amount"
:
"
1
00"
,
"nickname"
:
"n**l"
},
{
"amount"
:
"
50
0"
,
"amount"
:
"
7
0"
,
"nickname"
:
"n**l"
},
{
"amount"
:
"
20
0"
,
"amount"
:
"
3
0"
,
"nickname"
:
"n**l"
},
{
"amount"
:
"
2
00"
,
"amount"
:
"
6
00"
,
"nickname"
:
"n**l"
},
{
"amount"
:
"600"
,
"amount"
:
"500"
,
"nickname"
:
"n**l"
},
{
"amount"
:
"500"
,
"nickname"
:
"n**l"
},
{
"amount"
:
"200"
,
"nickname"
:
"n**l"
}
],
...
...
project/src/scenes/IndexScene.ts
View file @
bc5ca4e3
import
{
unwatchPageVisibility
,
watchPageVisibility
}
from
'@spark/utils'
;
import
{
showPanel
}
from
"../../module/ctrls"
;
import
{
showPanel
,
showToast
}
from
"../../module/ctrls"
;
import
PanelCtrl
from
'../../module/ctrls/panelCtrl'
;
import
{
Scene
}
from
"../../module/views/Scene"
;
import
Marquee
from
'../common/Marquee'
;
...
...
@@ -14,7 +14,7 @@ import { ShareFailPanel } from '../panels/share_fail';
import
{
ShareSuccessPanel
}
from
'../panels/share_success'
;
import
{
getStageHeight
,
getStageOffset
}
from
'../stage'
;
import
updateShare
from
'../updateShare'
;
import
{
getPxTokenSave
,
sendWebNet
,
WebNetName
}
from
'../WebNet'
;
import
{
getPxTokenSave
,
getWebData
,
sendWebNet
,
WebNetName
}
from
'../WebNet'
;
export
class
IndexScene
extends
Scene
{
updateIndexUI
({
experienceAmount
,
yesterdayIncome
,
sumIncome
,
sevenDayAnnualization
,
assistFriendNum
,
otherExperienceAmount
})
{
...
...
@@ -37,11 +37,18 @@ export class IndexScene extends Scene {
showShareMask
();
}
onclick_index_drawBtn
()
{
getPxTokenSave
().
then
(
token
=>
{
sendWebNet
(
WebNetName
.
withDraw
,
{
token
:
token
}).
then
(
res
=>
{
showPanel
(
DrawPanel
,
res
.
data
);
});
})
const
{
canWithdraw
}
=
getWebData
(
WebNetName
.
myWallet
).
data
;
if
(
canWithdraw
){
getPxTokenSave
().
then
(
token
=>
{
sendWebNet
(
WebNetName
.
withDraw
,
{
token
:
token
}).
then
(
res
=>
{
showPanel
(
DrawPanel
,
res
.
data
);
});
})
}
else
{
showToast
(
'收益未满7天,不能提现哦~'
)
}
}
page
:
FYGE
.
ScrollPage
;
...
...
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