Commit 4846780e authored by 曲世俊's avatar 曲世俊

-- feat cookie

parent e3aecb8f
......@@ -21,13 +21,13 @@
"__id__": 2
},
{
"__id__": 6
"__id__": 5
},
{
"__id__": 30
"__id__": 9
},
{
"__id__": 37
"__id__": 33
},
{
"__id__": 40
......@@ -45,23 +45,29 @@
"__id__": 171
},
{
"__id__": 175
"__id__": 177
},
{
"__id__": 178
"__id__": 183
},
{
"__id__": 187
},
{
"__id__": 190
}
],
"_active": true,
"_components": [
{
"__id__": 181
"__id__": 193
},
{
"__id__": 182
"__id__": 194
}
],
"_prefab": {
"__id__": 183
"__id__": 195
},
"_opacity": 255,
"_color": {
......@@ -112,7 +118,7 @@
},
{
"__type__": "cc.Node",
"_name": "bgwhite",
"_name": "VideoNode",
"_objFlags": 0,
"_parent": {
"__id__": 1
......@@ -122,13 +128,108 @@
"_components": [
{
"__id__": 3
}
],
"_prefab": {
"__id__": 4
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 870,
"height": 542
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-5000,
-5001.455,
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": ""
},
{
"__id__": 4
"__type__": "cc.VideoPlayer",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_resourceType": 0,
"_remoteURL": "",
"_clip": null,
"_volume": 1,
"_mute": false,
"_isFullscreen": false,
"_N$isFullscreen": false,
"_stayOnBottom": false,
"videoPlayerEvent": [],
"_N$keepAspectRatio": true,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "59286199-6a11-47ed-8d48-f792c3448a8f"
},
"fileId": "d3rbXGs8FEObzNml95Abho",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "bgwhite",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
},
{
"__id__": 7
}
],
"_prefab": {
"__id__": 5
"__id__": 8
},
"_opacity": 255,
"_color": {
......@@ -182,7 +283,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
"__id__": 5
},
"_enabled": true,
"_materials": [
......@@ -214,7 +315,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
"__id__": 5
},
"_enabled": true,
"alignMode": 1,
......@@ -256,23 +357,23 @@
},
"_children": [
{
"__id__": 7
"__id__": 10
},
{
"__id__": 22
"__id__": 25
}
],
"_active": true,
"_components": [
{
"__id__": 27
"__id__": 30
},
{
"__id__": 28
"__id__": 31
}
],
"_prefab": {
"__id__": 29
"__id__": 32
},
"_opacity": 255,
"_color": {
......@@ -326,27 +427,27 @@
"_name": "bgNode",
"_objFlags": 0,
"_parent": {
"__id__": 6
"__id__": 9
},
"_children": [
{
"__id__": 8
"__id__": 11
},
{
"__id__": 12
"__id__": 15
},
{
"__id__": 16
"__id__": 19
}
],
"_active": true,
"_components": [
{
"__id__": 20
"__id__": 23
}
],
"_prefab": {
"__id__": 21
"__id__": 24
},
"_opacity": 255,
"_color": {
......@@ -400,20 +501,20 @@
"_name": "bg_bottom",
"_objFlags": 0,
"_parent": {
"__id__": 7
"__id__": 10
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
"__id__": 12
},
{
"__id__": 10
"__id__": 13
}
],
"_prefab": {
"__id__": 11
"__id__": 14
},
"_opacity": 255,
"_color": {
......@@ -467,7 +568,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
"__id__": 11
},
"_enabled": true,
"_materials": [
......@@ -499,7 +600,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
"__id__": 11
},
"_enabled": true,
"alignMode": 1,
......@@ -537,20 +638,20 @@
"_name": "bg_left",
"_objFlags": 0,
"_parent": {
"__id__": 7
"__id__": 10
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 13
"__id__": 16
},
{
"__id__": 14
"__id__": 17
}
],
"_prefab": {
"__id__": 15
"__id__": 18
},
"_opacity": 255,
"_color": {
......@@ -604,7 +705,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
"__id__": 15
},
"_enabled": true,
"_materials": [
......@@ -636,7 +737,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
"__id__": 15
},
"_enabled": true,
"alignMode": 1,
......@@ -674,20 +775,20 @@
"_name": "bg_right",
"_objFlags": 0,
"_parent": {
"__id__": 7
"__id__": 10
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 17
"__id__": 20
},
{
"__id__": 18
"__id__": 21
}
],
"_prefab": {
"__id__": 19
"__id__": 22
},
"_opacity": 255,
"_color": {
......@@ -741,7 +842,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
"__id__": 19
},
"_enabled": true,
"_materials": [
......@@ -773,7 +874,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
"__id__": 19
},
"_enabled": true,
"alignMode": 1,
......@@ -811,7 +912,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
"__id__": 10
},
"_enabled": true,
"alignMode": 1,
......@@ -849,17 +950,17 @@
"_name": "videoBg",
"_objFlags": 0,
"_parent": {
"__id__": 6
"__id__": 9
},
"_children": [
{
"__id__": 23
"__id__": 26
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 26
"__id__": 29
},
"_opacity": 255,
"_color": {
......@@ -913,17 +1014,17 @@
"_name": "bg_video_bottom",
"_objFlags": 0,
"_parent": {
"__id__": 22
"__id__": 25
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 24
"__id__": 27
}
],
"_prefab": {
"__id__": 25
"__id__": 28
},
"_opacity": 255,
"_color": {
......@@ -977,7 +1078,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
"__id__": 26
},
"_enabled": true,
"_materials": [
......@@ -1031,7 +1132,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
"__id__": 9
},
"_enabled": true,
"_materials": [
......@@ -1063,7 +1164,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
"__id__": 9
},
"_enabled": true,
"alignMode": 1,
......@@ -1105,17 +1206,17 @@
},
"_children": [
{
"__id__": 31
"__id__": 34
}
],
"_active": true,
"_components": [
{
"__id__": 35
"__id__": 38
}
],
"_prefab": {
"__id__": 36
"__id__": 39
},
"_opacity": 255,
"_color": {
......@@ -1169,20 +1270,20 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 30
"__id__": 33
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 32
"__id__": 35
},
{
"__id__": 33
"__id__": 36
}
],
"_prefab": {
"__id__": 34
"__id__": 37
},
"_opacity": 255,
"_color": {
......@@ -1236,7 +1337,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
"__id__": 34
},
"_enabled": true,
"_materials": [
......@@ -1268,7 +1369,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
"__id__": 34
},
"_enabled": true,
"alignMode": 1,
......@@ -1306,7 +1407,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 30
"__id__": 33
},
"_enabled": true,
"_materials": [
......@@ -1334,20 +1435,27 @@
},
{
"__type__": "cc.Node",
"_name": "VideoNode",
"_name": "bg_video_shadow",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_children": [
{
"__id__": 41
},
{
"__id__": 45
}
],
"_active": true,
"_components": [
{
"__id__": 38
"__id__": 49
}
],
"_prefab": {
"__id__": 39
"__id__": 50
},
"_opacity": 255,
"_color": {
......@@ -1359,8 +1467,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 870,
"height": 542
"width": 1320,
"height": 776
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1371,8 +1479,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-5000,
-5001.455,
-0.2370000000000001,
162.871,
0,
0,
0,
......@@ -1397,113 +1505,11 @@
"_id": ""
},
{
"__type__": "cc.VideoPlayer",
"_name": "",
"__type__": "cc.Node",
"_name": "empty_white",
"_objFlags": 0,
"node": {
"__id__": 37
},
"_enabled": true,
"_resourceType": 0,
"_remoteURL": "",
"_clip": null,
"_volume": 1,
"_mute": false,
"_isFullscreen": false,
"_N$isFullscreen": false,
"_stayOnBottom": false,
"videoPlayerEvent": [],
"_N$keepAspectRatio": true,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "59286199-6a11-47ed-8d48-f792c3448a8f"
},
"fileId": "d3rbXGs8FEObzNml95Abho",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "bg_video_shadow",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 41
},
{
"__id__": 45
}
],
"_active": true,
"_components": [
{
"__id__": 49
}
],
"_prefab": {
"__id__": 50
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1320,
"height": 776
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-0.2370000000000001,
162.871,
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": ""
},
{
"__type__": "cc.Node",
"_name": "empty_white",
"_objFlags": 0,
"_parent": {
"__id__": 40
"_parent": {
"__id__": 40
},
"_children": [],
"_active": true,
......@@ -6223,7 +6229,7 @@
},
{
"__type__": "cc.Node",
"_name": "title",
"_name": "btn_last",
"_objFlags": 0,
"_parent": {
"__id__": 1
......@@ -6236,10 +6242,13 @@
},
{
"__id__": 173
},
{
"__id__": 175
}
],
"_prefab": {
"__id__": 174
"__id__": 176
},
"_opacity": 255,
"_color": {
......@@ -6251,8 +6260,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 144,
"height": 60.48
"width": 103,
"height": 103
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -6263,8 +6272,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-681.529,
442.79999999999995,
-658.265,
96.45499999999998,
0,
0,
0,
......@@ -6289,7 +6298,7 @@
"_id": ""
},
{
"__type__": "cc.Label",
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
......@@ -6303,26 +6312,107 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "看动画",
"_N$string": "看动画",
"_fontSize": 48,
"_lineHeight": 48,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "ecfe9361-5e18-4083-b4c6-b13770fa9313"
"_spriteFrame": {
"__uuid__": "d0893e19-3900-461f-b09e-ecc435b815ba"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 171
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 174
}
],
"_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": {
"__id__": 171
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": ""
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 1
},
"component": "",
"_componentId": "ed52etj/IVPVbX5tWqr/3nP",
"handler": "onClickLast",
"customEventData": ""
},
{
"__type__": "cc.Widget",
"_name": "",
......@@ -6334,9 +6424,9 @@
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 206.471,
"_left": 250.235,
"_right": 0,
"_top": 66.96000000000001,
"_top": 392.045,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
......@@ -6358,25 +6448,31 @@
"asset": {
"__uuid__": "59286199-6a11-47ed-8d48-f792c3448a8f"
},
"fileId": "8an4THnSdMn4VYXQo9yZAv",
"fileId": "30UDwu0JhPXaTqbXdhGHAO",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "text_tips",
"_name": "btn_next",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 176
"__id__": 178
},
{
"__id__": 179
},
{
"__id__": 181
}
],
"_prefab": {
"__id__": 177
"__id__": 182
},
"_opacity": 255,
"_color": {
......@@ -6388,8 +6484,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 248,
"height": 109
"width": 103,
"height": 103
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -6400,8 +6496,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-349.97,
270.168,
672.4639999999999,
96.45499999999998,
0,
0,
0,
......@@ -6430,7 +6526,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 175
"__id__": 177
},
"_enabled": true,
"_materials": [
......@@ -6438,10 +6534,10 @@
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 1,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "c4ea6240-75df-47f8-aa4e-e77c1ac4806e"
"__uuid__": "c528c2a2-e7b9-4f8b-9cd2-5cdd956ae9c0"
},
"_type": 0,
"_sizeMode": 1,
......@@ -6458,11 +6554,369 @@
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 177
},
"asset": {
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 180
}
],
"_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": {
"__id__": 177
},
"_id": ""
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 1
},
"component": "",
"_componentId": "ed52etj/IVPVbX5tWqr/3nP",
"handler": "onClickNext",
"customEventData": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 177
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 1580.964,
"_right": 0,
"_top": 392.045,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "59286199-6a11-47ed-8d48-f792c3448a8f"
},
"fileId": "37SRr8fw1Mwr2V/b0ZWnoj",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "title",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 184
},
{
"__id__": 185
}
],
"_prefab": {
"__id__": 186
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 144,
"height": 60.48
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-681.529,
442.79999999999995,
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": ""
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 183
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "看动画",
"_N$string": "看动画",
"_fontSize": 48,
"_lineHeight": 48,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "ecfe9361-5e18-4083-b4c6-b13770fa9313"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 183
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 206.471,
"_right": 0,
"_top": 66.96000000000001,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "59286199-6a11-47ed-8d48-f792c3448a8f"
},
"fileId": "8an4THnSdMn4VYXQo9yZAv",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "text_tips",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 188
}
],
"_prefab": {
"__id__": 189
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 248,
"height": 109
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-349.97,
270.168,
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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 187
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 1,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "c4ea6240-75df-47f8-aa4e-e77c1ac4806e"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "59286199-6a11-47ed-8d48-f792c3448a8f"
},
"fileId": "a10qXMP5hOsYL5lgBpJ8Ri",
......@@ -6479,11 +6933,11 @@
"_active": false,
"_components": [
{
"__id__": 179
"__id__": 191
}
],
"_prefab": {
"__id__": 180
"__id__": 192
},
"_opacity": 255,
"_color": {
......@@ -6537,7 +6991,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 178
"__id__": 190
},
"_enabled": true,
"_materials": [
......@@ -6619,7 +7073,7 @@
},
"_enabled": true,
"videoPlayer": {
"__id__": 38
"__id__": 3
},
"ProgressBar": {
"__id__": 55
......@@ -6648,7 +7102,7 @@
"__id__": 56
},
"loadingSprite": {
"__id__": 178
"__id__": 190
},
"_id": ""
},
......
......@@ -140,6 +140,16 @@ export default class VideoPlayerComponent extends cc.Component {
cc.find('JJ_Video_01/bg').scale = this._mapScaleMax;
cc.find('JJ_Video_01/video_node/bg').scale = this._mapScaleMax;
// cc.find('JJ_Video_01/bgwhite').zIndex=-2
// cc.find('JJ_Video_01/bg').zIndex=-1
// cc.find('JJ_Video_01/VideoNode').zIndex=0
// cc.find('JJ_Video_01/video_node').zIndex=1
// cc.find('JJ_Video_01/bg_video_shadow').zIndex=2
// cc.find('JJ_Video_01/Controls').zIndex=3
// cc.find('JJ_Video_01/videolist').zIndex=4
// cc.find('JJ_Video_01/btn_return').zIndex=5
// cc.find('JJ_Video_01/title').zIndex=5
this._isReadyToPlay = false;
cc.macro.ENABLE_TRANSPARENT_CANVAS = true;
......@@ -232,6 +242,33 @@ export default class VideoPlayerComponent extends cc.Component {
});
this.initdDrag();
this.videoPlayIndex=0
this.refreshLastNextBtns()
}
refreshLastNextBtns(){
cc.find("JJ_Video_01/btn_last").active=this.videoPlayIndex!=0
if (this.videoItemList)
cc.find("JJ_Video_01/btn_next").active=this.videoPlayIndex!=this.videoItemList.length-1
}
onClickNext(){
const nextItem = this.videoItemList[this.videoPlayIndex + 1];
if (nextItem) {
nextItem.emit('my_item_click');
} else {
this.videoItemList[0].emit('my_item_click');
}
this.refreshLastNextBtns()
}
onClickLast(){
const nextItem = this.videoItemList[this.videoPlayIndex - 1];
if (nextItem) {
nextItem.emit('my_item_click');
} else {
this.videoItemList[0].emit('my_item_click');
}
this.refreshLastNextBtns()
}
initListener() {
......@@ -388,6 +425,7 @@ export default class VideoPlayerComponent extends cc.Component {
} else {
this.data.totalCount = 1;
}
this.refreshLastNextBtns()
}
start() {
......@@ -404,6 +442,29 @@ export default class VideoPlayerComponent extends cc.Component {
if (window && window["air"]) {
window["air"].hideAirClassLoading();
}
cc.find(`JJ_Video_01/videolist`).active = this.data.dataArr.length>1;
if (this.data.dataArr.length<=1){
console.log("qsj???")
cc.find(`JJ_Video_01/bg/videoBg`).scale=1.2
cc.find(`JJ_Video_01/bg/videoBg`).y=-136.058
// cc.find(`JJ_Video_01/video_node`).scale=1.2
cc.find(`JJ_Video_01/video_node`).width*=1.2
cc.find(`JJ_Video_01/video_node`).height*=1.2
cc.find(`JJ_Video_01/video_node`).y=73.311
cc.find(`JJ_Video_01/bg_video_shadow`).scale=1.2
cc.find(`JJ_Video_01/bg_video_shadow`).y=59.039
cc.find(`JJ_Video_01/btn_last`).x=-734.101
cc.find(`JJ_Video_01/btn_last`).y=-39.603
cc.find(`JJ_Video_01/btn_next`).x=734.101
cc.find(`JJ_Video_01/btn_next`).y=-39.603
cc.find(`JJ_Video_01/VideoNode`).scale=1.2
cc.find(`JJ_Video_01/Controls`).scale=1.2
cc.find(`JJ_Video_01/Controls`).y=-570
cc.find(`JJ_Video_01/Controls`).x+=50
this.videoPlayIndex=0
this.videoItemList[0].emit('my_item_click');
}
});
if (window.CustomEvent) {
......@@ -548,7 +609,11 @@ export default class VideoPlayerComponent extends cc.Component {
const controlBg = cc.find(`bg_video_bottom`, controls);
this.tempPos.controlPos = { x: controls.x, y: controls.y };
controls.x = 300; // qsj
if (this.data.dataArr.length<=1){
controls.y = 0 - this.node.height / 2-30;
} else {
controls.y = 0 - this.node.height / 2-30;
}
controlBg.opacity = 240;
controlBg.width = this.node.width;
......@@ -590,7 +655,7 @@ export default class VideoPlayerComponent extends cc.Component {
this.videoPlayer.node.x = videoContainer.x;
this.videoPlayer.node.y = videoContainer.y;
cc.find(`JJ_Video_01/videolist`).active = true;
cc.find(`JJ_Video_01/videolist`).active = this.data.dataArr.length>1;
const controls = cc.find(`JJ_Video_01/Controls`);
const controlBg = cc.find(`bg_video_bottom`, controls);
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -113,7 +113,9 @@ export default class NewClass extends cc.Component {
itemNode.addComponent(cc.Button);
itemNode.on("click", () => {
global.middleLayer.backPageNode = this.node;
global.middleLayer.loadOnlineCourseWare(data.id);
global.middleLayer.loadOnlineCourseWare(data.id, null, (flag)=>{
this.node.active=!flag
});
})
itemArr.push(itemNode);
......
......@@ -129,7 +129,9 @@ export default class NewClass extends cc.Component {
itemNode.addComponent(cc.Button);
itemNode.on("click", () => {
global.middleLayer.backPageNode = this.node;
global.middleLayer.loadOnlineCourseWare(data.id);
global.middleLayer.loadOnlineCourseWare(data.id, null, (flag)=>{
this.node.active=!flag
});
})
itemArr.push(itemNode);
......
......@@ -113,7 +113,9 @@ export default class NewClass extends cc.Component {
itemNode.addComponent(cc.Button);
itemNode.on("click", async () => {
global.middleLayer.backPageNode = this.node;
global.middleLayer.loadOnlineCourseWare(data.id);
global.middleLayer.loadOnlineCourseWare(data.id, null, (flag)=>{
this.node.active=!flag
});
})
itemArr.push(itemNode);
......
......@@ -137,7 +137,9 @@ export default class NewClass extends cc.Component {
if ( global.middleLayer ) {
global.middleLayer.backPageNode = this.node;
// global.middleLayer.loadOnlineCourseWare(id);
global.middleLayer.loadOnlineCourseWare(20522);
global.middleLayer.loadOnlineCourseWare(20522, null, (flag)=>{
this.node.active=!flag
});
}
}
......
......@@ -146,7 +146,6 @@ export default class NewClass extends middleLayerBase {
backPageNode: cc.Node = null; // 从绘本里返回的界面
exitGame(data?, isLocalTemplate=false) {
console.log("qsj?????")
if (isLocalTemplate){
// 模板已经放到项目内
this.hideTemplateByName(data.templateName);
......@@ -192,7 +191,11 @@ console.log("qsj?????")
return;
}
// 庆祝画面
if (this.courseIndex < this.courses.length){
this.showFinish();
} else {
this.showAllFinish()
}
}
academyArray = []; // 关卡数组
......@@ -217,128 +220,87 @@ console.log("qsj?????")
async showGold(cb) {
console.log(' in showGold')
const goldAnim = cc.instantiate(cc.find('middleLayer/res/anim/gold_anim'));
const particleLayer = cc.find("middleLayer/particleLayer");
const goldAnim = cc.instantiate(cc.find('middleLayer/res/anim/finish1_ske'));
const finishLayer = cc.find("middleLayer/finishLayer");
goldAnim.active = true;
goldAnim.parent = particleLayer;
particleLayer.active = true;
appearAnim(particleLayer, 0.3);
goldAnim.parent = finishLayer;
finishLayer.active = true;
appearAnim(finishLayer, 0.3);
console.log('goldAnim: ', goldAnim);
await asyncPlayDragonBoneAnimation(goldAnim, 'three', 1, null);
await asyncPlayDragonBoneAnimation(goldAnim, 'newAnimation', 1, null);
disappearAnim(goldAnim, 1);
disappearAnim(particleLayer, 1, () => {
particleLayer.active = false;
disappearAnim(finishLayer, 1, () => {
finishLayer.active = false;
});
cb();
cb&&cb();
}
async showFinish() {
console.log(' in showFinish')
const finishAnim = cc.instantiate(cc.find('middleLayer/res/anim/kyxq_finish'));
const finishAnim = cc.instantiate(cc.find('middleLayer/res/anim/finish2_ske'));
finishAnim.active = true;
finishAnim.y = -100;
const bgFinish = getSprNode("bg_finish");
finishAnim.addChild(bgFinish);
const labelLayer = new cc.Node();
const labelNode = new cc.Node();
const label = labelNode.addComponent(cc.Label);
label.string = "恭喜你获得";
labelLayer.addChild(labelNode);
labelNode.anchorX = 0;
const labelIcon = getSprNode("icon_coin");
labelLayer.addChild(labelIcon);
labelIcon.y = 10;
labelIcon.anchorX = 0;
const labelNode2 = new cc.Node();
const label2 = labelNode2.addComponent(cc.Label);
label2.string = `x ${this.golds?this.golds.total:0}`;
labelLayer.addChild(labelNode2);
labelNode2.anchorX = 0;
const distance = 10;
setTimeout(() => {
labelLayer.width = labelNode.width + labelIcon.width + labelNode2.width + distance * 2;
labelLayer.x = -labelLayer.width / 2;
labelIcon.x = distance + labelNode.width;
labelNode2.x = labelIcon.x + labelIcon.width + distance;
}, 1);
bgFinish.addChild(labelLayer);
appearAnim(labelLayer, 0.3);
const finishLayer = cc.find("middleLayer/finishLayer")
finishLayer.addChild(finishAnim, 2);
finishLayer.active = true;
appearAnim(finishLayer, 0.3, () => {
playLocalAudio(`finish`);
});
console.log('finishAnim: ', finishAnim);
const finishLight = getSprNode('bg_finishlight');
finishLayer.addChild(finishLight);
const rotateAction = cc.repeatForever(cc.rotateBy(5, 360));
finishLight.runAction(rotateAction);
await asyncPlayDragonBoneAnimation(finishAnim, 'newAnimation', 1, null);
await asyncPlayDragonBoneAnimation(finishAnim, 'finish', 1, null);
const replayBtn = cc.find('middleLayer/res/img/btn_replay');
replayBtn.parent=finishLayer
const replayBtn = getSprNode("btn_replay");
finishLayer.addChild(replayBtn);
replayBtn.x = -400;
replayBtn.y = -270;
const nextBtn = getSprNode("btn_next");
finishLayer.addChild(nextBtn);
nextBtn.x = -replayBtn.x;
nextBtn.y = replayBtn.y;
const xBtn = getSprNode("btn_x");
finishLayer.addChild(xBtn);
xBtn.x = 400;
xBtn.y = 270;
const nextBtn = cc.find('middleLayer/res/img/btn_next');
nextBtn.parent=finishLayer
const hideFinish = ()=>{
finishLayer.removeChild(xBtn);
finishLayer.removeChild(nextBtn);
finishLayer.removeChild(replayBtn);
finishLayer.removeChild(finishLight);
nextBtn.parent=cc.find("middleLayer/res/img")
replayBtn.parent=cc.find("middleLayer/res/img")
finishLayer.removeChild(finishAnim);
finishLayer.active = false;
}
replayBtn.on('touchstart' , () =>{
console.log("replayBtn")
hideFinish();
this.loadOnlineCourseWare(this.courseItem.course_id, null, null);
})
nextBtn.on("touchstart", () => {
console.log("nextBtn")
hideFinish();
this.goNextCross();
})
}
async showAllFinish() {
console.log(' in showAllFinish')
const finishAnim = cc.instantiate(cc.find('middleLayer/res/anim/allfinish_ske'));
finishAnim.active = true;
const finishLayer = cc.find("middleLayer/finishLayer")
finishLayer.addChild(finishAnim, 2);
finishLayer.active = true;
await asyncPlayDragonBoneAnimation(finishAnim, 'newAnimation', 1, null);
const exitBtn = cc.find('middleLayer/res/img/btn_x');
exitBtn.parent=finishLayer
xBtn.on("touchstart", () => {
const hideFinish = ()=>{
exitBtn.parent=cc.find("middleLayer/res/img")\
finishLayer.removeChild(finishAnim);
finishLayer.active = false;
}
exitBtn.on("touchstart", () => {
console.log("exitBtn")
hideFinish();
this.exitGame();
this.exitGame()
})
appearAnim(replayBtn);
appearAnim(nextBtn);
appearAnim(xBtn);
}
reWriteAir() {
......
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