Commit 9f06fd5b 9f06fd5b5b3567688fca9b1e256cc6a4d186c437 by 金学艇

1.修改详情页

2.优化首页
1 parent c42acafc
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
17 "__id__": 2 17 "__id__": 2
18 } 18 }
19 ], 19 ],
20 "_active": true, 20 "_active": false,
21 "_components": [], 21 "_components": [],
22 "_prefab": null, 22 "_prefab": null,
23 "_opacity": 255, 23 "_opacity": 255,
...@@ -207,7 +207,7 @@ ...@@ -207,7 +207,7 @@
207 "array": [ 207 "array": [
208 0, 208 0,
209 0, 209 0,
210 271.0601806640625, 210 271.0659484863281,
211 0, 211 0,
212 0, 212 0,
213 0, 213 0,
...@@ -387,8 +387,8 @@ ...@@ -387,8 +387,8 @@
387 }, 387 },
388 "_contentSize": { 388 "_contentSize": {
389 "__type__": "cc.Size", 389 "__type__": "cc.Size",
390 "width": 172, 390 "width": 564,
391 "height": 172 391 "height": 317
392 }, 392 },
393 "_anchorPoint": { 393 "_anchorPoint": {
394 "__type__": "cc.Vec2", 394 "__type__": "cc.Vec2",
...@@ -399,8 +399,8 @@ ...@@ -399,8 +399,8 @@
399 "__type__": "TypedArray", 399 "__type__": "TypedArray",
400 "ctor": "Float32Array", 400 "ctor": "Float32Array",
401 "array": [ 401 "array": [
402 -490, 402 -294,
403 214, 403 145.5,
404 0, 404 0,
405 0, 405 0,
406 0, 406 0,
...@@ -469,7 +469,7 @@ ...@@ -469,7 +469,7 @@
469 "_alignFlags": 9, 469 "_alignFlags": 9,
470 "_left": 64, 470 "_left": 64,
471 "_right": 0, 471 "_right": 0,
472 "_top": 60, 472 "_top": 56,
473 "_bottom": 0, 473 "_bottom": 0,
474 "_verticalCenter": 0, 474 "_verticalCenter": 0,
475 "_horizontalCenter": 0, 475 "_horizontalCenter": 0,
...@@ -616,7 +616,7 @@ ...@@ -616,7 +616,7 @@
616 "__type__": "TypedArray", 616 "__type__": "TypedArray",
617 "ctor": "Float32Array", 617 "ctor": "Float32Array",
618 "array": [ 618 "array": [
619 -272, 619 120,
620 272.5, 620 272.5,
621 0, 621 0,
622 0, 622 0,
...@@ -1348,7 +1348,7 @@ ...@@ -1348,7 +1348,7 @@
1348 "ctor": "Float32Array", 1348 "ctor": "Float32Array",
1349 "array": [ 1349 "array": [
1350 -78, 1350 -78,
1351 -49.400001525878906, 1351 -36.400001525878906,
1352 0, 1352 0,
1353 0, 1353 0,
1354 0, 1354 0,
...@@ -1415,9 +1415,9 @@ ...@@ -1415,9 +1415,9 @@
1415 "__id__": 2 1415 "__id__": 2
1416 }, 1416 },
1417 "_alignFlags": 9, 1417 "_alignFlags": 9,
1418 "_left": 260, 1418 "_left": 652,
1419 "_right": 0, 1419 "_right": 0,
1420 "_top": 118, 1420 "_top": 105,
1421 "_bottom": 0, 1421 "_bottom": 0,
1422 "_verticalCenter": 0, 1422 "_verticalCenter": 0,
1423 "_horizontalCenter": 0, 1423 "_horizontalCenter": 0,
...@@ -1471,8 +1471,8 @@ ...@@ -1471,8 +1471,8 @@
1471 "__type__": "TypedArray", 1471 "__type__": "TypedArray",
1472 "ctor": "Float32Array", 1472 "ctor": "Float32Array",
1473 "array": [ 1473 "array": [
1474 76, 1474 54,
1475 -49.400001525878906, 1475 -36.400001525878906,
1476 0, 1476 0,
1477 0, 1477 0,
1478 0, 1478 0,
...@@ -1539,9 +1539,9 @@ ...@@ -1539,9 +1539,9 @@
1539 "__id__": 2 1539 "__id__": 2
1540 }, 1540 },
1541 "_alignFlags": 9, 1541 "_alignFlags": 9,
1542 "_left": 414, 1542 "_left": 784,
1543 "_right": 0, 1543 "_right": 0,
1544 "_top": 118, 1544 "_top": 105,
1545 "_bottom": 0, 1545 "_bottom": 0,
1546 "_verticalCenter": 0, 1546 "_verticalCenter": 0,
1547 "_horizontalCenter": 0, 1547 "_horizontalCenter": 0,
...@@ -1595,8 +1595,8 @@ ...@@ -1595,8 +1595,8 @@
1595 "__type__": "TypedArray", 1595 "__type__": "TypedArray",
1596 "ctor": "Float32Array", 1596 "ctor": "Float32Array",
1597 "array": [ 1597 "array": [
1598 289, 1598 243,
1599 -49.400001525878906, 1599 -36.400001525878906,
1600 0, 1600 0,
1601 0, 1601 0,
1602 0, 1602 0,
...@@ -1663,9 +1663,9 @@ ...@@ -1663,9 +1663,9 @@
1663 "__id__": 2 1663 "__id__": 2
1664 }, 1664 },
1665 "_alignFlags": 9, 1665 "_alignFlags": 9,
1666 "_left": 607, 1666 "_left": 953,
1667 "_right": 0, 1667 "_right": 0,
1668 "_top": 118, 1668 "_top": 105,
1669 "_bottom": 0, 1669 "_bottom": 0,
1670 "_verticalCenter": 0, 1670 "_verticalCenter": 0,
1671 "_horizontalCenter": 0, 1671 "_horizontalCenter": 0,
...@@ -1722,7 +1722,7 @@ ...@@ -1722,7 +1722,7 @@
1722 "__id__": 2 1722 "__id__": 2
1723 }, 1723 },
1724 "_alignFlags": 9, 1724 "_alignFlags": 9,
1725 "_left": 260, 1725 "_left": 652,
1726 "_right": 0, 1726 "_right": 0,
1727 "_top": 56, 1727 "_top": 56,
1728 "_bottom": 0, 1728 "_bottom": 0,
...@@ -1778,8 +1778,8 @@ ...@@ -1778,8 +1778,8 @@
1778 "__type__": "TypedArray", 1778 "__type__": "TypedArray",
1779 "ctor": "Float32Array", 1779 "ctor": "Float32Array",
1780 "array": [ 1780 "array": [
1781 -293.760009765625, 1781 88.23999786376953,
1782 223.10000610351562, 1782 236.10000610351562,
1783 0, 1783 0,
1784 0, 1784 0,
1785 0, 1785 0,
...@@ -1846,9 +1846,9 @@ ...@@ -1846,9 +1846,9 @@
1846 "__id__": 2 1846 "__id__": 2
1847 }, 1847 },
1848 "_alignFlags": 9, 1848 "_alignFlags": 9,
1849 "_left": 324, 1849 "_left": 706,
1850 "_right": 0, 1850 "_right": 0,
1851 "_top": 118, 1851 "_top": 105,
1852 "_bottom": 0, 1852 "_bottom": 0,
1853 "_verticalCenter": 0, 1853 "_verticalCenter": 0,
1854 "_horizontalCenter": 0, 1854 "_horizontalCenter": 0,
...@@ -1902,8 +1902,8 @@ ...@@ -1902,8 +1902,8 @@
1902 "__type__": "TypedArray", 1902 "__type__": "TypedArray",
1903 "ctor": "Float32Array", 1903 "ctor": "Float32Array",
1904 "array": [ 1904 "array": [
1905 -123.9749984741211, 1905 238.02499389648438,
1906 223.10000610351562, 1906 236.10000610351562,
1907 0, 1907 0,
1908 0, 1908 0,
1909 0, 1909 0,
...@@ -1970,9 +1970,9 @@ ...@@ -1970,9 +1970,9 @@
1970 "__id__": 2 1970 "__id__": 2
1971 }, 1971 },
1972 "_alignFlags": 9, 1972 "_alignFlags": 9,
1973 "_left": 476, 1973 "_left": 838,
1974 "_right": 0, 1974 "_right": 0,
1975 "_top": 118, 1975 "_top": 105,
1976 "_bottom": 0, 1976 "_bottom": 0,
1977 "_verticalCenter": 0, 1977 "_verticalCenter": 0,
1978 "_horizontalCenter": 0, 1978 "_horizontalCenter": 0,
...@@ -2026,8 +2026,8 @@ ...@@ -2026,8 +2026,8 @@
2026 "__type__": "TypedArray", 2026 "__type__": "TypedArray",
2027 "ctor": "Float32Array", 2027 "ctor": "Float32Array",
2028 "array": [ 2028 "array": [
2029 122.1500015258789, 2029 454.1499938964844,
2030 223.10000610351562, 2030 236.10000610351562,
2031 0, 2031 0,
2032 0, 2032 0,
2033 0, 2033 0,
...@@ -2094,9 +2094,9 @@ ...@@ -2094,9 +2094,9 @@
2094 "__id__": 2 2094 "__id__": 2
2095 }, 2095 },
2096 "_alignFlags": 9, 2096 "_alignFlags": 9,
2097 "_left": 711, 2097 "_left": 1043,
2098 "_right": 0, 2098 "_right": 0,
2099 "_top": 118, 2099 "_top": 105,
2100 "_bottom": 0, 2100 "_bottom": 0,
2101 "_verticalCenter": 0, 2101 "_verticalCenter": 0,
2102 "_horizontalCenter": 0, 2102 "_horizontalCenter": 0,
...@@ -2138,7 +2138,7 @@ ...@@ -2138,7 +2138,7 @@
2138 }, 2138 },
2139 "_contentSize": { 2139 "_contentSize": {
2140 "__type__": "cc.Size", 2140 "__type__": "cc.Size",
2141 "width": 956, 2141 "width": 564,
2142 "height": 60 2142 "height": 60
2143 }, 2143 },
2144 "_anchorPoint": { 2144 "_anchorPoint": {
...@@ -2150,8 +2150,8 @@ ...@@ -2150,8 +2150,8 @@
2150 "__type__": "TypedArray", 2150 "__type__": "TypedArray",
2151 "ctor": "Float32Array", 2151 "ctor": "Float32Array",
2152 "array": [ 2152 "array": [
2153 98, 2153 294,
2154 170, 2154 191,
2155 0, 2155 0,
2156 0, 2156 0,
2157 0, 2157 0,
...@@ -2218,9 +2218,9 @@ ...@@ -2218,9 +2218,9 @@
2218 "__id__": 2 2218 "__id__": 2
2219 }, 2219 },
2220 "_alignFlags": 9, 2220 "_alignFlags": 9,
2221 "_left": 260, 2221 "_left": 652,
2222 "_right": 0, 2222 "_right": 0,
2223 "_top": 160, 2223 "_top": 139,
2224 "_bottom": 0, 2224 "_bottom": 0,
2225 "_verticalCenter": 0, 2225 "_verticalCenter": 0,
2226 "_horizontalCenter": 0, 2226 "_horizontalCenter": 0,
...@@ -2262,8 +2262,8 @@ ...@@ -2262,8 +2262,8 @@
2262 }, 2262 },
2263 "_contentSize": { 2263 "_contentSize": {
2264 "__type__": "cc.Size", 2264 "__type__": "cc.Size",
2265 "width": 278, 2265 "width": 200,
2266 "height": 72 2266 "height": 52
2267 }, 2267 },
2268 "_anchorPoint": { 2268 "_anchorPoint": {
2269 "__type__": "cc.Vec2", 2269 "__type__": "cc.Vec2",
...@@ -2274,8 +2274,8 @@ ...@@ -2274,8 +2274,8 @@
2274 "__type__": "TypedArray", 2274 "__type__": "TypedArray",
2275 "ctor": "Float32Array", 2275 "ctor": "Float32Array",
2276 "array": [ 2276 "array": [
2277 -450, 2277 112,
2278 67, 2278 13,
2279 0, 2279 0,
2280 0, 2280 0,
2281 0, 2281 0,
...@@ -2342,9 +2342,9 @@ ...@@ -2342,9 +2342,9 @@
2342 "alignMode": 1, 2342 "alignMode": 1,
2343 "_target": null, 2343 "_target": null,
2344 "_alignFlags": 9, 2344 "_alignFlags": 9,
2345 "_left": 51, 2345 "_left": 652,
2346 "_right": 0, 2346 "_right": 0,
2347 "_top": 257, 2347 "_top": 321,
2348 "_bottom": 0, 2348 "_bottom": 0,
2349 "_verticalCenter": 0, 2349 "_verticalCenter": 0,
2350 "_horizontalCenter": 0, 2350 "_horizontalCenter": 0,
...@@ -2480,8 +2480,8 @@ ...@@ -2480,8 +2480,8 @@
2480 }, 2480 },
2481 "_contentSize": { 2481 "_contentSize": {
2482 "__type__": "cc.Size", 2482 "__type__": "cc.Size",
2483 "width": 572, 2483 "width": 564,
2484 "height": 72 2484 "height": 60
2485 }, 2485 },
2486 "_anchorPoint": { 2486 "_anchorPoint": {
2487 "__type__": "cc.Vec2", 2487 "__type__": "cc.Vec2",
...@@ -2492,8 +2492,8 @@ ...@@ -2492,8 +2492,8 @@
2492 "__type__": "TypedArray", 2492 "__type__": "TypedArray",
2493 "ctor": "Float32Array", 2493 "ctor": "Float32Array",
2494 "array": [ 2494 "array": [
2495 4, 2495 294,
2496 66, 2496 107,
2497 0, 2497 0,
2498 0, 2498 0,
2499 0, 2499 0,
...@@ -2560,9 +2560,9 @@ ...@@ -2560,9 +2560,9 @@
2560 "alignMode": 1, 2560 "alignMode": 1,
2561 "_target": null, 2561 "_target": null,
2562 "_alignFlags": 9, 2562 "_alignFlags": 9,
2563 "_left": 358, 2563 "_left": 652,
2564 "_right": 0, 2564 "_right": 0,
2565 "_top": 258, 2565 "_top": 223,
2566 "_bottom": 0, 2566 "_bottom": 0,
2567 "_verticalCenter": 0, 2567 "_verticalCenter": 0,
2568 "_horizontalCenter": 0, 2568 "_horizontalCenter": 0,
...@@ -2617,7 +2617,7 @@ ...@@ -2617,7 +2617,7 @@
2617 "ctor": "Float32Array", 2617 "ctor": "Float32Array",
2618 "array": [ 2618 "array": [
2619 -512, 2619 -512,
2620 -33.349998474121094, 2620 -73.3499984741211,
2621 0, 2621 0,
2622 0, 2622 0,
2623 0, 2623 0,
...@@ -2684,7 +2684,7 @@ ...@@ -2684,7 +2684,7 @@
2684 "_alignFlags": 9, 2684 "_alignFlags": 9,
2685 "_left": 64, 2685 "_left": 64,
2686 "_right": 0, 2686 "_right": 0,
2687 "_top": 365, 2687 "_top": 405,
2688 "_bottom": 0, 2688 "_bottom": 0,
2689 "_verticalCenter": 0, 2689 "_verticalCenter": 0,
2690 "_horizontalCenter": 0, 2690 "_horizontalCenter": 0,
...@@ -2728,7 +2728,7 @@ ...@@ -2728,7 +2728,7 @@
2728 "_contentSize": { 2728 "_contentSize": {
2729 "__type__": "cc.Size", 2729 "__type__": "cc.Size",
2730 "width": 1216, 2730 "width": 1216,
2731 "height": 227 2731 "height": 152
2732 }, 2732 },
2733 "_anchorPoint": { 2733 "_anchorPoint": {
2734 "__type__": "cc.Vec2", 2734 "__type__": "cc.Vec2",
...@@ -2752,7 +2752,7 @@ ...@@ -2752,7 +2752,7 @@
2752 "ctor": "Float32Array", 2752 "ctor": "Float32Array",
2753 "array": [ 2753 "array": [
2754 32, 2754 32,
2755 -187.5, 2755 -182,
2756 0, 2756 0,
2757 0, 2757 0,
2758 0, 2758 0,
...@@ -2806,7 +2806,7 @@ ...@@ -2806,7 +2806,7 @@
2806 "_contentSize": { 2806 "_contentSize": {
2807 "__type__": "cc.Size", 2807 "__type__": "cc.Size",
2808 "width": 1236, 2808 "width": 1236,
2809 "height": 250 2809 "height": 180
2810 }, 2810 },
2811 "_anchorPoint": { 2811 "_anchorPoint": {
2812 "__type__": "cc.Vec2", 2812 "__type__": "cc.Vec2",
...@@ -2959,7 +2959,7 @@ ...@@ -2959,7 +2959,7 @@
2959 "_alignFlags": 9, 2959 "_alignFlags": 9,
2960 "_left": 64, 2960 "_left": 64,
2961 "_right": 0, 2961 "_right": 0,
2962 "_top": 434, 2962 "_top": 466,
2963 "_bottom": 0, 2963 "_bottom": 0,
2964 "_verticalCenter": 0, 2964 "_verticalCenter": 0,
2965 "_horizontalCenter": 0, 2965 "_horizontalCenter": 0,
...@@ -3795,6 +3795,7 @@ ...@@ -3795,6 +3795,7 @@
3795 "_aTouchContext": [], 3795 "_aTouchContext": [],
3796 "_defaultBackScene": null, 3796 "_defaultBackScene": null,
3797 "_oFocusScaleFactorInfo": null, 3797 "_oFocusScaleFactorInfo": null,
3798 "_bShowExitBox": false,
3798 "PFB_CATEGORY": { 3799 "PFB_CATEGORY": {
3799 "__uuid__": "9e0214ed-5de0-4667-a660-d4fa85a5de1d" 3800 "__uuid__": "9e0214ed-5de0-4667-a660-d4fa85a5de1d"
3800 }, 3801 },
......
...@@ -283,8 +283,8 @@ cc.Class({ ...@@ -283,8 +283,8 @@ cc.Class({
283 cc.find("Desc/LabelTime", this.node).getComponent(cc.Label).string = oJSONResult.resultSet[0].updateTime; 283 cc.find("Desc/LabelTime", this.node).getComponent(cc.Label).string = oJSONResult.resultSet[0].updateTime;
284 //这里给描述做拦截,防止字数多超出栏目 284 //这里给描述做拦截,防止字数多超出栏目
285 var description = oJSONResult.resultSet[0].description; 285 var description = oJSONResult.resultSet[0].description;
286 if (description.length > 150) { 286 if (description.length > 55) {
287 description = description.substring(0, 150) + "..."; 287 description = description.substring(0, 55) + "...";
288 } 288 }
289 cc.find("Desc/LabelDesc", this.node).getComponent(cc.Label).string = description; 289 cc.find("Desc/LabelDesc", this.node).getComponent(cc.Label).string = description;
290 //搞标签 290 //搞标签
...@@ -294,8 +294,8 @@ cc.Class({ ...@@ -294,8 +294,8 @@ cc.Class({
294 let nodeShadow = cc.find("Desc/Title/Shadow" + i, this.node); 294 let nodeShadow = cc.find("Desc/Title/Shadow" + i, this.node);
295 nodeShadow.active = true; 295 nodeShadow.active = true;
296 nodeShadow.getChildByName("Label").getComponent(cc.Label).string = aTag[i]; 296 nodeShadow.getChildByName("Label").getComponent(cc.Label).string = aTag[i];
297 cc.log("字体宽度:" + (260 + iTitleWidth + 16 + i * 108)); 297 // cc.log("字体宽度:" + (856 + iTitleWidth + 16 + i * 108));
298 nodeShadow.getComponent(cc.Widget).left = 260 + iTitleWidth + 16 + i * 108; 298 nodeShadow.getComponent(cc.Widget).left = 652 + iTitleWidth + 16 + i * 108;
299 } 299 }
300 300
301 this._strEpisodeImg = oJSONResult.resultSet[0].images.list[0].fileUrl; 301 this._strEpisodeImg = oJSONResult.resultSet[0].images.list[0].fileUrl;
...@@ -359,7 +359,7 @@ cc.Class({ ...@@ -359,7 +359,7 @@ cc.Class({
359 if (0 == nodeInitFocus.name.indexOf('Button')) { 359 if (0 == nodeInitFocus.name.indexOf('Button')) {
360 this._cFocus.hide(); 360 this._cFocus.hide();
361 cc.loader.loadRes("GameDetail/icon_button_open", cc.Texture2D, function (err, texture) { 361 cc.loader.loadRes("GameDetail/icon_button_open", cc.Texture2D, function (err, texture) {
362 nodeInitFocus.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, nodeInitFocus.height, nodeInitFocus.width, nodeInitFocus.height)); 362 nodeInitFocus.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, 72, 278, 72));
363 }); 363 });
364 } 364 }
365 365
...@@ -500,13 +500,13 @@ cc.Class({ ...@@ -500,13 +500,13 @@ cc.Class({
500 500
501 if (0 == fiFrom.node.getName().indexOf('ButtonOpen')) { 501 if (0 == fiFrom.node.getName().indexOf('ButtonOpen')) {
502 cc.loader.loadRes("GameDetail/icon_button_open", cc.Texture2D, function (err, texture) { 502 cc.loader.loadRes("GameDetail/icon_button_open", cc.Texture2D, function (err, texture) {
503 fiFrom.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, 0, fiFrom.node.width, fiFrom.node.height)); 503 fiFrom.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, 0, 278, 72));
504 }); 504 });
505 } 505 }
506 506
507 if (0 == fiFrom.node.getName().indexOf('ButtonVip')) { 507 if (0 == fiFrom.node.getName().indexOf('ButtonVip')) {
508 cc.loader.loadRes("GameDetail/icon_banner", cc.Texture2D, function (err, texture) { 508 cc.loader.loadRes("GameDetail/icon_banner", cc.Texture2D, function (err, texture) {
509 fiFrom.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, 0, fiFrom.node.width, fiFrom.node.height)); 509 fiFrom.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, 0, 572, 72));
510 }); 510 });
511 } 511 }
512 512
...@@ -535,14 +535,14 @@ cc.Class({ ...@@ -535,14 +535,14 @@ cc.Class({
535 if (0 == fiTo.node.getName().indexOf('ButtonOpen')) { 535 if (0 == fiTo.node.getName().indexOf('ButtonOpen')) {
536 // fiTo.node.getComponent(cc.Sprite).spriteFrame.setRect(cc.rect(0, fiTo.node.height, fiTo.node.width, fiTo.node.height)); 536 // fiTo.node.getComponent(cc.Sprite).spriteFrame.setRect(cc.rect(0, fiTo.node.height, fiTo.node.width, fiTo.node.height));
537 cc.loader.loadRes("GameDetail/icon_button_open", cc.Texture2D, function (err, texture) { 537 cc.loader.loadRes("GameDetail/icon_button_open", cc.Texture2D, function (err, texture) {
538 fiTo.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, fiTo.node.height, fiTo.node.width, fiTo.node.height)); 538 fiTo.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, 72, 278, 72));
539 }); 539 });
540 } 540 }
541 541
542 if (0 == fiTo.node.getName().indexOf('ButtonVip')) { 542 if (0 == fiTo.node.getName().indexOf('ButtonVip')) {
543 // fiTo.node.getComponent(cc.Sprite).spriteFrame.setRect(cc.rect(0, fiTo.node.height, fiTo.node.width, fiTo.node.height)); 543 // fiTo.node.getComponent(cc.Sprite).spriteFrame.setRect(cc.rect(0, fiTo.node.height, fiTo.node.width, fiTo.node.height));
544 cc.loader.loadRes("GameDetail/icon_banner", cc.Texture2D, function (err, texture) { 544 cc.loader.loadRes("GameDetail/icon_banner", cc.Texture2D, function (err, texture) {
545 fiTo.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, fiTo.node.height, fiTo.node.width, fiTo.node.height)); 545 fiTo.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, 72, 572, 72));
546 }); 546 });
547 } 547 }
548 }, 548 },
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
11 "extension": ".png", 11 "extension": ".png",
12 "enable": true, 12 "enable": true,
13 "fileUrl": "GameDetail/AR环保课堂.jpg", 13 "fileUrl": "GameDetail/AR环保课堂.jpg",
14 "width": 368, 14 "width": 270,
15 "height": 227 15 "height": 152
16 } 16 }
17 ] 17 ]
18 }, 18 },
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
23 "extension": ".png", 23 "extension": ".png",
24 "enable": true, 24 "enable": true,
25 "fileUrl": "GameDetail/AR环保课堂2.jpg", 25 "fileUrl": "GameDetail/AR环保课堂2.jpg",
26 "width": 368, 26 "width": 270,
27 "height": 227 27 "height": 152
28 } 28 }
29 ] 29 ]
30 }, 30 },
...@@ -35,8 +35,8 @@ ...@@ -35,8 +35,8 @@
35 "extension": ".png", 35 "extension": ".png",
36 "enable": true, 36 "enable": true,
37 "fileUrl": "GameDetail/AR环保课堂3.jpg", 37 "fileUrl": "GameDetail/AR环保课堂3.jpg",
38 "width": 368, 38 "width": 270,
39 "height": 227 39 "height": 152
40 } 40 }
41 ] 41 ]
42 }, 42 },
...@@ -47,8 +47,8 @@ ...@@ -47,8 +47,8 @@
47 "extension": ".png", 47 "extension": ".png",
48 "enable": true, 48 "enable": true,
49 "fileUrl": "GameDetail/icon_game.png", 49 "fileUrl": "GameDetail/icon_game.png",
50 "width": 368, 50 "width": 270,
51 "height": 227 51 "height": 152
52 } 52 }
53 ] 53 ]
54 }, 54 },
...@@ -59,8 +59,8 @@ ...@@ -59,8 +59,8 @@
59 "extension": ".png", 59 "extension": ".png",
60 "enable": true, 60 "enable": true,
61 "fileUrl": "GameDetail/icon_game.png", 61 "fileUrl": "GameDetail/icon_game.png",
62 "width": 368, 62 "width": 270,
63 "height": 227 63 "height": 152
64 } 64 }
65 ] 65 ]
66 } 66 }
......