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
47da9a1c
Commit
47da9a1c
authored
Mar 26, 2020
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9d84a4bd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
180 additions
and
0 deletions
+180
-0
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+15
-0
config.js
mock/config.js
+5
-0
getConfigInfo.json
mock/happyclear/getConfigInfo.json
+160
-0
No files found.
egret/libs/tw/manager/NetManager.ts
View file @
47da9a1c
...
@@ -2328,6 +2328,21 @@ export class NetManager extends ABNetManager {
...
@@ -2328,6 +2328,21 @@ export class NetManager extends ABNetManager {
this
.
send
(
net
);
this
.
send
(
net
);
}
}
public
getConfigInfo
(
callback
:
Function
):
void
{
const
net
:
INetData
=
{
name
:
NetName
.
GET_TASKINFO
,
uri
:
window
[
'duiba'
]
+
'/customActivity/happyclear/getConfigInfo'
,
type
:
'get'
,
dataType
:
'json'
,
hideMsg
:
true
,
param
:
{
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
,
},
callback
:
callback
};
this
.
send
(
net
);
}
/**
/**
* 任务中心领奖
* 任务中心领奖
* @param callback
* @param callback
...
...
mock/config.js
View file @
47da9a1c
...
@@ -205,6 +205,11 @@ const config = {
...
@@ -205,6 +205,11 @@ const config = {
'/customActivity/happyclear/getTestShowTurntable'
:{
'/customActivity/happyclear/getTestShowTurntable'
:{
data
:
'./happyclear/getTestShowTurntable.json'
data
:
'./happyclear/getTestShowTurntable.json'
},
},
//////////////////// 活动配置信息 ////////////////////
'/customActivity/happyclear/getConfigInfo'
:{
data
:
'./happyclear/getConfigInfo.json'
},
};
};
for
(
let
item
in
config
)
{
for
(
let
item
in
config
)
{
...
...
mock/happyclear/getConfigInfo.json
0 → 100644
View file @
47da9a1c
{
"success"
:
true
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
1585203242370
,
"data"
:
{
"signConf"
:
{
"closeStatus"
:
false
,
"sixDaysBeforeOptions"
:
[
],
"theSeventhDayOptions"
:
null
},
"luckyDrawConf"
:
{
"enable"
:
true
,
"id"
:
null
,
"baseCount"
:
20
,
"bonusCount"
:
0
,
"prizeList"
:
[
{
"id"
:
""
,
"day"
:
null
,
"categoryType"
:
2
,
"title"
:
"11"
,
"rate"
:
"0"
,
"minValue"
:
null
,
"maxValue"
:
null
,
"coinType"
:
null
,
"realValue"
:
null
,
"propType"
:
null
,
"num"
:
3
,
"img"
:
""
,
"smallImg"
:
null
,
"appItemId"
:
null
,
"name"
:
""
,
"value"
:
""
},
{
"id"
:
""
,
"day"
:
null
,
"categoryType"
:
4
,
"title"
:
"元宝88个"
,
"rate"
:
"99"
,
"minValue"
:
75
,
"maxValue"
:
75
,
"coinType"
:
1
,
"realValue"
:
null
,
"propType"
:
null
,
"num"
:
null
,
"img"
:
""
,
"smallImg"
:
null
,
"appItemId"
:
null
,
"name"
:
""
,
"value"
:
""
},
{
"id"
:
""
,
"day"
:
null
,
"categoryType"
:
7
,
"title"
:
"虚拟商品1"
,
"rate"
:
"0"
,
"minValue"
:
null
,
"maxValue"
:
null
,
"coinType"
:
null
,
"realValue"
:
null
,
"propType"
:
null
,
"num"
:
null
,
"img"
:
"//yun.dui88.com/images/201910/mvureleych.png"
,
"smallImg"
:
null
,
"appItemId"
:
9517
,
"name"
:
"标题1"
,
"value"
:
"direct_success_tag1"
},
{
"id"
:
""
,
"day"
:
null
,
"categoryType"
:
3
,
"title"
:
"1"
,
"rate"
:
"1"
,
"minValue"
:
null
,
"maxValue"
:
null
,
"coinType"
:
null
,
"realValue"
:
null
,
"propType"
:
2
,
"num"
:
null
,
"img"
:
""
,
"smallImg"
:
null
,
"appItemId"
:
null
,
"name"
:
""
,
"value"
:
""
}
]
},
"taskConfs"
:
[
{
"id"
:
1
,
"appId"
:
1
,
"activityId"
:
83619
,
"taskName"
:
"狮狮连萌下单任务"
,
"taskMark"
:
"SUB446971598063218688"
,
"isContinuousTask"
:
0
,
"tips"
:
""
,
"deleted"
:
null
,
"gmtCreate"
:
null
,
"gmtModified"
:
null
,
"prizeList"
:
[
{
"id"
:
"250"
,
"day"
:
null
,
"categoryType"
:
4
,
"title"
:
"固定十元宝"
,
"rate"
:
"100"
,
"minValue"
:
2
,
"maxValue"
:
12
,
"coinType"
:
1
,
"realValue"
:
null
,
"propType"
:
null
,
"num"
:
null
,
"img"
:
null
,
"smallImg"
:
null
,
"appItemId"
:
null
,
"name"
:
null
,
"value"
:
null
}
]
},
{
"id"
:
18
,
"appId"
:
1
,
"activityId"
:
83619
,
"taskName"
:
"testaa"
,
"taskMark"
:
"123"
,
"isContinuousTask"
:
1
,
"tips"
:
"66"
,
"deleted"
:
null
,
"gmtCreate"
:
null
,
"gmtModified"
:
null
,
"prizeList"
:
[
{
"id"
:
"266"
,
"day"
:
null
,
"categoryType"
:
4
,
"title"
:
null
,
"rate"
:
"100"
,
"minValue"
:
1
,
"maxValue"
:
2
,
"coinType"
:
2
,
"realValue"
:
null
,
"propType"
:
null
,
"num"
:
null
,
"img"
:
""
,
"smallImg"
:
null
,
"appItemId"
:
null
,
"name"
:
null
,
"value"
:
""
}
]
}
]
}
}
\ 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