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
849e9f3d
Commit
849e9f3d
authored
Mar 30, 2020
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9805ca52
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
164 additions
and
29 deletions
+164
-29
MainBase.ts
egret/libs/new_wx/MainBase.ts
+3
-3
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+0
-15
SignSkin.exml
egret/resource/skins/SignSkin.exml
+1
-1
MapScene.ts
egret/src/mapScene/MapScene.ts
+4
-2
getSignBtn.ts
egret/src/mapScene/getSignBtn.ts
+4
-3
SignPanel.ts
egret/src/panels/SignPanel.ts
+5
-3
getConfigInfo.json
mock/happyclear/getConfigInfo.json
+147
-2
No files found.
egret/libs/new_wx/MainBase.ts
View file @
849e9f3d
...
...
@@ -510,9 +510,9 @@ export default class MainBase extends eui.UILayer {
});
}
get
Sign
Config
()
{
getConfig
()
{
return
new
Promise
((
r
)
=>
{
NetManager
.
ins
.
get
SignConfig
(()
=>
{
NetManager
.
ins
.
get
ConfigInfo
(()
=>
{
r
();
})
});
...
...
@@ -583,7 +583,7 @@ export default class MainBase extends eui.UILayer {
this
.
hc_userInfo
(),
this
.
getBackReward
(),
this
.
hcRedBoobBaseInfo
(),
this
.
get
Sign
Config
(),
this
.
getConfig
(),
this
.
getInviteInfo
(),
this
.
hbRainBaseInfo
(),
]);
...
...
egret/libs/tw/manager/NetManager.ts
View file @
849e9f3d
...
...
@@ -2210,21 +2210,6 @@ export class NetManager extends ABNetManager {
this
.
send
(
net
);
}
public
getSignConfig
(
callback
:
Function
):
void
{
const
net
:
INetData
=
{
name
:
'getSignConfig'
,
uri
:
window
[
'duiba'
]
+
'/customActivity/happyclear/getSignConfig'
,
type
:
'get'
,
dataType
:
'json'
,
hideMsg
:
true
,
param
:
{
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
},
callback
:
callback
};
this
.
send
(
net
);
}
/**
* 获取邀请码
* @param callback
...
...
egret/resource/skins/SignSkin.exml
View file @
849e9f3d
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"SignSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Image
source=
"signbg_png"
y=
"66.75"
horizontalCenter=
"0"
/>
<e:Button
id=
"closeBtn"
label=
""
x=
"63
0"
y=
"211
.77"
>
<e:Button
id=
"closeBtn"
label=
""
x=
"63
2"
y=
"257
.77"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"closeCommonBtn_png"
source.down=
"closeCommonBtn_png"
source.disabled=
"closeCommonBtn_png"
/>
...
...
egret/src/mapScene/MapScene.ts
View file @
849e9f3d
...
...
@@ -1212,8 +1212,10 @@ export default class MapScene extends Scene {
updateSignBtn
()
{
this
[
'signGroup'
].
visible
=
false
;
const
getSignConfig
=
DataManager
.
ins
.
getData
(
'getSignConfig'
);
if
(
getSignConfig
&&
getSignConfig
.
data
&&
getSignConfig
.
data
.
closeStatus
)
{
let
config
=
DataManager
.
ins
.
getData
(
NetName
.
GET_CONFIG
).
data
;
const
getSignConfig
=
config
&&
config
.
signConf
;
if
(
getSignConfig
&&
getSignConfig
.
closeStatus
)
{
this
[
'signGroup'
].
visible
=
true
;
}
...
...
egret/src/mapScene/getSignBtn.ts
View file @
849e9f3d
...
...
@@ -2,8 +2,9 @@ import { DataManager } from "../../libs/tw/manager/DataManager";
import
{
NetName
}
from
"../../libs/tw/enum/NetName"
;
export
default
()
=>
{
const
getSignConfig
=
DataManager
.
ins
.
getData
(
'getSignConfig'
);
if
(
getSignConfig
&&
getSignConfig
.
data
)
return
getSignConfig
.
data
.
closeStatus
;
let
config
=
DataManager
.
ins
.
getData
(
NetName
.
GET_CONFIG
).
data
;
let
getSignConfig
=
config
&&
config
.
signConf
;
if
(
getSignConfig
)
return
getSignConfig
.
closeStatus
;
return
false
;
}
\ No newline at end of file
egret/src/panels/SignPanel.ts
View file @
849e9f3d
...
...
@@ -10,6 +10,7 @@ import PanelCtrl from "../../libs/new_wx/ctrls/panelCtrl";
import
{
getlogItem
}
from
"../Main"
;
import
{
hortileLayout
}
from
"../layout/hortileLayout"
;
import
Utils
from
"../Utils"
;
import
{
NetName
}
from
"../../libs/tw/enum/NetName"
;
export
default
class
SignPanel
extends
Panel
{
list
:
eui
.
List
;
...
...
@@ -134,9 +135,10 @@ export default class SignPanel extends Panel {
// { nums: 'x1', type: 'steps' },
// { nums: '0.3元', type: 'quan30' }
private
getConfigs
()
{
const
getSignConfig
=
DataManager
.
ins
.
getData
(
'getSignConfig'
);
if
(
getSignConfig
&&
getSignConfig
.
data
&&
getSignConfig
.
data
.
sixDaysBeforeOptions
&&
getSignConfig
.
data
.
theSeventhDayOptions
)
{
const
{
sixDaysBeforeOptions
,
theSeventhDayOptions
}
=
getSignConfig
.
data
;
let
config
=
DataManager
.
ins
.
getData
(
NetName
.
GET_CONFIG
).
data
;
let
getSignConfig
=
config
&&
config
.
signConf
;
if
(
getSignConfig
&&
getSignConfig
.
sixDaysBeforeOptions
&&
getSignConfig
.
theSeventhDayOptions
)
{
const
{
sixDaysBeforeOptions
,
theSeventhDayOptions
}
=
getSignConfig
;
const
result
=
[];
sixDaysBeforeOptions
.
forEach
(
option
=>
{
//todo假设按天数排序
//类型 2 次数,3 道具,4 元宝,5其他
...
...
mock/happyclear/getConfigInfo.json
View file @
849e9f3d
...
...
@@ -5,10 +5,155 @@
"timestamp"
:
1585203242370
,
"data"
:
{
"signConf"
:
{
"closeStatus"
:
fals
e
,
"closeStatus"
:
tru
e
,
"sixDaysBeforeOptions"
:
[
{
"id"
:
null
,
"day"
:
1
,
"categoryType"
:
7
,
"title"
:
null
,
"rate"
:
null
,
"minValue"
:
null
,
"maxValue"
:
null
,
"coinType"
:
null
,
"realValue"
:
null
,
"propType"
:
null
,
"num"
:
null
,
"img"
:
"//yun.dui88.com/images/202003/n3exi2tenh.png"
,
"smallImg"
:
"//yun.dui88.com/images/202003/cfay38i1rl.jpg"
,
"appItemId"
:
10361
,
"name"
:
"111"
,
"value"
:
"963"
},
{
"id"
:
null
,
"day"
:
2
,
"categoryType"
:
2
,
"title"
:
null
,
"rate"
:
null
,
"minValue"
:
null
,
"maxValue"
:
null
,
"coinType"
:
null
,
"realValue"
:
null
,
"propType"
:
null
,
"num"
:
2
,
"img"
:
null
,
"smallImg"
:
null
,
"appItemId"
:
null
,
"name"
:
null
,
"value"
:
null
},
{
"id"
:
null
,
"day"
:
3
,
"categoryType"
:
4
,
"title"
:
null
,
"rate"
:
null
,
"minValue"
:
10
,
"maxValue"
:
10
,
"coinType"
:
1
,
"realValue"
:
null
,
"propType"
:
null
,
"num"
:
null
,
"img"
:
null
,
"smallImg"
:
null
,
"appItemId"
:
null
,
"name"
:
null
,
"value"
:
null
},
{
"id"
:
null
,
"day"
:
4
,
"categoryType"
:
3
,
"title"
:
null
,
"rate"
:
null
,
"minValue"
:
null
,
"maxValue"
:
null
,
"coinType"
:
null
,
"realValue"
:
null
,
"propType"
:
2
,
"num"
:
null
,
"img"
:
null
,
"smallImg"
:
null
,
"appItemId"
:
null
,
"name"
:
null
,
"value"
:
null
},
{
"id"
:
null
,
"day"
:
5
,
"categoryType"
:
4
,
"title"
:
null
,
"rate"
:
null
,
"minValue"
:
0
,
"maxValue"
:
20
,
"coinType"
:
2
,
"realValue"
:
null
,
"propType"
:
null
,
"num"
:
null
,
"img"
:
null
,
"smallImg"
:
null
,
"appItemId"
:
null
,
"name"
:
null
,
"value"
:
null
},
{
"id"
:
null
,
"day"
:
6
,
"categoryType"
:
3
,
"title"
:
null
,
"rate"
:
null
,
"minValue"
:
null
,
"maxValue"
:
null
,
"coinType"
:
null
,
"realValue"
:
null
,
"propType"
:
2
,
"num"
:
null
,
"img"
:
null
,
"smallImg"
:
null
,
"appItemId"
:
null
,
"name"
:
null
,
"value"
:
null
}
],
"theSeventhDayOptions"
:
null
"theSeventhDayOptions"
:
[
{
"id"
:
""
,
"day"
:
null
,
"categoryType"
:
2
,
"title"
:
"1"
,
"rate"
:
"11"
,
"minValue"
:
null
,
"maxValue"
:
null
,
"coinType"
:
null
,
"realValue"
:
null
,
"propType"
:
null
,
"num"
:
1
,
"img"
:
""
,
"smallImg"
:
null
,
"appItemId"
:
null
,
"name"
:
""
,
"value"
:
""
},
{
"id"
:
""
,
"day"
:
null
,
"categoryType"
:
7
,
"title"
:
"1122"
,
"rate"
:
"11"
,
"minValue"
:
null
,
"maxValue"
:
null
,
"coinType"
:
null
,
"realValue"
:
null
,
"propType"
:
null
,
"num"
:
null
,
"img"
:
"//yun.dui88.com/images/202003/cjusviko1v.png"
,
"smallImg"
:
"//yun.dui88.com/images/202003/1fcggjz048.jpg"
,
"appItemId"
:
10000
,
"name"
:
"虚拟"
,
"value"
:
"fe"
}
]
},
"luckyDrawConf"
:
{
"enable"
:
true
,
...
...
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