Commit 55b1a69a authored by haiyoucuv's avatar haiyoucuv

上传

parent 65a665ba
...@@ -33,11 +33,15 @@ export default class RankPanel extends Panel { ...@@ -33,11 +33,15 @@ export default class RankPanel extends Panel {
@property(Node) monthly_b: Node = null; @property(Node) monthly_b: Node = null;
@property(Node) daily: Node = null;
@property(Node) myDaily: Node = null; @property(Node) myDaily: Node = null;
@property(YXCollectionView) dailyList: YXCollectionView = null; @property(YXCollectionView) dailyList: YXCollectionView = null;
@property(Node) dailyNoOne: Node = null;
@property(Node) monthly: Node = null;
@property(Node) myMonthly: Node = null; @property(Node) myMonthly: Node = null;
@property(YXCollectionView) monthlyList: YXCollectionView = null; @property(YXCollectionView) monthlyList: YXCollectionView = null;
@property(Node) monthlyNoOne: Node = null;
private _tab: TAB = TAB.DAILY; private _tab: TAB = TAB.DAILY;
set tab(tab: TAB) { set tab(tab: TAB) {
...@@ -49,11 +53,8 @@ export default class RankPanel extends Panel { ...@@ -49,11 +53,8 @@ export default class RankPanel extends Panel {
this.monthly_b.active = isDaily; this.monthly_b.active = isDaily;
this.listBg.setScale(isDaily ? 1 : -1, 1, 1); this.listBg.setScale(isDaily ? 1 : -1, 1, 1);
this.myDaily.active = isDaily; this.daily.active = isDaily;
this.dailyList.node.active = isDaily; this.monthly.active = !isDaily;
this.myMonthly.active = !isDaily;
this.monthlyList.node.active = !isDaily;
} }
get tab() { get tab() {
...@@ -111,6 +112,9 @@ export default class RankPanel extends Panel { ...@@ -111,6 +112,9 @@ export default class RankPanel extends Panel {
this.dailyData = data.rankList; this.dailyData = data.rankList;
this.dailyList.reloadData(); this.dailyList.reloadData();
this.onCellDisplay(this.myDaily, data.myRank); this.onCellDisplay(this.myDaily, data.myRank);
this.dailyList.node.active = this.dailyData.length > 0;
this.dailyNoOne.active = this.dailyData.length <= 0;
} }
async updateMonthly() { async updateMonthly() {
...@@ -123,6 +127,9 @@ export default class RankPanel extends Panel { ...@@ -123,6 +127,9 @@ export default class RankPanel extends Panel {
this.monthlyData = data.rankList; this.monthlyData = data.rankList;
this.monthlyList.reloadData(); this.monthlyList.reloadData();
this.onCellDisplay(this.myMonthly, data.myRank); this.onCellDisplay(this.myMonthly, data.myRank);
this.monthlyList.node.active = this.monthlyData.length > 0;
this.monthlyNoOne.active = this.monthlyData.length <= 0;
} }
onDailyCellDisplay = (cell: Node, indexPath: YXIndexPath, collectionView: YXCollectionView) => { onDailyCellDisplay = (cell: Node, indexPath: YXIndexPath, collectionView: YXCollectionView) => {
......
...@@ -279,7 +279,7 @@ ...@@ -279,7 +279,7 @@
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": -153.5, "x": -113.50000000000006,
"y": 64.649, "y": 64.649,
"z": 0 "z": 0
}, },
...@@ -393,7 +393,7 @@ ...@@ -393,7 +393,7 @@
}, },
"_alignFlags": 9, "_alignFlags": 9,
"_target": null, "_target": null,
"_left": 115.00000000000006, "_left": 155,
"_right": 0, "_right": 0,
"_top": 711.851, "_top": 711.851,
"_bottom": 0, "_bottom": 0,
...@@ -513,7 +513,7 @@ ...@@ -513,7 +513,7 @@
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 114.5, "x": 114.49999999999994,
"y": 64.649, "y": 64.649,
"z": 0 "z": 0
}, },
...@@ -627,7 +627,7 @@ ...@@ -627,7 +627,7 @@
}, },
"_alignFlags": 9, "_alignFlags": 9,
"_target": null, "_target": null,
"_left": 383.00000000000006, "_left": 383,
"_right": 0, "_right": 0,
"_top": 711.851, "_top": 711.851,
"_bottom": 0, "_bottom": 0,
...@@ -1028,9 +1028,15 @@ ...@@ -1028,9 +1028,15 @@
"__prefab": { "__prefab": {
"__id__": 45 "__id__": 45
}, },
"closeBtn": null, "closeBtn": {
"yes": null, "__id__": 30
"no": null, },
"yes": {
"__id__": 20
},
"no": {
"__id__": 10
},
"_id": "" "_id": ""
}, },
{ {
......
{
"__type__": "cc.SpriteAtlas"
}
{
"ver": "1.0.8",
"importer": "auto-atlas",
"imported": true,
"uuid": "9d1c8004-8175-4eea-ba16-6d210046633c",
"files": [
".json"
],
"subMetas": {},
"userData": {
"maxWidth": 2048,
"maxHeight": 2048,
"padding": 2,
"allowRotation": true,
"forceSquared": false,
"powerOfTwo": false,
"algorithm": "MaxRects",
"format": "png",
"quality": 80,
"contourBleed": true,
"paddingBleed": true,
"filterUnused": false,
"removeTextureInBundle": false,
"removeImageInBundle": false,
"removeSpriteAtlasInBundle": false,
"compressSettings": {},
"textureSetting": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
}
}
}
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment