Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db-game-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
崔立强
db-game-template
Commits
f3472dfb
Commit
f3472dfb
authored
May 21, 2020
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
0a641584
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
87 additions
and
188 deletions
+87
-188
index.html
egret/index.html
+5
-0
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+70
-7
bindCard.tmproject
egret/resource/TextureMerger/bindCard.tmproject
+1
-1
common.tmproject
egret/resource/TextureMerger/common.tmproject
+1
-1
main.tmproject
egret/resource/TextureMerger/main.tmproject
+1
-1
money.tmproject
egret/resource/TextureMerger/money.tmproject
+1
-1
noname.tmproject
egret/resource/TextureMerger/noname.tmproject
+1
-1
qa.tmproject
egret/resource/TextureMerger/qa.tmproject
+1
-1
record.tmproject
egret/resource/TextureMerger/record.tmproject
+1
-1
rule.tmproject
egret/resource/TextureMerger/rule.tmproject
+1
-1
sign.tmproject
egret/resource/TextureMerger/sign.tmproject
+1
-1
start.tmproject
egret/resource/TextureMerger/start.tmproject
+1
-1
task.tmproject
egret/resource/TextureMerger/task.tmproject
+1
-1
weOrder.json
mock/weOrder.json
+1
-170
No files found.
egret/index.html
View file @
f3472dfb
...
@@ -46,6 +46,11 @@
...
@@ -46,6 +46,11 @@
<script
src=
"libs/svga.egret.min.js"
></script>
<script
src=
"libs/svga.egret.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/activity/game/cmblapi.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/activity/game/cmblapi.min.js"
></script>
<script>
<script>
window
[
'getPxToken'
]
=
(
callback
)
=>
{
callback
(
''
,
'fuck'
)
}
window
[
'shareLink'
]
=
""
window
[
'shareLink'
]
=
""
window
[
'isInvitePage'
]
=
0
;
window
[
'isInvitePage'
]
=
0
;
// 是否绑卡页面
// 是否绑卡页面
...
...
egret/libs/tw/manager/NetManager.ts
View file @
f3472dfb
...
@@ -1058,14 +1058,59 @@ export class NetManager extends ABNetManager {
...
@@ -1058,14 +1058,59 @@ export class NetManager extends ABNetManager {
};
};
this
.
send
(
net
);
this
.
send
(
net
);
}
}
// if (window['getPxToken']) {
// window['getPxToken'](function (e, token) {
// switch (e) {
// case 'net error':
// next('error', { type: 'error' });
// break;
// case 'need login':
// next('failed', { type: 'failed' });
// break;
// case 'state invalid':
// next('invalid', { type: 'invalid' });
// break;
// default:
// if (token) {
// scope.token = token;
// next('success', args);
// }
// else {
// next('invalid', { type: 'invalid key' });
// }
// }
// });
// }
// else {
// next('error', { type: 'no ready' });
// }
public
getPxToken
(
net
:
INetData
):
void
{
if
(
window
[
'getPxToken'
])
{
window
[
'getPxToken'
]((
e
,
token
:
any
)
=>
{
if
(
e
)
this
.
onError
(
net
);
else
{
net
.
param
.
token
=
token
;
this
.
send
(
net
);
}
});
}
else
{
this
.
send
(
net
);
}
}
//签到
//签到
public
yyh_dosign
(
callback
:
Function
):
void
{
public
yyh_dosign
(
callback
:
Function
):
void
{
const
timestamp
=
new
Date
().
getTime
();
const
timestamp
=
new
Date
().
getTime
();
const
param
:
any
=
{
const
param
:
any
=
{
};
//校验token:md5(timestamp + "duiba4hefeicmbchina")
// const param: any = {
timestamp
:
timestamp
,
// //校验token:md5(timestamp + "duiba4hefeicmbchina")
token
:
window
[
'duiba_md5'
](
timestamp
+
"duiba4hefeicmbchina"
)
// timestamp: timestamp,
};
// token: window['duiba_md5'](timestamp + "duiba4hefeicmbchina")
// };
const
net
:
INetData
=
{
const
net
:
INetData
=
{
name
:
'yyh_dosign'
,
name
:
'yyh_dosign'
,
uri
:
'/projectx/'
+
window
[
'projectID'
]
+
'/join_2/join.do?_='
+
new
Date
().
getTime
(),
uri
:
'/projectx/'
+
window
[
'projectID'
]
+
'/join_2/join.do?_='
+
new
Date
().
getTime
(),
...
@@ -1075,8 +1120,26 @@ export class NetManager extends ABNetManager {
...
@@ -1075,8 +1120,26 @@ export class NetManager extends ABNetManager {
callback
:
callback
,
callback
:
callback
,
hideMsg
:
true
hideMsg
:
true
};
};
this
.
send
(
net
);
this
.
getPxToken
(
net
);
}
}
// public yyh_dosign(callback: Function): void {
// const timestamp = new Date().getTime();
// const param: any = {
// //校验token:md5(timestamp + "duiba4hefeicmbchina")
// timestamp: timestamp,
// token: window['duiba_md5'](timestamp + "duiba4hefeicmbchina")
// };
// const net: INetData = {
// name: 'yyh_dosign',
// uri: '/projectx/' + window['projectID'] + '/join_2/join.do?_=' + new Date().getTime(),
// type: 'post',
// dataType: 'json',
// param: param,
// callback: callback,
// hideMsg: true
// };
// this.send(net);
// }
//签到信息
//签到信息
public
yyh_signInfo
(
callback
:
Function
):
void
{
public
yyh_signInfo
(
callback
:
Function
):
void
{
...
...
egret/resource/TextureMerger/bindCard.tmproject
View file @
f3472dfb
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"bindCard","version":5,"files":["..\\assets\\bindScene\\bindCardBtn.png"]}
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"bindCard","version":5,"files":["../assets/bindScene/bindCardBtn.png"]}
\ No newline at end of file
\ No newline at end of file
egret/resource/TextureMerger/common.tmproject
View file @
f3472dfb
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"common","version":5,"files":["..\\assets\\common\\toast.png","..\\assets\\common\\common_sign_btn1.png","..\\assets\\common\\common_okbtn.png","..\\assets\\common\\common_closebtn.png","..\\assets\\common\\shadow.png","..\\assets\\common\\invitebtn2.png","..\\assets\\common\\invitebtn1.png","..\\assets\\common\\common_share.png","..\\assets\\common\\bg1.png"]}
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"common","version":5,"files":["../assets/common/toast.png","../assets/common/common_sign_btn1.png","../assets/common/common_okbtn.png","../assets/common/common_closebtn.png","../assets/common/shadow.png","../assets/common/invitebtn2.png","../assets/common/invitebtn1.png","../assets/common/common_share.png","../assets/common/bg1.png"]}
\ No newline at end of file
\ No newline at end of file
egret/resource/TextureMerger/main.tmproject
View file @
f3472dfb
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"main","version":5,"files":["..\\assets\\main\\main_bg1.png","..\\assets\\main\\main_guidebtn.png","..\\assets\\main\\main_nextbtn.png","..\\assets\\main\\main_sign_1.png","..\\assets\\main\\main_sign_2.png","..\\assets\\main\\main_sign_3.png","..\\assets\\main\\main_sign_4.png","..\\assets\\main\\main_sign_bg.png","..\\assets\\main\\main_text1.png","..\\assets\\main\\main_text2.png","..\\assets\\main\\main_text3.png","..\\assets\\main\\main_text4.png","..\\assets\\main\\main_text5.png","..\\assets\\main\\main攻略.png","..\\assets\\main\\main签到.png","..\\assets\\main\\main任务.png","..\\assets\\main\\main推荐.png","..\\assets\\main\\mian_exchange_bg.png","..\\assets\\main\\mian_exchange_item_bg.png","..\\assets\\main\\mian_exchange_item_btn.png","..\\assets\\main\\mian_exchangebtn.png","..\\assets\\main\\mian_step1.png","..\\assets\\main\\maintextact6.png","..\\assets\\main\\maintextact5.png","..\\assets\\main\\maintextact4.png","..\\assets\\main\\maintextact3.png","..\\assets\\main\\maintextact2.png","..\\assets\\main\\maintext_act1.png"]}
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"main","version":5,"files":["../assets/main/main_bg1.png","../assets/main/main_guidebtn.png","../assets/main/main_nextbtn.png","../assets/main/main_sign_1.png","../assets/main/main_sign_2.png","../assets/main/main_sign_3.png","../assets/main/main_sign_4.png","../assets/main/main_sign_bg.png","../assets/main/main_text1.png","../assets/main/main_text2.png","../assets/main/main_text3.png","../assets/main/main_text4.png","../assets/main/main_text5.png","../assets/main/main攻略.png","../assets/main/main签到.png","../assets/main/main任务.png","../assets/main/main推荐.png","../assets/main/mian_exchange_bg.png","../assets/main/mian_exchange_item_bg.png","../assets/main/mian_exchange_item_btn.png","../assets/main/mian_exchangebtn.png","../assets/main/mian_step1.png","../assets/main/maintextact6.png","../assets/main/maintextact5.png","../assets/main/maintextact4.png","../assets/main/maintextact3.png","../assets/main/maintextact2.png","../assets/main/maintext_act1.png"]}
\ No newline at end of file
\ No newline at end of file
egret/resource/TextureMerger/money.tmproject
View file @
f3472dfb
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"money","version":5,"files":["..\\assets\\money\\moneybg2.png","..\\assets\\money\\moneybg.png"]}
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"money","version":5,"files":["../assets/money/moneybg2.png","../assets/money/moneybg.png"]}
\ No newline at end of file
\ No newline at end of file
egret/resource/TextureMerger/noname.tmproject
View file @
f3472dfb
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"noname","version":5,"files":["..\\assets\\common\\toast.png"]}
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"noname","version":5,"files":["../assets/common/toast.png"]}
\ No newline at end of file
\ No newline at end of file
egret/resource/TextureMerger/qa.tmproject
View file @
f3472dfb
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"qa","version":5,"files":["..\\assets\\qa\\qa_successbg.png","..\\assets\\qa\\qa_nextbtn.png","..\\assets\\qa\\qa_icon_B.png","..\\assets\\qa\\qa_icon_A.png","..\\assets\\qa\\qa_fail_bg.png","..\\assets\\qa\\qa_btn_tips.png","..\\assets\\qa\\qa_btn_ok.png","..\\assets\\qa\\qa_btn_ok_gray.png","..\\assets\\qa\\qa_btn_nextday.png","..\\assets\\qa\\qa_btn_next.png","..\\assets\\qa\\qa_bg_tips.png","..\\assets\\qa\\qa_bg_select_item.png","..\\assets\\qa\\qa_bg_item.png","..\\assets\\qa\\qa_bg_error.png","..\\assets\\qa\\qa_bg_correct.png"]}
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"qa","version":5,"files":["../assets/qa/qa_successbg.png","../assets/qa/qa_nextbtn.png","../assets/qa/qa_icon_B.png","../assets/qa/qa_icon_A.png","../assets/qa/qa_fail_bg.png","../assets/qa/qa_btn_tips.png","../assets/qa/qa_btn_ok.png","../assets/qa/qa_btn_ok_gray.png","../assets/qa/qa_btn_nextday.png","../assets/qa/qa_btn_next.png","../assets/qa/qa_bg_tips.png","../assets/qa/qa_bg_select_item.png","../assets/qa/qa_bg_item.png","../assets/qa/qa_bg_error.png","../assets/qa/qa_bg_correct.png"]}
\ No newline at end of file
\ No newline at end of file
egret/resource/TextureMerger/record.tmproject
View file @
f3472dfb
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"record","version":5,"files":["..\\assets\\record\\record2.png","..\\assets\\record\\record1.png"]}
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"record","version":5,"files":["../assets/record/record2.png","../assets/record/record1.png"]}
\ No newline at end of file
\ No newline at end of file
egret/resource/TextureMerger/rule.tmproject
View file @
f3472dfb
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"rule","version":5,"files":["..\\assets\\rule\\rulebg.png","..\\assets\\rule\\rulebg2.png"]}
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"rule","version":5,"files":["../assets/rule/rulebg.png","../assets/rule/rulebg2.png"]}
\ No newline at end of file
\ No newline at end of file
egret/resource/TextureMerger/sign.tmproject
View file @
f3472dfb
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"sign","version":5,"files":["..\\assets\\sign\\sign7_bg.png","..\\assets\\sign\\sign3bg.png","..\\assets\\sign\\sign1_text2.png","..\\assets\\sign\\sign1_text1.png","..\\assets\\sign\\sign1_bg.png","..\\assets\\sign\\sign_btn1.png","..\\assets\\sign\\sign_bg.png","..\\assets\\sign\\sign1_text2的副本.png"]}
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"sign","version":5,"files":["../assets/sign/sign7_bg.png","../assets/sign/sign3bg.png","../assets/sign/sign1_text2.png","../assets/sign/sign1_text1.png","../assets/sign/sign1_bg.png","../assets/sign/sign_btn1.png","../assets/sign/sign_bg.png","../assets/sign/sign1_text2的副本.png"]}
\ No newline at end of file
\ No newline at end of file
egret/resource/TextureMerger/start.tmproject
View file @
f3472dfb
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"start","version":5,"files":["..\\assets\\start\\start_tips.png"]}
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"start","version":5,"files":["../assets/start/start_tips.png"]}
\ No newline at end of file
\ No newline at end of file
egret/resource/TextureMerger/task.tmproject
View file @
f3472dfb
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"task","version":5,"files":["..\\assets\\task\\taskbg.png","..\\assets\\task\\task_icon.png","..\\assets\\task\\task_close.png","..\\assets\\task\\task_btn2.png","..\\assets\\task\\task_btn1.png","..\\assets\\task\\task_bg2.png","..\\assets\\task\\task_bg1.png","..\\assets\\task\\task_wx.png","..\\assets\\task\\task_pyq.png"]}
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"task","version":5,"files":["../assets/task/taskbg.png","../assets/task/task_icon.png","../assets/task/task_close.png","../assets/task/task_btn2.png","../assets/task/task_btn1.png","../assets/task/task_bg2.png","../assets/task/task_bg1.png","../assets/task/task_wx.png","../assets/task/task_pyq.png"]}
\ No newline at end of file
\ No newline at end of file
mock/weOrder.json
View file @
f3472dfb
{
{
"success"
:
true
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
1590052416166
,
"data"
:{
"list"
:[]}}
"success"
:
true
,
\ No newline at end of file
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
1540974087712
,
"data"
:{
"list"
:[
{
"gmtCreate"
:
1480649348000
,
"gmtModified"
:
1480673514000
,
"id"
:
null
,
"appKey"
:
"JdLDDaNd4rWkMjKUy28rH25RhHZ"
,
"bizId"
:
"we-order-for-test-1480648330149"
,
"bizType"
:
"consume"
,
"orderStatus"
:
"success"
,
"message"
:
null
,
"openId"
:
"open0011"
,
"orderNum"
:
"order-for-test-1480648330149-del"
,
"credits"
:
2
,
"activityType"
:
"coupon"
,
"facePrice"
:
0
,
"actualPrice"
:
0
,
"ip"
:
"testIp"
,
"waitAudit"
:
true
,
"params"
:
"null"
,
"description"
:
"测试专用优惠券"
},
{
"gmtCreate"
:
1480649348000
,
"gmtModified"
:
1480673514000
,
"id"
:
null
,
"appKey"
:
"JdLDDaNd4rWkMjKUy28rH25RhHZ"
,
"bizId"
:
"we-order-for-test-1480648330149"
,
"bizType"
:
"consume"
,
"orderStatus"
:
"success"
,
"message"
:
null
,
"openId"
:
"open0011"
,
"orderNum"
:
"order-for-test-1480648330149-del"
,
"credits"
:
3
,
"activityType"
:
"coupon"
,
"facePrice"
:
0
,
"actualPrice"
:
0
,
"ip"
:
"testIp"
,
"waitAudit"
:
true
,
"params"
:
"null"
,
"description"
:
"测试专用优惠券"
},
{
"gmtCreate"
:
1480649348000
,
"gmtModified"
:
1480673514000
,
"id"
:
null
,
"appKey"
:
"JdLDDaNd4rWkMjKUy28rH25RhHZ"
,
"bizId"
:
"we-order-for-test-1480648330149"
,
"bizType"
:
"consume"
,
"orderStatus"
:
"success"
,
"message"
:
null
,
"openId"
:
"open0011"
,
"orderNum"
:
"order-for-test-1480648330149-del"
,
"credits"
:
4
,
"activityType"
:
"coupon"
,
"facePrice"
:
0
,
"actualPrice"
:
0
,
"ip"
:
"testIp"
,
"waitAudit"
:
true
,
"params"
:
"null"
,
"description"
:
"测试专用优惠券"
},
{
"gmtCreate"
:
1480649348000
,
"gmtModified"
:
1480673514000
,
"id"
:
null
,
"appKey"
:
"JdLDDaNd4rWkMjKUy28rH25RhHZ"
,
"bizId"
:
"we-order-for-test-1480648330149"
,
"bizType"
:
"consume"
,
"orderStatus"
:
"success"
,
"message"
:
null
,
"openId"
:
"open0011"
,
"orderNum"
:
"order-for-test-1480648330149-del"
,
"credits"
:
5
,
"activityType"
:
"coupon"
,
"facePrice"
:
0
,
"actualPrice"
:
0
,
"ip"
:
"testIp"
,
"waitAudit"
:
true
,
"params"
:
"null"
,
"description"
:
"测试专用优惠券"
},
{
"gmtCreate"
:
1480649348000
,
"gmtModified"
:
1480673514000
,
"id"
:
null
,
"appKey"
:
"JdLDDaNd4rWkMjKUy28rH25RhHZ"
,
"bizId"
:
"we-order-for-test-1480648330149"
,
"bizType"
:
"consume"
,
"orderStatus"
:
"success"
,
"message"
:
null
,
"openId"
:
"open0011"
,
"orderNum"
:
"order-for-test-1480648330149-del"
,
"credits"
:
6
,
"activityType"
:
"coupon"
,
"facePrice"
:
0
,
"actualPrice"
:
0
,
"ip"
:
"testIp"
,
"waitAudit"
:
true
,
"params"
:
"null"
,
"description"
:
"测试专用优惠券"
},
{
"gmtCreate"
:
1480649348000
,
"gmtModified"
:
1480673514000
,
"id"
:
null
,
"appKey"
:
"JdLDDaNd4rWkMjKUy28rH25RhHZ"
,
"bizId"
:
"we-order-for-test-1480648330149"
,
"bizType"
:
"consume"
,
"orderStatus"
:
"success"
,
"message"
:
null
,
"openId"
:
"open0011"
,
"orderNum"
:
"order-for-test-1480648330149-del"
,
"credits"
:
25
,
"activityType"
:
"coupon"
,
"facePrice"
:
0
,
"actualPrice"
:
0
,
"ip"
:
"testIp"
,
"waitAudit"
:
true
,
"params"
:
"null"
,
"description"
:
"测试专用优惠券"
},
{
"gmtCreate"
:
1480649348000
,
"gmtModified"
:
1480673514000
,
"id"
:
null
,
"appKey"
:
"JdLDDaNd4rWkMjKUy28rH25RhHZ"
,
"bizId"
:
"we-order-for-test-1480648330149"
,
"bizType"
:
"consume"
,
"orderStatus"
:
"success"
,
"message"
:
null
,
"openId"
:
"open0011"
,
"orderNum"
:
"order-for-test-1480648330149-del"
,
"credits"
:
25
,
"activityType"
:
"coupon"
,
"facePrice"
:
0
,
"actualPrice"
:
0
,
"ip"
:
"testIp"
,
"waitAudit"
:
true
,
"params"
:
"null"
,
"description"
:
"测试专用优惠券"
},
{
"gmtCreate"
:
1480649348000
,
"gmtModified"
:
1480673514000
,
"id"
:
null
,
"appKey"
:
"JdLDDaNd4rWkMjKUy28rH25RhHZ"
,
"bizId"
:
"we-order-for-test-1480648330149"
,
"bizType"
:
"consume"
,
"orderStatus"
:
"success"
,
"message"
:
null
,
"openId"
:
"open0011"
,
"orderNum"
:
"order-for-test-1480648330149-del"
,
"credits"
:
25
,
"activityType"
:
"coupon"
,
"facePrice"
:
0
,
"actualPrice"
:
0
,
"ip"
:
"testIp"
,
"waitAudit"
:
true
,
"params"
:
"null"
,
"description"
:
"测试专用优惠券"
}
]
}
}
\ No newline at end of file
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