Commit 9f06fd5b 9f06fd5b5b3567688fca9b1e256cc6a4d186c437 by 金学艇

1.修改详情页

2.优化首页
1 parent c42acafc
......@@ -17,7 +17,7 @@
"__id__": 2
}
],
"_active": true,
"_active": false,
"_components": [],
"_prefab": null,
"_opacity": 255,
......@@ -207,7 +207,7 @@
"array": [
0,
0,
271.0601806640625,
271.0659484863281,
0,
0,
0,
......@@ -387,8 +387,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 172,
"height": 172
"width": 564,
"height": 317
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -399,8 +399,8 @@
"__type__": "TypedArray",
"ctor": "Float32Array",
"array": [
-490,
214,
-294,
145.5,
0,
0,
0,
......@@ -469,7 +469,7 @@
"_alignFlags": 9,
"_left": 64,
"_right": 0,
"_top": 60,
"_top": 56,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
......@@ -616,7 +616,7 @@
"__type__": "TypedArray",
"ctor": "Float32Array",
"array": [
-272,
120,
272.5,
0,
0,
......@@ -1348,7 +1348,7 @@
"ctor": "Float32Array",
"array": [
-78,
-49.400001525878906,
-36.400001525878906,
0,
0,
0,
......@@ -1415,9 +1415,9 @@
"__id__": 2
},
"_alignFlags": 9,
"_left": 260,
"_left": 652,
"_right": 0,
"_top": 118,
"_top": 105,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
......@@ -1471,8 +1471,8 @@
"__type__": "TypedArray",
"ctor": "Float32Array",
"array": [
76,
-49.400001525878906,
54,
-36.400001525878906,
0,
0,
0,
......@@ -1539,9 +1539,9 @@
"__id__": 2
},
"_alignFlags": 9,
"_left": 414,
"_left": 784,
"_right": 0,
"_top": 118,
"_top": 105,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
......@@ -1595,8 +1595,8 @@
"__type__": "TypedArray",
"ctor": "Float32Array",
"array": [
289,
-49.400001525878906,
243,
-36.400001525878906,
0,
0,
0,
......@@ -1663,9 +1663,9 @@
"__id__": 2
},
"_alignFlags": 9,
"_left": 607,
"_left": 953,
"_right": 0,
"_top": 118,
"_top": 105,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
......@@ -1722,7 +1722,7 @@
"__id__": 2
},
"_alignFlags": 9,
"_left": 260,
"_left": 652,
"_right": 0,
"_top": 56,
"_bottom": 0,
......@@ -1778,8 +1778,8 @@
"__type__": "TypedArray",
"ctor": "Float32Array",
"array": [
-293.760009765625,
223.10000610351562,
88.23999786376953,
236.10000610351562,
0,
0,
0,
......@@ -1846,9 +1846,9 @@
"__id__": 2
},
"_alignFlags": 9,
"_left": 324,
"_left": 706,
"_right": 0,
"_top": 118,
"_top": 105,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
......@@ -1902,8 +1902,8 @@
"__type__": "TypedArray",
"ctor": "Float32Array",
"array": [
-123.9749984741211,
223.10000610351562,
238.02499389648438,
236.10000610351562,
0,
0,
0,
......@@ -1970,9 +1970,9 @@
"__id__": 2
},
"_alignFlags": 9,
"_left": 476,
"_left": 838,
"_right": 0,
"_top": 118,
"_top": 105,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
......@@ -2026,8 +2026,8 @@
"__type__": "TypedArray",
"ctor": "Float32Array",
"array": [
122.1500015258789,
223.10000610351562,
454.1499938964844,
236.10000610351562,
0,
0,
0,
......@@ -2094,9 +2094,9 @@
"__id__": 2
},
"_alignFlags": 9,
"_left": 711,
"_left": 1043,
"_right": 0,
"_top": 118,
"_top": 105,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
......@@ -2138,7 +2138,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 956,
"width": 564,
"height": 60
},
"_anchorPoint": {
......@@ -2150,8 +2150,8 @@
"__type__": "TypedArray",
"ctor": "Float32Array",
"array": [
98,
170,
294,
191,
0,
0,
0,
......@@ -2218,9 +2218,9 @@
"__id__": 2
},
"_alignFlags": 9,
"_left": 260,
"_left": 652,
"_right": 0,
"_top": 160,
"_top": 139,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
......@@ -2262,8 +2262,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 278,
"height": 72
"width": 200,
"height": 52
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2274,8 +2274,8 @@
"__type__": "TypedArray",
"ctor": "Float32Array",
"array": [
-450,
67,
112,
13,
0,
0,
0,
......@@ -2342,9 +2342,9 @@
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 51,
"_left": 652,
"_right": 0,
"_top": 257,
"_top": 321,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
......@@ -2480,8 +2480,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 572,
"height": 72
"width": 564,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2492,8 +2492,8 @@
"__type__": "TypedArray",
"ctor": "Float32Array",
"array": [
4,
66,
294,
107,
0,
0,
0,
......@@ -2560,9 +2560,9 @@
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 358,
"_left": 652,
"_right": 0,
"_top": 258,
"_top": 223,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
......@@ -2617,7 +2617,7 @@
"ctor": "Float32Array",
"array": [
-512,
-33.349998474121094,
-73.3499984741211,
0,
0,
0,
......@@ -2684,7 +2684,7 @@
"_alignFlags": 9,
"_left": 64,
"_right": 0,
"_top": 365,
"_top": 405,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
......@@ -2728,7 +2728,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 1216,
"height": 227
"height": 152
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2752,7 +2752,7 @@
"ctor": "Float32Array",
"array": [
32,
-187.5,
-182,
0,
0,
0,
......@@ -2806,7 +2806,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 1236,
"height": 250
"height": 180
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2959,7 +2959,7 @@
"_alignFlags": 9,
"_left": 64,
"_right": 0,
"_top": 434,
"_top": 466,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
......@@ -3795,6 +3795,7 @@
"_aTouchContext": [],
"_defaultBackScene": null,
"_oFocusScaleFactorInfo": null,
"_bShowExitBox": false,
"PFB_CATEGORY": {
"__uuid__": "9e0214ed-5de0-4667-a660-d4fa85a5de1d"
},
......
......@@ -283,8 +283,8 @@ cc.Class({
cc.find("Desc/LabelTime", this.node).getComponent(cc.Label).string = oJSONResult.resultSet[0].updateTime;
//这里给描述做拦截,防止字数多超出栏目
var description = oJSONResult.resultSet[0].description;
if (description.length > 150) {
description = description.substring(0, 150) + "...";
if (description.length > 55) {
description = description.substring(0, 55) + "...";
}
cc.find("Desc/LabelDesc", this.node).getComponent(cc.Label).string = description;
//搞标签
......@@ -294,8 +294,8 @@ cc.Class({
let nodeShadow = cc.find("Desc/Title/Shadow" + i, this.node);
nodeShadow.active = true;
nodeShadow.getChildByName("Label").getComponent(cc.Label).string = aTag[i];
cc.log("字体宽度:" + (260 + iTitleWidth + 16 + i * 108));
nodeShadow.getComponent(cc.Widget).left = 260 + iTitleWidth + 16 + i * 108;
// cc.log("字体宽度:" + (856 + iTitleWidth + 16 + i * 108));
nodeShadow.getComponent(cc.Widget).left = 652 + iTitleWidth + 16 + i * 108;
}
this._strEpisodeImg = oJSONResult.resultSet[0].images.list[0].fileUrl;
......@@ -359,7 +359,7 @@ cc.Class({
if (0 == nodeInitFocus.name.indexOf('Button')) {
this._cFocus.hide();
cc.loader.loadRes("GameDetail/icon_button_open", cc.Texture2D, function (err, texture) {
nodeInitFocus.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, nodeInitFocus.height, nodeInitFocus.width, nodeInitFocus.height));
nodeInitFocus.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, 72, 278, 72));
});
}
......@@ -500,13 +500,13 @@ cc.Class({
if (0 == fiFrom.node.getName().indexOf('ButtonOpen')) {
cc.loader.loadRes("GameDetail/icon_button_open", cc.Texture2D, function (err, texture) {
fiFrom.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, 0, fiFrom.node.width, fiFrom.node.height));
fiFrom.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, 0, 278, 72));
});
}
if (0 == fiFrom.node.getName().indexOf('ButtonVip')) {
cc.loader.loadRes("GameDetail/icon_banner", cc.Texture2D, function (err, texture) {
fiFrom.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, 0, fiFrom.node.width, fiFrom.node.height));
fiFrom.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, 0, 572, 72));
});
}
......@@ -535,14 +535,14 @@ cc.Class({
if (0 == fiTo.node.getName().indexOf('ButtonOpen')) {
// fiTo.node.getComponent(cc.Sprite).spriteFrame.setRect(cc.rect(0, fiTo.node.height, fiTo.node.width, fiTo.node.height));
cc.loader.loadRes("GameDetail/icon_button_open", cc.Texture2D, function (err, texture) {
fiTo.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, fiTo.node.height, fiTo.node.width, fiTo.node.height));
fiTo.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, 72, 278, 72));
});
}
if (0 == fiTo.node.getName().indexOf('ButtonVip')) {
// fiTo.node.getComponent(cc.Sprite).spriteFrame.setRect(cc.rect(0, fiTo.node.height, fiTo.node.width, fiTo.node.height));
cc.loader.loadRes("GameDetail/icon_banner", cc.Texture2D, function (err, texture) {
fiTo.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, fiTo.node.height, fiTo.node.width, fiTo.node.height));
fiTo.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, 72, 572, 72));
});
}
},
......
......@@ -11,8 +11,8 @@
"extension": ".png",
"enable": true,
"fileUrl": "GameDetail/AR环保课堂.jpg",
"width": 368,
"height": 227
"width": 270,
"height": 152
}
]
},
......@@ -23,8 +23,8 @@
"extension": ".png",
"enable": true,
"fileUrl": "GameDetail/AR环保课堂2.jpg",
"width": 368,
"height": 227
"width": 270,
"height": 152
}
]
},
......@@ -35,8 +35,8 @@
"extension": ".png",
"enable": true,
"fileUrl": "GameDetail/AR环保课堂3.jpg",
"width": 368,
"height": 227
"width": 270,
"height": 152
}
]
},
......@@ -47,8 +47,8 @@
"extension": ".png",
"enable": true,
"fileUrl": "GameDetail/icon_game.png",
"width": 368,
"height": 227
"width": 270,
"height": 152
}
]
},
......@@ -59,8 +59,8 @@
"extension": ".png",
"enable": true,
"fileUrl": "GameDetail/icon_game.png",
"width": 368,
"height": 227
"width": 270,
"height": 152
}
]
}
......