Commit cd82e1ec authored by Lwd's avatar Lwd

aaaa

parent a2880720
{
"ver": "1.1.2",
"uuid": "7d25a5d7-a799-4071-8de4-8b430d572289",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
...@@ -34,6 +34,11 @@ var game = cc.Class({ ...@@ -34,6 +34,11 @@ var game = cc.Class({
default: null, default: null,
type: cc.Node, type: cc.Node,
displayName: "结算弹窗" displayName: "结算弹窗"
},
title: {
default: null,
type: cc.Label,
displayName: "标题"
} }
}, },
...@@ -58,10 +63,15 @@ var game = cc.Class({ ...@@ -58,10 +63,15 @@ var game = cc.Class({
//更新界面信息 //更新界面信息
UpdataUi: function () { UpdataUi: function () {
//显示标题
this.title.string = g.data_mgr.data.contentObj.title;
//获得上列表的数据 //获得上列表的数据
var topList = g.data_mgr.getImgInfo(1); var topList = g.data_mgr.getImgInfo(1);
var botList = g.data_mgr.getImgInfo(2); var botList = g.data_mgr.getImgInfo(2);
//打乱列表顺序 //打乱列表顺序
this.contentArr_1.opacity = 0;
this.contentArr_2.opacity = 0;
topList.sort(function () { return Math.random() > 0.5 ? -1 : 1; }) topList.sort(function () { return Math.random() > 0.5 ? -1 : 1; })
botList.sort(function () { return Math.random() > 0.5 ? -1 : 1; }) botList.sort(function () { return Math.random() > 0.5 ? -1 : 1; })
this.addItem(topList, this.contentArr_1, this.Item_1, 0); this.addItem(topList, this.contentArr_1, this.Item_1, 0);
...@@ -151,6 +161,8 @@ var game = cc.Class({ ...@@ -151,6 +161,8 @@ var game = cc.Class({
addItem: function (listInfo, content, item, i) { addItem: function (listInfo, content, item, i) {
if (listInfo.length <= i) { if (listInfo.length <= i) {
content.getComponent(cc.Layout).updateLayout(); content.getComponent(cc.Layout).updateLayout();
this.contentArr_1.runAction(cc.fadeIn(0.2))
this.contentArr_2.runAction(cc.fadeIn(0.2))
return; return;
} }
var len = content.childrenCount; var len = content.childrenCount;
...@@ -164,7 +176,7 @@ var game = cc.Class({ ...@@ -164,7 +176,7 @@ var game = cc.Class({
this.scheduleOnce(function () { this.scheduleOnce(function () {
i += 1; i += 1;
this.addItem(listInfo, content, item, i) this.addItem(listInfo, content, item, i)
}.bind(this), 0.01); }.bind(this), 0);
}, },
//点亮 conten:上列表,下列表 state:0 点亮,2变暗 //点亮 conten:上列表,下列表 state:0 点亮,2变暗
......
{
"ver": "2.3.5",
"uuid": "fad1b059-3b4a-42dd-8d5d-e1baba413a8b",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1342,
"height": 2376,
"platformSettings": {},
"subMetas": {
"微信图片_20210204203203": {
"ver": "1.0.4",
"uuid": "2fc7eb28-a60f-42fa-8911-789b3f20f368",
"rawTextureUuid": "fad1b059-3b4a-42dd-8d5d-e1baba413a8b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1342,
"height": 2376,
"rawWidth": 1342,
"rawHeight": 2376,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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