Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
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
xiaoxiaole
Commits
145e1129
Commit
145e1129
authored
Nov 05, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a459a1d6
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
95 additions
and
48 deletions
+95
-48
MainBase.ts
egret/libs/new_wx/MainBase.ts
+9
-0
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+30
-0
hbcuttime.tmproject
egret/resource/TextureMerger/hbcuttime.tmproject
+1
-1
main2.tmproject
egret/resource/TextureMerger/main2.tmproject
+1
-1
default.res.json
egret/resource/default.res.json
+8
-7
MapSkin.exml
egret/resource/skins/MapSkin.exml
+3
-3
MapScene.ts
egret/src/mapScene/MapScene.ts
+5
-3
config.js
mock/config.js
+6
-0
advert.json
mock/happyclear/advert.json
+1
-33
award.json
mock/happyclear/award.json
+24
-0
baseinfo.json
mock/happyclear/baseinfo.json
+7
-0
No files found.
egret/libs/new_wx/MainBase.ts
View file @
145e1129
...
@@ -409,6 +409,13 @@ export default class MainBase extends eui.UILayer {
...
@@ -409,6 +409,13 @@ export default class MainBase extends eui.UILayer {
});
});
});
});
}
}
hcRedBoobBaseInfo
()
{
return
new
Promise
((
r
)
=>
{
NetManager
.
ins
.
hc_redBombBaseInfo
(
async
()
=>
{
r
();
});
});
}
hcHome
()
{
hcHome
()
{
return
new
Promise
((
r
)
=>
{
return
new
Promise
((
r
)
=>
{
...
@@ -427,12 +434,14 @@ export default class MainBase extends eui.UILayer {
...
@@ -427,12 +434,14 @@ export default class MainBase extends eui.UILayer {
}
}
protected
async
createGameScene
()
{
protected
async
createGameScene
()
{
window
[
'getaward'
]
=
NetManager
.
ins
.
hc_redBombAward
;
await
Promise
.
all
([
await
Promise
.
all
([
this
.
getAd
(),
this
.
getAd
(),
this
.
ajaxElement
(),
this
.
ajaxElement
(),
this
.
hcHome
(),
this
.
hcHome
(),
this
.
hc_userInfo
(),
this
.
hc_userInfo
(),
this
.
getBackReward
(),
this
.
getBackReward
(),
this
.
hcRedBoobBaseInfo
(),
]);
]);
MapScene
.
adData
=
DataManager
.
ins
.
getData
(
'hc_advert'
);
MapScene
.
adData
=
DataManager
.
ins
.
getData
(
'hc_advert'
);
...
...
egret/libs/tw/manager/NetManager.ts
View file @
145e1129
...
@@ -875,6 +875,36 @@ export class NetManager extends ABNetManager {
...
@@ -875,6 +875,36 @@ export class NetManager extends ABNetManager {
this
.
send
(
net
);
this
.
send
(
net
);
}
}
public
hc_redBombBaseInfo
(
callback
:
Function
):
void
{
const
net
:
INetData
=
{
name
:
'hc_redBombBaseInfo'
,
uri
:
window
[
'duiba'
]
+
'/customActivity/happyclear/redBomb/baseInfo'
,
type
:
'get'
,
dataType
:
'json'
,
param
:
{
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
,
},
callback
:
callback
};
this
.
send
(
net
);
}
public
hc_redBombAward
(
callback
:
Function
):
void
{
const
net
:
INetData
=
{
name
:
'hc_redBombAward'
,
uri
:
window
[
'duiba'
]
+
'/customActivity/happyclear/redBomb/award'
,
type
:
'post'
,
dataType
:
'json'
,
param
:
{
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
,
detect
:
window
[
'detect'
],
deviceSessionId
:
window
[
'_device_session_id'
]
},
callback
:
callback
};
this
.
send
(
net
);
}
public
hc_getLevelInfo
(
callback
:
Function
,
getLevelInfo
:
number
):
void
{
public
hc_getLevelInfo
(
callback
:
Function
,
getLevelInfo
:
number
):
void
{
const
net
:
INetData
=
{
const
net
:
INetData
=
{
name
:
'hc_getLevelInfo'
,
name
:
'hc_getLevelInfo'
,
...
...
egret/resource/TextureMerger/hbcuttime.tmproject
View file @
145e1129
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"hbcuttime","version":5,"files":["../assets/hbCutTime/hbCutTime_bg.png","../assets/hbCutTime/hbCutTime_btn_disable.png","../assets/hbCutTime/hbCutTime_btn_enable.png","../assets/hbCutTime/hbCutTime_cutLine_disable.png","../assets/hbCutTime/hbCutTime_cutLine_enable.png","../assets/hbCutTime/hbCutTime_rule_btn.png","../assets/hbCutTime/hbCutTime_btn_null.png"]}
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"hbcuttime","version":5,"files":["../assets/hbCutTime/hbCutTime_bg.png","../assets/hbCutTime/hbCutTime_btn_disable.png","../assets/hbCutTime/hbCutTime_btn_enable.png","../assets/hbCutTime/hbCutTime_cutLine_disable.png","../assets/hbCutTime/hbCutTime_cutLine_enable.png","../assets/hbCutTime/hbCutTime_rule_btn.png"]}
\ No newline at end of file
\ No newline at end of file
egret/resource/TextureMerger/main2.tmproject
View file @
145e1129
This diff is collapsed.
Click to expand it.
egret/resource/default.res.json
View file @
145e1129
...
@@ -177,7 +177,7 @@
...
@@ -177,7 +177,7 @@
"name"
:
"turntableprize"
"name"
:
"turntableprize"
},
},
{
{
"keys"
:
"hbCutTime_bg_png,hbCutTime_btn_disable_png,hbCutTime_btn_enable_png,hbCutTime_cutLine_disable_png,hbCutTime_cutLine_enable_png,hbCutTime_rule_btn_png
,hbCutTime_btn_null_png
"
,
"keys"
:
"hbCutTime_bg_png,hbCutTime_btn_disable_png,hbCutTime_btn_enable_png,hbCutTime_cutLine_disable_png,hbCutTime_cutLine_enable_png,hbCutTime_rule_btn_png"
,
"name"
:
"hbcuttime"
"name"
:
"hbcuttime"
},
},
{
{
...
@@ -195,10 +195,6 @@
...
@@ -195,10 +195,6 @@
{
{
"keys"
:
"redbagact_rule按钮_png,redbagactbtn_png,redbagact热门活动专区_png,redbagact退出按钮_png"
,
"keys"
:
"redbagact_rule按钮_png,redbagactbtn_png,redbagact热门活动专区_png,redbagact退出按钮_png"
,
"name"
:
"redbagactivity"
"name"
:
"redbagactivity"
},
{
"keys"
:
"map2+_png,map2+bg_png,map2周一红包雨_png,map2热门引导_png,map2红包大作战_png,maphot_png,redbagrule活动规则_png"
,
"name"
:
"preload"
}
}
],
],
"resources"
:
[
"resources"
:
[
...
@@ -3288,9 +3284,14 @@
...
@@ -3288,9 +3284,14 @@
"name"
:
"maphot_png"
"name"
:
"maphot_png"
},
},
{
{
"name"
:
"redbagrule活动规则_png"
,
"url"
:
"assets/redbagrule/redbagrule活动规则.png"
,
"type"
:
"image"
,
"name"
:
"redbagrule活动规则_png"
},
{
"url"
:
"assets/mainScene/festivalTargetBg.png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"
url"
:
"assets/redbagrule/redbagrule活动规则.
png"
"
name"
:
"festivalTargetBg_
png"
}
}
]
]
}
}
\ No newline at end of file
egret/resource/skins/MapSkin.exml
View file @
145e1129
...
@@ -135,9 +135,9 @@
...
@@ -135,9 +135,9 @@
</e:Group>
</e:Group>
<e:Group
id=
"activitys"
x=
"13.4"
y=
"620.55"
>
<e:Group
id=
"activitys"
x=
"13.4"
y=
"620.55"
>
<e:Group
id=
"actIconsGroup"
x=
"12.12"
y=
"0"
visible=
"false"
>
<e:Group
id=
"actIconsGroup"
x=
"12.12"
y=
"0"
visible=
"false"
>
<e:Image
source=
"map2+bg_png"
x=
"-
15
.15"
y=
"0"
/>
<e:Image
source=
"map2+bg_png"
x=
"-
27
.15"
y=
"0"
/>
<e:Image
id=
"act1Btn"
source=
"map2周一红包雨_png"
x=
"
8
.27"
y=
"157.5"
/>
<e:Image
id=
"act1Btn"
source=
"map2周一红包雨_png"
x=
"
4
.27"
y=
"157.5"
/>
<e:Image
id=
"act2Btn"
source=
"map2红包大作战_png"
x=
"1
63
.76"
y=
"159"
/>
<e:Image
id=
"act2Btn"
source=
"map2红包大作战_png"
x=
"1
57
.76"
y=
"159"
/>
</e:Group>
</e:Group>
<e:Image
id=
"actsShowBtn"
source=
"map2+_png"
x=
"-7.64"
y=
"5.45"
/>
<e:Image
id=
"actsShowBtn"
source=
"map2+_png"
x=
"-7.64"
y=
"5.45"
/>
<e:Image
source=
"maphot_png"
x=
"91.52"
y=
"15.72"
/>
<e:Image
source=
"maphot_png"
x=
"91.52"
y=
"15.72"
/>
...
...
egret/src/mapScene/MapScene.ts
View file @
145e1129
...
@@ -112,7 +112,7 @@ export default class MapScene extends Scene {
...
@@ -112,7 +112,7 @@ export default class MapScene extends Scene {
const
nowTimerStr2
=
date
.
getTime
()
+
''
;
const
nowTimerStr2
=
date
.
getTime
()
+
''
;
const
oldTimerStr2
=
localStorage
.
getItem
(
'nowTimer2Str'
+
window
[
'CFG'
].
consumerId
);
const
oldTimerStr2
=
localStorage
.
getItem
(
'nowTimer2Str'
+
window
[
'CFG'
].
consumerId
);
const
hc_advert
=
DataManager
.
ins
.
getData
(
'hc_advert'
).
data
;
const
hc_advert
=
DataManager
.
ins
.
getData
(
'hc_advert'
).
data
||
{}
;
let
{
noticeAdvert
}
=
hc_advert
;
let
{
noticeAdvert
}
=
hc_advert
;
if
(
noticeAdvert
==
null
)
{
if
(
noticeAdvert
==
null
)
{
noticeAdvert
=
{
enable
:
false
}
noticeAdvert
=
{
enable
:
false
}
...
@@ -324,7 +324,7 @@ export default class MapScene extends Scene {
...
@@ -324,7 +324,7 @@ export default class MapScene extends Scene {
}
}
updateAdData
()
{
updateAdData
()
{
const
hc_advert
=
DataManager
.
ins
.
getData
(
'hc_advert'
).
data
;
const
hc_advert
=
DataManager
.
ins
.
getData
(
'hc_advert'
).
data
||
{}
;
let
{
mapAdvert
}
=
hc_advert
;
let
{
mapAdvert
}
=
hc_advert
;
if
(
mapAdvert
==
null
)
if
(
mapAdvert
==
null
)
mapAdvert
=
{
enable
:
false
,
advertList
:
[]
}
mapAdvert
=
{
enable
:
false
,
advertList
:
[]
}
...
@@ -535,6 +535,7 @@ export default class MapScene extends Scene {
...
@@ -535,6 +535,7 @@ export default class MapScene extends Scene {
}
}
onTap_act1btn
()
{
onTap_act1btn
()
{
PanelCtrl
.
instance
.
show
(
"HbCutTime"
);
PanelCtrl
.
instance
.
show
(
"HbCutTime"
);
this
.
onTap_actsShowBtn
();
}
}
onTap_guide
()
{
onTap_guide
()
{
this
[
'guide'
].
visible
=
false
;
this
[
'guide'
].
visible
=
false
;
...
@@ -542,6 +543,7 @@ export default class MapScene extends Scene {
...
@@ -542,6 +543,7 @@ export default class MapScene extends Scene {
}
}
onTap_act2btn
()
{
onTap_act2btn
()
{
PanelCtrl
.
instance
.
show
(
"HbCutTime"
);
PanelCtrl
.
instance
.
show
(
"HbCutTime"
);
this
.
onTap_actsShowBtn
();
}
}
onTap_inviteBtn
()
{
onTap_inviteBtn
()
{
...
@@ -623,7 +625,7 @@ export default class MapScene extends Scene {
...
@@ -623,7 +625,7 @@ export default class MapScene extends Scene {
* 查询邀请信息
* 查询邀请信息
*/
*/
getInviteInfo
()
{
getInviteInfo
()
{
const
hc_advert
=
DataManager
.
ins
.
getData
(
'hc_advert'
).
data
;
const
hc_advert
=
DataManager
.
ins
.
getData
(
'hc_advert'
).
data
||
{}
;
const
{
mapAdvert
}
=
hc_advert
;
const
{
mapAdvert
}
=
hc_advert
;
// tslint:disable-next-line: cyclomatic-complexity
// tslint:disable-next-line: cyclomatic-complexity
NetManager
.
ins
.
getInviteInfo
((
success
,
res
)
=>
{
NetManager
.
ins
.
getInviteInfo
((
success
,
res
)
=>
{
...
...
mock/config.js
View file @
145e1129
...
@@ -6,6 +6,12 @@ const config = {
...
@@ -6,6 +6,12 @@ const config = {
'/customActivity/happyclear/getBackReward'
:
{
'/customActivity/happyclear/getBackReward'
:
{
data
:
'./happyclear/getBackReward.json'
data
:
'./happyclear/getBackReward.json'
},
},
'/customActivity/happyclear/redBomb/baseInfo'
:
{
data
:
'./happyclear/baseInfo.json'
},
'/customActivity/happyclear/redBomb/award'
:
{
data
:
'./happyclear/award.json'
},
'/customActivity/happyclear/bigWheel/baseInfo'
:
{
'/customActivity/happyclear/bigWheel/baseInfo'
:
{
data
:
'./happyclear/turnablebaseInfo.json'
data
:
'./happyclear/turnablebaseInfo.json'
},
},
...
...
mock/happyclear/advert.json
View file @
145e1129
{
{
"success"
:
true
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
1572957051094
,
"data"
:
null
}
"code"
:
"0000000000"
,
\ No newline at end of file
"data"
:
{
"mapAdvert"
:
{
"enable"
:
true
,
"advertList"
:
[
{
"img"
:
"//yun.duiba.com.cn/images/201910/2iu41if4n7.png"
,
"url"
:
"https://cuxiao.m.suning.com/scms/s11dybys.html?adTypeCode=1137&adId=https%3A%2F%2Flib.suning.com%2Fweex%2Fs11dybys.js%3FpageCode%3Ds11dybys"
}
]
},
"noticeAdvert"
:
{
"enable"
:
true
,
"advertList"
:
[
{
"img"
:
"//yun.duiba.com.cn/images/201910/zqtdp6xibw.jpg"
,
"url"
:
"https://cuxiao.m.suning.com/scms/songshu.html"
}
]
},
"popupAdvert"
:
{
"enable"
:
true
,
"advertList"
:
[
{
"img"
:
"//yun.duiba.com.cn/images/201910/zqtdp6xibw.jpg"
,
"url"
:
"https://cuxiao.m.suning.com/scms/songshu.html"
}
]}
},
"success"
:
true
,
"desc"
:
"OK"
,
"timestamp"
:
1571913337116
}
\ No newline at end of file
mock/happyclear/award.json
0 → 100644
View file @
145e1129
{
"code"
:
"0000000000"
,
"data"
:{
"option"
:{
"appItemId"
:
2322
,
"categoryType"
:
1
,
"coinType"
:
1
,
"img"
:
"1"
,
"maxValue"
:
2
,
"minValue"
:
1
,
"name"
:
"测试商品"
,
"num"
:
3
,
"propType"
:
2
,
"rate"
:
"概率"
,
"title"
:
"商品信息"
,
"value"
:
"虚拟商品标识符"
},
"orderNum"
:
"1234232546"
,
"remainAwardTimes"
:
1
},
"desc"
:
"OK"
,
"success"
:
true
,
"timestamp"
:
1572923678758
}
\ No newline at end of file
mock/happyclear/baseinfo.json
0 → 100644
View file @
145e1129
{
"code"
:
"0000000000"
,
"data"
:
1
,
"desc"
:
"OK"
,
"success"
:
true
,
"timestamp"
:
1572923489898
}
\ 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