Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
xiaoxiaole
Commits
91f7676e
Commit
91f7676e
authored
Oct 30, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
771f27cc
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
224 additions
and
142 deletions
+224
-142
index.html
egret/index.html
+189
-122
FZY3JW_1.TTF
egret/resource/assets/common/FZY3JW_1.TTF
+0
-0
FZY4JW.TTF
egret/resource/assets/common/FZY4JW.TTF
+0
-0
default.res.json
egret/resource/default.res.json
+8
-3
StartSkin.exml
egret/resource/skins/StartSkin.exml
+2
-0
ScratchPanel.ts
egret/src/panels/ScratchPanel.ts
+2
-2
scratchGetTaskInfo.json
mock/happyclear/scratchGetTaskInfo.json
+7
-9
turnablebaseInfo.json
mock/happyclear/turnablebaseInfo.json
+1
-1
turnabledojoin.json
mock/happyclear/turnabledojoin.json
+15
-5
No files found.
egret/index.html
View file @
91f7676e
...
@@ -5,12 +5,12 @@
...
@@ -5,12 +5,12 @@
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
>
<title>
Egret
</title>
<title>
Egret
</title>
<meta
name=
"viewport"
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"
/>
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"
/>
<meta
name=
"x5-fullscreen"
content=
"true"
/>
<meta
name=
"x5-fullscreen"
content=
"true"
/>
<meta
name=
"360-fullscreen"
content=
"true"
/>
<meta
name=
"360-fullscreen"
content=
"true"
/>
<style>
<style>
html
,
html
,
body
{
body
{
...
@@ -25,136 +25,203 @@
...
@@ -25,136 +25,203 @@
margin
:
0
;
margin
:
0
;
height
:
100%
;
height
:
100%
;
}
}
@font-face
{
font-family
:
"z2"
;
@font-face
{
src
:
url("resource/assets/common/HuaKang_YuanTi_W5.TTF")
;
font-family
:
"FZYTW3"
;
src
:
url("resource/assets/common/FZY3JW_1.TTF")
;
}
@font-face
{
font-family
:
"FZYTW4"
;
src
:
url("resource/assets/common/FZY4JW.TTF")
;
}
}
</style>
</style>
</head>
</head>
<body>
<body>
<div
style=
"margin: auto;width: 100%;height: 100%;"
class=
"egret-player"
data-entry-class=
"Main"
<div
style=
"margin: auto;width: 100%;height: 100%;"
class=
"egret-player"
data-entry-class=
"Main"
data-orientation=
"auto"
data-scale-mode=
"showAll"
data-frame-rate=
"60"
data-content-width=
"750"
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=
"false"
data-content-height=
"1624"
data-multi-fingered=
"2"
data-show-fps=
"false"
data-show-log=
"false"
data-show-fps-style=
"x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9"
>
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>
<script
src=
"libs/modules/egret/egret.web.js"
></script>
<script
src=
"libs/modules/egret/egret.web.js"
></script>
<script
src=
"libs/modules/eui/eui.js"
></script>
<script
src=
"libs/modules/eui/eui.js"
></script>
<script
src=
"libs/modules/assetsmanager/assetsmanager.js"
></script>
<script
src=
"libs/modules/assetsmanager/assetsmanager.js"
></script>
<script
src=
"libs/modules/tween/tween.js"
></script>
<script
src=
"libs/modules/tween/tween.js"
></script>
<script
src=
"libs/zepto.min.js"
></script>
<script
src=
"libs/zepto.min.js"
></script>
<script
src=
"libs/security.js"
></script>
<script
src=
"libs/security.js"
></script>
<script
src=
"libs/downloadApp.js"
></script>
<script
src=
"libs/downloadApp.js"
></script>
<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=
"libs/fileSave.js"
></script>
<script
src=
"libs/fileSave.js"
></script>
<img
id=
"pic"
style=
"width:100%;position: absolute;z-index: 999;display: none;"
/>
<img
id=
"pic"
style=
"width:100%;position: absolute;z-index: 999;display: none;"
/>
<script>
<script>
window
[
'plugs'
]
=
[
1
,
2
,
3
]
window
[
'plugs'
]
=
[
1
,
2
,
3
]
// localStorage.clear();
// localStorage.clear();
window
[
'isInvitePage'
]
=
0
;
window
[
'isInvitePage'
]
=
0
;
var
targetUrl
=
'https://gameact.suning.com/sngame-web/api/duiba/private/v1/getLoginUrl.do?appCode=duiba&activityCode=3651404'
;
var
targetUrl
=
'https://gameact.suning.com/sngame-web/api/duiba/private/v1/getLoginUrl.do?appCode=duiba&activityCode=3651404'
;
/*
* 邀请有礼分享
/*
*/
* 邀请有礼分享
function
inviteShare
(
shareCode
)
{
*/
let
title
=
"求求你可以帮我点一下吗?还差一点点就可以领红包了~"
;
function
inviteShare
(
shareCode
)
{
let
content
=
"我在狮狮连萌等你,一起天天领福利哦"
;
let
title
=
"求求你可以帮我点一下吗?还差一点点就可以领红包了~"
;
let
targetUrl
=
"https://gameact.suning.com/duiba/customShare/share?id=3531"
+
"&shareCode="
+
shareCode
;
// 待修改
let
content
=
"我在狮狮连萌等你,一起天天领福利哦"
;
let
iconUrl
=
"http://yun.duiba.com.cn/db_games/xiaoxiaole2.jpg"
;
let
targetUrl
=
"https://gameact.suning.com/duiba/customShare/share?id=3531"
+
"&shareCode="
+
shareCode
;
// 待修改
let
shareWays
=
"1,2"
;
let
iconUrl
=
"http://yun.duiba.com.cn/db_games/xiaoxiaole2.jpg"
;
console
.
log
(
"AppReady"
);
let
shareWays
=
"1,2"
;
if
(
isIphone
())
{
console
.
log
(
"AppReady"
);
console
.
log
(
"IOS"
);
if
(
isIphone
())
{
console
.
log
(
window
.
SNNativeClient
);
console
.
log
(
"IOS"
);
window
.
callNativeShareResult
=
function
()
{
};
console
.
log
(
window
.
SNNativeClient
);
window
.
SNNativeClient
.
callNativeShare
(
title
,
content
,
targetUrl
,
iconUrl
,
shareWays
);
window
.
callNativeShareResult
=
function
()
{
}
else
{
};
console
.
log
(
"安卓"
);
window
.
SNNativeClient
.
callNativeShare
(
title
,
content
,
targetUrl
,
iconUrl
,
shareWays
);
console
.
log
(
shareApi
);
}
else
{
console
.
log
(
shareApi
.
callMediaShare
);
console
.
log
(
"安卓"
);
shareApi
.
callNativeShare
(
title
,
content
,
targetUrl
,
iconUrl
,
shareWays
);
console
.
log
(
shareApi
);
}
console
.
log
(
shareApi
.
callMediaShare
);
shareApi
.
callNativeShare
(
title
,
content
,
targetUrl
,
iconUrl
,
shareWays
);
}
}
function
share
()
{
}
let
title
=
""
;
let
content
=
""
;
function
share
()
{
let
targetUrl
=
""
;
let
title
=
""
;
let
iconUrl
=
"http://yun.duiba.com.cn/db_games/xiaoxiaole.jpg"
;
let
content
=
""
;
let
shareWays
=
""
;
let
targetUrl
=
""
;
console
.
log
(
"AppReady"
);
let
iconUrl
=
"http://yun.duiba.com.cn/db_games/xiaoxiaole.jpg"
;
if
(
isIphone
())
{
let
shareWays
=
""
;
console
.
log
(
"IOS"
);
console
.
log
(
"AppReady"
);
console
.
log
(
window
.
SNNativeClient
);
if
(
isIphone
())
{
window
.
callNativeShareResult
=
function
()
{
};
console
.
log
(
"IOS"
);
window
.
SNNativeClient
.
callNativeShare
(
title
,
content
,
targetUrl
,
iconUrl
,
shareWays
);
console
.
log
(
window
.
SNNativeClient
);
}
else
{
window
.
callNativeShareResult
=
function
()
{
console
.
log
(
"安卓"
);
};
console
.
log
(
shareApi
);
window
.
SNNativeClient
.
callNativeShare
(
title
,
content
,
targetUrl
,
iconUrl
,
shareWays
);
console
.
log
(
shareApi
.
callMediaShare
);
}
else
{
shareApi
.
callNativeShare
(
title
,
content
,
targetUrl
,
iconUrl
,
shareWays
);
console
.
log
(
"安卓"
);
}
console
.
log
(
shareApi
);
console
.
log
(
shareApi
.
callMediaShare
);
shareApi
.
callNativeShare
(
title
,
content
,
targetUrl
,
iconUrl
,
shareWays
);
}
}
function
isIphone
()
{
}
var
ua
=
navigator
.
userAgent
.
toLocaleLowerCase
();
if
(
ua
.
match
(
/iphone|ipad/
))
{
function
isIphone
()
{
return
true
;
var
ua
=
navigator
.
userAgent
.
toLocaleLowerCase
();
}
else
if
(
ua
.
match
(
/android/
))
{
if
(
ua
.
match
(
/iphone|ipad/
))
{
return
false
;
return
true
;
}
}
else
if
(
ua
.
match
(
/android/
))
{
return
false
;
}
}
</script>
}
<script>
</script>
window
[
'signconfigs'
]
=
[
<script>
{
nums
:
'0.15元'
,
type
:
'quan15'
},
window
[
'signconfigs'
]
=
[
{
nums
:
'*1'
,
type
:
'hammer'
},
{
nums
:
'0.15元'
,
type
:
'quan15'
},
{
nums
:
'0.38元'
,
type
:
'quan38'
},
{
nums
:
'*1'
,
type
:
'hammer'
},
{
nums
:
'*1'
,
type
:
'boom'
},
{
nums
:
'0.38元'
,
type
:
'quan38'
},
{
nums
:
'0.58元'
,
type
:
'quan58'
},
{
nums
:
'*1'
,
type
:
'boom'
},
{
nums
:
'*1'
,
type
:
'steps'
},
{
nums
:
'0.58元'
,
type
:
'quan58'
},
{
nums
:
'随机奖励'
,
type
:
'random'
}
{
nums
:
'*1'
,
type
:
'steps'
},
{
nums
:
'随机奖励'
,
type
:
'random'
}
];
];
// localStorage.clear();
// localStorage.clear();
window
[
'imgver'
]
=
'1022'
window
[
'imgver'
]
=
'1022'
window
[
'total_level'
]
=
18
+
13
*
14
;
window
[
'total_level'
]
=
18
+
13
*
14
;
window
[
'last_level'
]
=
200
;
//必须大于等于total_level
window
[
'last_level'
]
=
200
;
//必须大于等于total_level
// localStorage.clear();
// localStorage.clear();
var
sharePic
=
document
.
getElementById
(
'pic'
);
var
sharePic
=
document
.
getElementById
(
'pic'
);
sharePic
.
onclick
=
function
(){
sharePic
.
onclick
=
function
()
{
sharePic
.
style
.
display
=
'none'
sharePic
.
style
.
display
=
'none'
}
}
window
[
'duiba'
]
=
''
;
// window['duiba'] = '/duiba';
window
[
'registerWX'
]
=
(
result
)
=>
{
console
.
log
(
result
)
}
window
[
'price1'
]
=
123
;
window
[
'price2'
]
=
2
;
window
[
'price3'
]
=
3
;
window
[
'price4'
]
=
4
;
window
[
'price5'
]
=
555
;
window
[
'INIT_BALL_NUMS'
]
=
1
;
window
[
'numsP'
]
=
0.1
;
// window['debugPhysics']=true;
window
[
'renderMode'
]
=
'webgl'
;
window
[
'development'
]
=
true
;
var
gameId
=
1
;
var
CFG
=
{
"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
resPath
=
''
;
function
resolve
(
a
)
{
var
b
=
eval
(
a
);
return
b
;
}
</script>
window
[
'duiba'
]
=
''
;
// window['duiba'] = '/duiba';
window
[
'registerWX'
]
=
(
result
)
=>
{
console
.
log
(
result
)}
window
[
'price1'
]
=
123
;
window
[
'price2'
]
=
2
;
window
[
'price3'
]
=
3
;
window
[
'price4'
]
=
4
;
window
[
'price5'
]
=
555
;
window
[
'INIT_BALL_NUMS'
]
=
1
;
window
[
'numsP'
]
=
0.1
;
// window['debugPhysics']=true;
window
[
'renderMode'
]
=
'webgl'
;
window
[
'development'
]
=
true
;
var
gameId
=
1
;
var
CFG
=
{
"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
resPath
=
''
;
function
resolve
(
a
)
{
var
b
=
eval
(
a
);
return
b
;
}
</script>
<script
src=
"output.js"
></script>
<script
src=
"output.js"
></script>
</body>
</body>
</html>
</html>
\ No newline at end of file
egret/resource/assets/common/FZY3JW_1.TTF
0 → 100644
View file @
91f7676e
File added
egret/resource/assets/common/FZY4JW.TTF
0 → 100644
View file @
91f7676e
File added
egret/resource/default.res.json
View file @
91f7676e
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
"name"
:
"signprize"
"name"
:
"signprize"
},
},
{
{
"keys"
:
"toast_png,share_btn2_png,share_btn1_png,prizePanelbg_png,nums2_png,nums2_fnt,nums_png,nums_fnt,lightani_png,common_yuanbao_png,common_prizelight_png,common_adbg_png,commmon_okbtn1_png,closeCommonBtn_png,btn_png,alertbg_png,朋友圈中间分享蒙层1_jpg,按钮 副本 4_png,按钮 副本 3_png,exchangebtn_png,turnnoprize再来一次2_png"
,
"keys"
:
"toast_png,share_btn2_png,share_btn1_png,prizePanelbg_png,nums2_png,nums2_fnt,nums_png,nums_fnt,lightani_png,common_yuanbao_png,common_prizelight_png,common_adbg_png,commmon_okbtn1_png,closeCommonBtn_png,btn_png,alertbg_png,朋友圈中间分享蒙层1_jpg,按钮 副本 4_png,按钮 副本 3_png,exchangebtn_png,turnnoprize再来一次2_png
,FZY3JW_1_TTF,FZY4JW_TTF
"
,
"name"
:
"common"
"name"
:
"common"
},
},
{
{
...
@@ -2849,9 +2849,14 @@
...
@@ -2849,9 +2849,14 @@
"name"
:
"eyeDownRight_png"
"name"
:
"eyeDownRight_png"
},
},
{
{
"url"
:
"assets/common/
HuaKang_YuanTi_W5
.TTF"
,
"url"
:
"assets/common/
FZY3JW_1
.TTF"
,
"type"
:
"bin"
,
"type"
:
"bin"
,
"name"
:
"HuaKang_YuanTi_W5_TTF"
"name"
:
"FZY3JW_1_TTF"
},
{
"url"
:
"assets/common/FZY4JW.TTF"
,
"type"
:
"bin"
,
"name"
:
"FZY4JW_TTF"
}
}
]
]
}
}
\ No newline at end of file
egret/resource/skins/StartSkin.exml
View file @
91f7676e
...
@@ -17,4 +17,6 @@
...
@@ -17,4 +17,6 @@
<e:Image
source=
"头顶树丛_png"
x=
"0"
y=
"0"
/>
<e:Image
source=
"头顶树丛_png"
x=
"0"
y=
"0"
/>
<e:Label
id=
"tips"
text=
"正在加载中,请稍后"
y=
"993"
textColor=
"0x244b00"
horizontalCenter=
"0"
size=
"24"
/>
<e:Label
id=
"tips"
text=
"正在加载中,请稍后"
y=
"993"
textColor=
"0x244b00"
horizontalCenter=
"0"
size=
"24"
/>
<e:Label
id=
"percentTxt"
text=
"63%"
y=
"1110"
textColor=
"0x244B00"
horizontalCenter=
"0.5"
/>
<e:Label
id=
"percentTxt"
text=
"63%"
y=
"1110"
textColor=
"0x244B00"
horizontalCenter=
"0.5"
/>
<e:Label
text=
" "
y=
"1186"
textColor=
"0x244B00"
horizontalCenter=
"0.5"
fontFamily=
"FZYTW3"
/>
<e:Label
text=
" "
y=
"1186"
textColor=
"0x244B00"
horizontalCenter=
"0.5"
fontFamily=
"FZYTW4"
/>
</e:Skin>
</e:Skin>
\ No newline at end of file
egret/src/panels/ScratchPanel.ts
View file @
91f7676e
...
@@ -93,7 +93,7 @@ export default class ScratchPanel extends Panel {
...
@@ -93,7 +93,7 @@ export default class ScratchPanel extends Panel {
// 添加邀请图标
// 添加邀请图标
let
noAvatarNum
=
this
.
data
.
helpedCount
-
this
.
data
.
avatarList
.
length
;
// 没有头像的人数
let
noAvatarNum
=
this
.
data
.
helpedCount
-
this
.
data
.
avatarList
.
length
;
// 没有头像的人数
let
dNum
=
this
.
data
.
totalNeedCount
-
this
.
data
.
avatarList
.
length
-
noAvatarNum
;
// 没邀请的人数
let
dNum
=
this
.
data
.
totalNeedCount
-
this
.
data
.
avatarList
.
length
-
noAvatarNum
;
// 没邀请的人数
for
(
let
i
=
0
;
i
<
noAvatarNum
;
i
++
){
for
(
let
i
=
0
;
i
<
noAvatarNum
;
i
++
)
{
this
.
data
.
avatarList
.
push
(
""
);
this
.
data
.
avatarList
.
push
(
""
);
}
}
for
(
let
i
=
0
;
i
<
dNum
;
i
++
)
{
for
(
let
i
=
0
;
i
<
dNum
;
i
++
)
{
...
@@ -141,7 +141,7 @@ export default class ScratchPanel extends Panel {
...
@@ -141,7 +141,7 @@ export default class ScratchPanel extends Panel {
}
else
if
(
progress
<
0
)
{
}
else
if
(
progress
<
0
)
{
progress
=
0
;
progress
=
0
;
}
}
this
[
'numLabel'
].
text
=
`共
${
this
.
data
.
avatarList
.
length
}
位好友帮你刮了
${
progress
.
toFixed
(
2
)}
%`
;
this
[
'numLabel'
].
text
=
`共
${
2
+
this
.
data
.
helpedCount
}
位好友帮你刮了
${
progress
.
toFixed
(
2
)}
%`
;
this
[
"progressLabel"
].
text
=
`仅剩
${(
100
-
progress
).
toFixed
(
2
)}
%`
;
// 进度条文字
this
[
"progressLabel"
].
text
=
`仅剩
${(
100
-
progress
).
toFixed
(
2
)}
%`
;
// 进度条文字
let
_width
=
this
[
"progressBg"
].
width
*
progress
/
100
;
// 宽度
let
_width
=
this
[
"progressBg"
].
width
*
progress
/
100
;
// 宽度
let
dProgress
=
Math
.
abs
(
progress
-
this
[
"progress"
].
width
/
this
[
"progressBg"
].
width
);
// 比当前进度的差值的绝对值
let
dProgress
=
Math
.
abs
(
progress
-
this
[
"progress"
].
width
/
this
[
"progressBg"
].
width
);
// 比当前进度的差值的绝对值
...
...
mock/happyclear/scratchGetTaskInfo.json
View file @
91f7676e
...
@@ -2,19 +2,17 @@
...
@@ -2,19 +2,17 @@
"success"
:
true
,
"success"
:
true
,
"code"
:
"0000000000"
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"desc"
:
"OK"
,
"timestamp"
:
1572
318933388
,
"timestamp"
:
1572
405066301
,
"data"
:
{
"data"
:
{
"scratchCardTaskId"
:
1
,
"scratchCardTaskId"
:
1
,
"taskStatus"
:
1
,
"taskStatus"
:
1
,
"prizeImage"
:
"//yun.dui88.com/images/201910/
e6pmpk2pne.pn
g"
,
"prizeImage"
:
"//yun.dui88.com/images/201910/
9u6nk8sjt8.jp
g"
,
"currentTime"
:
1572
318933366
,
"currentTime"
:
1572
405066290
,
"endTime"
:
1572
358710
000
,
"endTime"
:
1572
491337
000
,
"completePercent"
:
"91.0"
,
"completePercent"
:
"91.0"
,
"remainPercent"
:
"9.0"
,
"remainPercent"
:
"9.0"
,
"totalNeedCount"
:
3
,
"totalNeedCount"
:
1
,
"helpedCount"
:
2
,
"helpedCount"
:
0
,
"avatarList"
:
[
"avatarList"
:
[]
null
]
}
}
}
}
\ No newline at end of file
mock/happyclear/turnablebaseInfo.json
View file @
91f7676e
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
"desc"
:
"OK"
,
"desc"
:
"OK"
,
"timestamp"
:
1572263074076
,
"timestamp"
:
1572263074076
,
"data"
:
{
"data"
:
{
"remainTimes"
:
null
,
"remainTimes"
:
7
,
"costCoinJoinTimes"
:
0
,
"costCoinJoinTimes"
:
0
,
"nextTimeNeedCoin"
:
20
,
"nextTimeNeedCoin"
:
20
,
"luckyDrawInfo"
:
{
"luckyDrawInfo"
:
{
...
...
mock/happyclear/turnabledojoin.json
View file @
91f7676e
...
@@ -4,12 +4,22 @@
...
@@ -4,12 +4,22 @@
"desc"
:
"OK"
,
"desc"
:
"OK"
,
"timestamp"
:
1572327888728
,
"timestamp"
:
1572327888728
,
"data"
:
{
"data"
:
{
"isScratchCard"
:
tru
e
,
"isScratchCard"
:
fals
e
,
"option"
:
{
"option"
:
{
"scratchCardTaskId"
:
7
,
"id"
:
""
,
"prizeImage"
:
"//yun.dui88.com/images/201910/e6pmpk2pne.png"
,
"day"
:
null
,
"completePercent"
:
"8"
,
"categoryType"
:
2
,
"remainPercent"
:
null
"title"
:
"11"
,
"rate"
:
"11"
,
"minValue"
:
null
,
"maxValue"
:
null
,
"coinType"
:
null
,
"propType"
:
null
,
"num"
:
3
,
"img"
:
""
,
"appItemId"
:
null
,
"name"
:
""
,
"value"
:
""
},
},
"orderNum"
:
null
"orderNum"
:
null
}
}
...
...
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