Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
new_taobao
Commits
754ce332
Commit
754ce332
authored
Oct 01, 2020
by
AU-Pro-mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add new code --06
parent
50d67c3b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
15 deletions
+18
-15
mine.getUserInfo.json
project/src/canvas/game/mock/miniTb/mine.getUserInfo.json
+1
-1
Root.ts
project/src/canvas/game/src/chuansongdai/Root.ts
+17
-14
No files found.
project/src/canvas/game/mock/miniTb/mine.getUserInfo.json
View file @
754ce332
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
"data"
:
{
"data"
:
{
"fakeUserName"
:
"cccccccccc"
,
"fakeUserName"
:
"cccccccccc"
,
"fakeUserImgUrl"
:
"https://yun.duiba.com.cn/spark-dev/assets/白色.41dae4fd01f4750aea58f694b40d97a9da8f23ca.png"
,
"fakeUserImgUrl"
:
"https://yun.duiba.com.cn/spark-dev/assets/白色.41dae4fd01f4750aea58f694b40d97a9da8f23ca.png"
,
"win"
:
fals
e
,
"win"
:
tru
e
,
"userName"
:
"xxxxxxxxxxx"
,
"userName"
:
"xxxxxxxxxxx"
,
"userImgUrl"
:
"https://yun.duiba.com.cn/spark-dev/assets/白色.41dae4fd01f4750aea58f694b40d97a9da8f23ca.png"
,
"userImgUrl"
:
"https://yun.duiba.com.cn/spark-dev/assets/白色.41dae4fd01f4750aea58f694b40d97a9da8f23ca.png"
,
"isNewUser"
:
false
"isNewUser"
:
false
...
...
project/src/canvas/game/src/chuansongdai/Root.ts
View file @
754ce332
...
@@ -129,23 +129,26 @@ export default class Root extends FYGE.Container {
...
@@ -129,23 +129,26 @@ export default class Root extends FYGE.Container {
this
.
goodsContainer
.
removeAllGoods
()
this
.
goodsContainer
.
removeAllGoods
()
this
.
scoreBoard
.
stopTime
()
this
.
scoreBoard
.
stopTime
()
if
(
this
.
userInfo
.
win
&&
this
.
scoreBoard
.
scoreLeft
)
{
console
.
log
(
'user win'
)
// 用户出了结果,请求开奖,并展示相应弹窗
if
(
this
.
userInfo
.
win
)
{
// const gamePrizeRes = await sendTbNet(TbNetName.getPrizeInfo, {})
// let res = gamePrizeRes.data
// console.log('CSD-GAME over data:', res)
// showPanel(MatchingPanel, res)
}
else
{
}
else
{
console
.
log
(
'user fail'
)
}
// 用户出了结果,请求开奖,并展示相应弹窗
if
(
this
.
userInfo
.
win
&&
this
.
scoreBoard
.
scoreLeft
)
{
// const gamePrizeRes = await sendTbNet(TbNetName.getPrizeInfo, {})
//胜利
// let res = gamePrizeRes.data
const
prizeInfo
=
await
sendTbNet
(
TbNetName
.
getPrizeInfo
)
// console.log('CSD-GAME over data:', res)
const
prize
=
prizeInfo
.
data
// showPanel(MatchingPanel, res)
console
.
log
(
'user win --- CSD-GAME over data:'
,
prizeInfo
.
data
)
if
(
prize
.
type
>
3
)
{
showPanel
(
SuccessPanel
,
prize
)
}
else
{
showPanel
(
SuccessNoAwardPanel
,
prize
)
}
}
else
{
//失败
console
.
log
(
'user fail --- CSD-GAME over data:'
)
showPanel
(
FailedPanel
)
}
}
// GDispatcher.dispatchEvent('gameOver-csd', {score: score})
// GDispatcher.dispatchEvent('gameOver-csd', {score: score})
...
...
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