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
381060c5
Commit
381060c5
authored
Aug 16, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
efbafed9
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
182 additions
and
80 deletions
+182
-80
index.html
project/index.html
+6
-0
creditsCost.do.json
project/mock/webNet/credits/creditsCost.do.json
+1
-7
drawPrize.do.json
project/mock/webNet/dazzle/drawPrize.do.json
+10
-23
drawPrize.do1.json
project/mock/webNet/dazzle/drawPrize.do1.json
+23
-0
drawPrize.do2.json
project/mock/webNet/dazzle/drawPrize.do2.json
+36
-0
index.do copy.json
project/mock/webNet/dazzle/index.do copy.json
+38
-0
index.do.json
project/mock/webNet/dazzle/index.do.json
+31
-2
cost.ts
project/src/panels/cost.ts
+31
-26
noprize.ts
project/src/panels/noprize.ts
+6
-22
No files found.
project/index.html
View file @
381060c5
...
...
@@ -11,6 +11,12 @@
<meta
name=
"screen-orientation"
content=
"portrait"
/>
<meta
name=
"x5-fullscreen"
content=
"true"
/>
<meta
name=
"360-fullscreen"
content=
"true"
/>
<script
src=
"https://yun.duiba.com.cn/db_games/debug/vconsole.min.js"
></script>
<script>
// init vConsole
var
vConsole
=
new
VConsole
();
console
.
log
(
'Hello world'
);
</script>
<script
src=
"//res.wx.qq.com/open/js/jweixin-1.3.2.js"
></script>
<!-- 渲染引擎 -->
<script
src=
"//yun.duiba.com.cn/db_games/libs0924/fyge2018.minSpine.js"
crossorigin=
"anonymous"
></script>
...
...
project/mock/webNet/credits/creditsCost.do.json
View file @
381060c5
{
"code"
:
null
,
"data"
:
{
"surplusCount"
:
456
,
"credits"
:
78900
,
"needCredits"
:
12345
,
"type"
:
1
,
"isMember"
:
1
},
"data"
:
123
,
"message"
:
null
,
"success"
:
true
}
\ No newline at end of file
project/mock/webNet/dazzle/drawPrize.do.json
View file @
381060c5
...
...
@@ -5,29 +5,16 @@
"options"
:
[
{
"extra"
:
null
,
"optionId"
:
"et esse laborum"
,
"optionImg"
:
"https://yun.duiba.com.cn/db_games/sxbank.png"
,
"optionName"
:
"aliquip dolore qui nulla"
,
"position"
:
-13810392
,
"prizeId"
:
"non labore eiusmod consequat"
,
"prizeType"
:
-25600732
,
"ruleId"
:
"fugiat minim in adipisicing"
,
"sendCount"
:
3860338
,
"url"
:
"eu veniam ipsum tempor"
,
"userRecordId"
:
-15254782
},
{
"extra"
:
null
,
"optionId"
:
"et esse laborum"
,
"optionImg"
:
"https://yun.duiba.com.cn/db_games/sxbank.png"
,
"optionName"
:
"aliquip dolore qui nulla"
,
"position"
:
-13810392
,
"prizeId"
:
"non labore eiusmod consequat"
,
"prizeType"
:
-25600732
,
"ruleId"
:
"fugiat minim in adipisicing"
,
"sendCount"
:
3860338
,
"url"
:
"eu veniam ipsum tempor"
,
"userRecordId"
:
-15254782
"optionId"
:
"thanks"
,
"optionImg"
:
null
,
"optionName"
:
"谢谢参与"
,
"position"
:
null
,
"prizeId"
:
"thanks"
,
"prizeType"
:
0
,
"ruleId"
:
"ru_1"
,
"sendCount"
:
1
,
"url"
:
null
,
"userRecordId"
:
null
}
]
},
...
...
project/mock/webNet/dazzle/drawPrize.do1.json
0 → 100644
View file @
381060c5
{
"code"
:
null
,
"data"
:
{
"extra"
:
null
,
"options"
:
[
{
"extra"
:
null
,
"optionId"
:
"thanks"
,
"optionImg"
:
null
,
"optionName"
:
"谢谢参与"
,
"position"
:
null
,
"prizeId"
:
"thanks"
,
"prizeType"
:
0
,
"ruleId"
:
"ru_1"
,
"sendCount"
:
1
,
"url"
:
null
,
"userRecordId"
:
null
}
]
},
"message"
:
null
,
"success"
:
true
}
\ No newline at end of file
project/mock/webNet/dazzle/drawPrize.do2.json
0 → 100644
View file @
381060c5
{
"code"
:
null
,
"data"
:
{
"extra"
:
null
,
"options"
:
[
{
"extra"
:
null
,
"optionId"
:
"et esse laborum"
,
"optionImg"
:
"https://yun.duiba.com.cn/db_games/sxbank.png"
,
"optionName"
:
"aliquip dolore qui nulla"
,
"position"
:
-13810392
,
"prizeId"
:
"non labore eiusmod consequat"
,
"prizeType"
:
-25600732
,
"ruleId"
:
"fugiat minim in adipisicing"
,
"sendCount"
:
3860338
,
"url"
:
"eu veniam ipsum tempor"
,
"userRecordId"
:
-15254782
},
{
"extra"
:
null
,
"optionId"
:
"et esse laborum"
,
"optionImg"
:
"https://yun.duiba.com.cn/db_games/sxbank.png"
,
"optionName"
:
"aliquip dolore qui nulla"
,
"position"
:
-13810392
,
"prizeId"
:
"non labore eiusmod consequat"
,
"prizeType"
:
-25600732
,
"ruleId"
:
"fugiat minim in adipisicing"
,
"sendCount"
:
3860338
,
"url"
:
"eu veniam ipsum tempor"
,
"userRecordId"
:
-15254782
}
]
},
"message"
:
null
,
"success"
:
true
}
\ No newline at end of file
project/mock/webNet/dazzle/index.do copy.json
0 → 100644
View file @
381060c5
{
"code"
:
null
,
"data"
:
{
"surplusCount"
:
1
,
"credits"
:
1992008
,
"options"
:
[
{
"degree"
:
"10"
,
"icon"
:
"//yun.dui88.com/projectxh5/credit-250-250.png"
,
"icon2"
:
null
,
"id"
:
"oca13f7f4"
,
"index"
:
1
,
"name"
:
"积分"
,
"prizeId"
:
"sss_2"
,
"prizeType"
:
2
,
"refId"
:
""
,
"refType"
:
"increase-credits"
,
"sendCount"
:
1
},
{
"degree"
:
null
,
"icon"
:
"//yun.duiba.com.cn/db-m/app/turntable/circle/images/prize/谢谢参与_6311f27.png"
,
"icon2"
:
null
,
"id"
:
"thanks"
,
"index"
:
2
,
"name"
:
"谢谢参与"
,
"prizeId"
:
"thanks"
,
"prizeType"
:
0
,
"refId"
:
null
,
"refType"
:
null
,
"sendCount"
:
1
}
],
"type"
:
2
},
"message"
:
null
,
"success"
:
true
}
\ No newline at end of file
project/mock/webNet/dazzle/index.do.json
View file @
381060c5
{
"code"
:
null
,
"data"
:
{
"options"
:
[
{
"degree"
:
"10"
,
"icon"
:
"//yun.dui88.com/projectxh5/credit-250-250.png"
,
"icon2"
:
null
,
"id"
:
"oca13f7f4"
,
"index"
:
1
,
"name"
:
"积分"
,
"prizeId"
:
"sss_2"
,
"prizeType"
:
2
,
"refId"
:
""
,
"refType"
:
"increase-credits"
,
"sendCount"
:
1
},
{
"degree"
:
null
,
"icon"
:
"//yun.duiba.com.cn/db-m/app/turntable/circle/images/prize/谢谢参与_6311f27.png"
,
"icon2"
:
null
,
"id"
:
"thanks"
,
"index"
:
2
,
"name"
:
"谢谢参与"
,
"prizeId"
:
"thanks"
,
"prizeType"
:
0
,
"refId"
:
null
,
"refType"
:
null
,
"sendCount"
:
1
}
],
"surplusCount"
:
10
,
"credits"
:
235
,
"needCredits"
:
110
,
"type"
:
2
,
"type"
:
1
,
"isMember"
:
1
},
"message"
:
null
,
"success"
:
true
}
project/src/panels/cost.ts
View file @
381060c5
...
...
@@ -20,8 +20,8 @@ export class CostPanel extends Panel {
}
cost_open
()
{
sendLog
(
"click"
,
1
);
this
.
dispatchEvent
(
"stopIndexEnterFrame"
,
{
});
sendLog
(
"click"
,
1
);
this
.
dispatchEvent
(
"stopIndexEnterFrame"
,
{});
this
.
hidePanel
();
this
.
getPrize
();
}
...
...
@@ -29,20 +29,27 @@ export class CostPanel extends Panel {
getPrize
=
async
()
=>
{
const
indexResult
=
getWebData
(
WebNetName
.
index
);
const
result
=
await
sendWebNet
(
WebNetName
.
getCreditCost
,
{
toPlaywayId
:
'dazzle'
,
toActionId
:
'drawPrize'
,
credits
:
indexResult
.
data
.
needCredits
});
if
(
result
&&
result
.
success
)
{
const
prizeData
=
await
sendWebNetWithToken
(
WebNetName
.
drawPrize
,
{
ticket
:
result
.
data
});
const
params
:
any
=
{
toPlaywayId
:
'dazzle'
,
toActionId
:
'drawPrize'
};
sendWebNet
(
WebNetName
.
index
).
then
(
res
=>
{
let
result
,
prizeData
;
if
(
indexResult
.
data
.
type
==
1
)
{
params
.
credits
=
indexResult
.
data
.
needCredits
;
result
=
await
sendWebNet
(
WebNetName
.
getCreditCost
,
params
);
prizeData
=
await
sendWebNetWithToken
(
WebNetName
.
drawPrize
,
{
ticket
:
result
.
data
});
}
else
{
prizeData
=
await
sendWebNetWithToken
(
WebNetName
.
drawPrize
);
}
sendWebNet
(
WebNetName
.
index
).
then
(
res
=>
{
layers
.
stage
.
dispatchEvent
(
'updateIndexData'
)
})
if
(
prizeData
&&
prizeData
.
success
)
{
if
(
prizeData
.
data
&&
prizeData
.
data
.
options
)
{
if
(
prizeData
.
data
.
options
.
optionId
==
"thanks"
)
{
if
(
prizeData
.
data
.
options
[
0
]
.
optionId
==
"thanks"
)
{
showPanel
(
NoPrizePanel
)
}
else
{
showPanel
(
PrizePanel
);
...
...
@@ -50,8 +57,6 @@ export class CostPanel extends Panel {
}
}
}
}
get
groupNames
()
{
...
...
@@ -66,7 +71,7 @@ export class CostPanel extends Panel {
var
skin
=
RES
.
getSkinDataByName
(
this
.
skinName
);
this
.
position
.
set
(
skin
.
x
,
skin
.
y
);
centerTextField
(
getObject
(
this
,
"cost_tips"
),
496
);
sendLog
(
"exposure"
,
1
);
sendLog
(
"exposure"
,
1
);
}
initEvents
()
{
...
...
project/src/panels/noprize.ts
View file @
381060c5
...
...
@@ -7,11 +7,10 @@ import { sendLog } from "../WebNet";
let
section
;
export
class
NoPrizePanel
extends
Panel
{
// share_share_go(){
// console.log('share_share_go');
// }
hidePanel
(){
this
.
stage
.
dispatchEvent
(
"restartEnterFrame"
,{})
super
.
hidePanel
();
sendLog
(
"click"
,
3
);
}
...
...
@@ -25,27 +24,12 @@ export class NoPrizePanel extends Panel {
initUi
()
{
super
.
initUi
();
sendLog
(
"exposure"
,
3
);
super
.
initUi
();
var
skin
=
RES
.
getSkinDataByName
(
this
.
skinName
);
this
.
position
.
set
(
skin
.
x
,
skin
.
y
);
centerTextField
(
getObject
(
this
,
'prize_name'
),
731
);
centerTextField
(
getObject
(
this
,
'prize_tips'
),
731
);
const
prizePop
=
getObject
(
this
,
"prizeInner"
);
prizePop
.
visible
=
false
;
const
indexsvga
=
new
FYGE
.
MovieClip
(
RES
.
getRes
(
'盲盒开启-打开-输出.svga'
));
const
container
=
this
.
prizeContainer
=
prizePop
.
addChild
(
new
FYGE
.
Sprite
);
container
.
position
.
set
(
286
,
276
);
indexsvga
.
mouseChildren
=
indexsvga
.
mouseEnable
=
false
;
indexsvga
.
position
.
set
(
731
/
2
-
750
/
2
,
720
/
2
-
1624
/
2
)
this
.
addChild
(
indexsvga
);
this
.
addChild
(
prizePop
)
indexsvga
.
addEventListener
(
FYGE
.
Event
.
ENTER_FRAME
,
()
=>
{
if
(
indexsvga
.
currentFrame
==
indexsvga
.
totalFrames
-
13
)
{
prizePop
.
visible
=
true
;
}
},
this
)
indexsvga
.
startAniRange
(
1
,
indexsvga
.
totalFrames
,
1
,
()
=>
{
this
.
removeChild
(
indexsvga
)
});
}
initEvents
()
{
...
...
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