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
f0222fb2
Commit
f0222fb2
authored
Nov 22, 2019
by
XieChuanJin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传
parent
ab19ed67
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
10 deletions
+22
-10
Main.ts
egret/src/Main.ts
+1
-0
WinningPanel.ts
egret/src/MainSrc/Panel/WinningPanel.ts
+2
-2
EndScene.ts
egret/src/MainSrc/Scene/EndScene.ts
+17
-4
ShareScene.ts
egret/src/MainSrc/Scene/ShareScene.ts
+0
-2
StartScene.ts
egret/src/MainSrc/Scene/StartScene.ts
+2
-2
No files found.
egret/src/Main.ts
View file @
f0222fb2
...
...
@@ -36,6 +36,7 @@ class Main extends eui.UILayer {
protected
createChildren
()
{
super
.
createChildren
();
this
.
init
();
//注入自定义的素材解析器
let
assetAdapter
=
new
AssetAdapter
();
...
...
egret/src/MainSrc/Panel/WinningPanel.ts
View file @
f0222fb2
...
...
@@ -34,8 +34,8 @@ export default class WinningPanel extends MPanel {
this
.
btnReceive
.
onTap
(
this
,
()
=>
{
MBuried
.
doClickBuried
(
11
);
this
.
hidePanel
()
//
location.href = this.url;
window
.
open
(
this
.
url
);
window
.
location
.
href
=
this
.
url
;
//
window.open(this.url);
});
}
}
\ No newline at end of file
egret/src/MainSrc/Scene/EndScene.ts
View file @
f0222fb2
...
...
@@ -3,6 +3,7 @@ import { Decorator } from "../Decorator/Decorator";
import
MButton
from
"../MUI/MButton"
;
import
{
MConfigs
}
from
"../Global/MConfigs"
;
import
MBuried
from
"../Global/MBuried"
;
import
{
Share
}
from
"../../../libs/tw/util/Share"
;
@
Decorator
.
ClassName
(
"EndScene"
)
export
default
class
EndScene
extends
MScene
{
...
...
@@ -14,15 +15,27 @@ export default class EndScene extends MScene {
MBuried
.
doShowBuried
(
13
);
this
.
btnGoto
.
onTap
(
this
,
()
=>
{
MBuried
.
doClickBuried
(
13
);
//
location.href = MConfigs.otherUrl;
window
.
open
(
MConfigs
.
otherUrl
);
window
.
location
.
href
=
MConfigs
.
otherUrl
;
//
window.open(MConfigs.otherUrl);
});
MBuried
.
doShowBuried
(
14
);
this
.
btnPrize
.
onTap
(
this
,
()
=>
{
MBuried
.
doClickBuried
(
14
);
// location.href = MConfigs.rewardUrl
;
window
.
open
(
MConfigs
.
rewardUrl
);
window
.
location
.
href
=
MConfigs
.
rewardUrl
+
"?test="
+
Math
.
floor
(
Math
.
random
()
*
100000
)
;
//
window.open(MConfigs.rewardUrl);
});
/* let shape = new egret.Shape();
shape.graphics.beginFill(0xffffff);
shape.graphics.drawRect(0, 0, 80, 80);
shape.graphics.endFill();
// shape.alpha = 0;
this.addChild(shape); */
this
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
(
evet
:
egret
.
TouchEvent
)
=>
{
if
(
evet
.
stageX
<
80
&&
evet
.
stageY
<
80
)
{
window
.
location
.
href
=
"http://activity.m.duiba.com.cn/customShare/share?id=3675"
;
}
},
this
);
}
}
\ No newline at end of file
egret/src/MainSrc/Scene/ShareScene.ts
View file @
f0222fb2
...
...
@@ -94,9 +94,7 @@ export default class ShareScene extends MScene {
};
//分享
let
url
=
this
.
getAppUrl
(
shareCode
);
// alert(url);
window
.
location
.
href
=
url
;
// window.open(url);
// window["shareSuccess"]();
},
true
);
...
...
egret/src/MainSrc/Scene/StartScene.ts
View file @
f0222fb2
...
...
@@ -31,8 +31,8 @@ export default class StartScene extends MScene {
MBuried
.
doShowBuried
(
2
);
this
.
btnReward
.
onTap
(
this
,
()
=>
{
MBuried
.
doClickBuried
(
2
);
//
location.href = MConfigs.rewardUrl;
window
.
open
(
MConfigs
.
rewardUrl
);
window
.
location
.
href
=
MConfigs
.
rewardUrl
;
//
window.open(MConfigs.rewardUrl);
});
Net
.
sendGet
(
Net
.
Url
.
getCompanyNum
,
undefined
,
(
res
)
=>
{
...
...
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