Commit 4e35c977 authored by liujiangnan's avatar liujiangnan

feat: 打开课件

parent 252528f3
No preview for this file type
{
"ver": "2.0.1",
"uuid": "f0680ae0-c079-45ef-abd7-9e63d90b982b",
"uuid": "77fede7e-1b07-44f7-b87d-4b576c476e14",
"downloadMode": 0,
"duration": 0.130612,
"duration": 0.235102,
"subMetas": {}
}
\ No newline at end of file
......@@ -78,19 +78,19 @@
"__id__": 7
},
{
"__id__": 22
"__id__": 36
}
],
"_active": true,
"_components": [
{
"__id__": 26
"__id__": 45
},
{
"__id__": 27
"__id__": 46
},
{
"__id__": 28
"__id__": 47
}
],
"_prefab": null,
......@@ -317,10 +317,10 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8288e3d4-4c75-4b27-8f01-f7014417f4dd"
"__uuid__": "91b1e86e-524a-4f72-a178-e269cbf7f4d4"
},
"_type": 0,
"_sizeMode": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
......@@ -348,13 +348,13 @@
"_active": true,
"_components": [
{
"__id__": 19
"__id__": 33
},
{
"__id__": 20
"__id__": 34
},
{
"__id__": 21
"__id__": 35
}
],
"_prefab": null,
......@@ -420,7 +420,7 @@
"_active": true,
"_components": [
{
"__id__": 18
"__id__": 32
}
],
"_prefab": null,
......@@ -481,15 +481,18 @@
"_children": [
{
"__id__": 10
},
{
"__id__": 17
},
{
"__id__": 24
}
],
"_active": true,
"_components": [
{
"__id__": 16
},
{
"__id__": 17
"__id__": 31
}
],
"_prefab": null,
......@@ -503,8 +506,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 220,
"height": 125
"width": 1280,
"height": 441
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -555,10 +558,13 @@
"__id__": 13
}
],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 15
},
{
"__id__": 16
}
],
"_prefab": null,
......@@ -572,8 +578,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 200,
"height": 230
"width": 338.5,
"height": 421
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -584,7 +590,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-350.75,
0,
0,
0,
......@@ -607,7 +613,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "6eWGWW25xJ/rX9TYx3ynoz"
"_id": "c7MpEtu3FNF6IV92mZIeKI"
},
{
"__type__": "cc.Node",
......@@ -634,8 +640,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 200,
"height": 200
"width": 230,
"height": 270
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -647,7 +653,7 @@
"ctor": "Float64Array",
"array": [
0,
15,
-2.023,
0,
0,
0,
......@@ -721,9 +727,9 @@
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"r": 90,
"g": 89,
"b": 89,
"a": 255
},
"_contentSize": {
......@@ -741,7 +747,7 @@
"ctor": "Float64Array",
"array": [
0,
-100,
-194.824,
0,
0,
0,
......@@ -798,6 +804,38 @@
"_N$cacheMode": 0,
"_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",
"_name": "",
......@@ -864,190 +902,92 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "12VGsSgbFAQbIu+F5Q27k8"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 530,
"_right": 530,
"_top": 297.5,
"_bottom": 297.5,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 220,
"_originalHeight": 220,
"_id": "16FbSjKDNA6aGXCYMfa8Ml"
"_id": "9aPLHBFFpGJbHAZvVCnYNr"
},
{
"__type__": "cc.Layout",
"_name": "",
"__type__": "cc.Node",
"_name": "item",
"_objFlags": 0,
"node": {
"_parent": {
"__id__": 9
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 220,
"height": 125
},
"_resize": 1,
"_N$layoutType": 3,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 10,
"_N$paddingRight": 10,
"_N$paddingTop": 10,
"_N$paddingBottom": 10,
"_N$spacingX": 10,
"_N$spacingY": 10,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0,
"_N$affectedByScale": false,
"_id": "efhjUxCWJAVreDfgTLSz4d"
},
"_children": [
{
"__type__": "cc.Mask",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
"__id__": 18
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
"__id__": 20
}
],
"_spriteFrame": null,
"_type": 0,
"_segments": 64,
"_N$alphaThreshold": 0,
"_N$inverted": false,
"_id": "f5yjwGEW1HC46VO1ehnLtA"
},
"_active": true,
"_components": [
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
"__id__": 22
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
"__id__": 23
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "9bbda31e-ad49-43c9-aaf2-f7d9896bac69"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "4dYz4tzdxJcoddvLusIL7w"
},
{
"__type__": "cc.ScrollView",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_enabled": true,
"horizontal": false,
"vertical": true,
"inertia": false,
"brake": 0.75,
"elastic": false,
"bounceDuration": 0.23,
"scrollEvents": [],
"cancelInnerEvents": true,
"_N$content": {
"__id__": 9
"_contentSize": {
"__type__": "cc.Size",
"width": 338.5,
"height": 421
},
"content": {
"__id__": 9
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_N$horizontalScrollBar": null,
"_N$verticalScrollBar": null,
"_id": "ebx9J95rBDDKCduk6CD+e2"
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-2.25,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 1280,
"_originalHeight": 720,
"_id": "c7+5epGCRGTaez/PfcXlxw"
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "55gZ9Q1VxMqbhiqcIWOXFs"
},
{
"__type__": "cc.Node",
"_name": "back",
"_name": "cover",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 17
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 23
},
{
"__id__": 24
},
{
"__id__": 25
"__id__": 19
}
],
"_prefab": null,
......@@ -1061,8 +1001,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 108,
"height": 113
"width": 230,
"height": 270
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1073,8 +1013,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-566.366,
290.82,
0,
-2.023,
0,
0,
0,
......@@ -1096,14 +1036,1063 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "b81r8UmZtEiKj8X4i99pde"
"_id": "8eL8e9r4dMsppu2cc/2tpC"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
"__id__": 18
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "36VXAiXFtFpqYNy3wyNKsa"
},
{
"__type__": "cc.Node",
"_name": "text",
"_objFlags": 0,
"_parent": {
"__id__": 17
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 21
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 90,
"g": 89,
"b": 89,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 73.4,
"height": 37.8
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-194.824,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "edu1aXbKtBzb4MhV0iRquS"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "Label",
"_N$string": "Label",
"_fontSize": 30,
"_lineHeight": 30,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "7dyN9H+zBPw7/MeBxN+btO"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
},
"_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": "91DBt0m75LKrz3muEf5fnq"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "d4H7ZC5alEz7OtTPpUCk4E"
},
{
"__type__": "cc.Node",
"_name": "item",
"_objFlags": 0,
"_parent": {
"__id__": 9
},
"_children": [
{
"__id__": 25
},
{
"__id__": 27
}
],
"_active": true,
"_components": [
{
"__id__": 29
},
{
"__id__": 30
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 338.5,
"height": 421
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
346.25,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "80sqsewJhF9pBCKt8FxtoQ"
},
{
"__type__": "cc.Node",
"_name": "cover",
"_objFlags": 0,
"_parent": {
"__id__": 24
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 26
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 230,
"height": 270
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-2.023,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "2cy5WvyDhG87rINezfPZiA"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "70aFI8KwJN6YjLanzLkNup"
},
{
"__type__": "cc.Node",
"_name": "text",
"_objFlags": 0,
"_parent": {
"__id__": 24
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 28
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 90,
"g": 89,
"b": 89,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 73.4,
"height": 37.8
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-194.824,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "8dxoFizWBMsLWy6tR1Y3fO"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "Label",
"_N$string": "Label",
"_fontSize": 30,
"_lineHeight": 30,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "231Euud4dJW7ns21/eIeB3"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
},
"_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": "6aOM72BtBArpv5hi1gjWrU"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "37gnlzWcZLCqP1gfV3hoX4"
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 441
},
"_resize": 1,
"_N$layoutType": 3,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 120,
"_N$paddingRight": 120,
"_N$paddingTop": 10,
"_N$paddingBottom": 10,
"_N$spacingX": 10,
"_N$spacingY": 10,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0,
"_N$affectedByScale": false,
"_id": "efhjUxCWJAVreDfgTLSz4d"
},
{
"__type__": "cc.Mask",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_spriteFrame": null,
"_type": 0,
"_segments": 64,
"_N$alphaThreshold": 0,
"_N$inverted": false,
"_id": "f5yjwGEW1HC46VO1ehnLtA"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": null,
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "4dYz4tzdxJcoddvLusIL7w"
},
{
"__type__": "cc.ScrollView",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"horizontal": false,
"vertical": true,
"inertia": false,
"brake": 0.75,
"elastic": false,
"bounceDuration": 0.23,
"scrollEvents": [],
"cancelInnerEvents": true,
"_N$content": {
"__id__": 9
},
"content": {
"__id__": 9
},
"_N$horizontalScrollBar": null,
"_N$verticalScrollBar": null,
"_id": "ebx9J95rBDDKCduk6CD+e2"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 1280,
"_originalHeight": 720,
"_id": "c7+5epGCRGTaez/PfcXlxw"
},
{
"__type__": "cc.Node",
"_name": "lefttop",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 37
},
{
"__id__": 41
}
],
"_active": false,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "bflNzl5QNBg6kIAuIm5lbl"
},
{
"__type__": "cc.Node",
"_name": "bg_title",
"_objFlags": 0,
"_parent": {
"__id__": 36
},
"_children": [
{
"__id__": 38
}
],
"_active": true,
"_components": [
{
"__id__": 40
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 294,
"height": 70
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-447.02,
293.719,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "c2Yvg7oGdOrpB3EAjMq1pd"
},
{
"__type__": "cc.Node",
"_name": "title",
"_objFlags": 0,
"_parent": {
"__id__": 37
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 39
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 220,
"height": 37.8
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-95.311,
9.811,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "1eHi2avzJElrSUgSrG2RqY"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 38
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "Title",
"_N$string": "Title",
"_fontSize": 30,
"_lineHeight": 30,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 2,
"_N$cacheMode": 0,
"_id": "48U2iECkFM1LJmJ9lfjQu8"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "325c2613-f4eb-4a4f-a663-11216e0a8820"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "b0Z5kBaRFPCp0K1fmEKvWq"
},
{
"__type__": "cc.Node",
"_name": "back",
"_objFlags": 0,
"_parent": {
"__id__": 36
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 42
},
{
"__id__": 43
},
{
"__id__": 44
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 103.5,
"height": 107.5
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-586.884,
303.927,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "b81r8UmZtEiKj8X4i99pde"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 41
},
"_enabled": true,
"_materials": [
......@@ -1114,10 +2103,10 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "de271a39-457b-4acc-89c7-d9b75dc64b8e"
"__uuid__": "90d9553f-40f6-4a5b-895b-8a4b4b0b822f"
},
"_type": 0,
"_sizeMode": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
......@@ -1135,15 +2124,15 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
"__id__": 41
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 19.634000000000015,
"_left": -638.634,
"_right": 0,
"_top": 12.680000000000007,
"_top": -357.677,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
......@@ -1162,7 +2151,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
"__id__": 41
},
"_enabled": true,
"_normalMaterial": null,
......
import { asyncDelay, asyncCallNetworkApiGet, getSpriteFrimeByUrl, buttonOnClick,
showLoading, hideLoading } from "../script/util";
import { asyncDelay, asyncCallNetworkApiGet, asyncGetSpriteFrimeByUrl, buttonOnClick,
showLoading, hideLoading, loadOnlineCourseWare } from "../script/util";
import { MyCocosSceneComponent } from "../script/MyCocosSceneComponent";
const { ccclass, property } = cc._decorator;
......@@ -25,7 +25,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
async onLoadEnd() {
await this.initData();
this.initView();
await this.initView();
this.initListener();
}
......@@ -43,10 +43,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.rows = this.loadData();
}
drawPage() {
async drawPage() {
const contentNode = cc.find("Canvas/pages/view/content");
const item = cc.find("item", contentNode);
// 清理原来的数据
item.parent = this.node;
contentNode.removeAllChildren();
......@@ -58,36 +58,40 @@ export default class SceneComponent extends MyCocosSceneComponent {
const itemClone = cc.instantiate(item);
itemClone.parent = contentNode;
itemClone.active = true;
itemClone.attr({item_id: row.id});
itemClone.attr({item_id: row.id, item_name: row.name});
cc.find(`text`, itemClone).getComponent(cc.Label).string = row.name;
if (row.cover) {
getSpriteFrimeByUrl(row.cover, (spriteFrame) => {
const spriteFrame:any = await asyncGetSpriteFrimeByUrl(row.cover);
const coverNode = cc.find(`cover`, itemClone);
coverNode.getComponent(cc.Sprite).spriteFrame = spriteFrame;
const sx = 70 / coverNode.width;
const sy = 80 / coverNode.height;
coverNode.scale = Math.min(sx, sy);
});
}
buttonOnClick(itemClone, async () => {
this.routers.push(itemClone);
if (row.has_courseware) {
// 打开课件
showLoading();
loadOnlineCourseWare(row.id);
} else {
// 打开文件夹
this.routers.push(row);
showLoading();
await this.loadData(row.id);
this.drawPage();
await this.drawPage();
cc.find(`Canvas/lefttop/bg_title/title`).getComponent(cc.Label).string = row.name;
cc.find(`Canvas/lefttop`).active = true;
hideLoading();
if (this.routers.length > 0) {
cc.find(`Canvas/back`).active = false;
}
});
}
}
initView() {
async initView() {
this.initBg();
this.drawPage();
await this.drawPage();
}
initBg() {
......@@ -100,12 +104,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
buttonOnClick(back, async () => {
showLoading();
const item = this.routers.pop();
await this.loadData(item.id);
this.drawPage();
await this.loadData(item.pid);
await this.drawPage();
hideLoading();
if (this.routers.length === 0) {
back.active = false;
cc.find(`Canvas/lefttop`).active = false;
}
});
}
......
......@@ -143,6 +143,18 @@ export function getSpriteFrimeByUrl(url, cb) {
})
}
export function asyncGetSpriteFrimeByUrl(url) {
return new Promise((resolve, reject) => {
cc.loader.load({ url }, (err, img) => {
if (err) {
return reject(err);
}
const spriteFrame = new cc.SpriteFrame(img)
resolve(spriteFrame);
})
});
}
export function getSprNode(resName) {
const sf = cc.find('Canvas/res/img/' + resName).getComponent(cc.Sprite).spriteFrame;
const node = new cc.Node();
......@@ -454,6 +466,16 @@ export function hideLoading(){
}
}
export function loadOnlineCourseWare(courseId) {
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
const middleLayerComponent = middleLayer.getComponent('middleLayer');
middleLayerComponent.loadOnlineCourseWare(courseId);
} else {
console.log('===loadOnlineCourseWare===', courseId);
}
}
export function asyncCallNetworkApiGet(apiName, data) {
return new Promise((resolve, reject) => {
callNetworkApiGet(apiName, data, (res => {
......
{
"ver": "2.3.5",
"uuid": "fee1b3c9-5fe4-4c8c-a000-59fcb9f61bf6",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 2560,
"height": 1440,
"platformSettings": {},
"subMetas": {
"bg_1": {
"ver": "1.0.4",
"uuid": "91b1e86e-524a-4f72-a178-e269cbf7f4d4",
"rawTextureUuid": "fee1b3c9-5fe4-4c8c-a000-59fcb9f61bf6",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 2560,
"height": 1440,
"rawWidth": 2560,
"rawHeight": 1440,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "04576f41-dce4-4f92-bdce-ef0b6e37103e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 677,
"height": 842,
"platformSettings": {},
"subMetas": {
"bg_di1": {
"ver": "1.0.4",
"uuid": "52491330-d32c-4de0-bc39-93aa80b2adc1",
"rawTextureUuid": "04576f41-dce4-4f92-bdce-ef0b6e37103e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 677,
"height": 842,
"rawWidth": 677,
"rawHeight": 842,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "77b8c434-7b69-429c-9da9-d2d7677e0cde",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 826,
"height": 631,
"platformSettings": {},
"subMetas": {
"bg_di2": {
"ver": "1.0.4",
"uuid": "dc28ca15-9dea-4716-a706-b75cf880f291",
"rawTextureUuid": "77b8c434-7b69-429c-9da9-d2d7677e0cde",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 826,
"height": 631,
"rawWidth": 826,
"rawHeight": 631,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "6cbcf287-5e39-49a2-8d2c-ad2c07113dbb",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 588,
"height": 140,
"platformSettings": {},
"subMetas": {
"bg_title": {
"ver": "1.0.4",
"uuid": "325c2613-f4eb-4a4f-a663-11216e0a8820",
"rawTextureUuid": "6cbcf287-5e39-49a2-8d2c-ad2c07113dbb",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 588,
"height": 140,
"rawWidth": 588,
"rawHeight": 140,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "2efb6b1a-263e-41b6-a880-f4451bec22fe",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 720,
"height": 822,
"platformSettings": {},
"subMetas": {
"btn_dub": {
"ver": "1.0.4",
"uuid": "0d54a959-f4f7-4236-ac33-10ae4926853e",
"rawTextureUuid": "2efb6b1a-263e-41b6-a880-f4451bec22fe",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 720,
"height": 822,
"rawWidth": 720,
"rawHeight": 822,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "794b2a13-a7e1-459f-9e6c-4cdd3a9a01b9",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 720,
"height": 822,
"platformSettings": {},
"subMetas": {
"btn_practise": {
"ver": "1.0.4",
"uuid": "fff70ccb-057e-4470-a945-1029142f8ea7",
"rawTextureUuid": "794b2a13-a7e1-459f-9e6c-4cdd3a9a01b9",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 720,
"height": 822,
"rawWidth": 720,
"rawHeight": 822,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "7cf55b14-2bbb-4cdb-bcd9-d349c0931203",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 207,
"height": 215,
"platformSettings": {},
"subMetas": {
"btn_return": {
"ver": "1.0.4",
"uuid": "90d9553f-40f6-4a5b-895b-8a4b4b0b822f",
"rawTextureUuid": "7cf55b14-2bbb-4cdb-bcd9-d349c0931203",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 207,
"height": 215,
"rawWidth": 207,
"rawHeight": 215,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "e821bca7-d738-45fb-a269-2e18e1f30c5e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 720,
"height": 822,
"platformSettings": {},
"subMetas": {
"btn_story": {
"ver": "1.0.4",
"uuid": "bc3195a0-3afe-46cd-a7dc-37a34f5db5c1",
"rawTextureUuid": "e821bca7-d738-45fb-a269-2e18e1f30c5e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 720,
"height": 822,
"rawWidth": 720,
"rawHeight": 822,
"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