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
11120bef
Commit
11120bef
authored
May 14, 2021
by
zhangjinzhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码暂存
parent
6cdf9bf0
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
800 additions
and
139 deletions
+800
-139
.buildrc.js
.buildrc.js
+3
-1
index.html
egret/index.html
+340
-62
inline.js
egret/inline.js
+103
-0
PrizePanel.ts
egret/libs/new_wx/components/PrizePanel.ts
+4
-1
Main2Skin.exml
egret/resource/skins/Main2Skin.exml
+2
-0
Utils.ts
egret/src/Utils.ts
+7
-3
MainScene.ts
egret/src/mainScene/MainScene.ts
+106
-65
MapScene.ts
egret/src/mapScene/MapScene.ts
+3
-1
FailedPanel.ts
egret/src/panels/FailedPanel.ts
+8
-2
StartPanel.ts
egret/src/panels/StartPanel.ts
+15
-1
doJoin.json
mock/activity/doJoin.json
+191
-0
config.js
mock/config.js
+9
-0
home.json
mock/happyclear/home.json
+3
-3
openBox.json
mock/mixloanv/happyclear/openBox.json
+6
-0
No files found.
.buildrc.js
View file @
11120bef
...
@@ -19,6 +19,8 @@ module.exports = {
...
@@ -19,6 +19,8 @@ module.exports = {
'/activityPlugin/*'
:
'http://localhost:3000'
,
'/activityPlugin/*'
:
'http://localhost:3000'
,
'/aaw/*'
:
'http://localhost:3000'
,
'/aaw/*'
:
'http://localhost:3000'
,
'/wechatShare/*'
:
'http://localhost:3000'
,
'/wechatShare/*'
:
'http://localhost:3000'
,
'/summer/*'
:
'http://localhost:3000'
'/summer/*'
:
'http://localhost:3000'
,
'/activity/*'
:
'http://localhost:3000'
,
'/statistics/*'
:
'http://localhost:3000'
,
}
}
}
}
\ No newline at end of file
egret/index.html
View file @
11120bef
...
@@ -4,7 +4,8 @@
...
@@ -4,7 +4,8 @@
<head>
<head>
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
>
<title>
Egret
</title>
<title>
Egret
</title>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"
/>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"
/>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
/>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
/>
<meta
name=
"full-screen"
content=
"true"
/>
<meta
name=
"full-screen"
content=
"true"
/>
<meta
name=
"screen-orientation"
content=
"portrait"
/>
<meta
name=
"screen-orientation"
content=
"portrait"
/>
...
@@ -14,14 +15,19 @@
...
@@ -14,14 +15,19 @@
html
,
html
,
body
{
body
{
-ms-touch-action
:
none
;
-ms-touch-action
:
none
;
padding
:
0
;
border
:
0
;
margin
:
0
;
height
:
100%
;
}
.actloadbg
{
position
:
absolute
;
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
background-color
:
#000
;
background-color
:
#000
;
background-size
:
100%
;
background-size
:
100%
;
background-position
:
top
;
background-position
:
top
;
background-image
:
url("https://yun.duiba.com.cn/db_games/activity/xiaoxiaoleTuia/startscenebg.jpg")
;
background-image
:
url("https://yun.duiba.com.cn/db_games/activity/xiaoxiaoleTuia/startscenebg.jpg")
;
padding
:
0
;
width
:
100%
;
border
:
0
;
margin
:
0
;
height
:
100%
;
height
:
100%
;
}
}
...
@@ -100,12 +106,18 @@
...
@@ -100,12 +106,18 @@
align-items
:
center
;
align-items
:
center
;
}
}
</style>
</style>
<script
src=
"./inline.js"
></script>
<link
rel=
"stylesheet"
href=
"https://yun.tuisnake.com/tact/core/core.878825bd.css"
>
</link>
</head>
</head>
<body>
<body>
<div
style=
"margin: auto;width: 100%;height: 100%;"
class=
"egret-player"
data-entry-class=
"Main"
data-orientation=
"auto"
<div
class=
"actloadbg"
></div>
data-scale-mode=
"showAll"
data-frame-rate=
"60"
data-content-width=
"750"
data-content-height=
"1624"
data-multi-fingered=
"2"
<div
style=
"margin: auto;width: 100%;height: 100%;"
class=
"egret-player"
data-entry-class=
"Main"
data-show-fps=
"false"
data-show-log=
"true"
data-show-fps-style=
"x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9"
>
data-orientation=
"auto"
data-scale-mode=
"showAll"
data-frame-rate=
"60"
data-content-width=
"750"
data-content-height=
"1624"
data-multi-fingered=
"2"
data-show-fps=
"false"
data-show-log=
"true"
data-show-fps-style=
"x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9"
>
</div>
</div>
<script
src=
"libs/modules/egret/egret.js"
></script>
<script
src=
"libs/modules/egret/egret.js"
></script>
...
@@ -119,7 +131,6 @@
...
@@ -119,7 +131,6 @@
<script
src=
"libs/svga.egret.min2.js"
></script>
<script
src=
"libs/svga.egret.min2.js"
></script>
<script
src=
"libs/aes.js"
></script>
<script
src=
"libs/aes.js"
></script>
<script
src=
"libs/pad-zeropadding.js"
></script>
<script
src=
"libs/pad-zeropadding.js"
></script>
<script
src=
"https://yun.tuisnake.com/h5-mami/inspire/v1.3/inspire.min.js"
></script>
<!-- //线上不需要 -->
<!-- //线上不需要 -->
<script
src=
"libs/fileSave.js"
></script>
<script
src=
"libs/fileSave.js"
></script>
...
@@ -170,60 +181,325 @@
...
@@ -170,60 +181,325 @@
window
[
'renderMode'
]
=
'webgl'
;
window
[
'renderMode'
]
=
'webgl'
;
window
[
'development'
]
=
true
;
window
[
'development'
]
=
true
;
var
gameId
=
1
;
var
gameId
=
1
;
var
CFG
=
{
var
CFG
=
"actId"
:
"3335069"
,
{
"oaId"
:
"3335069"
,
isQueryMediaApi
:
1
,
// 是否需要积分校验
"unitName"
:
"积分"
,
recordNumber
:
''
,
// http://cf.dui88.com/pages/viewpage.action?pageId=43754899
"btnUnitName"
:
"积分"
,
host
:
'http://yun.tuisnake.com'
,
"doJoin"
:
"/hdtool/doJoin?dpm=1.3.1.0&activityId=3335069"
,
undertakeStateSwitch
:
true
,
"quireOrder"
:
"/hdtool/getOrderStatus"
,
undertakeStateContext
:
''
,
"styleConfig"
:
"/hdtool/getHdtoolConfig"
,
isShowAd
:
true
,
"getElement"
:
"/hdtool/ajaxElement"
,
activityId
:
1
,
"getPrizeDetail"
:
"/hdtool/prizeDetail"
,
activityType
:
0
,
"ajaxThroughInfo"
:
"/hdtool/ajaxThroughInfo"
,
slotId
:
'2'
,
"throughSubmit"
:
"/hdtool/throughSubmit"
,
appId
:
'3'
,
"gameGetOrder"
:
"/hdtool/getOrderInfo"
,
couponSkinId
:
'1'
,
"gameSubmit"
:
"/hdtool/gameSubmit"
,
orderIconType
:
0
,
"doSubmit"
:
"/hdtool/submit"
,
preview
:
true
,
"adslotId"
:
""
,
isOnline
:
false
,
"consumerId"
:
"1"
,
isShowBuoy
:
false
,
"isNotLoginUser"
:
false
,
isShowRecommend
:
true
,
"uid"
:
"1"
,
isPrizeRecommend
:
true
,
"hdType"
:
"duiba"
,
isPublicNotice
:
true
,
"hdToolId"
:
"42363"
,
timesIntercept
:
1
,
"appType"
:
"credits"
,
isPullDown
:
0
,
"subType"
:
"custom"
,
isOpenPrizeInfo
:
true
,
"directSendCoupon"
:
"false"
,
styleType
:
1261
,
"ajaxAction"
:
""
,
unicomConsumeonce
:
50
,
// 每次消耗积分
"recommendQueue"
:
"/recommend/getRecommend"
,
unicomWinBillPoint
:
1000
,
// 当前兑换了多少积分
"recommendSkin"
:
"/recommend/getRecommendSkin"
,
unicomWinBillNum
:
5
,
// 1000积分兑换5元话费
"isShowDetail"
:
true
,
isOneClickLogin
:
false
,
// 是否是联通一键登录
"preview"
:
false
,
isFlowType
:
false
,
// 网络类型是否是蜂窝数据网络
"from"
:
""
,
secondTimeBillSubmit
:
true
,
// 用户是否访问当前活动是否支持二次积分兑换
"login"
:
"//activity.m.duiba.com.cn/hdtool/login?dpm=1.3.3.0"
,
algoTitle
:
{
"flowRedirectUrl"
:
""
,
titleFirstName
:
'新年大狂欢'
,
"flowRedirectTuiaUrl"
:
""
,
titleFirstNameList
:
'[{ "text": "新年", "cdnUrl": "//yun.dui88.com/h5-mami/titleFont01.otf" },{ "text": "大狂欢", "cdnUrl": "//yun.dui88.com/h5-mami/titleFont02.otf" }]'
,
"isOpenRecommend"
:
false
,
titleSecondName
:
'杭州专享iphone'
,
"getCreditsLink"
:
"http://baidu.com?uid=1&dbnewopen"
,
titleSecondNameList
:
'[{"text":"杭州", "cdnUrl": "//yun.dui88.com/h5-mami/titleFont01.otf"},{"text":"专享","cdnUrl":"//yun.dui88.com/h5-mami/titleFont02.otf"},{"text":"iphone","cdnUrl":"//yun.dui88.com/h5-mami/titleFont03.otf"}]'
"appId"
:
"1"
,
},
"recordUrl"
:
"//activity.m.duiba.com.cn/crecord/record?dbnewopen&dpm=1.3.2.0"
,
embedData
:
'{"st_info_rule_click":{"dpm":"1.3.7.0","consumer_id":4764592079,"domain4Web":"//activity.tuia.cn","app_id":1,"url":"/statistics/click","dcm":"1014.0.2.6596"},"st_info_rule_less_click":{"dpm":"1.56.1.3","consumer_id":4764592079,"domain4Web":"//activity.tuia.cn","app_id":1,"url":"/statistics/click","dcm":"1014.0.2.6596"},"st_info_rule_more_click":{"dpm":"1.56.1.2","consumer_id":4764592079,"domain4Web":"//activity.tuia.cn","app_id":1,"url":"/statistics/click","dcm":"1014.0.2.6596"},"st_info_rule_close_click":{"dpm":"1.56.1.1","consumer_id":4764592079,"domain4Web":"//activity.tuia.cn","app_id":1,"url":"/statistics/click","dcm":"1014.0.2.6596"},"st_info_options_click":{"dpm":"1.3.2.0","consumer_id":4764592079,"domain4Web":"//activity.tuia.cn","app_id":1,"url":"/statistics/click","dcm":"1010.0.0.0"},"st_info_rule_exposure":{"dpm":"1.56.1.0","consumer_id":4764592079,"domainWeb":"//activity.tuia.cn","domain":"//embedlog.duiba.com.cn","app_id":1,"dcm":"1014.0.2.6596"}}'
,
"shareDesc"
:
"分享分享文案文案"
,
contaction
:
'<p> 重要声明:</p><p>1、实物类奖品奖在活动结束后5-10个工作日安排发货,请耐心等待!</p><p>2、优惠券类奖品的使用规则详见每个优惠券的介绍页;</p><p>3、请兑换后仔细阅读使用流程,如有疑问,可直接联系客服专线:400-080- 6659或客服QQ:400-080-6659(工作日9:00至18:00);</p><p>4、通过非法途径获得奖品的,主办方有权不提供奖品。 </p>'
,
"entranceDesc"
:
"测试领奖,也可到我的奖品领奖,24小时内有效哦"
,
limitType
:
1
,
"isSHowMeat"
:
true
,
limitTimes
:
1
,
"needCouponModal"
:
true
,
overseas
:
0
,
"needRecommendModal"
:
true
,
kefuType
:
true
,
"asyncFiles"
:
[],
skinName
:
'index'
,
"shareAndroidLinkActivity"
:
"http://www.duiba.com.cn"
,
/** 返回拦截 */
"shareIosLinkActivity"
:
"http://www.iqiyi.com"
,
isIntercept
:
false
,
"appName"
:
"custom"
,
/**
"needShare"
:
true
,
* 现已等同于 isIntercept,请使用 isIntercept
"shareTitle"
:
""
,
* @deprecated
"shareSubTitle"
:
""
,
*/
"sharePicUrl"
:
""
,
isNewIntercept
:
false
,
"shareLink"
:
""
,
consumerId
:
'4764592079'
,
"shareAndroidDeeplink"
:
""
,
isLayerAdTextVisible
:
true
,
"shareIOSDeeplink"
:
""
recordListUrl
:
'/activity/indexRecord?vmName=list&dbrp_=3_48'
,
};
options
:
[
{
'id'
:
5820
,
'activityId'
:
978
,
'activityType'
:
6
,
'advertId'
:
null
,
'gid'
:
null
,
'gtype'
:
null
,
'prizeType'
:
'thanks'
,
'image'
:
'//yun.tuisnake.com/h5-mami/couponPrize/thanks.png'
,
'detailImg'
:
null
,
'title'
:
'谢谢参与'
,
'stockId'
:
null
,
'stock'
:
null
,
'stockChange'
:
null
,
'rate'
:
null
,
'description'
:
null
,
'detailDesc'
:
null
,
'payload'
:
0
,
'hidden'
:
0
,
'isDeleted'
:
false
,
'clickLog'
:
'{
\'
dpm
\'
:
\'
2236.7.7.1
\'
,
\'
orderId
\'
:
\'
taw-102307180254
\'
,
\'
consumerId
\'
:10108158,
\'
domain4Web
\'
:
\'
//activity.tuiatest.cn
\'
,
\'
deliveryType
\'
:1,
\'
device_type
\'
:
\'
tuia
\'
,
\'
materialId
\'
:17879,
\'
url
\'
:
\'
/statistics/click
\'
,
\'
advertId
\'
:2663,
\'
dcm
\'
:
\'
104.2663.37.17879
\'
,
\'
activityId
\'
:168,
\'
domain
\'
:
\'
//embedlog.dui88.com
\'
,
\'
appId
\'
:2236}'
},
{
'id'
:
5821
,
'activityId'
:
978
,
'activityType'
:
6
,
'advertId'
:
null
,
'gid'
:
null
,
'gtype'
:
null
,
'prizeType'
:
'coupon'
,
'image'
:
'//yun.tuitiger.com/mami-media/img/nbspdactgn.png'
,
'detailImg'
:
'//yun.tuisnake.com/mami-media/img/d1wicvgtdr.jpg'
,
'title'
:
'GODIVA巧克力'
,
'stockId'
:
null
,
'stock'
:
null
,
'stockChange'
:
null
,
'rate'
:
null
,
'description'
:
''
,
'detailDesc'
:
'<h3><font color=
\'
#333333
\'
><b>GODIVA歌帝梵巧克力优选礼盒,28种口味,满足你的味蕾的好奇心~</b></font></h3><p><b style=
\'
color: rgb(51, 51, 51)
\'
>商品详情</b></p><ul><li>产品名称:巧克力优选礼盒</li><li>品牌:GODIVA歌帝梵</li><li>包装:礼盒装</li><li>净含量:497g</li><li>产地:比利时</li><li>贮藏方式:室温12-18摄氏度的阴凉干燥环境</li></ul><p><b style=
\'
color: rgb(51, 51, 51)
\'
>特别说明</b></p><ul><li>若有疑问,可直接联系客服专线:400-006-6855或客服QQ:4000066855 (工作日9:00至18:00)</li><li>新疆、西藏、青海、宁夏、内蒙古地区不在包邮范围</li><li><span style=
\'
color: rgb(234, 0, 15)
\'
>若因地址不详、联系号码错误、停机等个人原因导致快递多次配送不成功,延期退回后我们将不再进行二次发货,敬请谅解</span></li></ul>'
,
'payload'
:
1
,
'hidden'
:
0
,
'isDeleted'
:
false
,
'clickLog'
:
'{
\'
dpm
\'
:
\'
2236.7.7.2
\'
,
\'
orderId
\'
:
\'
taw-102307180254
\'
,
\'
consumerId
\'
:10108158,
\'
domain4Web
\'
:
\'
//activity.tuiatest.cn
\'
,
\'
deliveryType
\'
:1,
\'
device_type
\'
:
\'
tuia
\'
,
\'
materialId
\'
:17879,
\'
url
\'
:
\'
/statistics/click
\'
,
\'
advertId
\'
:2663,
\'
dcm
\'
:
\'
104.2663.37.17879
\'
,
\'
activityId
\'
:168,
\'
domain
\'
:
\'
//embedlog.dui88.com
\'
,
\'
appId
\'
:2236}'
},
{
'id'
:
5822
,
'activityId'
:
978
,
'activityType'
:
6
,
'advertId'
:
null
,
'gid'
:
null
,
'gtype'
:
null
,
'prizeType'
:
'lucky'
,
'image'
:
'//yun.tuitiger.com/mami-media/img/pno609d3cc.png'
,
'detailImg'
:
'//yun.tuisnake.com/mami-media/img/uzl28smdjs.jpg'
,
'title'
:
'500元消费卡'
,
'stockId'
:
null
,
'stock'
:
null
,
'stockChange'
:
null
,
'rate'
:
null
,
'description'
:
''
,
'detailDesc'
:
'<h3><font color=
\'
#333333
\'
><b>带喜欢的人去吃哈根达斯!小长假和ta一起去,500元礼品卡拿好!</b></font><br></h3><ul><li>高品质的冰淇淋,来自于比利时的黑巧克力,马达加斯加的香草,打造出与众不同的味觉体验。和心爱的人一起享受甜蜜<br></li></ul><p><b>商品详情</b></p><ul><li>【品牌】:Häagen-Dazs/哈根达斯</li><li>【券面值】:500元</li><li>【消费场所】:实体店<br></li></ul><p><b>特别说明</b></p><ul><li>若有疑问可直接联系客服专线:400-006-6855或客服QQ:4000066855 (工作日9:30至18:30)<br></li><li><span style=
\'
color: rgb(234, 0, 15)
\'
>若因地址不详、联系号码错误、停机等个人原因导致快递多次配送不成功,延期退回后我们将不再进行二次发货,非质量问题不退换,敬请谅解</span></li></ul>'
,
'payload'
:
2
,
'hidden'
:
0
,
'isDeleted'
:
false
,
'clickLog'
:
'{
\'
dpm
\'
:
\'
2236.7.7.3
\'
,
\'
orderId
\'
:
\'
taw-102307180254
\'
,
\'
consumerId
\'
:10108158,
\'
domain4Web
\'
:
\'
//activity.tuiatest.cn
\'
,
\'
deliveryType
\'
:1,
\'
device_type
\'
:
\'
tuia
\'
,
\'
materialId
\'
:17879,
\'
url
\'
:
\'
/statistics/click
\'
,
\'
advertId
\'
:2663,
\'
dcm
\'
:
\'
104.2663.37.17879
\'
,
\'
activityId
\'
:168,
\'
domain
\'
:
\'
//embedlog.dui88.com
\'
,
\'
appId
\'
:2236}'
},
{
'id'
:
5823
,
'activityId'
:
978
,
'activityType'
:
6
,
'advertId'
:
null
,
'gid'
:
null
,
'gtype'
:
null
,
'prizeType'
:
'physical'
,
'image'
:
'//yun.tuitiger.com/mami-media/img/iy9noi7du6.png'
,
'detailImg'
:
'//yun.tuisnake.com/mami-media/img/wgxveqh4zf.jpg'
,
'title'
:
'马卡龙礼盒'
,
'stockId'
:
null
,
'stock'
:
null
,
'stockChange'
:
null
,
'rate'
:
null
,
'description'
:
''
,
'detailDesc'
:
'<h3><font color=
\'
#333333
\'
><b>时尚优雅,马卡龙璀璨铁盒</b></font></h3><p><b style=
\'
color: rgb(51, 51, 51)
\'
>商品详情</b></p><ul><li>品牌: sharesweet/莫轩</li><li>保质期:30 天<br></li><li>产地: 中国大陆</li><li>糕点种类: 西式糕点</li><li>是否含糖: 含糖</li><li>净含量: 300g</li></ul><p><b>特别说明</b></p><ul><li>若有任何疑问,可联系活动主办方:400-006-6855</li><li>若因地址不详、联系号码错误、停机等个人原因导致快递多次配送不成功,延期退回后我们将不再进行二次发货,非质量问题不退换,敬请谅解</li></ul>'
,
'payload'
:
3
,
'hidden'
:
0
,
'isDeleted'
:
false
,
'clickLog'
:
'{
\'
dpm
\'
:
\'
2236.7.7.4
\'
,
\'
orderId
\'
:
\'
taw-102307180254
\'
,
\'
consumerId
\'
:10108158,
\'
domain4Web
\'
:
\'
//activity.tuiatest.cn
\'
,
\'
deliveryType
\'
:1,
\'
device_type
\'
:
\'
tuia
\'
,
\'
materialId
\'
:17879,
\'
url
\'
:
\'
/statistics/click
\'
,
\'
advertId
\'
:2663,
\'
dcm
\'
:
\'
104.2663.37.17879
\'
,
\'
activityId
\'
:168,
\'
domain
\'
:
\'
//embedlog.dui88.com
\'
,
\'
appId
\'
:2236}'
},
{
'id'
:
5824
,
'activityId'
:
978
,
'activityType'
:
6
,
'advertId'
:
null
,
'gid'
:
null
,
'gtype'
:
null
,
'prizeType'
:
'physical'
,
'image'
:
'//yun.tuisnake.com/mami-media/img/wfyrjh0dsq.png'
,
'detailImg'
:
'//yun.tuisnake.com/mami-media/img/xj65uhetk6.jpg'
,
'title'
:
'十二星座糖'
,
'stockId'
:
null
,
'stock'
:
null
,
'stockChange'
:
null
,
'rate'
:
null
,
'description'
:
''
,
'detailDesc'
:
'<h4>法国进口糖果,费罗伦十二星座糖,糖果界颜值王,甜美水果糖来袭!</h4><p><b>商品详情</b></p><ul><li>【品牌】:FLORENT</li><li>【产地】:法国</li><li>【储藏方法】:低温干燥处 避免光线直射</li><li>【保质期】:720 天</li></ul><p><b>特别说明</b></p><ul><li> 请兑换后仔细阅读使用流程,若有疑问,可直接联系客服专线:400-006-6855或客服QQ:4000066855 (工作日9:00至18:00) </li><li><span style=
\'
color: rgb(234, 0, 15)
\'
>若因地址不详、联系号码错误、停机等个人原因导致快递多次配送不成功,延期退回后我们将不再进行二次发货,敬请谅解</span></li></ul>'
,
'payload'
:
4
,
'hidden'
:
0
,
'isDeleted'
:
false
,
'clickLog'
:
'{
\'
dpm
\'
:
\'
2236.7.7.5
\'
,
\'
orderId
\'
:
\'
taw-102307180254
\'
,
\'
consumerId
\'
:10108158,
\'
domain4Web
\'
:
\'
//activity.tuiatest.cn
\'
,
\'
deliveryType
\'
:1,
\'
device_type
\'
:
\'
tuia
\'
,
\'
materialId
\'
:17879,
\'
url
\'
:
\'
/statistics/click
\'
,
\'
advertId
\'
:2663,
\'
dcm
\'
:
\'
104.2663.37.17879
\'
,
\'
activityId
\'
:168,
\'
domain
\'
:
\'
//embedlog.dui88.com
\'
,
\'
appId
\'
:2236}'
},
{
'id'
:
5825
,
'activityId'
:
978
,
'activityType'
:
6
,
'advertId'
:
null
,
'gid'
:
null
,
'gtype'
:
null
,
'prizeType'
:
'virtual'
,
'image'
:
'//yun.tuitiger.com/mami-media/img/y7118pjmpu.png'
,
'detailImg'
:
'//yun.tuisnake.com/mami-media/img/56a5sxpuch.jpg'
,
'title'
:
'马卡龙独享装'
,
'stockId'
:
null
,
'stock'
:
null
,
'stockChange'
:
null
,
'rate'
:
null
,
'description'
:
''
,
'detailDesc'
:
'<h3><font color=
\'
#333333
\'
><b>满满维生素,马卡龙独享装</b></font></h3><p><b style=
\'
color: rgb(51, 51, 51)
\'
>商品详情</b></p><ul><li>糕点种类: 马卡龙</li><li>口味: 6枚 <br></li><li>包装方式: 包装</li><li>储藏方法:冷冻保存</li><li>配料表:杏仁粉,糖粉,果粉,蛋白等</li><li>保质期:30 天</li></ul><p><b>特别说明</b></p><ul><li>若有任何疑问,可联系活动主办方:400-006-6855</li><li>若因地址不详、联系号码错误、停机等个人原因导致快递多次配送不成功,延期退回后我们将不再进行二次发货,非质量问题不退换,敬请谅解</li></ul>'
,
'payload'
:
5
,
'hidden'
:
0
,
'isDeleted'
:
false
,
'clickLog'
:
'{
\'
dpm
\'
:
\'
2236.7.7.6
\'
,
\'
orderId
\'
:
\'
taw-102307180254
\'
,
\'
consumerId
\'
:10108158,
\'
domain4Web
\'
:
\'
//activity.tuiatest.cn
\'
,
\'
deliveryType
\'
:1,
\'
device_type
\'
:
\'
tuia
\'
,
\'
materialId
\'
:17879,
\'
url
\'
:
\'
/statistics/click
\'
,
\'
advertId
\'
:2663,
\'
dcm
\'
:
\'
104.2663.37.17879
\'
,
\'
activityId
\'
:168,
\'
domain
\'
:
\'
//embedlog.dui88.com
\'
,
\'
appId
\'
:2236}'
}
],
styleConfig
:
{
"skinConfig"
:
[
{
"name"
:
"core"
,
"title"
:
"大转盘弹层"
,
"childrens"
:
[
{
"name"
:
"TurnCircleLimitTimes"
,
"title"
:
"大转盘弹层参与次数"
,
"type"
:
"number"
,
"value"
:
8
},
{
"name"
:
"TurnCircleBase"
,
"title"
:
"大转盘底座"
,
"type"
:
"image"
,
"value"
:
"//yun.tuisnake.com/h5-mami/tact/bottom.4b330d07.png"
,
"size"
:
{
"width"
:
669
,
"height"
:
243
}
},
{
"name"
:
"TurnCircleCircle"
,
"title"
:
"大转盘转盘"
,
"type"
:
"image"
,
"value"
:
"//yun.tuisnake.com/h5-mami/tact/circle.1bc02903.png"
,
"size"
:
{
"width"
:
614
,
"height"
:
614
}
},
{
"name"
:
"TurnCircleBg"
,
"title"
:
"大转盘转盘背景"
,
"type"
:
"image"
,
"value"
:
"//yun.tuisnake.com/h5-mami/tact/bg.bd2217da.png"
,
"size"
:
{
"width"
:
716
,
"height"
:
716
}
},
{
"name"
:
"TurnCircleBtn"
,
"title"
:
"大转盘按钮"
,
"type"
:
"image"
,
"value"
:
"//yun.tuisnake.com/h5-mami/tact/btn.1c763c6e.png"
,
"size"
:
{
"width"
:
243
,
"height"
:
274
}
},
{
"name"
:
"TurnCircleTitle"
,
"title"
:
"大转盘标题"
,
"type"
:
"image"
,
"value"
:
"//yun.tuisnake.com/h5-mami/tact/title.c2afe4dc.png"
,
"size"
:
{
"width"
:
450
,
"height"
:
297
}
}
]
}
]
},
commerce
:
{
cash
:
600000
,
expireTime
:
50731960
,
actualExpireTime
:
1595951999999
,
periodLotteryFlag
:
true
},
testGroup
:
false
,
notDoublingOptionId
:
5821
,
needLogin
:
true
,
isLayerCloseIntercept
:
true
,
// 弹层关闭拦截
needChinaMobileReq
:
true
// 中国移动智码
}
// {
// "actId": "3335069",
// "oaId": "3335069",
// "unitName": "积分",
// "btnUnitName": "积分",
// "doJoin": "/hdtool/doJoin?dpm=1.3.1.0&activityId=3335069",
// "quireOrder": "/hdtool/getOrderStatus",
// "styleConfig": "/hdtool/getHdtoolConfig",
// "getElement": "/hdtool/ajaxElement",
// "getPrizeDetail": "/hdtool/prizeDetail",
// "ajaxThroughInfo": "/hdtool/ajaxThroughInfo",
// "throughSubmit": "/hdtool/throughSubmit",
// "gameGetOrder": "/hdtool/getOrderInfo",
// "gameSubmit": "/hdtool/gameSubmit",
// "doSubmit": "/hdtool/submit",
// "adslotId": "",
// "consumerId": "1",
// "isNotLoginUser": false,
// "uid": "1",
// "hdType": "duiba",
// "hdToolId": "42363",
// "appType": "credits",
// "subType": "custom",
// "directSendCoupon": "false",
// "ajaxAction": "",
// "recommendQueue": "/recommend/getRecommend",
// "recommendSkin": "/recommend/getRecommendSkin",
// "isShowDetail": true,
// "preview": false,
// "from": "",
// "login": "//activity.m.duiba.com.cn/hdtool/login?dpm=1.3.3.0",
// "flowRedirectUrl": "",
// "flowRedirectTuiaUrl": "",
// "isOpenRecommend": false,
// "getCreditsLink": "http://baidu.com?uid=1&dbnewopen",
// "appId": "1",
// "recordUrl": "//activity.m.duiba.com.cn/crecord/record?dbnewopen&dpm=1.3.2.0",
// "shareDesc": "分享分享文案文案",
// "entranceDesc": "测试领奖,也可到我的奖品领奖,24小时内有效哦",
// "isSHowMeat": true,
// "needCouponModal": true,
// "needRecommendModal": true,
// "asyncFiles": [],
// "shareAndroidLinkActivity": "http://www.duiba.com.cn",
// "shareIosLinkActivity": "http://www.iqiyi.com",
// "appName": "custom",
// "needShare": true,
// "shareTitle": "",
// "shareSubTitle": "",
// "sharePicUrl": "",
// "shareLink": "",
// "shareAndroidDeeplink": "",
// "shareIOSDeeplink": ""
// };
var
recordUrl
=
'record/'
;
var
recordUrl
=
'record/'
;
var
resPath
=
''
;
var
resPath
=
''
;
...
@@ -232,7 +508,9 @@
...
@@ -232,7 +508,9 @@
return
b
;
return
b
;
}
}
</script>
</script>
<script
src=
"https://yun.tuisnake.com/tact/vendor/vendor.fb1f831c.js"
></script>
<script
src=
"https://yun.tuisnake.com/tact/core/core.umd.min.23a7d620.js"
></script>
<script
src=
"output.js"
></script>
<script
src=
"output.js"
></script>
</body>
</body>
...
...
egret/inline.js
0 → 100644
View file @
11120bef
!
function
()
{
"use strict"
;
var
i
,
t
,
m
,
e
,
o
;
function
n
()
{
if
(
void
0
!==
t
)
return
t
;
if
(
window
.
TA
&&
void
0
!==
window
.
TA
.
isSupportWebp
)
{
if
(
t
=
window
.
TA
.
isSupportWebp
,
window
.
localStorage
)
try
{
window
.
localStorage
.
setItem
(
"iswebp"
,
t
)
}
catch
(
e
)
{}
return
t
}
if
(
window
.
localStorage
)
{
var
e
=
window
.
localStorage
.
getItem
(
"ta_webp"
);
if
(
null
!=
e
)
return
t
=
"true"
===
e
}
try
{
t
=
!!
[].
map
&&
0
===
document
.
createElement
(
"canvas"
).
toDataURL
(
"image/webp"
).
indexOf
(
"data:image/webp"
)
}
catch
(
e
)
{
t
=
!
1
}
if
(
window
.
localStorage
)
try
{
window
.
localStorage
.
setItem
(
"ta_webp"
,
t
)
}
catch
(
e
)
{}
return
t
}
function
p
(
e
)
{
return
e
&&
"[object String]"
===
Object
.
prototype
.
toString
.
call
(
e
)
&&
-
1
===
e
.
indexOf
(
"data:image"
)
&&
-
1
===
e
.
indexOf
(
"?x-oss-process"
)
&&
n
()
?
e
+
"?x-oss-process=image/format,webp"
:
e
}
function
w
(
e
)
{
var
t
=
window
.
CFG
||
{};
return
e
?
t
[
e
]
:
t
}
function
a
(
e
)
{
var
t
=
o
.
clientWidth
;
!
navigator
.
userAgent
.
match
(
/Android|iPhone|iPad|iPod/i
)
&&
1024
<
t
&&
(
t
=
640
,
"function"
==
typeof
e
&&
setTimeout
(
function
()
{
e
(
t
)
},
0
)),
window
.
remScale
=
t
/
640
;
var
n
=
t
/
640
*
2
*
100
;
n
!==
i
&&
(
i
=
n
,
o
.
style
.
fontSize
=
""
.
concat
(
i
,
"px"
))
}(
o
=
document
.
documentElement
).
getAttribute
[
"data-dpr"
]
||
(
e
=
navigator
.
userAgent
.
match
(
/iPhone|iPad|iPod/i
)
?
Math
.
min
(
window
.
devicePixelRatio
||
1
,
3
)
:
1
,
o
.
setAttribute
(
"data-dpr"
,
e
),
a
(
function
(
e
)
{
document
.
body
.
style
.
margin
=
"0 auto"
,
document
.
body
.
style
.
maxWidth
=
""
.
concat
(
e
,
"px"
)
}),
window
.
addEventListener
(
"pageshow"
,
a
,
!
1
),
window
.
addEventListener
(
"orientationchange"
in
window
?
"orientationchange"
:
"resize"
,
a
,
!
1
)),
function
(
e
)
{
var
t
=
0
<
arguments
.
length
&&
void
0
!==
e
?
e
:
"ta-webp"
;
!
n
()
||
-
1
===
((
e
=
document
.
documentElement
).
className
||
""
).
indexOf
(
t
)
&&
e
.
classList
.
add
(
t
)
}(),
function
(
e
)
{
var
t
,
n
=
0
<
arguments
.
length
&&
void
0
!==
e
?
e
:
"ta-hairlines"
,
i
=
document
.
documentElement
;
2
<=
(
window
.
devicePixelRatio
||
1
)
&&
-
1
===
i
.
className
.
indexOf
(
n
)
&&
(
t
=
document
.
createElement
(
"div"
),
e
=
document
.
createElement
(
"body"
),
t
.
style
.
border
=
".5px solid transparent"
,
e
.
appendChild
(
t
),
i
.
insertBefore
(
e
,
i
.
firstElementChild
||
i
.
firstChild
),
1
===
t
.
offsetHeight
&&
i
.
classList
.
add
(
n
),
i
.
removeChild
(
e
))
}();
var
r
=
window
.
TA
=
window
.
TA
||
{};
r
.
px2rem
=
function
(
e
)
{
return
parseFloat
(
e
)
/
234.375
},
r
.
rem2px
=
function
(
e
)
{
return
parseFloat
(
e
)
*
i
*
2
},
r
.
getWebpUrl
=
p
,
r
.
getConfig
=
w
,
r
.
getSkinConfig
=
function
(
e
)
{
if
(
m
)
return
e
?
m
[
e
]
||
{}
:
m
;
m
=
{};
for
(
var
t
=
w
(
"styleConfig"
),
n
=
t
?
t
.
skinConfig
:
[],
i
=
0
;
i
<
n
.
length
;
i
++
)
{
var
o
=
n
[
i
].
childrens
;
if
(
o
)
for
(
var
a
=
0
;
a
<
o
.
length
;
a
++
)
{
var
r
=
o
[
a
],
d
=
r
.
type
,
c
=
r
.
name
,
l
=
r
.
title
,
s
=
r
.
webp
,
u
=
o
[
a
].
value
,
r
=
u
;
switch
(
d
)
{
case
"image"
:
u
=
!
1
===
s
?
u
:
p
(
u
);
break
;
case
"position"
:
case
"bottom"
:
u
=
parseFloat
(
u
.
toString
().
replace
(
/<
[^
>
]
*>/g
,
""
))
}
m
[
c
]
=
{
value
:
u
,
oldValue
:
r
,
type
:
d
,
title
:
l
}
}
}
return
e
?
m
[
e
]
:
m
},
r
.
addPreloadStyle
=
function
(
e
)
{
var
t
=
document
.
createElement
(
"style"
);
t
.
type
=
"text/css"
,
t
.
styleSheet
?
t
.
styleSheet
.
cssText
=
e
:
t
.
appendChild
(
document
.
createTextNode
(
e
)),
document
.
getElementsByTagName
(
"head"
)[
0
].
appendChild
(
t
)
},
r
.
preloadImage
=
function
(
e
)
{
for
(
var
t
=
0
;
t
<
e
.
length
;
t
++
)
{
var
n
=
[];
n
[
t
]
=
new
Image
,
n
[
t
].
src
=
e
[
t
]
}
},
Object
.
defineProperty
(
r
,
"isSupportWebp"
,
{
get
:
n
})
}();
\ No newline at end of file
egret/libs/new_wx/components/PrizePanel.ts
View file @
11120bef
...
@@ -50,9 +50,12 @@ export default class PrizePanel extends Panel {
...
@@ -50,9 +50,12 @@ export default class PrizePanel extends Panel {
//打开宝箱
//打开宝箱
this
[
"doubleBtn"
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
[
"doubleBtn"
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
.
visible
=
false
;
Utils
.
couponJoin
(
CouponJoinScene
.
Checkpoint
,
this
.
_level
,()
=>
{
Utils
.
couponJoin
(
CouponJoinScene
.
Checkpoint
,
this
.
_level
,()
=>
{
this
.
visible
=
true
;
this
.
changeSceneShow
(
2
);
},()
=>
{
},()
=>
{
this
.
visible
=
true
;
this
.
changeSceneShow
(
2
);
this
.
changeSceneShow
(
2
);
})
})
})
})
...
...
egret/resource/skins/Main2Skin.exml
View file @
11120bef
...
@@ -30,6 +30,8 @@
...
@@ -30,6 +30,8 @@
</e:Group>
</e:Group>
<e:Image
id=
"settingBtn"
x=
"-0.47"
y=
"1"
source=
"setting_png"
/>
<e:Image
id=
"settingBtn"
x=
"-0.47"
y=
"1"
source=
"setting_png"
/>
</e:Group>
</e:Group>
<e:Label
id=
"tosucbtn"
text=
"一键成功"
y=
"180"
backgroundColor=
"0xdba013"
background=
"true"
left=
"0"
/>
<e:Label
id=
"tofailbtn"
text=
"一键失败"
y=
"224"
background=
"true"
backgroundColor=
"0xff0000"
left=
"0"
/>
...
...
egret/src/Utils.ts
View file @
11120bef
import
{
DataManager
}
from
"../libs/tw/manager/DataManager"
;
import
{
DataManager
}
from
"../libs/tw/manager/DataManager"
;
export
const
TACore
=
window
[
"TACore"
];
export
enum
CouponJoinScene
{
export
enum
CouponJoinScene
{
BlindBox
=
0
,
//盲盒
BlindBox
=
0
,
//盲盒
//星级宝箱
//星级宝箱
...
@@ -192,15 +193,18 @@ export default class Utils {
...
@@ -192,15 +193,18 @@ export default class Utils {
afterClose
:
afterClose
afterClose
:
afterClose
}
}
console
.
error
(
"奖品弹窗点击===》"
,
scene
);
console
.
error
(
"奖品弹窗点击===》"
,
scene
);
beforeUse
&&
beforeUse
();
// beforeUse && beforeUse();
afterClose
&&
afterClose
();
// afterClose && afterClose();
TACore
.
couponJoin
(
options
);
}
}
//展示大转盘
//展示大转盘
static
showTurnCircle
(
afterClose
=
()
=>
{
}):
void
{
static
showTurnCircle
(
afterClose
=
()
=>
{
}):
void
{
let
options
:
ShowTurnCircleOptions
=
{
let
options
:
ShowTurnCircleOptions
=
{
afterClose
,
afterClose
,
}
}
afterClose
&&
afterClose
();
// afterClose && afterClose();
TACore
.
showTurnCircle
(
options
);
}
}
//是否存在视频
//是否存在视频
/** 是否展示观看视频按钮 */
/** 是否展示观看视频按钮 */
...
...
egret/src/mainScene/MainScene.ts
View file @
11120bef
...
@@ -37,7 +37,7 @@ import { ElementTargets } from '../something/uis/ElementTargets';
...
@@ -37,7 +37,7 @@ import { ElementTargets } from '../something/uis/ElementTargets';
import
{
PropGuide
}
from
'../something/uis/PropGuide'
;
import
{
PropGuide
}
from
'../something/uis/PropGuide'
;
import
{
ScoreProgress
}
from
'../something/uis/ScoreProgress'
;
import
{
ScoreProgress
}
from
'../something/uis/ScoreProgress'
;
import
{
StepNumber
}
from
'../something/uis/StepNumber'
;
import
{
StepNumber
}
from
'../something/uis/StepNumber'
;
import
{
getBgOn
,
getSoundOn
,
playSound
,
SoundType
,
stopBg
,
toggleSound
}
from
'../soundCtrl'
;
import
{
getBgOn
,
getSoundOn
,
playSound
,
SoundType
,
stopBg
,
toggleSound
}
from
'../soundCtrl'
;
import
{
playGameBg
,
toggleGameBg
}
from
'../soundCtrl2'
;
import
{
playGameBg
,
toggleGameBg
}
from
'../soundCtrl2'
;
import
{
createData
}
from
'../startScene/StartScene'
;
import
{
createData
}
from
'../startScene/StartScene'
;
import
{
DataManager
}
from
'./../../libs/tw/manager/DataManager'
;
import
{
DataManager
}
from
'./../../libs/tw/manager/DataManager'
;
...
@@ -67,7 +67,7 @@ import getRedBombAward, { getRedBombTimes } from '../getRedBombAward';
...
@@ -67,7 +67,7 @@ import getRedBombAward, { getRedBombTimes } from '../getRedBombAward';
import
{
FesRedBombShowAni
}
from
'../something/anisCall/FesRedBombShowAni'
;
import
{
FesRedBombShowAni
}
from
'../something/anisCall/FesRedBombShowAni'
;
import
{
RectsWaveAni
}
from
'../something/anisCall/RectsWaveAni'
;
import
{
RectsWaveAni
}
from
'../something/anisCall/RectsWaveAni'
;
import
{
Door
}
from
'../something/class/Door'
;
import
{
Door
}
from
'../something/class/Door'
;
import
Utils
,
{
CouponJoinScene
}
from
'../Utils'
;
import
Utils
,
{
CouponJoinScene
,
VideoEntranceScene
}
from
'../Utils'
;
const
aniClass
=
{
const
aniClass
=
{
"BoomAni"
:
BoomAni
,
"BoomAni"
:
BoomAni
,
...
@@ -254,6 +254,9 @@ export default class MainScene extends Scene {
...
@@ -254,6 +254,9 @@ export default class MainScene extends Scene {
//盲盒
//盲盒
alertBlindBox
=
false
;
alertBlindBox
=
false
;
tosucbtn
:
eui
.
Label
;
tofailbtn
:
eui
.
Label
;
start
(
data
:
{
chapter
:
number
,
boom
:
number
,
hammer
:
number
,
step
:
number
,
videoProp
:
number
[]
})
{
start
(
data
:
{
chapter
:
number
,
boom
:
number
,
hammer
:
number
,
step
:
number
,
videoProp
:
number
[]
})
{
super
.
start
();
super
.
start
();
//第几关
//第几关
...
@@ -281,7 +284,7 @@ export default class MainScene extends Scene {
...
@@ -281,7 +284,7 @@ export default class MainScene extends Scene {
if
(
b1ele
!=
1
)
{
if
(
b1ele
!=
1
)
{
canadd
=
false
;
canadd
=
false
;
}
}
if
(
canadd
&&!
this
.
chapterData
.
map
.
lattices
[
b1
])
{
if
(
canadd
&&
!
this
.
chapterData
.
map
.
lattices
[
b1
])
{
canadd
=
false
;
canadd
=
false
;
}
}
if
(
canadd
)
{
if
(
canadd
)
{
...
@@ -315,9 +318,9 @@ export default class MainScene extends Scene {
...
@@ -315,9 +318,9 @@ export default class MainScene extends Scene {
if
(
brandidxs
.
length
)
{
if
(
brandidxs
.
length
)
{
let
randidx
=
brandidxs
[
Math
.
floor
(
Math
.
random
()
*
brandidxs
.
length
)];
let
randidx
=
brandidxs
[
Math
.
floor
(
Math
.
random
()
*
brandidxs
.
length
)];
this
.
chapterData
.
map
.
elements
[
randidx
]
=
21
;
this
.
chapterData
.
map
.
elements
[
randidx
]
=
21
;
console
.
error
(
"本关存在盲盒,位置:"
,
randidx
);
console
.
error
(
"本关存在盲盒,位置:"
,
randidx
);
}
else
{
}
else
{
console
.
error
(
"本关没有盲盒"
,
this
.
chapter
);
console
.
error
(
"本关没有盲盒"
,
this
.
chapter
);
}
}
}
}
//初始化目标信息
//初始化目标信息
...
@@ -380,7 +383,7 @@ export default class MainScene extends Scene {
...
@@ -380,7 +383,7 @@ export default class MainScene extends Scene {
//AiControl初始化,
//AiControl初始化,
AiControl
.
ins
.
init
(
this
.
lattices
);
AiControl
.
ins
.
init
(
this
.
lattices
);
}
}
/**
/**
...
@@ -437,7 +440,7 @@ export default class MainScene extends Scene {
...
@@ -437,7 +440,7 @@ export default class MainScene extends Scene {
this
.
addChild
(
curScoreNum
);
this
.
addChild
(
curScoreNum
);
//分数进度条,托管
//分数进度条,托管
this
.
scoreProgress
=
new
ScoreProgress
(
this
.
starProgress
,
curScoreNum
,
this
.
chapterData
.
starScores
,
this
.
addStarDia
.
bind
(
this
),
this
.
chapter
);
this
.
scoreProgress
=
new
ScoreProgress
(
this
.
starProgress
,
curScoreNum
,
this
.
chapterData
.
starScores
,
this
.
addStarDia
.
bind
(
this
),
this
.
chapter
);
//分数置0
//分数置0
this
.
score
=
0
;
this
.
score
=
0
;
//地图生成
//地图生成
...
@@ -980,45 +983,59 @@ export default class MainScene extends Scene {
...
@@ -980,45 +983,59 @@ export default class MainScene extends Scene {
}
}
onTap_boomBtn
()
{
onTap_boomBtn
()
{
if
(
this
.
propBtnCon
.
boomBtn
.
propNumShow
.
count
<=
0
)
{
if
(
this
.
propBtnCon
.
boomBtn
.
propNumShow
.
count
<=
0
)
{
//购买弹框
if
(
Utils
.
isShowVideoEntrance
(
VideoEntranceScene
.
gameprops
))
{
PanelCtrl
.
instance
.
show
(
"addToolV"
,
{
//购买弹框
propType
:
PropType
.
BOOM
,
PanelCtrl
.
instance
.
show
(
"addToolV"
,
{
showVideo
:
!
this
.
recordOnce
.
boom
,
propType
:
PropType
.
BOOM
,
complete
:
(
isVideo
)
=>
{
showVideo
:
!
this
.
recordOnce
.
boom
,
this
.
propBtnCon
.
boomBtn
.
propNumShow
.
count
++
;
complete
:
(
isVideo
)
=>
{
if
(
isVideo
)
this
.
recordOnce
.
boom
=
true
;
this
.
propBtnCon
.
boomBtn
.
propNumShow
.
count
++
;
}
if
(
isVideo
)
this
.
recordOnce
.
boom
=
true
;
})
}
})
}
else
{
}
}
else
{
}
else
{
this
.
useProp
(
PropType
.
BOOM
)
this
.
useProp
(
PropType
.
BOOM
)
}
}
}
}
onTap_hammerBtn
()
{
onTap_hammerBtn
()
{
if
(
this
.
propBtnCon
.
hammerBtn
.
propNumShow
.
count
<=
0
)
{
if
(
this
.
propBtnCon
.
hammerBtn
.
propNumShow
.
count
<=
0
)
{
//购买弹框
if
(
Utils
.
isShowVideoEntrance
(
VideoEntranceScene
.
gameprops
))
{
PanelCtrl
.
instance
.
show
(
"addToolV"
,
{
//购买弹框
propType
:
PropType
.
HAMMER
,
PanelCtrl
.
instance
.
show
(
"addToolV"
,
{
showVideo
:
!
this
.
recordOnce
.
hammer
,
propType
:
PropType
.
HAMMER
,
complete
:
(
isVideo
)
=>
{
showVideo
:
!
this
.
recordOnce
.
hammer
,
this
.
propBtnCon
.
hammerBtn
.
propNumShow
.
count
++
;
complete
:
(
isVideo
)
=>
{
if
(
isVideo
)
this
.
recordOnce
.
hammer
=
true
;
this
.
propBtnCon
.
hammerBtn
.
propNumShow
.
count
++
;
}
if
(
isVideo
)
this
.
recordOnce
.
hammer
=
true
;
})
}
})
}
else
{
}
}
else
{
}
else
{
this
.
useProp
(
PropType
.
HAMMER
)
this
.
useProp
(
PropType
.
HAMMER
)
}
}
}
}
onTap_stepBtn
()
{
onTap_stepBtn
()
{
if
(
this
.
propBtnCon
.
stepBtn
.
propNumShow
.
count
<=
0
)
{
if
(
this
.
propBtnCon
.
stepBtn
.
propNumShow
.
count
<=
0
)
{
//购买弹框
if
(
Utils
.
isShowVideoEntrance
(
VideoEntranceScene
.
gameprops
))
{
PanelCtrl
.
instance
.
show
(
"addToolV"
,
{
//购买弹框
propType
:
PropType
.
CHANCE_NUM
,
PanelCtrl
.
instance
.
show
(
"addToolV"
,
{
showVideo
:
!
this
.
recordOnce
.
step
,
propType
:
PropType
.
CHANCE_NUM
,
complete
:
(
isVideo
)
=>
{
showVideo
:
!
this
.
recordOnce
.
step
,
this
.
propBtnCon
.
stepBtn
.
propNumShow
.
count
++
;
complete
:
(
isVideo
)
=>
{
if
(
isVideo
)
this
.
recordOnce
.
step
=
true
;
this
.
propBtnCon
.
stepBtn
.
propNumShow
.
count
++
;
}
if
(
isVideo
)
this
.
recordOnce
.
step
=
true
;
})
}
})
}
else
{
}
}
else
{
}
else
{
this
.
useProp
(
PropType
.
CHANCE_NUM
)
this
.
useProp
(
PropType
.
CHANCE_NUM
)
}
}
...
@@ -1937,7 +1954,6 @@ export default class MainScene extends Scene {
...
@@ -1937,7 +1954,6 @@ export default class MainScene extends Scene {
this
.
solveDiaPush
(
"blind"
);
this
.
solveDiaPush
(
"blind"
);
this
.
alertBlindBox
=
false
;
this
.
alertBlindBox
=
false
;
}
}
AiControl
.
ins
.
doorMotion
(
this
,
()
=>
{
AiControl
.
ins
.
doorMotion
(
this
,
()
=>
{
//鸡蛋的ai操作,存在判断三消,毛球的ai,也一样,所以放前面,存在三消时都直接执行eliminate了。不执行后续的回调
//鸡蛋的ai操作,存在判断三消,毛球的ai,也一样,所以放前面,存在三消时都直接执行eliminate了。不执行后续的回调
AiControl
.
ins
.
eggMotion
(
this
,
()
=>
{
AiControl
.
ins
.
eggMotion
(
this
,
()
=>
{
...
@@ -1998,9 +2014,9 @@ export default class MainScene extends Scene {
...
@@ -1998,9 +2014,9 @@ export default class MainScene extends Scene {
var
failVideoAddStep
=
5
;
var
failVideoAddStep
=
5
;
var
panelsDatas
=
this
.
returnPanels
(
"failed"
,
{
var
panelsDatas
=
this
.
returnPanels
(
"failed"
,
{
level
:
this
.
chapter
,
level
:
this
.
chapter
,
score
:
this
.
score
,
score
:
this
.
score
,
showVideo
:
!
this
.
recordOnce
.
failStep
,
//是否显示观看视频加步数
showVideo
:
!
this
.
recordOnce
.
failStep
,
//是否显示观看视频加步数
videoAdd
:
failVideoAddStep
,
videoAdd
:
failVideoAddStep
,
complete
:
()
=>
{
//观看完成回调,其实只要继续执行下面的逻辑就行
complete
:
()
=>
{
//观看完成回调,其实只要继续执行下面的逻辑就行
console
.
error
(
"广告成功回掉"
);
console
.
error
(
"广告成功回掉"
);
let
count
=
0
;
let
count
=
0
;
...
@@ -2015,10 +2031,10 @@ export default class MainScene extends Scene {
...
@@ -2015,10 +2031,10 @@ export default class MainScene extends Scene {
this
.
recordOnce
.
failStep
=
true
;
this
.
recordOnce
.
failStep
=
true
;
//加步数
//加步数
this
.
playAni
(
RecoverName
.
STEP_ANI
,
[
50
,
100
]);
this
.
playAni
(
RecoverName
.
STEP_ANI
,
[
50
,
100
]);
setTimeout
(()
=>
{
console
.
error
(
"广告成功回掉233"
);
this
.
steps
+=
failVideoAddStep
;
},
333
)
setTimeout
(()
=>
{
console
.
error
(
"广告成功回掉233"
);
this
.
steps
+=
failVideoAddStep
;
},
333
)
}
}
})
})
this
.
solveDiaPush
(
"fail"
,
panelsDatas
);
this
.
solveDiaPush
(
"fail"
,
panelsDatas
);
// PanelCtrl.instance.showPanels(panelsDatas[0], panelsDatas[1], () => { });
// PanelCtrl.instance.showPanels(panelsDatas[0], panelsDatas[1], () => { });
// PanelCtrl.instance.show("failed", { level: this.chapter });
// PanelCtrl.instance.show("failed", { level: this.chapter });
return
return
...
@@ -2052,8 +2068,8 @@ export default class MainScene extends Scene {
...
@@ -2052,8 +2068,8 @@ export default class MainScene extends Scene {
showToast
(
"元素已无法消除"
)
showToast
(
"元素已无法消除"
)
setTimeout
(()
=>
{
setTimeout
(()
=>
{
// playSound(SoundType.fail);
// playSound(SoundType.fail);
var
panelsDatas
=
this
.
returnPanels
(
"failed"
,
{
level
:
this
.
chapter
,
score
:
this
.
score
,
})
var
panelsDatas
=
this
.
returnPanels
(
"failed"
,
{
level
:
this
.
chapter
,
score
:
this
.
score
,
})
this
.
solveDiaPush
(
"fail"
,
panelsDatas
);
this
.
solveDiaPush
(
"fail"
,
panelsDatas
);
// PanelCtrl.instance.showPanels(panelsDatas[0], panelsDatas[1], () => { });
// PanelCtrl.instance.showPanels(panelsDatas[0], panelsDatas[1], () => { });
// PanelCtrl.instance.show("failed", { level: this.chapter });
// PanelCtrl.instance.show("failed", { level: this.chapter });
},
1000
)
},
1000
)
...
@@ -2744,15 +2760,15 @@ export default class MainScene extends Scene {
...
@@ -2744,15 +2760,15 @@ export default class MainScene extends Scene {
const
submitData
=
DataManager
.
ins
.
getData
(
'hc_submit'
).
data
;
const
submitData
=
DataManager
.
ins
.
getData
(
'hc_submit'
).
data
;
var
panelsDatas
;
var
panelsDatas
;
if
(
submitData
.
option
)
{
if
(
submitData
.
option
)
{
panelsDatas
=
this
.
returnPanels
(
ModuleTypes
.
PRIZE_PANEL
,
{
level
:
this
.
chapter
,
option
:
submitData
.
option
,
score
:
this
.
score
,
});
panelsDatas
=
this
.
returnPanels
(
ModuleTypes
.
PRIZE_PANEL
,
{
level
:
this
.
chapter
,
option
:
submitData
.
option
,
score
:
this
.
score
,
});
// PanelCtrl.instance.show(ModuleTypes.PRIZE_PANEL, { level: this.chapter, option: submitData.option });
// PanelCtrl.instance.show(ModuleTypes.PRIZE_PANEL, { level: this.chapter, option: submitData.option });
}
else
{
}
else
{
panelsDatas
=
this
.
returnPanels
(
ModuleTypes
.
NO_PRIZE_PANEL
,
{
level
:
this
.
chapter
,
score
:
this
.
score
,
})
panelsDatas
=
this
.
returnPanels
(
ModuleTypes
.
NO_PRIZE_PANEL
,
{
level
:
this
.
chapter
,
score
:
this
.
score
,
})
// PanelCtrl.instance.show(ModuleTypes.NO_PRIZE_PANEL, { level: this.chapter });
// PanelCtrl.instance.show(ModuleTypes.NO_PRIZE_PANEL, { level: this.chapter });
}
}
//弹出所有的
//弹出所有的
this
.
solveDiaPush
(
"success"
,
panelsDatas
);
this
.
solveDiaPush
(
"success"
,
panelsDatas
);
// PanelCtrl.instance.showPanels(panelsDatas[0], panelsDatas[1], () => { })
// PanelCtrl.instance.showPanels(panelsDatas[0], panelsDatas[1], () => { })
}
else
{
}
else
{
...
@@ -2946,7 +2962,8 @@ export default class MainScene extends Scene {
...
@@ -2946,7 +2962,8 @@ export default class MainScene extends Scene {
removeBlind
(
index
:
number
)
{
removeBlind
(
index
:
number
)
{
this
.
removeOperation
(
index
);
this
.
removeOperation
(
index
);
//播放动效
//播放动效
this
.
playAni
(
RecoverName
.
ROCK_ANI
,
Tool
.
getPositionByIndex
(
index
))
// this.playAni(RecoverName.ROCK_ANI, Tool.getPositionByIndex(index))
this
.
playAni
(
RecoverName
.
ELEDIS_ANI
,
Tool
.
getPositionByIndex
(
index
));
}
}
/**
/**
* 果冻的移除,包括动效
* 果冻的移除,包括动效
...
@@ -3039,7 +3056,7 @@ export default class MainScene extends Scene {
...
@@ -3039,7 +3056,7 @@ export default class MainScene extends Scene {
this
.
enableTouch
=
b
;
this
.
enableTouch
=
b
;
}
}
//初始化天降宝箱
//初始化天降宝箱
initBallonSp
(){
initBallonSp
()
{
//气球宝箱
//气球宝箱
this
.
balloonsp
=
new
egret
.
Bitmap
();
this
.
balloonsp
=
new
egret
.
Bitmap
();
this
.
balloonsp
.
texture
=
RES
.
getRes
(
"ballonimg_png"
);
this
.
balloonsp
.
texture
=
RES
.
getRes
(
"ballonimg_png"
);
...
@@ -3069,6 +3086,27 @@ export default class MainScene extends Scene {
...
@@ -3069,6 +3086,27 @@ export default class MainScene extends Scene {
x
:
0
x
:
0
},
movetime
)
},
movetime
)
this
.
balloonsp
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
clickBallon
,
this
);
this
.
balloonsp
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
clickBallon
,
this
);
this
.
tosucbtn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
toSuccess
,
this
);
this
.
tofailbtn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
toFail
,
this
);
}
//直接成功
toSuccess
(){
this
.
score
=
9999999
;
if
(
this
.
passElements
){
for
(
let
i
=
0
;
i
<
this
.
passElements
.
length
;
i
++
){
this
.
hasEliminatedElements
[
i
]
=
100
;
this
.
passElements
[
i
]
=
0
;
}
}
let
json
=
this
.
getSubmitJson
();
this
.
submit
(
json
);
}
toFail
(){
this
.
steps
=
0
;
this
.
fallCallback
();
}
}
//气球点击
//气球点击
clickBallon
()
{
clickBallon
()
{
...
@@ -3078,31 +3116,32 @@ export default class MainScene extends Scene {
...
@@ -3078,31 +3116,32 @@ export default class MainScene extends Scene {
}
}
//星星宝箱点击
//星星宝箱点击
addStarDia
(
staridx
)
{
addStarDia
(
staridx
)
{
this
.
solveDiaPush
((
"star"
+
staridx
));
this
.
solveDiaPush
((
"star"
+
staridx
));
}
}
//气球奖励开启
//气球奖励开启
openBallonDia
(){
openBallonDia
()
{
Utils
.
couponJoin
(
CouponJoinScene
.
Buoy
,
this
.
chapter
,()
=>
{
Utils
.
couponJoin
(
CouponJoinScene
.
Buoy
,
this
.
chapter
,
()
=>
{
},
()
=>
{
},
()
=>
{
this
.
isInDom
=
false
;
this
.
isInDom
=
false
;
this
.
showOneDia
();
this
.
showOneDia
();
});
});
}
}
//盲盒弹窗
//盲盒弹窗
openBlindBox
()
{
openBlindBox
()
{
Utils
.
couponJoin
(
CouponJoinScene
.
BlindBox
,
this
.
chapter
,()
=>
{
console
.
error
(
"打开盲盒==》"
);
Utils
.
couponJoin
(
CouponJoinScene
.
BlindBox
,
this
.
chapter
,
()
=>
{
},
()
=>
{
},
()
=>
{
this
.
isInDom
=
false
;
this
.
isInDom
=
false
;
this
.
showOneDia
();
this
.
showOneDia
();
});
});
}
}
//星星宝箱开启
//星星宝箱开启
openStarDia
(
staridx
){
openStarDia
(
staridx
)
{
Utils
.
couponJoin
(
CouponJoinScene
[
"StarBox"
+
staridx
],
this
.
chapter
,()
=>
{
Utils
.
couponJoin
(
CouponJoinScene
[
"StarBox"
+
staridx
],
this
.
chapter
,
()
=>
{
},
()
=>
{
},
()
=>
{
this
.
isInDom
=
false
;
this
.
isInDom
=
false
;
this
.
showOneDia
();
this
.
showOneDia
();
});
});
...
@@ -3114,15 +3153,16 @@ export default class MainScene extends Scene {
...
@@ -3114,15 +3153,16 @@ export default class MainScene extends Scene {
*
*
* @param type 序列弹窗的类型,success,过关弹窗,fail,失败弹窗,ballon气球弹窗,blind盲盒弹窗,star星级弹窗
* @param type 序列弹窗的类型,success,过关弹窗,fail,失败弹窗,ballon气球弹窗,blind盲盒弹窗,star星级弹窗
*/
*/
solveDiaPush
(
type
:
string
,
data
=
{})
{
solveDiaPush
(
type
:
string
,
data
=
{})
{
console
.
error
(
"添加品类"
);
let
needadd
=
true
;
let
needadd
=
true
;
for
(
let
item
of
this
.
diarr
)
{
for
(
let
item
of
this
.
diarr
)
{
if
(
item
.
type
==
type
)
{
if
(
item
.
type
==
type
)
{
needadd
=
false
;
needadd
=
false
;
break
;
break
;
}
}
}
}
if
(
needadd
)
{
if
(
needadd
)
{
this
.
diarr
.
push
({
this
.
diarr
.
push
({
type
,
type
,
data
,
data
,
...
@@ -3131,15 +3171,16 @@ export default class MainScene extends Scene {
...
@@ -3131,15 +3171,16 @@ export default class MainScene extends Scene {
}
}
}
}
showOneDia
()
{
showOneDia
()
{
if
(
this
.
diarr
.
length
&&
!
this
.
isInDom
)
{
if
(
this
.
diarr
.
length
&&
!
this
.
isInDom
)
{
let
onedia
=
this
.
diarr
.
shift
();
let
onedia
=
this
.
diarr
.
shift
();
const
{
type
,
data
}
=
onedia
;
const
{
type
,
data
}
=
onedia
;
this
.
isInDom
=
true
;
switch
(
type
)
{
switch
(
type
)
{
case
"success"
:
case
"success"
:
PanelCtrl
.
instance
.
showPanels
(
data
[
0
],
data
[
1
],
()
=>
{
})
PanelCtrl
.
instance
.
showPanels
(
data
[
0
],
data
[
1
],
()
=>
{})
break
;
break
;
case
"fail"
:
case
"fail"
:
PanelCtrl
.
instance
.
showPanels
(
data
[
0
],
data
[
1
],()
=>
{
PanelCtrl
.
instance
.
showPanels
(
data
[
0
],
data
[
1
],
()
=>
{
});
});
break
;
break
;
...
...
egret/src/mapScene/MapScene.ts
View file @
11120bef
...
@@ -870,7 +870,9 @@ export default class MapScene extends Scene {
...
@@ -870,7 +870,9 @@ export default class MapScene extends Scene {
//打开转盘
//打开转盘
onTap_turnGroup
()
{
onTap_turnGroup
()
{
console
.
log
(
"打开转盘"
);
Utils
.
showTurnCircle
(()
=>
{
console
.
log
(
"转盘关闭"
);
})
}
}
//兑换
//兑换
onTap_exchangeBtn
()
{
onTap_exchangeBtn
()
{
...
...
egret/src/panels/FailedPanel.ts
View file @
11120bef
...
@@ -18,8 +18,14 @@ export default class FailedPanel extends Panel {
...
@@ -18,8 +18,14 @@ export default class FailedPanel extends Panel {
start
(
data
)
{
start
(
data
)
{
super
.
start
();
super
.
start
();
this
.
data
=
data
;
this
.
data
=
data
;
const
{
showVideo
,
videoAdd
}
=
data
;
let
{
showVideo
,
videoAdd
}
=
data
;
this
.
changeSceneShow
(
showVideo
);
let
_v
=
showVideo
if
(
showVideo
&&
Utils
.
isShowVideoEntrance
(
VideoEntranceScene
.
defeated
)){
_v
=
true
;
}
else
{
_v
=
false
;
}
this
.
changeSceneShow
(
_v
);
if
(
showVideo
)
{
if
(
showVideo
)
{
let
propNumShow
=
new
PropNumber
();
let
propNumShow
=
new
PropNumber
();
...
...
egret/src/panels/StartPanel.ts
View file @
11120bef
...
@@ -34,6 +34,15 @@ export default class StartPanel extends Panel {
...
@@ -34,6 +34,15 @@ export default class StartPanel extends Panel {
//闯关前弹框曝光
//闯关前弹框曝光
NetManager
.
ins
.
showLog
(
getlogItem
(
1
))
NetManager
.
ins
.
showLog
(
getlogItem
(
1
))
let
_v
=
false
;
if
(
Utils
.
isShowVideoEntrance
(
VideoEntranceScene
.
gameprops
)){
_v
=
true
;
}
this
[
'video1btn'
].
visible
=
_v
;
this
[
'video2btn'
].
visible
=
_v
;
this
[
'video3btn'
].
visible
=
_v
;
super
.
start
();
super
.
start
();
this
[
'price2'
].
text
=
`-
${
window
[
'price2'
]}
元宝`
;
this
[
'price2'
].
text
=
`-
${
window
[
'price2'
]}
元宝`
;
this
[
'price3'
].
text
=
`-
${
window
[
'price3'
]}
元宝`
;
this
[
'price3'
].
text
=
`-
${
window
[
'price3'
]}
元宝`
;
...
@@ -103,8 +112,13 @@ export default class StartPanel extends Panel {
...
@@ -103,8 +112,13 @@ export default class StartPanel extends Panel {
onTap_startBtn
()
{
onTap_startBtn
()
{
const
homeData
=
getHomeData
();
const
homeData
=
getHomeData
();
if
(
homeData
.
remainEnargy
<=
0
)
{
if
(
homeData
.
remainEnargy
<=
0
)
{
if
(
Utils
.
isShowVideoEntrance
(
VideoEntranceScene
.
life
)){
PanelCtrl
.
instance
.
show
(
'addBloodV'
);
}
else
{
showToast
(
"体力不足"
);
}
// if (homeData.askForEnergy) {
// if (homeData.askForEnergy) {
PanelCtrl
.
instance
.
show
(
'addBloodV'
);
// } else {
// } else {
// if (iswx()) {
// if (iswx()) {
// getShareUrl(this.stage);
// getShareUrl(this.stage);
...
...
mock/activity/doJoin.json
0 → 100644
View file @
11120bef
{
"code"
:
"0000000"
,
"desc"
:
"成功"
,
"data"
:
{
"result"
:
{
"result"
:
2
,
"activityId"
:
15393
,
"orderId"
:
"423927725990476"
,
"bcdOrderId"
:
"1Wnu5FNak"
,
"lottery"
:
{
"landPageTags"
:
[
"04.01.0010"
],
"st_info_dpm_exposure_complete"
:
"{
\"
dpm
\"
:
\"
40892.4.1.2
\"
,
\"
couponSource
\"
:
\"
activity
\"
,
\"
orderId
\"
:
\"
taw-000
\"
,
\"
consumerId
\"
:23935380671,
\"
deliveryType
\"
:1,
\"
device_type
\"
:
\"
tuia
\"
,
\"
materialId
\"
:103647,
\"
advertId
\"
:69536,
\"
dcm
\"
:
\"
104.69536.1.103647
\"
,
\"
activityId
\"
:17730,
\"
styleType
\"
:
\"
1711
\"
,
\"
skinType
\"
:
\"
ops_ringToss_v1__btn
\"
,
\"
domain
\"
:
\"
//embedlog.duiba.com.cn
\"
,
\"
appId
\"
:40892,
\"
dsm2
\"
:
\"
1.326857.2.18045
\"
,
\"
activityType
\"
:28,
\"
dsm
\"
:
\"
1.326857.0.0
\"
}"
,
"advertLayer"
:
{
"id"
:
748
,
"skinName"
:
"大转盘极速版弹层"
,
"skinType"
:
4
,
"isDeleted"
:
false
,
"code"
:
"<link rel=
\"
stylesheet
\"
href=
\"
//yun.tuisnake.com/newactivity/assets/layer-748.b8d5e0d9.css
\"
>
\n
<script type=
\"
text/javascript
\"
>
\n
var oHead = document.querySelector('.modal-group');
\n
var oScript = document.createElement('script');
\n
oScript.type =
\"
text/javascript
\"
;
\n
// oScript.id =
\"
couponScript
\"
;
\n
oScript.crossOrigin =
\"
anonymous
\"
;
\n
oScript.src =
\"
//yun.tuisnake.com/newactivity/assets/layer-748.a4642bee.js
\"
;
\n
oHead.appendChild(oScript);
\n
</script>"
,
"image"
:
"//yun.tuisnake.com/mami-media/img/99947611-evx40xszrs.png"
,
"searchKey"
:
"大转盘极速版弹层-748"
,
"layerSkinExtDto"
:
null
,
"empty"
:
false
},
"isEncourage"
:
false
,
"link"
:
"//activity.tuia.cn/activity/indexRecord?vmName=detail&orderId=423927725990476&dpm=28387.4.3.0&dcm=104.44967.790.70959"
,
"tempFlag"
:
0
,
"useBtnText"
:
"免费领取"
,
"title"
:
"免费领卡 购物最低享4折!"
,
"type"
:
"lucky"
,
"imgurl"
:
"//yun.tuisnake.com/babi/img/870e1583-ba63w7a86w.gif"
,
"st_info_dpm_exposure"
:
"{
\"
dpm
\"
:
\"
28387.4.1.0
\"
,
\"
couponSource
\"
:
\"
activity
\"
,
\"
orderId
\"
:
\"
taw-423927725990476
\"
,
\"
consumerId
\"
:15918481884,
\"
domain4Web
\"
:
\"
//activity.tuia.cn
\"
,
\"
deliveryType
\"
:1,
\"
device_type
\"
:
\"
tuia
\"
,
\"
materialId
\"
:70959,
\"
url
\"
:
\"
/activity/showLog
\"
,
\"
advertId
\"
:44967,
\"
dcm
\"
:
\"
104.44967.790.70959
\"
,
\"
activityId
\"
:15393,
\"
styleType
\"
:
\"
1298
\"
,
\"
skinType
\"
:
\"
ops_digGold_v1_vm
\"
,
\"
domainWeb
\"
:
\"
//activity.tuia.cn
\"
,
\"
domain
\"
:
\"
//embedlog.duiba.com.cn
\"
,
\"
appId
\"
:28387,
\"
activityType
\"
:28}"
,
"skinType"
:
"ops_digGold_v1_vm"
,
"linkTo"
:
0
,
"secondEncourage"
:
{
"advertId"
:
56810
,
"incentveIsFull"
:
true
,
"secondEnable"
:
1
,
"secondEncourageAll"
:
5
,
"secondEncourageAllNum"
:
5
,
"secondEncourageEmbedData"
:
{},
"secondEncourageLayer"
:
"{}"
,
"secondEncourageNum"
:
1
,
"secondEncourageType"
:
1
,
"secondEncourageUrl"
:
"//activity.tuiapple.com/encourage/redirect?url=https%3A%2F%2Fok.yamge.cn&a_slotId=313534&a_cid=16898685377&a_tuiaId=289830109525172224&a_advertId=56810&a_appId=66685&encSceneType=1"
,
"secondIncentveIsFull"
:
true
,
"secondStatus"
:
1
},
"encourage"
:
{
"encourageStatus"
:
1
,
"encourageMoney"
:
"1"
,
"fragmentsGet"
:
5
,
"encourageMoneyAll"
:
"3"
,
"url"
:
"//activity.tuirabbit.com/encourage/redirect?url=%2F%2Factivity.tuipear.com%2Fland%2FlandPage%3Fid%3DMjY5Mg&a_slotId=256573&a_cid=8758299533&a_tuiaId=172433578389864448&a_advertId=38560&a_appId=52518"
,
"enable"
:
1
,
"type"
:
2
,
"layerId"
:
null
,
"showType"
:
1
,
"withdrawalAmount"
:
"7"
,
"encourageEmbedData"
:
{
"st_info_encourage_exposure3"
:
{
"dpm"
:
"52518.67.-1.1"
,
"consumer_id"
:
8758299533
,
"styleType"
:
1224
,
"domainWeb"
:
"//activity.tuirabbit.com"
,
"slot_id"
:
256573
,
"domain"
:
"//embedlog.duiba.com.cn"
,
"enType"
:
1
,
"app_id"
:
52518
,
"dcm"
:
"1022.38560.3.247"
},
"st_info_encourage_exposure1"
:
{
"dpm"
:
"52518.67.-1.1"
,
"consumer_id"
:
8758299533
,
"styleType"
:
1224
,
"domainWeb"
:
"//activity.tuirabbit.com"
,
"slot_id"
:
256573
,
"domain"
:
"//embedlog.duiba.com.cn"
,
"enType"
:
1
,
"app_id"
:
52518
,
"dcm"
:
"1022.38560.1.0"
},
"st_info_encourage_showLog"
:
{
"dpm"
:
"52518.67.-1.1"
,
"consumer_id"
:
8758299533
,
"styleType"
:
1224
,
"orderId"
:
"172433578389864448"
,
"domain4Web"
:
"//activity.tuirabbit.com"
,
"app_id"
:
52518
,
"url"
:
"/encourage/showLog"
,
"dcm"
:
"1022.38560.1.0"
,
"advert_id"
:
38560
},
"st_info_encourage_click1"
:
{
"dpm"
:
"52518.67.-1.1"
,
"consumer_id"
:
8758299533
,
"styleType"
:
1224
,
"slot_id"
:
256573
,
"domain4Web"
:
"//activity.tuirabbit.com"
,
"enType"
:
1
,
"app_id"
:
52518
,
"url"
:
"/statistics/click"
,
"dcm"
:
"1022.38560.1.0"
},
"st_info_encourage_click2"
:
{
"dpm"
:
"52518.67.-1.1"
,
"consumer_id"
:
8758299533
,
"styleType"
:
1224
,
"slot_id"
:
256573
,
"domain4Web"
:
"//activity.tuirabbit.com"
,
"enType"
:
1
,
"app_id"
:
52518
,
"url"
:
"/statistics/click"
,
"dcm"
:
"1022.38560.2.0"
},
"st_info_encourage_click3"
:
{
"dpm"
:
"52518.67.-1.1"
,
"consumer_id"
:
8758299533
,
"styleType"
:
1224
,
"slot_id"
:
256573
,
"domain4Web"
:
"//activity.tuirabbit.com"
,
"enType"
:
1
,
"app_id"
:
52518
,
"url"
:
"/statistics/click"
,
"dcm"
:
"1022.38560.3.247"
},
"st_info_encourage_click4"
:
{
"dpm"
:
"52518.67.-1.1"
,
"consumer_id"
:
8758299533
,
"styleType"
:
1224
,
"slot_id"
:
256573
,
"domain4Web"
:
"//activity.tuirabbit.com"
,
"enType"
:
1
,
"app_id"
:
52518
,
"url"
:
"/statistics/click"
,
"dcm"
:
"1022.38560.4.0"
},
"st_info_encourage_exposure4"
:
{
"dpm"
:
"52518.67.-1.1"
,
"consumer_id"
:
8758299533
,
"styleType"
:
1224
,
"domainWeb"
:
"//activity.tuirabbit.com"
,
"slot_id"
:
256573
,
"domain"
:
"//embedlog.duiba.com.cn"
,
"enType"
:
1
,
"app_id"
:
52518
,
"dcm"
:
"1022.38560.4.0"
}
}
},
"encourageFlag"
:
true
,
"st_info_dpm_btn_again"
:
"{
\"
dpm
\"
:
\"
28387.4.8.0
\"
,
\"
orderId
\"
:
\"
taw-423927725990476
\"
,
\"
consumerId
\"
:15918481884,
\"
domain4Web
\"
:
\"
//activity.tuia.cn
\"
,
\"
deliveryType
\"
:1,
\"
device_type
\"
:
\"
tuia
\"
,
\"
materialId
\"
:70959,
\"
url
\"
:
\"
/statistics/click
\"
,
\"
advertId
\"
:44967,
\"
dcm
\"
:
\"
104.44967.790.70959
\"
,
\"
activityId
\"
:15393,
\"
styleType
\"
:
\"
1298
\"
,
\"
skinType
\"
:
\"
ops_digGold_v1_vm
\"
,
\"
domain
\"
:
\"
//embedlog.duiba.com.cn
\"
,
\"
appId
\"
:28387,
\"
activityType
\"
:28}"
,
"st_info_dpm_btn_close_downgrade"
:
"{
\"
dpm
\"
:
\"
28387.4.4.0
\"
,
\"
orderId
\"
:
\"
taw-423927725990476
\"
,
\"
consumerId
\"
:15918481884,
\"
domain4Web
\"
:
\"
//activity.tuia.cn
\"
,
\"
deliveryType
\"
:1,
\"
device_type
\"
:
\"
tuia
\"
,
\"
materialId
\"
:70959,
\"
url
\"
:
\"
/statistics/click
\"
,
\"
advertId
\"
:44967,
\"
dcm
\"
:
\"
104.44967.790.70959
\"
,
\"
activityId
\"
:15393,
\"
styleType
\"
:
\"
1298
\"
,
\"
skinType
\"
:
\"
ops_digGold_v1_vm
\"
,
\"
domain
\"
:
\"
//embedlog.duiba.com.cn
\"
,
\"
appId
\"
:28387,
\"
activityType
\"
:28}"
,
"tip"
:
"一句话描述"
,
"id"
:
5823
,
"st_info_dpm_btn_close"
:
"{
\"
dpm
\"
:
\"
28387.4.4.0
\"
,
\"
orderId
\"
:
\"
taw-423927725990476
\"
,
\"
consumerId
\"
:15918481884,
\"
domain4Web
\"
:
\"
//activity.tuia.cn
\"
,
\"
deliveryType
\"
:1,
\"
device_type
\"
:
\"
tuia
\"
,
\"
materialId
\"
:70959,
\"
url
\"
:
\"
/statistics/click
\"
,
\"
advertId
\"
:44967,
\"
dcm
\"
:
\"
104.44967.790.70959
\"
,
\"
activityId
\"
:15393,
\"
styleType
\"
:
\"
1298
\"
,
\"
skinType
\"
:
\"
ops_digGold_v1_vm
\"
,
\"
domain
\"
:
\"
//embedlog.duiba.com.cn
\"
,
\"
appId
\"
:28387,
\"
activityType
\"
:28}"
,
"validate"
:
"2019-12-31"
,
"st_info_dpm_title_click"
:
"{
\"
dpm
\"
:
\"
28387.4.7.0
\"
,
\"
orderId
\"
:
\"
taw-423927725990476
\"
,
\"
consumerId
\"
:15918481884,
\"
domain4Web
\"
:
\"
//activity.tuia.cn
\"
,
\"
deliveryType
\"
:1,
\"
device_type
\"
:
\"
tuia
\"
,
\"
materialId
\"
:70959,
\"
url
\"
:
\"
/statistics/click
\"
,
\"
advertId
\"
:44967,
\"
dcm
\"
:
\"
104.44967.790.70959
\"
,
\"
activityId
\"
:15393,
\"
styleType
\"
:
\"
1298
\"
,
\"
skinType
\"
:
\"
ops_digGold_v1_vm
\"
,
\"
domain
\"
:
\"
//embedlog.duiba.com.cn
\"
,
\"
appId
\"
:28387,
\"
activityType
\"
:28}"
,
"androidDownloadUrl"
:
"//activity.tuia.cn/activity/redirect?url=https%3A%2F%2Fwww.black-unique.com%2F%3Futm_source%3Djihekeji%26utm_medium%3Dfull%26utm_campaign%3Dheika%26channel_hash%3D7bbbb884d14af0c45cd6f39000867457&orderId=taw-423927725990476&dcm=104.44967.790.70959&dpm=28387.4.1.0&activityId=15393&device_type=tuia&couponSource=activity&styleType=1298&appId=28387&consumerId=15918481884"
,
"st_info_dpm_exposure_downgrade"
:
"{
\"
dpm
\"
:
\"
28387.4.1.0
\"
,
\"
couponSource
\"
:
\"
activity
\"
,
\"
orderId
\"
:
\"
taw-423927725990476
\"
,
\"
consumerId
\"
:15918481884,
\"
domain4Web
\"
:
\"
//activity.tuia.cn
\"
,
\"
deliveryType
\"
:1,
\"
device_type
\"
:
\"
tuia
\"
,
\"
materialId
\"
:70959,
\"
downgrade
\"
:
\"
true
\"
,
\"
url
\"
:
\"
/activity/showLog
\"
,
\"
advertId
\"
:44967,
\"
dcm
\"
:
\"
104.44967.790.70959
\"
,
\"
activityId
\"
:15393,
\"
styleType
\"
:
\"
1298
\"
,
\"
skinType
\"
:
\"
ops_digGold_v1_vm
\"
,
\"
domainWeb
\"
:
\"
//activity.tuia.cn
\"
,
\"
domain
\"
:
\"
//embedlog.duiba.com.cn
\"
,
\"
appId
\"
:28387,
\"
activityType
\"
:28}"
,
"st_info_dpm_btn_again_downgrade"
:
"{
\"
dpm
\"
:
\"
28387.4.8.0
\"
,
\"
orderId
\"
:
\"
taw-423927725990476
\"
,
\"
consumerId
\"
:15918481884,
\"
domain4Web
\"
:
\"
//activity.tuia.cn
\"
,
\"
deliveryType
\"
:1,
\"
device_type
\"
:
\"
tuia
\"
,
\"
materialId
\"
:70959,
\"
url
\"
:
\"
/statistics/click
\"
,
\"
advertId
\"
:44967,
\"
dcm
\"
:
\"
104.44967.790.70959
\"
,
\"
activityId
\"
:15393,
\"
styleType
\"
:
\"
1298
\"
,
\"
skinType
\"
:
\"
ops_digGold_v1_vm
\"
,
\"
domain
\"
:
\"
//embedlog.duiba.com.cn
\"
,
\"
appId
\"
:28387,
\"
activityType
\"
:28}"
,
"st_info_dpm_img_click_downgrade"
:
"{
\"
dpm
\"
:
\"
28387.4.5.0
\"
,
\"
orderId
\"
:
\"
taw-423927725990476
\"
,
\"
consumerId
\"
:15918481884,
\"
domain4Web
\"
:
\"
//activity.tuia.cn
\"
,
\"
deliveryType
\"
:1,
\"
device_type
\"
:
\"
tuia
\"
,
\"
materialId
\"
:70959,
\"
url
\"
:
\"
/statistics/click
\"
,
\"
advertId
\"
:44967,
\"
dcm
\"
:
\"
104.44967.790.70959
\"
,
\"
activityId
\"
:15393,
\"
styleType
\"
:
\"
1298
\"
,
\"
skinType
\"
:
\"
ops_digGold_v1_vm
\"
,
\"
domain
\"
:
\"
//embedlog.duiba.com.cn
\"
,
\"
appId
\"
:28387,
\"
activityType
\"
:28}"
,
"advertId"
:
44967
,
"openUrl"
:
""
,
"showUse"
:
true
,
"st_info_dpm_title_click_downgrade"
:
"{
\"
dpm
\"
:
\"
28387.4.7.0
\"
,
\"
orderId
\"
:
\"
taw-423927725990476
\"
,
\"
consumerId
\"
:15918481884,
\"
domain4Web
\"
:
\"
//activity.tuia.cn
\"
,
\"
deliveryType
\"
:1,
\"
device_type
\"
:
\"
tuia
\"
,
\"
materialId
\"
:70959,
\"
url
\"
:
\"
/statistics/click
\"
,
\"
advertId
\"
:44967,
\"
dcm
\"
:
\"
104.44967.790.70959
\"
,
\"
activityId
\"
:15393,
\"
styleType
\"
:
\"
1298
\"
,
\"
skinType
\"
:
\"
ops_digGold_v1_vm
\"
,
\"
domain
\"
:
\"
//embedlog.duiba.com.cn
\"
,
\"
appId
\"
:28387,
\"
activityType
\"
:28}"
,
"st_info_dpm_btn_get_downgrade"
:
"{
\"
dpm
\"
:
\"
28387.4.6.0
\"
,
\"
orderId
\"
:
\"
taw-423927725990476
\"
,
\"
consumerId
\"
:15918481884,
\"
domain4Web
\"
:
\"
//activity.tuia.cn
\"
,
\"
deliveryType
\"
:1,
\"
device_type
\"
:
\"
tuia
\"
,
\"
materialId
\"
:70959,
\"
url
\"
:
\"
/statistics/click
\"
,
\"
advertId
\"
:44967,
\"
dcm
\"
:
\"
104.44967.790.70959
\"
,
\"
activityId
\"
:15393,
\"
styleType
\"
:
\"
1298
\"
,
\"
skinType
\"
:
\"
ops_digGold_v1_vm
\"
,
\"
domain
\"
:
\"
//embedlog.duiba.com.cn
\"
,
\"
appId
\"
:28387,
\"
activityType
\"
:28}"
,
"iosDownloadUrl"
:
"//activity.tuia.cn/activity/redirect?url=https%3A%2F%2Fwww.black-unique.com%2F%3Futm_source%3Djihekeji%26utm_medium%3Dfull%26utm_campaign%3Dheika%26channel_hash%3D7bbbb884d14af0c45cd6f39000867457&orderId=taw-423927725990476&dcm=104.44967.790.70959&dpm=28387.4.1.0&activityId=15393&device_type=tuia&couponSource=activity&styleType=1298&appId=28387&consumerId=15918481884"
,
"isDownloadUrl"
:
true
,
"st_info_dpm_img_click"
:
"{
\"
dpm
\"
:
\"
28387.4.5.0
\"
,
\"
orderId
\"
:
\"
taw-423927725990476
\"
,
\"
consumerId
\"
:15918481884,
\"
domain4Web
\"
:
\"
//activity.tuia.cn
\"
,
\"
deliveryType
\"
:1,
\"
device_type
\"
:
\"
tuia
\"
,
\"
materialId
\"
:70959,
\"
url
\"
:
\"
/statistics/click
\"
,
\"
advertId
\"
:44967,
\"
dcm
\"
:
\"
104.44967.790.70959
\"
,
\"
activityId
\"
:15393,
\"
styleType
\"
:
\"
1298
\"
,
\"
skinType
\"
:
\"
ops_digGold_v1_vm
\"
,
\"
domain
\"
:
\"
//embedlog.duiba.com.cn
\"
,
\"
appId
\"
:28387,
\"
activityType
\"
:28}"
,
"st_info_dpm_btn_get"
:
"{
\"
dpm
\"
:
\"
28387.4.6.0
\"
,
\"
orderId
\"
:
\"
taw-423927725990476
\"
,
\"
consumerId
\"
:15918481884,
\"
domain4Web
\"
:
\"
//activity.tuia.cn
\"
,
\"
deliveryType
\"
:1,
\"
device_type
\"
:
\"
tuia
\"
,
\"
materialId
\"
:70959,
\"
url
\"
:
\"
/statistics/click
\"
,
\"
advertId
\"
:44967,
\"
dcm
\"
:
\"
104.44967.790.70959
\"
,
\"
activityId
\"
:15393,
\"
styleType
\"
:
\"
1298
\"
,
\"
skinType
\"
:
\"
ops_digGold_v1_vm
\"
,
\"
domain
\"
:
\"
//embedlog.duiba.com.cn
\"
,
\"
appId
\"
:28387,
\"
activityType
\"
:28}"
,
"joinSplitFlow"
:
true
,
"originDownloadUrl"
:
"//yun.dui88.com/tuia/sdk/apk/demo-release.apk"
},
"detailContactInfo"
:
{
"isOpenOptionDetail"
:
true
,
"optionDetailPhone"
:
"4000806659"
},
"status"
:
"success"
},
"isPullDown"
:
0
,
"limitTimes"
:
1
,
"orderId"
:
"423927725990476"
,
"success"
:
true
,
"isShowBuoy"
:
true
,
"stDoJoinClickInfo"
:
"{
\"
consumer_id
\"
:15918481884,
\"
doJoin
\"
:
\"
success
\"
,
\"
domain4Web
\"
:
\"
//activity.tuia.cn
\"
,
\"
app_id
\"
:28387,
\"
url
\"
:
\"
/statistics/click
\"
}"
,
"message"
:
"成功"
,
"limitType"
:
1
},
"success"
:
true
}
mock/config.js
View file @
11120bef
...
@@ -203,6 +203,15 @@ const config = {
...
@@ -203,6 +203,15 @@ const config = {
},
},
'/mixloanv/happyclear/submitStarBox'
:{
'/mixloanv/happyclear/submitStarBox'
:{
data
:
'./happyclear/submitStarBox.json'
data
:
'./happyclear/submitStarBox.json'
},
'/activity/doJoin'
:{
data
:
'./activity/doJoin.json'
},
'/mixloanv/happyclear/openBox'
:{
data
:
'./mixloanv/happyclear/openBox.json'
},
'/statistics/activityPagePerf'
:{
data
:
'./activity/doJoin.json'
}
}
};
};
...
...
mock/happyclear/home.json
View file @
11120bef
...
@@ -1011,15 +1011,15 @@
...
@@ -1011,15 +1011,15 @@
"remainProp"
:
[
"remainProp"
:
[
{
{
"type"
:
2
,
"type"
:
2
,
"num"
:
0
"num"
:
1
0
},
},
{
{
"type"
:
3
,
"type"
:
3
,
"num"
:
0
"num"
:
1
0
},
},
{
{
"type"
:
4
,
"type"
:
4
,
"num"
:
0
"num"
:
1
0
}
}
],
],
"remainEnargy"
:
2
,
"remainEnargy"
:
2
,
...
...
mock/mixloanv/happyclear/openBox.json
0 → 100644
View file @
11120bef
{
"code"
:
"000000"
,
"data"
:
9
,
"success"
:
true
,
"comment"
:
"根据不同场景和关卡获取碎片/积分/高级货币"
}
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