Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaoleTuia
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
王剑峰
xiaoxiaoleTuia
Commits
a9470c30
Commit
a9470c30
authored
Mar 02, 2020
by
张华挺
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log
parent
f11a8fb1
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
150 additions
and
58 deletions
+150
-58
MainBase.ts
egret/libs/new_wx/MainBase.ts
+50
-0
PrizePanel.ts
egret/libs/new_wx/components/PrizePanel.ts
+2
-1
IExposureData.ts
egret/libs/tw/data/common/IExposureData.ts
+1
-0
Buried.ts
egret/libs/tw/util/Buried.ts
+4
-1
Main.ts
egret/src/Main.ts
+3
-2
inspireVideo.ts
egret/src/inspireVideo.ts
+2
-2
MainScene.ts
egret/src/mainScene/MainScene.ts
+16
-2
MapScene.ts
egret/src/mapScene/MapScene.ts
+2
-1
BoxPanel.ts
egret/src/panels/BoxPanel.ts
+2
-1
FailedPanel.ts
egret/src/panels/FailedPanel.ts
+2
-1
SignPanel.ts
egret/src/panels/SignPanel.ts
+10
-3
SignPrizePanel.ts
egret/src/panels/SignPrizePanel.ts
+46
-37
StartPanel.ts
egret/src/panels/StartPanel.ts
+4
-3
StartPanelNew.ts
egret/src/panels/StartPanelNew.ts
+4
-3
VideoBuyPanel.ts
egret/src/panels/VideoBuyPanel.ts
+2
-1
No files found.
egret/libs/new_wx/MainBase.ts
View file @
a9470c30
...
@@ -10,6 +10,7 @@ import Buy1Panel from "../../src/panels/Buy1Panel";
...
@@ -10,6 +10,7 @@ import Buy1Panel from "../../src/panels/Buy1Panel";
import
Buy2Panel
from
"../../src/panels/Buy2Panel"
;
import
Buy2Panel
from
"../../src/panels/Buy2Panel"
;
import
Buy3Panel
from
"../../src/panels/Buy3Panel"
;
import
Buy3Panel
from
"../../src/panels/Buy3Panel"
;
import
FailedPanel
from
"../../src/panels/FailedPanel"
;
import
FailedPanel
from
"../../src/panels/FailedPanel"
;
import
{
getlogItem
}
from
"../../src/Main"
;
import
GoldPanel
from
"../../src/panels/GoldPanel"
;
import
GoldPanel
from
"../../src/panels/GoldPanel"
;
import
Prize2Panel
from
"../../src/panels/Prize2Panel"
;
import
Prize2Panel
from
"../../src/panels/Prize2Panel"
;
import
QuitPanel
from
"../../src/panels/QuitPanel"
;
import
QuitPanel
from
"../../src/panels/QuitPanel"
;
...
@@ -58,6 +59,8 @@ export default class MainBase extends eui.UILayer {
...
@@ -58,6 +59,8 @@ export default class MainBase extends eui.UILayer {
super
();
super
();
// 等待开屏广告结束之后再放背景音乐
// 等待开屏广告结束之后再放背景音乐
stopGamebg
()
stopGamebg
()
// 注册和客户端通信的方法
this
.
initNativeEvent
()
Loading
.
instace
.
loadImage
();
Loading
.
instace
.
loadImage
();
DataManager
.
ins
.
customCfgData
=
window
[
'CFG'
];
DataManager
.
ins
.
customCfgData
=
window
[
'CFG'
];
this
.
getData
();
this
.
getData
();
...
@@ -120,6 +123,53 @@ export default class MainBase extends eui.UILayer {
...
@@ -120,6 +123,53 @@ export default class MainBase extends eui.UILayer {
}
}
protected
initNativeEvent
()
{
// 开屏广告结束后的回调
window
[
"openFinished"
]
=
()
=>
{
playGameBg
()
}
// 首页banner点击埋点
window
[
"IndexBannerClickLog"
]
=
()
=>
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
15
))
}
// 首页banner展示埋点
window
[
"IndexBannerShowLog"
]
=
()
=>
{
NetManager
.
ins
.
showLog
(
getlogItem
(
15
))
}
// 游戏页面banner点击埋点
window
[
"GameBannerClickLog"
]
=
()
=>
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
16
))
}
// 游戏页面banner展示埋点
window
[
"GameBannerShowLog"
]
=
()
=>
{
NetManager
.
ins
.
showLog
(
getlogItem
(
16
))
}
// 激励视频成功加载
window
[
"TTVideoLoadSucc"
]
=
()
=>
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
21
,
2
))
}
// 激励视频成功曝光
window
[
"TTVideoShow"
]
=
()
=>
{
NetManager
.
ins
.
showLog
(
getlogItem
(
22
,
2
))
}
// 激励视频广告点击
window
[
"TTVideoClick"
]
=
()
=>
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
23
,
2
))
}
// 激励视频关闭点击
window
[
"TTVideoClose"
]
=
()
=>
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
24
,
2
))
}
// 激励视频endcard曝光
window
[
"TTVideoEndcardShow"
]
=
()
=>
{
NetManager
.
ins
.
showLog
(
getlogItem
(
25
,
2
))
}
// 激励视频endcard点击
window
[
"TTVideoEndcardClick"
]
=
()
=>
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
26
,
2
))
}
}
protected
createChildren
():
void
{
protected
createChildren
():
void
{
super
.
createChildren
();
super
.
createChildren
();
egret
.
lifecycle
.
addLifecycleListener
((
context
)
=>
{
egret
.
lifecycle
.
addLifecycleListener
((
context
)
=>
{
...
...
egret/libs/new_wx/components/PrizePanel.ts
View file @
a9470c30
...
@@ -7,6 +7,7 @@ import { DataManager } from "../../tw/manager/DataManager";
...
@@ -7,6 +7,7 @@ import { DataManager } from "../../tw/manager/DataManager";
import
{
NetManager
}
from
"../../tw/manager/NetManager"
;
import
{
NetManager
}
from
"../../tw/manager/NetManager"
;
import
Panel
from
"./Panel"
;
import
Panel
from
"./Panel"
;
import
{
handleVideo
}
from
"../../../src/myVideo/videoCtrl"
;
import
{
handleVideo
}
from
"../../../src/myVideo/videoCtrl"
;
import
handleInspireVideo
from
"../../../src/inspireVideo"
;
import
Loading
from
"./Loading"
;
import
Loading
from
"./Loading"
;
import
{
showToast
}
from
"../ctrls/toastCtrl"
;
import
{
showToast
}
from
"../ctrls/toastCtrl"
;
export
default
class
PrizePanel
extends
Panel
{
export
default
class
PrizePanel
extends
Panel
{
...
@@ -73,7 +74,7 @@ export default class PrizePanel extends Panel {
...
@@ -73,7 +74,7 @@ export default class PrizePanel extends Panel {
//新增看视频双倍
//新增看视频双倍
this
[
"doubleBtn"
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
[
"doubleBtn"
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
6
))
NetManager
.
ins
.
clickLog
(
getlogItem
(
6
))
handleVideo
(
handle
Inspire
Video
(
(
s
)
=>
{
(
s
)
=>
{
if
(
s
)
{
if
(
s
)
{
//居中
//居中
...
...
egret/libs/tw/data/common/IExposureData.ts
View file @
a9470c30
...
@@ -9,6 +9,7 @@ export interface IExposureData {
...
@@ -9,6 +9,7 @@ export interface IExposureData {
appId
:
number
;
appId
:
number
;
consumerId
:
number
;
consumerId
:
number
;
dcm
:
string
;
dcm
:
string
;
dom
?:
string
;
domain
:
string
;
domain
:
string
;
dpm
:
string
;
dpm
:
string
;
ip
?:
string
;
ip
?:
string
;
...
...
egret/libs/tw/util/Buried.ts
View file @
a9470c30
...
@@ -23,7 +23,7 @@ export class Buried {
...
@@ -23,7 +23,7 @@ export class Buried {
* @param {string} embedDomain 埋点域名
* @param {string} embedDomain 埋点域名
* @returns {{dpm: string; consumerId: number; domain: string; appId: number}}
* @returns {{dpm: string; consumerId: number; domain: string; appId: number}}
*/
*/
public
static
createExposure
(
dpm
:
string
,
dcm
:
string
,
embedDomain
=
'//embedlog.duiba.com.cn'
):
IExposureData
{
public
static
createExposure
(
dpm
:
string
,
dcm
:
string
,
embedDomain
=
'//embedlog.duiba.com.cn'
,
dom
:
string
):
IExposureData
{
const
exposure
:
IExposureData
=
{
const
exposure
:
IExposureData
=
{
dpm
:
dpm
,
dpm
:
dpm
,
dcm
:
dcm
,
dcm
:
dcm
,
...
@@ -31,6 +31,9 @@ export class Buried {
...
@@ -31,6 +31,9 @@ export class Buried {
appId
:
Buried
.
appId
,
appId
:
Buried
.
appId
,
domain
:
embedDomain
domain
:
embedDomain
};
};
if
(
dom
)
{
exposure
.
dom
=
dom
}
return
exposure
;
return
exposure
;
}
}
...
...
egret/src/Main.ts
View file @
a9470c30
...
@@ -4,10 +4,11 @@ import { Buried } from "../libs/tw/util/Buried";
...
@@ -4,10 +4,11 @@ import { Buried } from "../libs/tw/util/Buried";
class
Main
extends
MainBase
{
class
Main
extends
MainBase
{
}
}
export
const
getlogItem
=
(
i
)
=>
{
export
const
getlogItem
=
(
i
,
dom
=
null
)
=>
{
const
Dpm
=
Buried
.
connectDpm
(
110
,
i
,
1
);
// 点击埋点
const
Dpm
=
Buried
.
connectDpm
(
110
,
i
,
1
);
// 点击埋点
const
Dcm
=
Buried
.
connectDcm
(
202
,
0
,
0
);
// 曝光埋点
const
Dcm
=
Buried
.
connectDcm
(
202
,
0
,
0
);
// 曝光埋点
return
Buried
.
createExposure
(
Dpm
,
Dcm
);
if
(
dom
)
dom
=
`
${
dom
}
.0.0.0`
return
Buried
.
createExposure
(
Dpm
,
Dcm
,
null
,
dom
);
}
}
window
[
'Main'
]
=
Main
;
window
[
'Main'
]
=
Main
;
...
...
egret/src/inspireVideo.ts
View file @
a9470c30
...
@@ -4,10 +4,10 @@ export default function (
...
@@ -4,10 +4,10 @@ export default function (
returnCallback
:
(
s
:
boolean
)
=>
void
,
returnCallback
:
(
s
:
boolean
)
=>
void
,
completeCallback
:
Function
,
completeCallback
:
Function
,
slotid
:
string
,
slotid
:
string
,
type
:
number
,
type
=
2
,
isIndex
=
false
isIndex
=
false
)
{
)
{
window
[
"showTTAd"
](
isIndex
?
window
[
"TTIndexVideo"
]
:
window
[
"TTOtherVideo"
],
2
)
window
[
"showTTAd"
]
&&
window
[
"showTTAd"
]
(
isIndex
?
window
[
"TTIndexVideo"
]
:
window
[
"TTOtherVideo"
],
2
)
window
[
"lastInspireShow"
]
=
()
=>
{
window
[
"lastInspireShow"
]
=
()
=>
{
NetManager
.
ins
.
getTuiaAd
(()
=>
{
NetManager
.
ins
.
getTuiaAd
(()
=>
{
returnCallback
(
true
)
returnCallback
(
true
)
...
...
egret/src/mainScene/MainScene.ts
View file @
a9470c30
...
@@ -248,7 +248,8 @@ export default class MainScene extends Scene {
...
@@ -248,7 +248,8 @@ export default class MainScene extends Scene {
failStep
:
false
failStep
:
false
}
}
start
(
data
:
{
chapter
:
number
,
boom
:
number
,
hammer
:
number
,
step
:
number
,
videoProp
:
number
[]
})
{
start
(
data
:
{
chapter
:
number
,
boom
:
number
,
hammer
:
number
,
step
:
number
,
videoProp
:
number
[]
})
{
console
.
log
(
123
)
// 请求游戏内banner
window
[
"showTTAd"
]
&&
window
[
"showTTAd"
](
window
[
"TTIndexBanner"
],
1
)
super
.
start
();
super
.
start
();
//第几关
//第几关
this
.
chapter
=
(
data
&&
data
.
chapter
)
?
data
.
chapter
:
1
;
this
.
chapter
=
(
data
&&
data
.
chapter
)
?
data
.
chapter
:
1
;
...
@@ -932,7 +933,20 @@ export default class MainScene extends Scene {
...
@@ -932,7 +933,20 @@ export default class MainScene extends Scene {
}
}
}
}
onTap_quitBtn
()
{
onTap_quitBtn
()
{
const
configData
=
DataManager
.
ins
.
getData
(
'getConfig'
)
let
signConfigData
=
configData
.
data
.
filter
(
item
=>
item
.
id
===
5
)
if
(
signConfigData
.
length
)
{
if
(
signConfigData
[
0
].
index
===
0
)
{
window
[
"showTTAd"
]
&&
window
[
"showTTAd"
](
window
[
"TTPauseScreen"
],
3
)
}
else
if
(
signConfigData
[
0
].
index
===
1
)
{
window
[
"showTTAd"
]
&&
window
[
"showTTAd"
](
window
[
"TAPauseScreen"
],
3
)
}
wait
(
300
).
then
(()
=>
{
PanelCtrl
.
instance
.
show
(
"quit"
,
{
level
:
this
.
chapter
});
PanelCtrl
.
instance
.
show
(
"quit"
,
{
level
:
this
.
chapter
});
})
}
else
{
PanelCtrl
.
instance
.
show
(
"quit"
,
{
level
:
this
.
chapter
});
}
}
}
onTap_boomBtn
()
{
onTap_boomBtn
()
{
if
(
this
.
propBtnCon
.
boomBtn
.
propNumShow
.
count
<=
0
)
{
if
(
this
.
propBtnCon
.
boomBtn
.
propNumShow
.
count
<=
0
)
{
...
...
egret/src/mapScene/MapScene.ts
View file @
a9470c30
...
@@ -51,7 +51,8 @@ export default class MapScene extends Scene {
...
@@ -51,7 +51,8 @@ export default class MapScene extends Scene {
async
start
(
data
?)
{
async
start
(
data
?)
{
super
.
start
();
super
.
start
();
// 请求首页banner
window
[
"showTTAd"
]
&&
window
[
"showTTAd"
](
window
[
"TTIndexBanner"
],
1
)
//新增icon,还有埋点
//新增icon,还有埋点
this
[
"wuhanGroup"
].
visible
=
false
;
this
[
"wuhanGroup"
].
visible
=
false
;
this
[
"tuiaGroup"
].
visible
=
false
;
this
[
"tuiaGroup"
].
visible
=
false
;
...
...
egret/src/panels/BoxPanel.ts
View file @
a9470c30
...
@@ -5,6 +5,7 @@ import getHomeData from "../getHomeData";
...
@@ -5,6 +5,7 @@ import getHomeData from "../getHomeData";
import
{
getlogItem
}
from
"../Main"
;
import
{
getlogItem
}
from
"../Main"
;
import
AdSmallComp
from
"../mapScene/AdSmallComp"
;
import
AdSmallComp
from
"../mapScene/AdSmallComp"
;
import
{
handleVideo
}
from
"../myVideo/videoCtrl"
;
import
{
handleVideo
}
from
"../myVideo/videoCtrl"
;
import
handleInspireVideo
from
"../inspireVideo"
;
import
{
showToast
}
from
"../../libs/new_wx/ctrls/toastCtrl"
;
import
{
showToast
}
from
"../../libs/new_wx/ctrls/toastCtrl"
;
import
Loading
from
"../../libs/new_wx/components/Loading"
;
import
Loading
from
"../../libs/new_wx/components/Loading"
;
import
{
updateMainTimer
}
from
"../../libs/new_wx/MainBase"
;
import
{
updateMainTimer
}
from
"../../libs/new_wx/MainBase"
;
...
@@ -40,7 +41,7 @@ export default class BoxPanel extends Panel {
...
@@ -40,7 +41,7 @@ export default class BoxPanel extends Panel {
this
[
'close2Btn'
].
visible
=
false
;
this
[
'close2Btn'
].
visible
=
false
;
this
[
"doubleBtn"
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
[
"doubleBtn"
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
12
))
NetManager
.
ins
.
clickLog
(
getlogItem
(
12
))
handleVideo
(
handle
Inspire
Video
(
(
s
)
=>
{
(
s
)
=>
{
if
(
s
)
{
if
(
s
)
{
this
[
'close2Btn'
].
visible
=
true
;
this
[
'close2Btn'
].
visible
=
true
;
...
...
egret/src/panels/FailedPanel.ts
View file @
a9470c30
...
@@ -3,6 +3,7 @@ import { NetManager } from "../../libs/tw/manager/NetManager";
...
@@ -3,6 +3,7 @@ import { NetManager } from "../../libs/tw/manager/NetManager";
import
{
addRankFriendList
}
from
"../mapScene/RankFriendList"
;
import
{
addRankFriendList
}
from
"../mapScene/RankFriendList"
;
import
{
changeMapScene
}
from
"../startScene/StartScene"
;
import
{
changeMapScene
}
from
"../startScene/StartScene"
;
import
{
handleVideo
}
from
"../myVideo/videoCtrl"
;
import
{
handleVideo
}
from
"../myVideo/videoCtrl"
;
import
handleInspireVideo
from
"../inspireVideo"
;
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
{
DataManager
}
from
"../../libs/tw/manager/DataManager"
;
import
{
DataManager
}
from
"../../libs/tw/manager/DataManager"
;
...
@@ -34,7 +35,7 @@ export default class FailedPanel extends Panel {
...
@@ -34,7 +35,7 @@ export default class FailedPanel extends Panel {
this
[
"videoBtn"
].
visible
=
true
;
this
[
"videoBtn"
].
visible
=
true
;
this
[
"videoBtn"
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
[
"videoBtn"
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
4
))
NetManager
.
ins
.
clickLog
(
getlogItem
(
4
))
handleVideo
(
handle
Inspire
Video
(
(
s
)
=>
{
(
s
)
=>
{
if
(
s
)
{
if
(
s
)
{
this
.
hidePanel
();
this
.
hidePanel
();
...
...
egret/src/panels/SignPanel.ts
View file @
a9470c30
...
@@ -50,9 +50,9 @@ export default class SignPanel extends Panel {
...
@@ -50,9 +50,9 @@ export default class SignPanel extends Panel {
if
(
s
)
{
if
(
s
)
{
const
{
customInfo
,
success
}
=
DataManager
.
ins
.
getData
(
'dosign'
);
const
{
customInfo
,
success
}
=
DataManager
.
ins
.
getData
(
'dosign'
);
if
(
!
success
||
!
customInfo
.
success
||
customInfo
.
prizeType
==
'none'
)
{
if
(
!
success
||
!
customInfo
.
success
||
customInfo
.
prizeType
==
'none'
)
{
if
(
customInfo
.
code
==
100004
)
{
if
(
customInfo
.
code
==
100004
)
{
showToast
(
'与奖励失之交臂!明天再来试试吧!'
);
showToast
(
'与奖励失之交臂!明天再来试试吧!'
);
}
else
{
}
else
{
showToast
(
'与奖励失之交臂'
);
showToast
(
'与奖励失之交臂'
);
}
}
return
;
return
;
...
@@ -61,7 +61,14 @@ export default class SignPanel extends Panel {
...
@@ -61,7 +61,14 @@ export default class SignPanel extends Panel {
item
.
setSinged
();
item
.
setSinged
();
// showToast('签到成功!快去闯关吧~');
// showToast('签到成功!快去闯关吧~');
// PanelCtrl.instance.show('signPrize');
// PanelCtrl.instance.show('signPrize');
const
configData
=
DataManager
.
ins
.
getData
(
'getConfig'
)
let
signConfigData
=
configData
.
data
.
filter
(
item
=>
item
.
id
===
6
)
if
(
signConfigData
.
length
&&
signConfigData
[
0
].
index
===
1
)
{
window
[
"showTTAd"
]
&&
window
[
"showTTAd"
](
window
[
"TASignScreen"
],
3
)
window
[
"finishScreenShowSignPrize"
]
=
PanelCtrl
.
instance
.
addToShowPanels
(
'signPrize'
);
}
else
{
PanelCtrl
.
instance
.
addToShowPanels
(
'signPrize'
);
PanelCtrl
.
instance
.
addToShowPanels
(
'signPrize'
);
}
wait
(
200
).
then
(()
=>
{
wait
(
200
).
then
(()
=>
{
NetManager
.
ins
.
hc_home
(()
=>
{
NetManager
.
ins
.
hc_home
(()
=>
{
updateMainTimer
();
updateMainTimer
();
...
...
egret/src/panels/SignPrizePanel.ts
View file @
a9470c30
...
@@ -4,6 +4,7 @@ import { addAdComp } from "./BoxPanel";
...
@@ -4,6 +4,7 @@ import { addAdComp } from "./BoxPanel";
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
import
{
getlogItem
}
from
"../Main"
;
import
{
getlogItem
}
from
"../Main"
;
import
{
handleVideo
}
from
"../myVideo/videoCtrl"
;
import
{
handleVideo
}
from
"../myVideo/videoCtrl"
;
import
handleInspireVideo
from
"../inspireVideo"
;
import
Loading
from
"../../libs/new_wx/components/Loading"
;
import
Loading
from
"../../libs/new_wx/components/Loading"
;
import
{
showToast
}
from
"../../libs/new_wx/ctrls/toastCtrl"
;
import
{
showToast
}
from
"../../libs/new_wx/ctrls/toastCtrl"
;
import
{
updateMainTimer
}
from
"../../libs/new_wx/MainBase"
;
import
{
updateMainTimer
}
from
"../../libs/new_wx/MainBase"
;
...
@@ -47,11 +48,18 @@ export default class SignPrizePanel extends Panel {
...
@@ -47,11 +48,18 @@ export default class SignPrizePanel extends Panel {
//曝光
//曝光
NetManager
.
ins
.
showLog
(
getlogItem
(
7
))
NetManager
.
ins
.
showLog
(
getlogItem
(
7
))
//新增看视频双倍
const
configData
=
DataManager
.
ins
.
getData
(
'getConfig'
)
this
[
'close2Btn'
].
visible
=
false
;
let
signConfigData
=
configData
.
data
.
filter
(
item
=>
item
.
id
===
6
)
if
(
signConfigData
.
length
&&
signConfigData
[
0
].
index
===
1
)
{
// 因为除了插屏了,不需要翻倍
this
[
'close2Btn'
].
visible
=
true
;
this
[
'doubleBtn'
].
visible
=
false
;
}
else
{
// 依旧是视频翻倍
this
[
'doubleBtn'
].
visible
=
true
;
this
[
"doubleBtn"
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
[
"doubleBtn"
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
8
))
NetManager
.
ins
.
clickLog
(
getlogItem
(
8
))
handl
eVideo
(
handleInspir
eVideo
(
(
s
)
=>
{
(
s
)
=>
{
if
(
s
)
{
if
(
s
)
{
Loading
.
instace
.
show
();
Loading
.
instace
.
show
();
...
@@ -86,6 +94,7 @@ export default class SignPrizePanel extends Panel {
...
@@ -86,6 +94,7 @@ export default class SignPrizePanel extends Panel {
)
)
},
this
)
},
this
)
}
}
}
...
...
egret/src/panels/StartPanel.ts
View file @
a9470c30
...
@@ -19,6 +19,7 @@ import { addAdComp } from "./BoxPanel";
...
@@ -19,6 +19,7 @@ import { addAdComp } from "./BoxPanel";
import
{
getChapterData
}
from
"../something/chapters/getChapter"
;
import
{
getChapterData
}
from
"../something/chapters/getChapter"
;
import
{
getlogItem
}
from
"../Main"
;
import
{
getlogItem
}
from
"../Main"
;
import
{
handleVideo
}
from
"../myVideo/videoCtrl"
;
import
{
handleVideo
}
from
"../myVideo/videoCtrl"
;
import
handleInspireVideo
from
"../inspireVideo"
;
export
default
class
StartPanel
extends
Panel
{
export
default
class
StartPanel
extends
Panel
{
static
currlevel
;
static
currlevel
;
...
@@ -194,7 +195,7 @@ export default class StartPanel extends Panel {
...
@@ -194,7 +195,7 @@ export default class StartPanel extends Panel {
onTap_video1btn
()
{
onTap_video1btn
()
{
//看视频按钮点击
//看视频按钮点击
NetManager
.
ins
.
clickLog
(
getlogItem
(
2
))
NetManager
.
ins
.
clickLog
(
getlogItem
(
2
))
handleVideo
(
handle
Inspire
Video
(
(
s
)
=>
{
(
s
)
=>
{
if
(
s
)
{
if
(
s
)
{
this
[
'video1btn'
].
visible
=
false
;
this
[
'video1btn'
].
visible
=
false
;
...
@@ -213,7 +214,7 @@ export default class StartPanel extends Panel {
...
@@ -213,7 +214,7 @@ export default class StartPanel extends Panel {
onTap_video2btn
()
{
onTap_video2btn
()
{
//看视频按钮点击
//看视频按钮点击
NetManager
.
ins
.
clickLog
(
getlogItem
(
2
))
NetManager
.
ins
.
clickLog
(
getlogItem
(
2
))
handleVideo
(
handle
Inspire
Video
(
(
s
)
=>
{
(
s
)
=>
{
if
(
s
)
{
if
(
s
)
{
this
[
'video2btn'
].
visible
=
false
;
this
[
'video2btn'
].
visible
=
false
;
...
@@ -232,7 +233,7 @@ export default class StartPanel extends Panel {
...
@@ -232,7 +233,7 @@ export default class StartPanel extends Panel {
onTap_video3btn
()
{
onTap_video3btn
()
{
//看视频按钮点击
//看视频按钮点击
NetManager
.
ins
.
clickLog
(
getlogItem
(
2
))
NetManager
.
ins
.
clickLog
(
getlogItem
(
2
))
handleVideo
(
handle
Inspire
Video
(
(
s
)
=>
{
(
s
)
=>
{
if
(
s
)
{
if
(
s
)
{
this
[
'video3btn'
].
visible
=
false
;
this
[
'video3btn'
].
visible
=
false
;
...
...
egret/src/panels/StartPanelNew.ts
View file @
a9470c30
...
@@ -19,6 +19,7 @@ import { addAdComp } from "./BoxPanel";
...
@@ -19,6 +19,7 @@ import { addAdComp } from "./BoxPanel";
import
{
getChapterData
}
from
"../something/chapters/getChapter"
;
import
{
getChapterData
}
from
"../something/chapters/getChapter"
;
import
{
getlogItem
}
from
"../Main"
;
import
{
getlogItem
}
from
"../Main"
;
import
{
handleVideo
}
from
"../myVideo/videoCtrl"
;
import
{
handleVideo
}
from
"../myVideo/videoCtrl"
;
import
handleInspireVideo
from
"../inspireVideo"
;
export
default
class
StartPanelNew
extends
Panel
{
export
default
class
StartPanelNew
extends
Panel
{
static
currlevel
;
static
currlevel
;
...
@@ -194,7 +195,7 @@ export default class StartPanelNew extends Panel {
...
@@ -194,7 +195,7 @@ export default class StartPanelNew extends Panel {
onTap_video1btn
()
{
onTap_video1btn
()
{
//看视频按钮点击
//看视频按钮点击
NetManager
.
ins
.
clickLog
(
getlogItem
(
2
))
NetManager
.
ins
.
clickLog
(
getlogItem
(
2
))
handleVideo
(
handle
Inspire
Video
(
(
s
)
=>
{
(
s
)
=>
{
if
(
s
)
{
if
(
s
)
{
this
[
'video1btn'
].
visible
=
false
;
this
[
'video1btn'
].
visible
=
false
;
...
@@ -213,7 +214,7 @@ export default class StartPanelNew extends Panel {
...
@@ -213,7 +214,7 @@ export default class StartPanelNew extends Panel {
onTap_video2btn
()
{
onTap_video2btn
()
{
//看视频按钮点击
//看视频按钮点击
NetManager
.
ins
.
clickLog
(
getlogItem
(
2
))
NetManager
.
ins
.
clickLog
(
getlogItem
(
2
))
handleVideo
(
handle
Inspire
Video
(
(
s
)
=>
{
(
s
)
=>
{
if
(
s
)
{
if
(
s
)
{
this
[
'video2btn'
].
visible
=
false
;
this
[
'video2btn'
].
visible
=
false
;
...
@@ -232,7 +233,7 @@ export default class StartPanelNew extends Panel {
...
@@ -232,7 +233,7 @@ export default class StartPanelNew extends Panel {
onTap_video3btn
()
{
onTap_video3btn
()
{
//看视频按钮点击
//看视频按钮点击
NetManager
.
ins
.
clickLog
(
getlogItem
(
2
))
NetManager
.
ins
.
clickLog
(
getlogItem
(
2
))
handleVideo
(
handle
Inspire
Video
(
(
s
)
=>
{
(
s
)
=>
{
if
(
s
)
{
if
(
s
)
{
this
[
'video3btn'
].
visible
=
false
;
this
[
'video3btn'
].
visible
=
false
;
...
...
egret/src/panels/VideoBuyPanel.ts
View file @
a9470c30
...
@@ -11,6 +11,7 @@ import PanelCtrl from "../../libs/new_wx/ctrls/panelCtrl";
...
@@ -11,6 +11,7 @@ import PanelCtrl from "../../libs/new_wx/ctrls/panelCtrl";
import
MainScene
from
"../mainScene/MainScene"
;
import
MainScene
from
"../mainScene/MainScene"
;
import
Loading
from
"../../libs/new_wx/components/Loading"
;
import
Loading
from
"../../libs/new_wx/components/Loading"
;
import
{
handleVideo
}
from
"../myVideo/videoCtrl"
;
import
{
handleVideo
}
from
"../myVideo/videoCtrl"
;
import
handleInspireVideo
from
"../inspireVideo"
;
export
default
class
VideoBuyPanel
extends
Panel
{
export
default
class
VideoBuyPanel
extends
Panel
{
buyBtn
:
eui
.
Button
buyBtn
:
eui
.
Button
...
@@ -60,7 +61,7 @@ export default class VideoBuyPanel extends Panel {
...
@@ -60,7 +61,7 @@ export default class VideoBuyPanel extends Panel {
this
[
"videoBtn"
].
visible
=
true
;
this
[
"videoBtn"
].
visible
=
true
;
this
[
"videoBtn"
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
[
"videoBtn"
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
10
))
NetManager
.
ins
.
clickLog
(
getlogItem
(
10
))
handleVideo
(
handle
Inspire
Video
(
(
s
)
=>
{
(
s
)
=>
{
if
(
s
)
{
if
(
s
)
{
this
.
hidePanel
();
this
.
hidePanel
();
...
...
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