Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db-game-template
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
崔立强
db-game-template
Commits
aa1ace1d
Commit
aa1ace1d
authored
Dec 28, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
57412ee5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
52 additions
and
84 deletions
+52
-84
index.html
egret/index.html
+2
-2
LessCreditsPanelSkin.exml
egret/resource/skins/LessCreditsPanelSkin.exml
+2
-2
MainSceneSkin.exml
egret/resource/skins/MainSceneSkin.exml
+1
-1
MainScene.ts
egret/src/Scene/MainScene.ts
+10
-1
ajaxElement.json
mock/json/ajaxElement.json
+37
-78
No files found.
egret/index.html
View file @
aa1ace1d
...
@@ -86,8 +86,8 @@
...
@@ -86,8 +86,8 @@
var
CFG
=
{
var
CFG
=
{
actId
:
'1'
,
actId
:
'1'
,
oaId
:
'1'
,
oaId
:
'1'
,
unitName
:
'
积分
'
,
unitName
:
'
金币
'
,
btnUnitName
:
'
积分
'
,
btnUnitName
:
'
金币
'
,
doJoin
:
'/hdtool/recon/doJoin?dpm=1.3.1.0&activityId=1'
,
doJoin
:
'/hdtool/recon/doJoin?dpm=1.3.1.0&activityId=1'
,
quireOrder
:
'/hdtool/getOrderStatus'
,
quireOrder
:
'/hdtool/getOrderStatus'
,
styleConfig
:
'/hdtool/getHdtoolConfig'
,
styleConfig
:
'/hdtool/getHdtoolConfig'
,
...
...
egret/resource/skins/LessCreditsPanelSkin.exml
View file @
aa1ace1d
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
<e:Skin
class=
"NoLoginSkin"
height=
"1624"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:ns1=
"*"
xmlns:w=
"http://ns.egret.com/wing"
width=
"750"
>
<e:Skin
class=
"NoLoginSkin"
height=
"1624"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:ns1=
"*"
xmlns:w=
"http://ns.egret.com/wing"
width=
"750"
>
<e:Group
width=
"623"
height=
"504"
x=
"62"
y=
"427"
>
<e:Group
width=
"623"
height=
"504"
x=
"62"
y=
"427"
>
<e:Image
source=
"common_bg_png"
scaleX=
"1"
scaleY=
"1"
/>
<e:Image
source=
"common_bg_png"
scaleX=
"1"
scaleY=
"1"
/>
<e:Label
text=
"积分不足"
y=
"72"
textColor=
"0xba5c03"
size=
"48"
bold=
"true"
horizontalCenter=
"0"
/>
<e:Label
id=
"title"
text=
"积分不足"
y=
"72"
textColor=
"0xba5c03"
size=
"48"
bold=
"true"
horizontalCenter=
"0"
/>
<e:Label
text=
"抱歉您当前积分不足"
y=
"219"
textColor=
"0xba5c03"
horizontalCenter=
"0.5"
/>
<e:Label
id=
"tip"
text=
"抱歉您当前积分不足"
y=
"219"
textColor=
"0xba5c03"
horizontalCenter=
"0.5"
/>
<ns1:MButton
id=
"btnDo"
label=
""
x=
"115"
y=
"357"
>
<ns1:MButton
id=
"btnDo"
label=
""
x=
"115"
y=
"357"
>
<ns1:skinName>
<ns1:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Skin
states=
"up,down,disabled"
>
...
...
egret/resource/skins/MainSceneSkin.exml
View file @
aa1ace1d
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<e:Image
source=
"main_guideboard_png"
x=
"482"
y=
"869"
/>
<e:Image
source=
"main_guideboard_png"
x=
"482"
y=
"869"
/>
<e:Group
id=
"groupFree"
width=
"204"
height=
"150"
x=
"482"
y=
"864"
anchorOffsetX=
"0"
anchorOffsetY=
"0"
<e:Group
id=
"groupFree"
width=
"204"
height=
"150"
x=
"482"
y=
"864"
anchorOffsetX=
"0"
anchorOffsetY=
"0"
visible=
"false"
>
visible=
"false"
>
<e:Label
text=
"今日免费次数"
x=
"21"
y=
"62"
scaleX=
"1"
scaleY=
"1"
size=
"24"
/>
<e:Label
id=
"labelFreeNumTitle"
text=
"今日免费次数"
x=
"21"
y=
"62"
scaleX=
"1"
scaleY=
"1"
size=
"24"
/>
<e:Label
id=
"labelFreeNum"
text=
""
y=
"97"
size=
"30"
horizontalCenter=
"-10.5"
/>
<e:Label
id=
"labelFreeNum"
text=
""
y=
"97"
size=
"30"
horizontalCenter=
"-10.5"
/>
</e:Group>
</e:Group>
<e:Label
id=
"labelCostNum"
text=
""
y=
"938"
size=
"30"
horizontalCenter=
"204"
visible=
"false"
/>
<e:Label
id=
"labelCostNum"
text=
""
y=
"938"
size=
"30"
horizontalCenter=
"204"
visible=
"false"
/>
...
...
egret/src/Scene/MainScene.ts
View file @
aa1ace1d
...
@@ -23,6 +23,7 @@ export default class MainScene extends Scene {
...
@@ -23,6 +23,7 @@ export default class MainScene extends Scene {
public
btnRule
:
eui
.
Button
;
public
btnRule
:
eui
.
Button
;
public
groupFree
:
eui
.
Group
;
public
groupFree
:
eui
.
Group
;
public
labelFreeNum
:
eui
.
Label
;
public
labelFreeNum
:
eui
.
Label
;
public
labelFreeNumTitle
:
eui
.
Label
;
public
labelCostNum
:
eui
.
Label
;
public
labelCostNum
:
eui
.
Label
;
public
imgTitle
:
eui
.
Image
;
public
imgTitle
:
eui
.
Image
;
public
progress
:
MProgressBar
;
public
progress
:
MProgressBar
;
...
@@ -100,7 +101,7 @@ export default class MainScene extends Scene {
...
@@ -100,7 +101,7 @@ export default class MainScene extends Scene {
this
.
groupFree
.
visible
=
false
;
this
.
groupFree
.
visible
=
false
;
this
.
labelCostNum
.
visible
=
false
;
this
.
labelCostNum
.
visible
=
false
;
if
(
element
[
"freeLimit"
]
>
0
)
{
if
(
element
[
"freeLimit"
]
>
0
&&
!
element
.
freeEmpty
)
{
this
.
labelFreeNum
.
text
=
element
[
"freeLimit"
]
+
"次"
;
this
.
labelFreeNum
.
text
=
element
[
"freeLimit"
]
+
"次"
;
this
.
groupFree
.
visible
=
true
;
this
.
groupFree
.
visible
=
true
;
}
else
{
}
else
{
...
@@ -183,11 +184,19 @@ class CommonPanel extends Panel {
...
@@ -183,11 +184,19 @@ class CommonPanel extends Panel {
public
btnDo
:
MButton
;
public
btnDo
:
MButton
;
public
btnClose
:
MButton
;
public
btnClose
:
MButton
;
btnTxt
:
egret
.
TextField
btnTxt
:
egret
.
TextField
title
:
egret
.
TextField
tip
:
egret
.
TextField
onSkinComplete
()
{
onSkinComplete
()
{
super
.
onSkinComplete
();
super
.
onSkinComplete
();
this
.
btnClose
.
onTap
(
this
,
()
=>
this
.
hidePanel
());
this
.
btnClose
.
onTap
(
this
,
()
=>
this
.
hidePanel
());
this
.
btnDo
.
onTap
(
this
,
()
=>
this
.
hidePanel
());
this
.
btnDo
.
onTap
(
this
,
()
=>
this
.
hidePanel
());
this
.
btnTxt
.
text
=
`赚
${
window
[
'CFG'
].
unitName
}
`
this
.
btnTxt
.
text
=
`赚
${
window
[
'CFG'
].
unitName
}
`
if
(
this
.
title
)
{
this
.
title
.
text
=
`
${
window
[
'CFG'
].
unitName
}
不足`
}
if
(
this
.
tip
)
{
this
.
tip
.
text
=
`抱歉您当前
${
window
[
'CFG'
].
unitName
}
不足`
}
}
}
}
}
\ No newline at end of file
mock/json/ajaxElement.json
View file @
aa1ace1d
{
{
"code"
:
"0000000000"
,
"jsTest"
:
"//yun.duiba.com.cn/h5/showCouponPrize/4.0.0/index_201710191434.js"
,
"data"
:
{
"success"
:
true
,
"creditsConf"
:
{
"cssTest"
:
"//yun.duiba.com.cn/h5/showCouponPrize/4.0.0/index_201710191440.css"
,
"creditsUp"
:
100
,
"options"
:
[
"creditsType"
:
"virtual"
,
{
"creditsDown"
:
50
,
"description"
:
""
,
"prize"
:
[
"hidden"
:
false
,
{
"id"
:
22038
,
"img"
:
"adsfsadf"
,
"logo"
:
"//yun.duiba.com.cn/upload/uP99F1462438316972.png"
,
"credits"
:
20
,
"name"
:
"谢谢参与"
,
"id"
:
4
,
"prizeType"
:
"thanks"
"title"
:
"0.3"
},
{
"img"
:
"sadfasdf"
,
"credits"
:
150
,
"id"
:
3
,
"title"
:
"1.5倍"
},
{
"img"
:
"sadfasdf"
,
"credits"
:
100
,
"id"
:
2
,
"title"
:
"1倍"
},
{
"img"
:
"sadfasdf"
,
"credits"
:
50
,
"id"
:
1
,
"title"
:
"0.5倍"
}
]
},
},
"floating"
:
{
{
"jsTest"
:
"//yun1.duiba.com.cn/h5/showCouponPrize/4.0.0/index_201710191434.js"
,
"description"
:
""
,
"cssTest"
:
"//yun1.duiba.com.cn/h5/showCouponPrize/4.0.0/index_201710191440.css"
"hidden"
:
false
,
"id"
:
22075
,
"itemId"
:
33466
,
"logo"
:
"//yun.dui88.com/images/201910/ig6klxap34.jpg"
,
"name"
:
"体育复合弓"
,
"prizeType"
:
"object"
,
"scoreArea"
:
""
},
},
"options"
:
[
{
{
"description"
:
""
,
"hidden"
:
false
,
"hidden"
:
true
,
"prizeType"
:
"thanks"
,
"id"
:
22099
,
"name"
:
"谢谢参与"
,
"logo"
:
"//yun.duiba.com.cn/webapp/img/luckynewn.png"
,
"description"
:
""
,
"name"
:
"放到"
,
"logo"
:
"//yun1.duiba.com.cn/upload/uP99F1462438316972.png"
,
"prizeType"
:
"lucky"
"id"
:
15581
}
},
],
{
"rule"
:
"dadaddfsg1fg当地噶的观点噶接口搭嘎巨大嘎达嘎嘎大家来给大家了更多哈工大哈根达瓦大lzfdfjykuhfdzk<br>dadaddfsg1fg当地噶的观点噶接口搭嘎巨大嘎达嘎嘎大家来给大家了更多哈工大哈根达瓦大lzfdfjykuhfdzk<br>dadaddfsg1fg当地噶的观点噶接口搭嘎巨大嘎达嘎嘎大家来给大家了更多哈工大哈根达瓦大lzfdfjykuhfdzk<br>"
,
"hidden"
:
false
,
"type"
:
"hdtool"
,
"prizeType"
:
"lucky"
,
"name"
:
"幸运福袋"
,
"description"
:
""
,
"logo"
:
"//yun1.duiba.com.cn/webapp/img/luckynewn.png"
,
"id"
:
15582
},
{
"itemId"
:
47861
,
"scoreArea"
:
""
,
"hidden"
:
false
,
"prizeType"
:
"alipay"
,
"name"
:
"支付宝1"
,
"description"
:
""
,
"logo"
:
"//yun1.duiba.com.cn/developer/img/activityTool/slotMachine/alipay.png"
,
"id"
:
15585
}
],
"rule"
:
"adsfasdf"
,
"type"
:
"hdtool"
},
"element"
:
{
"element"
:
{
"isCreditsTypeOpen"
:
false
,
"myCreditsLong"
:
999999632167
,
"freeLimit"
:
0
,
"success"
:
false
,
"myCredits"
:
"999999632167"
,
"needCredits"
:
"100"
,
"freeEmpty"
:
true
,
"freeEmpty"
:
true
,
"
needCreditsLong"
:
100
,
"
freeLimit"
:
2
,
"
status"
:
5
"
isCreditsTypeOpen"
:
false
,
}
,
"myCredits"
:
"166714"
,
"success"
:
true
,
"needCredits"
:
"2"
,
"desc"
:
"OK"
,
"status"
:
6
"timestamp"
:
1548832971636
}
}
}
\ No newline at end of file
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