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
99a0c590
Commit
99a0c590
authored
Oct 15, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b4cbd234
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
21 additions
and
14 deletions
+21
-14
index.html
egret/index.html
+1
-1
MainBase.ts
egret/libs/new_wx/MainBase.ts
+3
-1
FailSkin.exml
egret/resource/skins/FailSkin.exml
+1
-1
InviteRulePanelSkin.exml
egret/resource/skins/InviteRulePanelSkin.exml
+1
-1
MapScene.ts
egret/src/mapScene/MapScene.ts
+5
-2
ADPanel.ts
egret/src/panels/ADPanel.ts
+6
-6
BoxPanel.ts
egret/src/panels/BoxPanel.ts
+2
-0
home.json
mock/happyclear/home.json
+1
-1
openTreasureBox.json
mock/happyclear/openTreasureBox.json
+1
-1
No files found.
egret/index.html
View file @
99a0c590
...
...
@@ -48,7 +48,7 @@
<script
src=
"libs/pad-zeropadding.js"
></script>
<img
id=
"pic"
style=
"width:100%;position: absolute;z-index: 999;display: none;"
/>
<script>
localStorage
.
clear
();
//
localStorage.clear();
window
[
'isInvitePage'
]
=
0
;
var
targetUrl
=
'https://gameact.suning.com/sngame-web/api/duiba/private/v1/getLoginUrl.do?appCode=duiba&activityCode=3651404'
;
/*
...
...
egret/libs/new_wx/MainBase.ts
View file @
99a0c590
...
...
@@ -167,8 +167,10 @@ export default class MainBase extends eui.UILayer {
RES
.
getResAsync
(
`nums_fnt`
);
RES
.
getResAsync
(
`nums2_png`
);
RES
.
getResAsync
(
`nums2_fnt`
);
if
(
!
window
[
'development'
])
if
(
!
window
[
'development'
])
{
RES
.
getResAsync
(
`common_json`
);
RES
.
getResAsync
(
`inviterulepanel_json`
);
}
else
{
RES
.
getResAsync
(
'main_mapbottom_png'
);
RES
.
getResAsync
(
'lightani_png'
);
...
...
egret/resource/skins/FailSkin.exml
View file @
99a0c590
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"FailSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Component
y=
"674.52"
skinName=
"ADSmallSkin"
horizontalCenter=
"0"
/>
<e:Component
y=
"674.52"
skinName=
"ADSmallSkin"
horizontalCenter=
"0"
visible=
"false"
/>
<e:Image
source=
"闯关失败_png"
y=
"-8"
horizontalCenter=
"0"
/>
<e:Button
id=
"closeBtn"
label=
""
x=
"609"
y=
"162"
>
<e:skinName>
...
...
egret/resource/skins/InviteRulePanelSkin.exml
View file @
99a0c590
...
...
@@ -10,7 +10,7 @@
</e:layout>
</e:Group>
</e:Scroller>
<e:Button
id=
"closeBtn"
label=
""
x=
"60
8"
y=
"322
"
>
<e:Button
id=
"closeBtn"
label=
""
x=
"60
4"
y=
"340
"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"closeCommonBtn_png"
source.down=
"closeCommonBtn_png"
source.disabled=
"closeCommonBtn_png"
/>
...
...
egret/src/mapScene/MapScene.ts
View file @
99a0c590
...
...
@@ -72,7 +72,7 @@ export default class MapScene extends Scene {
this
[
'avatar'
].
mask
=
this
[
'avatarMask'
];
setTimeout
(()
=>
{
// PanelCtrl.instance.show('
StartPanel',1
);
// PanelCtrl.instance.show('
failed'
);
},
1000
);
if
(
getBgOn
()
&&
MapScene
[
'firstPlayBgTag'
]
==
true
)
{
...
...
@@ -92,7 +92,10 @@ export default class MapScene extends Scene {
const
oldTimerStr2
=
localStorage
.
getItem
(
'nowTimer2Str'
+
window
[
'CFG'
].
consumerId
);
const
hc_advert
=
DataManager
.
ins
.
getData
(
'hc_advert'
).
data
;
const
{
noticeAdvert
}
=
hc_advert
;
let
{
noticeAdvert
}
=
hc_advert
;
if
(
noticeAdvert
==
null
){
noticeAdvert
=
{
enable
:
false
}
}
if
(
oldTimerStr2
!=
nowTimerStr2
&&
noticeAdvert
&&
noticeAdvert
.
enable
)
{
panels
.
push
(
'ad'
);
...
...
egret/src/panels/ADPanel.ts
View file @
99a0c590
...
...
@@ -9,13 +9,13 @@ export default class ADPanel extends Panel {
let
result
;
const
hc_advert
=
DataManager
.
ins
.
getData
(
'hc_advert'
).
data
;
const
{
popup
Advert
}
=
hc_advert
;
this
.
visible
=
popup
Advert
.
enable
;
const
{
notice
Advert
}
=
hc_advert
;
this
.
visible
=
notice
Advert
.
enable
;
result
=
popup
Advert
.
advertList
;
if
(
Array
.
isArray
(
popup
Advert
.
advertList
))
{
const
index
=
Math
.
floor
(
popup
Advert
.
advertList
.
length
*
Math
.
random
());
result
=
popup
Advert
.
advertList
[
index
];
result
=
notice
Advert
.
advertList
;
if
(
Array
.
isArray
(
notice
Advert
.
advertList
))
{
const
index
=
Math
.
floor
(
notice
Advert
.
advertList
.
length
*
Math
.
random
());
result
=
notice
Advert
.
advertList
[
index
];
}
this
.
data
.
img
=
result
.
img
;
...
...
egret/src/panels/BoxPanel.ts
View file @
99a0c590
...
...
@@ -16,6 +16,8 @@ export default class BoxPanel extends Panel {
const
itemid
=
DataManager
.
ins
.
getData
(
'getPlugOrderStatus'
).
lottery
.
itemId
;
this
.
data
.
img
=
`http://yun.duiba.com.cn/db_games/1015/
${
itemid
}
.png`
;
addAdComp
(
84
,
739.52
,
this
)
}
showlog
()
{
NetManager
.
ins
.
showLog
(
getlogItem
(
17
));
...
...
mock/happyclear/home.json
View file @
99a0c590
...
...
@@ -374,7 +374,7 @@
],
"remainEnargy"
:
9979
,
"askForEnergy"
:
false
,
"canReceiveTreasureBoxNum"
:
0
,
"canReceiveTreasureBoxNum"
:
1
0
,
"nextRangeStarsNum"
:
150
}
}
\ No newline at end of file
mock/happyclear/openTreasureBox.json
View file @
99a0c590
...
...
@@ -6,7 +6,7 @@
"data"
:
{
"canReceiveTreasureBoxNum"
:
99
,
"nextRangeStarsNum"
:
25
,
"isGetAllTreasureBox"
:
1
,
"isGetAllTreasureBox"
:
0
,
"orderNum"
:
"1078836456709300393"
,
"totalStars"
:
12
}
...
...
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