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
54534026
Commit
54534026
authored
Oct 26, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1947d6ad
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
112 additions
and
1 deletion
+112
-1
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+30
-0
TurntableIcon.ts
egret/src/mapScene/icon/TurntableIcon.ts
+3
-1
config.js
mock/config.js
+9
-0
turnablebaseInfo.json
mock/happyclear/turnablebaseInfo.json
+43
-0
turnabledojoin.json
mock/happyclear/turnabledojoin.json
+27
-0
No files found.
egret/libs/tw/manager/NetManager.ts
View file @
54534026
...
...
@@ -910,6 +910,36 @@ export class NetManager extends ABNetManager {
};
this
.
send
(
net
);
}
public
hc_turnableBaseInfo
(
callback
:
Function
,
propType
?:
number
):
void
{
const
d
:
any
=
{
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
};
const
net
:
INetData
=
{
name
:
'hc_turnableBaseInfo'
,
uri
:
window
[
'duiba'
]
+
'/customActivity/happyclear/bigWheel/baseInfo'
,
type
:
'get'
,
dataType
:
'json'
,
hideMsg
:
true
,
param
:
d
,
callback
:
callback
};
this
.
send
(
net
);
}
public
hc_turnableDojoin
(
callback
:
Function
,
propType
?:
number
):
void
{
const
d
:
any
=
{
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
};
const
net
:
INetData
=
{
name
:
'hc_turnableDojoin'
,
uri
:
window
[
'duiba'
]
+
'/customActivity/happyclear/bigWheel/dojoin'
,
type
:
'post'
,
dataType
:
'json'
,
hideMsg
:
true
,
param
:
d
,
callback
:
callback
};
this
.
send
(
net
);
}
public
hc_askForEnergy
(
callback
:
Function
):
void
{
const
net
:
INetData
=
{
...
...
egret/src/mapScene/icon/TurntableIcon.ts
View file @
54534026
...
...
@@ -12,7 +12,9 @@ export default class TurntableIcon extends IconBase {
protected
start
()
{
super
.
start
();
//有免费次数
//没有免费次数
//如果元宝足够
}
protected
initEvents
()
{
...
...
mock/config.js
View file @
54534026
const
path
=
require
(
'path'
);
const
config
=
{
'/customActivity/happyclear/bigWheel/baseInfo'
:
{
data
:
'./happyclear/turnablebaseInfo.json'
},
'/customActivity/happyclear/bigWheel/dojoin'
:
{
data
:
'./happyclear/turnabledojoin.json'
},
'/customActivity/happyclear/totalNumRank'
:
{
data
:
'./happyclear/totalNumRank.json'
},
'/customActivity/happyclear/totalNumRank'
:
{
data
:
'./happyclear/totalNumRank.json'
},
...
...
mock/happyclear/turnablebaseInfo.json
0 → 100644
View file @
54534026
{
"code"
:
"0000000000"
,
"data"
:{
"luckyDrawInfo"
:{
"baseCount"
:
50
,
"bonusCount"
:
10
,
"enable"
:
true
,
"id"
:
"1234"
,
"prizeList"
:[
{
"categoryType"
:
4
,
"coinType"
:
1
,
"maxValue"
:
10
,
"minValue"
:
10
,
"rate"
:
"20"
,
"title"
:
"奖品信息"
},
{
"appItemId"
:
2099
,
"categoryType"
:
7
,
"img"
:
"虚拟商品图片"
,
"name"
:
"虚拟商品名称"
,
"rate"
:
"30"
,
"title"
:
"奖品信息"
,
"value"
:
"虚拟商品编码"
},
{
"categoryType"
:
7
,
"num"
:
10
,
"propType"
:
2
,
"rate"
:
"30"
,
"title"
:
"奖品信息"
}
]
},
"remainTimes"
:
1
,
"costCoinJoinTimes"
:
10
,
"nextTimeNeedCoin"
:
150
},
"desc"
:
"OK"
,
"success"
:
true
,
"timestamp"
:
1572060015013
}
\ No newline at end of file
mock/happyclear/turnabledojoin.json
0 → 100644
View file @
54534026
{
"code"
:
"0000000000"
,
"data"
:{
"isScratchCard"
:
true
,
"option"
:{
"completePercent"
:
"完成进度"
,
"prizeImage"
:
"图片"
,
"remainPercent"
:
"剩余进度"
,
"scratchCardTaskId"
:
1
,
"categoryType"
:
4
,
"title"
:
"奖品信息"
,
"coinType"
:
1
,
"maxValue"
:
10
,
"minValue"
:
10
,
"appItemId"
:
2099
,
"img"
:
"虚拟商品图片"
,
"name"
:
"虚拟商品名称"
,
"value"
:
"虚拟商品编码"
,
"num"
:
10
,
"propType"
:
2
},
"orderNum"
:
"24487583"
},
"desc"
:
"OK"
,
"success"
:
true
,
"timestamp"
:
1572061348762
}
\ 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