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
8cb2cf48
Commit
8cb2cf48
authored
Nov 13, 2018
by
王炽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发布后上传版本
parent
16f3aa31
Changes
27
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
74 additions
and
68 deletions
+74
-68
README.md
README.md
+1
-1
.DS_Store
egret/.DS_Store
+0
-0
egretProperties.json
egret/egretProperties.json
+2
-2
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+13
-5
project.json
egret/project.json
+1
-1
adopte_panel.tmproject
egret/resource/TextureMerger/adopte_panel.tmproject
+1
-0
album_panel.tmproject
egret/resource/TextureMerger/album_panel.tmproject
+1
-0
alert.tmproject
egret/resource/TextureMerger/alert.tmproject
+1
-0
alert_3.tmproject
egret/resource/TextureMerger/alert_3.tmproject
+0
-1
earnGold_panel.tmproject
egret/resource/TextureMerger/earnGold_panel.tmproject
+1
-0
guide_panel.tmproject
egret/resource/TextureMerger/guide_panel.tmproject
+1
-0
loading.tmproject
egret/resource/TextureMerger/loading.tmproject
+1
-0
main_scene.tmproject
egret/resource/TextureMerger/main_scene.tmproject
+1
-0
myGoldCoin_panel.tmproject
egret/resource/TextureMerger/myGoldCoin_panel.tmproject
+1
-0
playScene_1.tmproject
egret/resource/TextureMerger/playScene_1.tmproject
+0
-1
prop_panel.tmproject
egret/resource/TextureMerger/prop_panel.tmproject
+1
-0
reward_panel.tmproject
egret/resource/TextureMerger/reward_panel.tmproject
+1
-0
rule_panel.tmproject
egret/resource/TextureMerger/rule_panel.tmproject
+1
-0
share_panel.tmproject
egret/resource/TextureMerger/share_panel.tmproject
+1
-0
signIn_panel.tmproject
egret/resource/TextureMerger/signIn_panel.tmproject
+1
-0
tour_panel.tmproject
egret/resource/TextureMerger/tour_panel.tmproject
+1
-0
default.thm.json
egret/resource/default.thm.json
+26
-26
myplugin.ts
egret/scripts/myplugin.ts
+0
-20
panelCtrl.ts
egret/src/ctrls/panelCtrl.ts
+1
-1
Loading.ts
egret/src/loading/Loading.ts
+2
-1
SignInSceneSkin.ts
egret/src/signInPanel/SignInSceneSkin.ts
+1
-1
Panel.ts
egret/src/views/Panel.ts
+13
-8
No files found.
README.md
View file @
8cb2cf48
...
@@ -29,7 +29,7 @@ npm run buildExml
...
@@ -29,7 +29,7 @@ npm run buildExml
```
```
之后只需要更新皮肤中的
`default.thm.js`
文件的版本号
之后只需要更新皮肤中的
`default.thm.js`
文件的版本号
```
js
```
js
<
script
crossorigin
=
"anonymous"
src
=
"//yun.duiba.com.cn/db_games/activity/demo/1537172754/r
esource/default.thm.js
"
><
/script
>
<
script
crossorigin
=
"anonymous"
src
=
"//yun.duiba.com.cn/db_games/activity/demo/1537172754/r"
><
/script
>
```
```
## demo
## demo
...
...
egret/.DS_Store
View file @
8cb2cf48
No preview for this file type
egret/egretProperties.json
View file @
8cb2cf48
{
{
"engineVersion"
:
"5.2.
10
"
,
"engineVersion"
:
"5.2.
7
"
,
"compilerVersion"
:
"5.2.
10
"
,
"compilerVersion"
:
"5.2.
7
"
,
"template"
:
{},
"template"
:
{},
"target"
:
{
"target"
:
{
"current"
:
"web"
"current"
:
"web"
...
...
egret/libs/tw/manager/NetManager.ts
View file @
8cb2cf48
...
@@ -943,16 +943,24 @@ export class NetManager extends ABNetManager {
...
@@ -943,16 +943,24 @@ export class NetManager extends ABNetManager {
* @param {number} signActivityId 签到活动ID
* @param {number} signActivityId 签到活动ID
* @param {number} activityId 插件活动ID,用于加抽奖次数,不传则使用签到身上配置的插件活动ID,否则不加抽奖次数
* @param {number} activityId 插件活动ID,用于加抽奖次数,不传则使用签到身上配置的插件活动ID,否则不加抽奖次数
*/
*/
public
doSign
(
callback
:
Function
,
signActivityId
:
number
,
activityId
:
number
):
void
{
public
doSign
(
callback
:
Function
,
signActivityId
:
number
,
activityId
?:
number
):
void
{
var
data
:
any
;
if
(
activityId
){
data
=
{
id
:
signActivityId
,
activityId
:
activityId
};
}
else
{
data
=
{
id
:
signActivityId
};
}
const
net
:
INetData
=
{
const
net
:
INetData
=
{
name
:
NetName
.
SIGN_DO_SIGN
,
name
:
NetName
.
SIGN_DO_SIGN
,
uri
:
'/signactivity/doSign'
,
uri
:
'/signactivity/doSign'
,
type
:
'post'
,
type
:
'post'
,
dataType
:
'json'
,
dataType
:
'json'
,
param
:
{
param
:
data
,
id
:
signActivityId
,
activityId
:
activityId
},
callback
:
callback
callback
:
callback
};
};
this
.
send
(
net
);
this
.
send
(
net
);
...
...
egret/project.json
View file @
8cb2cf48
{
{
"type"
:
"activity"
,
"type"
:
"activity"
,
"name"
:
"
demo
"
"name"
:
"
fishing
"
}
}
\ No newline at end of file
egret/resource/TextureMerger/adopte_panel.tmproject
0 → 100644
View file @
8cb2cf48
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"adopte_panel","version":5,"files":["../assets/adopte_panel/开始旅程按钮.png","../assets/adopte_panel/领养界面bg.png","../assets/adopte_panel/你觉得我叫什么好?.png"]}
\ No newline at end of file
egret/resource/TextureMerger/album_panel.tmproject
0 → 100644
View file @
8cb2cf48
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"album_panel","version":5,"files":["../assets/album_panel/album_bg.png","../assets/album_panel/album_close.png","../assets/album_panel/相片详情关闭.png","../assets/album_panel/单个相片背景框.png","../assets/album_panel/相片背景.png","../assets/album_panel/相片别针.png","../assets/album_panel/相片印章.png"]}
\ No newline at end of file
egret/resource/TextureMerger/alert.tmproject
0 → 100644
View file @
8cb2cf48
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"alert","version":5,"files":["../assets/alert/Bitmap-4.png","../assets/alert/Bitmap-2.png","../assets/alert/Bitmap-1.png"]}
\ No newline at end of file
egret/resource/TextureMerger/alert_3.tmproject
deleted
100644 → 0
View file @
16f3aa31
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"alert_3","version":5,"files":["../assets/alert/Bitmap-4.png","../assets/alert/Bitmap-2.png","../assets/alert/Bitmap-1.png"]}
\ No newline at end of file
egret/resource/TextureMerger/earnGold_panel.tmproject
0 → 100644
View file @
8cb2cf48
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"earnGold_panel","version":5,"files":["../assets/earnGold_panel/赚金币_分享.png","../assets/earnGold_panel/赚金币_签到.png","../assets/earnGold_panel/赚金币_下单返金币.png","../assets/earnGold_panel/赚金币_bg.png"]}
\ No newline at end of file
egret/resource/TextureMerger/guide_panel.tmproject
0 → 100644
View file @
8cb2cf48
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"guide_panel","version":5,"files":["../assets/guide_panel/guideHand.png","../assets/guide_panel/出游提示.png","../assets/guide_panel/签到提示.png","../assets/guide_panel/使用道具提示.png","../assets/guide_panel/收取食物提示.png","../assets/guide_panel/引导提示小海豚.png","../assets/guide_panel/赚金币提示.png"]}
\ No newline at end of file
egret/resource/TextureMerger/loading
_2
.tmproject
→
egret/resource/TextureMerger/loading.tmproject
View file @
8cb2cf48
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"loading_2","version":5,"files":["../assets/loading/bg.png","../assets/loading/progress.png"]}
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"loading","version":5,"files":["../assets/loading/bg.png","../assets/loading/progress.png"]}
\ No newline at end of file
\ No newline at end of file
egret/resource/TextureMerger/main_scene.tmproject
0 → 100644
View file @
8cb2cf48
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"main_scene","version":5,"files":["../assets/main_scene/喂食1.png","../assets/main_scene/小海豚png.png","../assets/main_scene/道具.png","../assets/main_scene/赚金币.png","../assets/main_scene/出游.png","../assets/main_scene/小宠信息.png","../assets/main_scene/签到.png","../assets/main_scene/秘籍.png","../assets/main_scene/我的金币.png","../assets/main_scene/喂食.png","../assets/main_scene/lvBg.png","../assets/main_scene/泡泡.png","../assets/main_scene/mscrollBg.png","../assets/main_scene/mscrollBar.png","../assets/main_scene/fengche.png","../assets/main_scene/shuipao.png","../assets/main_scene/boat.png","../assets/main_scene/circle.png","../assets/adopte_panel/你觉得我叫什么好?.png","../assets/adopte_panel/开始旅程按钮.png","../assets/adopte_panel/领养界面bg.png","../assets/album_panel/album_bg.png","../assets/album_panel/album_close.png","../assets/album_panel/相片详情关闭.png","../assets/main_scene/timeTickBarBg.png","../assets/main_scene/petState.png","../assets/mc/sDolphin1.png","../assets/main_scene/timeBarTemp.png","../assets/signIn_scene/awardState.png","../assets/signIn_scene/coinImg.png","../assets/signIn_scene/dayBg1.png","../assets/signIn_scene/dayBg2.png","../assets/signIn_scene/getAwardBtn.png","../assets/signIn_scene/getedBtn.png","../assets/signIn_scene/signInBg.png","../assets/signIn_scene/sinCloseBtn.png","../assets/myGoldCoin_panel/金币icon.png","../assets/prop_panel/closeBtn_prop.png","../assets/prop_panel/bugBtn_prop.png","../assets/prop_panel/BuyPanelBg.png","../assets/prop_panel/bugBtn_prop0.png","../assets/prop_panel/itemBg_prop.png","../assets/prop_panel/jiasuka.png","../assets/prop_panel/txt_prop.png","../assets/prop_panel/propPanelBg.png","../assets/prop_panel/buyPanelBg.png","../assets/prop_panel/downImg.png","../assets/prop_panel/upImg.png","../assets/prop_panel/uppng.png","../assets/main_scene/txt0.png","../assets/main_scene/txt1.png","../assets/main_scene/txt2.png","../assets/main_scene/txt3.png","../assets/prop_panel/skipBtn.png","../assets/rule/closerule.png","../assets/main_scene/toastBg.png"]}
\ No newline at end of file
egret/resource/TextureMerger/myGoldCoin_panel.tmproject
0 → 100644
View file @
8cb2cf48
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"myGoldCoin_panel","version":5,"files":["../assets/myGoldCoin_panel/我的金币_背景蒙层.png","../assets/myGoldCoin_panel/我的金币_关闭按钮.png","../assets/myGoldCoin_panel/我的金币_线.png","../assets/myGoldCoin_panel/我的金币_bg.png","../assets/earnGold_panel/赚金币_bg.png","../assets/myGoldCoin_panel/金币icon.png"]}
\ No newline at end of file
egret/resource/TextureMerger/playScene_1.tmproject
deleted
100644 → 0
View file @
16f3aa31
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"playScene_1","version":5,"files":["../assets/playScene/wheelBg2.png","../assets/playScene/wating.png","../assets/playScene/startBtnBg.png","../assets/playScene/sideLightL.png","../assets/playScene/sideLightD.png","../assets/playScene/ruleBtn.png","../assets/playScene/redPacket.png","../assets/playScene/outShell.png","../assets/playScene/myCreditsBg.png","../assets/playScene/multiple3.png","../assets/playScene/multiple.png","../assets/playScene/heartB.png","../assets/playScene/go.png","../assets/playScene/gift.png","../assets/playScene/finger.png","../assets/playScene/earnPanel.png","../assets/playScene/coinIcon.png","../assets/playScene/coinf8.png","../assets/playScene/coinf7.png","../assets/playScene/coinf6.png","../assets/playScene/coinf5.png","../assets/playScene/coinf4.png","../assets/playScene/coinf3.png","../assets/playScene/coinf2.png","../assets/playScene/coinf1.png","../assets/playScene/circleLight2.png","../assets/playScene/circleLight1.png","../assets/playScene/+.png","../assets/playScene/-_.png"]}
\ No newline at end of file
egret/resource/TextureMerger/prop_panel.tmproject
0 → 100644
View file @
8cb2cf48
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"prop_panel","version":5,"files":["../assets/prop_panel/closeBtn_prop.png","../assets/prop_panel/bugBtn_prop.png","../assets/prop_panel/BuyPanelBg.png","../assets/prop_panel/bugBtn_prop0.png","../assets/prop_panel/itemBg_prop.png","../assets/prop_panel/jiasuka.png","../assets/prop_panel/txt_prop.png","../assets/prop_panel/propPanelBg.png","../assets/prop_panel/buyPanelBg.png","../assets/prop_panel/downImg.png","../assets/prop_panel/upImg.png","../assets/prop_panel/uppng.png"]}
\ No newline at end of file
egret/resource/TextureMerger/reward_panel.tmproject
0 → 100644
View file @
8cb2cf48
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"reward_panel","version":5,"files":["../assets/reward_panel/奖励背景图.png","../assets/reward_panel/明信片.png","../assets/reward_panel/去查看按钮.png"]}
\ No newline at end of file
egret/resource/TextureMerger/rule_
4
.tmproject
→
egret/resource/TextureMerger/rule_
panel
.tmproject
View file @
8cb2cf48
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"rule_4","version":5,"files":["../assets/rule/ruleBg.png","../assets/rule/X.png"]}
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"rule_panel","version":5,"files":["../assets/rule/closerule.png"]}
\ No newline at end of file
\ No newline at end of file
egret/resource/TextureMerger/
msg_0
.tmproject
→
egret/resource/TextureMerger/
share_panel
.tmproject
View file @
8cb2cf48
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"msg_0","version":5,"files":["../assets/msg/msgBg.png","../assets/msg/x.png","../assets/msg/sureBtn.png"]}
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"share_panel","version":5,"files":["../assets/share_panel/分享引导.png"]}
\ No newline at end of file
\ No newline at end of file
egret/resource/TextureMerger/signIn_panel.tmproject
0 → 100644
View file @
8cb2cf48
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"signIn_panel","version":5,"files":["../assets/signIn_scene/awardState.png","../assets/signIn_scene/coinImg.png","../assets/signIn_scene/dayBg1.png","../assets/signIn_scene/dayBg2.png","../assets/signIn_scene/getAwardBtn.png","../assets/signIn_scene/getedBtn.png","../assets/signIn_scene/signInBg.png","../assets/signIn_scene/sinCloseBtn.png"]}
\ No newline at end of file
egret/resource/TextureMerger/tour_panel.tmproject
0 → 100644
View file @
8cb2cf48
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"tour_panel","version":5,"files":["../assets/tour_panel/tab_未选中.png","../assets/tour_panel/tab_选中.png","../assets/tour_panel/tourBg1.png","../assets/tour_panel/tourBg2.png","../assets/tour_panel/tourBg3.png","../assets/tour_panel/出游按钮.png","../assets/tour_panel/出游Bg.png","../assets/tour_panel/地图背景.png","../assets/tour_panel/立牌.png","../assets/tour_panel/欧洲地图未解锁.png","../assets/tour_panel/地点锁.png","../assets/tour_panel/地图锁.png","../assets/tour_panel/相册按钮.png","../assets/tour_panel/亚洲地图未解锁.png","../assets/tour_panel/出游确认按钮.png","../assets/tour_panel/出游确认框Bg.png"]}
\ No newline at end of file
egret/resource/default.thm.json
View file @
8cb2cf48
{
{
"skins"
:
{},
"skins"
:
{},
"autoGenerateExmlsList"
:
true
,
"autoGenerateExmlsList"
:
true
,
"exmls"
:
[
"exmls"
:
[
"resource/skins/AdopteSkin.exml"
,
"resource/skins/AdopteSkin.exml"
,
"resource/skins/AlbumInfoSkin.exml"
,
"resource/skins/AlbumInfoSkin.exml"
,
"resource/skins/AlbumItemSkin.exml"
,
"resource/skins/AlbumItemSkin.exml"
,
"resource/skins/AlbumSkin.exml"
,
"resource/skins/AlbumSkin.exml"
,
"resource/skins/AlertSkin.exml"
,
"resource/skins/AlertSkin.exml"
,
"resource/skins/component/FoodComponent
.exml"
,
"resource/skins/EarnGoldCoinSkin
.exml"
,
"resource/skins/EarnGoldCoin
Skin.exml"
,
"resource/skins/Guide
Skin.exml"
,
"resource/skins/Guide
Skin.exml"
,
"resource/skins/Loading
Skin.exml"
,
"resource/skins/Loading
Skin.exml"
,
"resource/skins/MainScene
Skin.exml"
,
"resource/skins/ui/ProgressBar
Skin.exml"
,
"resource/skins/Msg
Skin.exml"
,
"resource/skins/ui/TimeProgressBar
Skin.exml"
,
"resource/skins/MyCoinLogItem
Skin.exml"
,
"resource/skins/MainScene
Skin.exml"
,
"resource/skins/MyGoldCoin
Skin.exml"
,
"resource/skins/Msg
Skin.exml"
,
"resource/skins/PropPanel
Skin.exml"
,
"resource/skins/MyCoinLogItem
Skin.exml"
,
"resource/skins/Reward
Skin.exml"
,
"resource/skins/MyGoldCoin
Skin.exml"
,
"resource/skins/Rule
Skin.exml"
,
"resource/skins/PropPanel
Skin.exml"
,
"resource/skins/Share
Skin.exml"
,
"resource/skins/Reward
Skin.exml"
,
"resource/skins/SignInScene
Skin.exml"
,
"resource/skins/Rule
Skin.exml"
,
"resource/skins/Tour
Skin.exml"
,
"resource/skins/ShareSkin
.exml"
,
"resource/skins/component/FoodComponent
.exml"
,
"resource/skins/SignInScene
Skin.exml"
,
"resource/skins/ui/ProgressBar
Skin.exml"
,
"resource/skins/Tou
rSkin.exml"
"resource/skins/ui/TimeProgressBa
rSkin.exml"
],
],
"path"
:
"resource/default.thm.json"
"path"
:
"resource/default.thm.json"
}
}
\ No newline at end of file
egret/scripts/myplugin.ts
deleted
100644 → 0
View file @
16f3aa31
/**
* 示例自定义插件,您可以查阅 http://developer.egret.com/cn/github/egret-docs/Engine2D/projectConfig/cmdExtensionPlugin/index.html
* 了解如何开发一个自定义插件
*/
export
class
CustomPlugin
implements
plugins
.
Command
{
constructor
()
{
}
async
onFile
(
file
:
plugins
.
File
)
{
// console.log(file.relative)
return
file
;
}
async
onFinish
(
commandContext
:
plugins
.
CommandContext
)
{
// console.log(commandContext.projectRoot)
// const path = require('path');
// commandContext.createFile('test.txt', new Buffer('123'));
}
}
\ No newline at end of file
egret/src/ctrls/panelCtrl.ts
View file @
8cb2cf48
...
@@ -22,7 +22,7 @@ export default class PanelCtrl {
...
@@ -22,7 +22,7 @@ export default class PanelCtrl {
this
.
_current
=
panel
;
this
.
_current
=
panel
;
// panel.setSkinName();
// panel.setSkinName();
// panel.setMask();
// panel.setMask();
panel
.
setShowAct
();
//
panel.setShowAct();
// panel.start(data);
// panel.start(data);
...
...
egret/src/loading/Loading.ts
View file @
8cb2cf48
...
@@ -3,6 +3,7 @@ import ComponentBase from "../components/ComponentBase";
...
@@ -3,6 +3,7 @@ import ComponentBase from "../components/ComponentBase";
export
default
class
Loading
extends
ComponentBase
{
export
default
class
Loading
extends
ComponentBase
{
private
static
_parent
:
eui
.
UILayer
;
private
static
_parent
:
eui
.
UILayer
;
private
static
_instance
:
Loading
;
private
static
_instance
:
Loading
;
public
waitImg
:
eui
.
Image
;
static
get
instace
():
Loading
{
static
get
instace
():
Loading
{
return
Loading
.
_instance
||
(
Loading
.
_instance
=
new
Loading
());
return
Loading
.
_instance
||
(
Loading
.
_instance
=
new
Loading
());
}
}
...
@@ -45,7 +46,7 @@ export default class Loading extends ComponentBase {
...
@@ -45,7 +46,7 @@ export default class Loading extends ComponentBase {
}
}
onEnterFrame
()
{
onEnterFrame
()
{
this
.
data
.
speed
+=
5
;
this
.
waitImg
.
rotation
+=
5
;
}
}
public
get
skinKey
()
{
return
'Loading'
}
public
get
skinKey
()
{
return
'Loading'
}
...
...
egret/src/signInPanel/SignInSceneSkin.ts
View file @
8cb2cf48
...
@@ -54,7 +54,7 @@ export class SignInScene extends Panel{
...
@@ -54,7 +54,7 @@ export class SignInScene extends Panel{
// DataManager.ins.signInfoData.signInfoVO.todaySigned = true;
// DataManager.ins.signInfoData.signInfoVO.todaySigned = true;
DataManager
.
ins
.
signInfoData
.
signInfoVO
.
rewardMap
//奖品列表
DataManager
.
ins
.
signInfoData
.
signInfoVO
.
rewardMap
//奖品列表
}.
bind
(
this
),
555555
,
66666
);
}.
bind
(
this
),
window
[
'signActivityId'
]
);
//点击埋点,确认签到
//点击埋点,确认签到
const
dpm
=
Buried
.
connectDpm
(
110
,
4
,
1
);
const
dpm
=
Buried
.
connectDpm
(
110
,
4
,
1
);
const
dcm
=
Buried
.
connectDcm
(
230
,
window
[
'skinID'
],
0
);
const
dcm
=
Buried
.
connectDcm
(
230
,
window
[
'skinID'
],
0
);
...
...
egret/src/views/Panel.ts
View file @
8cb2cf48
...
@@ -7,11 +7,6 @@ export default class Panel extends ComponentBase {
...
@@ -7,11 +7,6 @@ export default class Panel extends ComponentBase {
constructor
(
data
?,
hasMask
:
boolean
=
true
)
{
constructor
(
data
?,
hasMask
:
boolean
=
true
)
{
super
(
data
);
super
(
data
);
this
.
hasMask
=
hasMask
;
this
.
hasMask
=
hasMask
;
this
.
setMask
();
if
(
!
this
.
hasMask
){
this
.
pMask
.
alpha
=
0
;
}
}
}
/**
/**
...
@@ -26,15 +21,17 @@ export default class Panel extends ComponentBase {
...
@@ -26,15 +21,17 @@ export default class Panel extends ComponentBase {
this
.
pMask
.
graphics
.
drawRect
(
0
,
0
,
750
,
750
*
rate
);
this
.
pMask
.
graphics
.
drawRect
(
0
,
0
,
750
,
750
*
rate
);
this
.
pMask
.
graphics
.
endFill
();
this
.
pMask
.
graphics
.
endFill
();
this
.
addChildAt
(
this
.
pMask
,
0
);
this
.
addChildAt
(
this
.
pMask
,
0
);
this
.
pMask
.
touchEnabled
=
false
;
}
}
}
}
setShowAct
():
void
{
setShowAct
():
void
{
this
.
alpha
=
0
;
this
.
alpha
=
0
;
this
.
y
=
document
.
body
.
clientHeight
;
//
this.y = document.body.clientHeight;
this
.
scaleY
=
0
;
//
this.scaleY = 0;
egret
.
Tween
.
get
(
this
).
to
({
alpha
:
1
,
y
:
0
,
scaleY
:
1
},
300
);
egret
.
Tween
.
get
(
this
).
to
({
alpha
:
1
},
300
);
}
}
initEvents
()
{
initEvents
()
{
...
@@ -77,6 +74,14 @@ export default class Panel extends ComponentBase {
...
@@ -77,6 +74,14 @@ export default class Panel extends ComponentBase {
protected
onSkinComplete
()
{
protected
onSkinComplete
()
{
super
.
onSkinComplete
();
super
.
onSkinComplete
();
Loading
.
instace
.
hide
();
Loading
.
instace
.
hide
();
this
.
setMask
();
if
(
!
this
.
hasMask
){
this
.
pMask
.
alpha
=
0
;
}
this
.
setShowAct
();
}
}
protected
get
closeBtns
():
eui
.
Button
[]
{
return
[
this
[
'closeBtn'
]]
}
protected
get
closeBtns
():
eui
.
Button
[]
{
return
[
this
[
'closeBtn'
]]
}
...
...
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