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
9ed62a9b
Commit
9ed62a9b
authored
Aug 28, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
ea6307e9
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
2 deletions
+13
-2
exml.json
egret/.wing/exml.json
+5
-0
MainBase.ts
egret/libs/new_wx/MainBase.ts
+2
-1
Share2Skin.exml
egret/resource/skins/Share2Skin.exml
+1
-0
MapScene.ts
egret/src/mapScene/MapScene.ts
+1
-1
BloodPanel.ts
egret/src/panels/BloodPanel.ts
+2
-0
shareCtrl.ts
egret/src/shareCtrl.ts
+2
-0
No files found.
egret/.wing/exml.json
View file @
9ed62a9b
...
@@ -178,5 +178,10 @@
...
@@ -178,5 +178,10 @@
"backgroundType"
:
"user"
,
"backgroundType"
:
"user"
,
"useBgImage"
:
false
,
"useBgImage"
:
false
,
"useBgColor"
:
true
"useBgColor"
:
true
},
"16cd6d4c8ff"
:
{
"backgroundType"
:
"user"
,
"useBgImage"
:
false
,
"useBgColor"
:
true
}
}
}
}
\ No newline at end of file
egret/libs/new_wx/MainBase.ts
View file @
9ed62a9b
...
@@ -128,7 +128,8 @@ export default class MainBase extends eui.UILayer {
...
@@ -128,7 +128,8 @@ export default class MainBase extends eui.UILayer {
}
}
private
async
runGame
()
{
private
async
runGame
()
{
await
this
.
loadResource
()
await
this
.
loadResource
();
// RES.getResAsync('bg_mp3');
RES
.
getResAsync
(
`nums_png`
);
RES
.
getResAsync
(
`nums_png`
);
RES
.
getResAsync
(
`nums_fnt`
);
RES
.
getResAsync
(
`nums_fnt`
);
if
(
!
window
[
'development'
])
if
(
!
window
[
'development'
])
...
...
egret/resource/skins/Share2Skin.exml
View file @
9ed62a9b
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"Share2Skin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Skin
class=
"Share2Skin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<w:Config
id=
"16cd6d4c8ff"
/>
<e:Rect
width=
"750"
height=
"1624"
fillAlpha=
"0.7"
/>
<e:Rect
width=
"750"
height=
"1624"
fillAlpha=
"0.7"
/>
<e:Group
id=
"pic"
x=
"86"
y=
"46"
>
<e:Group
id=
"pic"
x=
"86"
y=
"46"
>
<e:Image
source=
"share3_jpg"
y=
"0"
x=
"0"
/>
<e:Image
source=
"share3_jpg"
y=
"0"
x=
"0"
/>
...
...
egret/src/mapScene/MapScene.ts
View file @
9ed62a9b
...
@@ -291,7 +291,7 @@ export default class MapScene extends Scene {
...
@@ -291,7 +291,7 @@ export default class MapScene extends Scene {
if
(
s
)
{
if
(
s
)
{
const
data
=
DataManager
.
ins
.
getData
(
'getPlugOrderStatus'
);
const
data
=
DataManager
.
ins
.
getData
(
'getPlugOrderStatus'
);
//区分奖品
//区分奖品
if
(
data
.
lottery
)
{
if
(
data
.
lottery
&&
data
.
lottery
.
type
!=
'thanks'
)
{
PanelCtrl
.
instance
.
show
(
'box'
);
PanelCtrl
.
instance
.
show
(
'box'
);
}
else
{
}
else
{
showToast
(
'您与奖品擦肩而过~'
);
showToast
(
'您与奖品擦肩而过~'
);
...
...
egret/src/panels/BloodPanel.ts
View file @
9ed62a9b
...
@@ -5,6 +5,7 @@ import SceneCtrl from "../../libs/new_wx/ctrls/sceneCtrl";
...
@@ -5,6 +5,7 @@ import SceneCtrl from "../../libs/new_wx/ctrls/sceneCtrl";
import
{
showToast
}
from
"../../libs/new_wx/ctrls/toastCtrl"
;
import
{
showToast
}
from
"../../libs/new_wx/ctrls/toastCtrl"
;
import
{
getlogItem
}
from
"../Main"
;
import
{
getlogItem
}
from
"../Main"
;
import
wait
from
"../../libs/new_tc/wait"
;
import
wait
from
"../../libs/new_tc/wait"
;
import
{
showShare
}
from
"../shareCtrl"
;
export
default
class
BloodPanel
extends
Panel
{
export
default
class
BloodPanel
extends
Panel
{
start
(
data
)
{
start
(
data
)
{
...
@@ -51,6 +52,7 @@ this['price1Txt'].text = window['price1']
...
@@ -51,6 +52,7 @@ this['price1Txt'].text = window['price1']
}
}
onTapInvite
()
{
onTapInvite
()
{
showShare
();
NetManager
.
ins
.
clickLog
(
getlogItem
(
4
));
NetManager
.
ins
.
clickLog
(
getlogItem
(
4
));
const
data
=
getHomeData
();
const
data
=
getHomeData
();
if
(
data
.
askForEnergy
)
{
if
(
data
.
askForEnergy
)
{
...
...
egret/src/shareCtrl.ts
View file @
9ed62a9b
...
@@ -14,10 +14,12 @@ class Share2 extends ComponentBase {
...
@@ -14,10 +14,12 @@ class Share2 extends ComponentBase {
this
[
'lvTxt'
].
text
=
data
.
levels
.
length
;
this
[
'lvTxt'
].
text
=
data
.
levels
.
length
;
this
[
'btn1'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
[
'btn1'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
.
getFunc
(
'btn1'
);
this
.
getFunc
(
'btn1'
);
hideShare
();
},
this
);
},
this
);
this
[
'btn2'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
[
'btn2'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
.
getFunc
(
'btn2'
);
this
.
getFunc
(
'btn2'
);
hideShare
();
},
this
);
},
this
);
}
}
...
...
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