Commit 38b1d32c authored by liujiangnan's avatar liujiangnan

feat: 封面

parent f53e29a3
...@@ -78,22 +78,22 @@ ...@@ -78,22 +78,22 @@
"__id__": 7 "__id__": 7
}, },
{ {
"__id__": 23 "__id__": 22
}, },
{ {
"__id__": 34 "__id__": 33
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 37 "__id__": 36
}, },
{ {
"__id__": 38 "__id__": 37
}, },
{ {
"__id__": 39 "__id__": 38
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -351,13 +351,13 @@ ...@@ -351,13 +351,13 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 20 "__id__": 19
}, },
{ {
"__id__": 21 "__id__": 20
}, },
{ {
"__id__": 22 "__id__": 21
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -423,7 +423,7 @@ ...@@ -423,7 +423,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 19 "__id__": 18
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -489,10 +489,10 @@ ...@@ -489,10 +489,10 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 17 "__id__": 16
}, },
{ {
"__id__": 18 "__id__": 17
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -507,7 +507,7 @@ ...@@ -507,7 +507,7 @@
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1280, "width": 1280,
"height": 441 "height": 440
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -519,7 +519,7 @@ ...@@ -519,7 +519,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
0.01099999999999568, 0.010999999999967258,
0, 0,
0, 0,
0, 0,
...@@ -562,9 +562,6 @@ ...@@ -562,9 +562,6 @@
"_components": [ "_components": [
{ {
"__id__": 15 "__id__": 15
},
{
"__id__": 16
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -578,8 +575,8 @@ ...@@ -578,8 +575,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 338.5, "width": 340,
"height": 421 "height": 420
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -590,7 +587,7 @@ ...@@ -590,7 +587,7 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-350.75, -350,
0, 0,
0, 0,
0, 0,
...@@ -640,8 +637,8 @@ ...@@ -640,8 +637,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 230, "width": 340,
"height": 270 "height": 380
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -653,7 +650,7 @@ ...@@ -653,7 +650,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
-2.023, 20,
0, 0,
0, 0,
0, 0,
...@@ -734,8 +731,8 @@ ...@@ -734,8 +731,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 73.4, "width": 340,
"height": 37.8 "height": 35
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -788,8 +785,8 @@ ...@@ -788,8 +785,8 @@
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_string": "Label", "_string": "Label",
"_N$string": "Label", "_N$string": "Label",
"_fontSize": 30, "_fontSize": 35,
"_lineHeight": 30, "_lineHeight": 35,
"_enableWrapText": true, "_enableWrapText": true,
"_N$file": null, "_N$file": null,
"_isSystemFontUsed": true, "_isSystemFontUsed": true,
...@@ -800,42 +797,10 @@ ...@@ -800,42 +797,10 @@
"_N$horizontalAlign": 1, "_N$horizontalAlign": 1,
"_N$verticalAlign": 1, "_N$verticalAlign": 1,
"_N$fontFamily": "Arial", "_N$fontFamily": "Arial",
"_N$overflow": 0, "_N$overflow": 2,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "6cNylW+UZCZKFsjihACnmT" "_id": "6cNylW+UZCZKFsjihACnmT"
}, },
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "52491330-d32c-4de0-bc39-93aa80b2adc1"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "09roGSXglLl7hGNwMCah62"
},
{ {
"__type__": "cc.Button", "__type__": "cc.Button",
"_name": "", "_name": "",
...@@ -915,7 +880,7 @@ ...@@ -915,7 +880,7 @@
"_layoutSize": { "_layoutSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1280, "width": 1280,
"height": 441 "height": 440
}, },
"_resize": 1, "_resize": 1,
"_N$layoutType": 3, "_N$layoutType": 3,
...@@ -949,8 +914,8 @@ ...@@ -949,8 +914,8 @@
"_alignFlags": 5, "_alignFlags": 5,
"_left": 0, "_left": 0,
"_right": 0, "_right": 0,
"_top": 139.489, "_top": 139.98900000000003,
"_bottom": 139.511, "_bottom": 140.01099999999997,
"_verticalCenter": 0, "_verticalCenter": 0,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_isAbsLeft": true, "_isAbsLeft": true,
...@@ -1075,16 +1040,16 @@ ...@@ -1075,16 +1040,16 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 24 "__id__": 23
}, },
{ {
"__id__": 29 "__id__": 28
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 33 "__id__": 32
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1140,20 +1105,20 @@ ...@@ -1140,20 +1105,20 @@
"_name": "bg_title", "_name": "bg_title",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 23 "__id__": 22
}, },
"_children": [ "_children": [
{ {
"__id__": 25 "__id__": 24
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 27 "__id__": 26
}, },
{ {
"__id__": 28 "__id__": 27
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1209,13 +1174,13 @@ ...@@ -1209,13 +1174,13 @@
"_name": "title", "_name": "title",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 24 "__id__": 23
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 26 "__id__": 25
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1271,7 +1236,7 @@ ...@@ -1271,7 +1236,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 25 "__id__": 24
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1304,7 +1269,7 @@ ...@@ -1304,7 +1269,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 24 "__id__": 23
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1336,7 +1301,7 @@ ...@@ -1336,7 +1301,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 24 "__id__": 23
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -1363,19 +1328,19 @@ ...@@ -1363,19 +1328,19 @@
"_name": "back", "_name": "back",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 23 "__id__": 22
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 30 "__id__": 29
}, },
{ {
"__id__": 31 "__id__": 30
}, },
{ {
"__id__": 32 "__id__": 31
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1431,7 +1396,7 @@ ...@@ -1431,7 +1396,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 29 "__id__": 28
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1463,7 +1428,7 @@ ...@@ -1463,7 +1428,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 29 "__id__": 28
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -1490,7 +1455,7 @@ ...@@ -1490,7 +1455,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 29 "__id__": 28
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -1558,7 +1523,7 @@ ...@@ -1558,7 +1523,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 23 "__id__": 22
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -1589,7 +1554,7 @@ ...@@ -1589,7 +1554,7 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 35 "__id__": 34
} }
], ],
"_active": false, "_active": false,
...@@ -1647,13 +1612,13 @@ ...@@ -1647,13 +1612,13 @@
"_name": "btn", "_name": "btn",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 34 "__id__": 33
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 36 "__id__": 35
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1709,7 +1674,7 @@ ...@@ -1709,7 +1674,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 35 "__id__": 34
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
......
...@@ -115,8 +115,8 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -115,8 +115,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
const spriteFrame:any = await asyncGetSpriteFrimeByUrl(row.cover); const spriteFrame:any = await asyncGetSpriteFrimeByUrl(row.cover);
const coverNode = cc.find(`cover`, itemClone); const coverNode = cc.find(`cover`, itemClone);
coverNode.getComponent(cc.Sprite).spriteFrame = spriteFrame; coverNode.getComponent(cc.Sprite).spriteFrame = spriteFrame;
const sx = 230 / coverNode.width; const sx = 340 / coverNode.width;
const sy = 270 / coverNode.height; const sy = 380 / coverNode.height;
coverNode.scale = Math.min(sx, sy); coverNode.scale = Math.min(sx, sy);
} }
......
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