Commit 2fe97c16 authored by liujiangnan's avatar liujiangnan

feat: 翻页

parent 8d91f55b
...@@ -285,72 +285,666 @@ ...@@ -285,72 +285,666 @@
{ {
"__id__": 8 "__id__": 8
}, },
{
"__id__": 12
},
{
"__id__": 16
},
{
"__id__": 20
},
{
"__id__": 22
},
{
"__id__": 33
},
{
"__id__": 42
}
],
"_active": true,
"_components": [
{
"__id__": 61
},
{
"__id__": 62
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
640,
360,
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": "6caZQRGatDJJMWpck1fhab"
},
{
"__type__": "cc.Node",
"_name": "ExitBtn",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 9
},
{ {
"__id__": 10 "__id__": 10
}, },
{ {
"__id__": 21 "__id__": 11
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 85,
"height": 73
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-552,
298,
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": "f09yR5FL1L9LlaAP/XE2XF"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "7adb35f3-75de-4ecb-8542-f187f1b9fadf"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "a17K23/NJO863KWq2lwncS"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_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": "49axwU7iVEPqjUD0g66nIm"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 45.5,
"_right": 0,
"_top": 25.5,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "a4Qe9B6ptFV5N0gmY9HMIc"
},
{
"__type__": "cc.Node",
"_name": "BtnRight",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 13
},
{
"__id__": 14
},
{
"__id__": 15
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 104,
"height": 73
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
561,
298,
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": "46oEjF935Fp6VEPawgDMHI"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "164fd569-a9be-4a1d-8e9c-fc852550fbe1"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "7dNoH3l7JLl67W28Jr+LU2"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
},
"_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": "73wxafyc9GHYp06sKiIreF"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 33,
"_left": 0,
"_right": 27,
"_top": 25.5,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "7efdJeRXhCL7B8e+TcQaO/"
},
{
"__type__": "cc.Node",
"_name": "BtnLeft",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 17
},
{
"__id__": 18
},
{
"__id__": 19
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 104,
"height": 73
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
438,
298,
0,
0,
0,
1,
6.123233995736766e-17,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 180
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "37+iDKgqNIC5qJKNFibXJa"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "164fd569-a9be-4a1d-8e9c-fc852550fbe1"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "32et0giKNMVr1GK/9tZNhP"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_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": {
"__id__": 30 "__type__": "cc.Color",
} "r": 211,
], "g": 211,
"_active": true, "b": 211,
"_components": [ "a": 255
{
"__id__": 49
}, },
{ "_N$hoverColor": {
"__id__": 50
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 255,
"g": 255, "g": 255,
"b": 255, "b": 255,
"a": 255 "a": 255
}, },
"_contentSize": { "hoverColor": {
"__type__": "cc.Size", "__type__": "cc.Color",
"width": 1280, "r": 255,
"height": 720 "g": 255,
"b": 255,
"a": 255
}, },
"_anchorPoint": { "_N$disabledColor": {
"__type__": "cc.Vec2", "__type__": "cc.Color",
"x": 0.5, "r": 124,
"y": 0.5 "g": 124,
"b": 124,
"a": 255
}, },
"_trs": { "_N$normalSprite": null,
"__type__": "TypedArray", "_N$pressedSprite": null,
"ctor": "Float64Array", "pressedSprite": null,
"array": [ "_N$hoverSprite": null,
640, "hoverSprite": null,
360, "_N$disabledSprite": null,
0, "_N$target": null,
0, "_id": "724BoQKSlJG7A09L5NWhI3"
0,
0,
1,
1,
1,
1
]
}, },
"_eulerAngles": { {
"__type__": "cc.Vec3", "__type__": "cc.Widget",
"x": 0, "_name": "",
"y": 0, "_objFlags": 0,
"z": 0 "node": {
"__id__": 16
}, },
"_skewX": 0, "_enabled": true,
"_skewY": 0, "alignMode": 1,
"_is3DNode": false, "_target": null,
"_groupIndex": 0, "_alignFlags": 33,
"groupIndex": 0, "_left": 0,
"_id": "6caZQRGatDJJMWpck1fhab" "_right": 150,
"_top": 25.5,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "85befpYp1Adqg1N9Q67Ciu"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
...@@ -363,7 +957,7 @@ ...@@ -363,7 +957,7 @@
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 9 "__id__": 21
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -419,7 +1013,7 @@ ...@@ -419,7 +1013,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 8 "__id__": 20
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -455,19 +1049,19 @@ ...@@ -455,19 +1049,19 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 11 "__id__": 23
}, },
{ {
"__id__": 14 "__id__": 26
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 19 "__id__": 31
}, },
{ {
"__id__": 20 "__id__": 32
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -523,16 +1117,16 @@ ...@@ -523,16 +1117,16 @@
"_name": "loading", "_name": "loading",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 10 "__id__": 22
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 12 "__id__": 24
}, },
{ {
"__id__": 13 "__id__": 25
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -588,7 +1182,7 @@ ...@@ -588,7 +1182,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 11 "__id__": 23
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -620,7 +1214,7 @@ ...@@ -620,7 +1214,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 11 "__id__": 23
}, },
"_enabled": true, "_enabled": true,
"_defaultClip": { "_defaultClip": {
...@@ -639,20 +1233,20 @@ ...@@ -639,20 +1233,20 @@
"_name": "progress", "_name": "progress",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 10 "__id__": 22
}, },
"_children": [ "_children": [
{ {
"__id__": 15 "__id__": 27
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 17 "__id__": 29
}, },
{ {
"__id__": 18 "__id__": 30
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -708,13 +1302,13 @@ ...@@ -708,13 +1302,13 @@
"_name": "bar", "_name": "bar",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 14 "__id__": 26
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 16 "__id__": 28
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -770,7 +1364,7 @@ ...@@ -770,7 +1364,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 15 "__id__": 27
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -802,7 +1396,7 @@ ...@@ -802,7 +1396,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 14 "__id__": 26
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -834,7 +1428,7 @@ ...@@ -834,7 +1428,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 14 "__id__": 26
}, },
"_enabled": true, "_enabled": true,
"_id": "6ex3vKW6FPVpjrtA+iTYI2" "_id": "6ex3vKW6FPVpjrtA+iTYI2"
...@@ -844,7 +1438,7 @@ ...@@ -844,7 +1438,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 10 "__id__": 22
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -876,7 +1470,7 @@ ...@@ -876,7 +1470,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 10 "__id__": 22
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -907,16 +1501,16 @@ ...@@ -907,16 +1501,16 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 22 "__id__": 34
}, },
{ {
"__id__": 25 "__id__": 37
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 29 "__id__": 41
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -972,16 +1566,16 @@ ...@@ -972,16 +1566,16 @@
"_name": "bg", "_name": "bg",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 21 "__id__": 33
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 23 "__id__": 35
}, },
{ {
"__id__": 24 "__id__": 36
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1037,7 +1631,7 @@ ...@@ -1037,7 +1631,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 22 "__id__": 34
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1069,7 +1663,7 @@ ...@@ -1069,7 +1663,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 22 "__id__": 34
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -1096,17 +1690,17 @@ ...@@ -1096,17 +1690,17 @@
"_name": "tips", "_name": "tips",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 21 "__id__": 33
}, },
"_children": [ "_children": [
{ {
"__id__": 26 "__id__": 38
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 28 "__id__": 40
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1162,13 +1756,13 @@ ...@@ -1162,13 +1756,13 @@
"_name": "label", "_name": "label",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 25 "__id__": 37
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 27 "__id__": 39
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1224,7 +1818,7 @@ ...@@ -1224,7 +1818,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 26 "__id__": 38
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1257,7 +1851,7 @@ ...@@ -1257,7 +1851,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 25 "__id__": 37
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1289,7 +1883,7 @@ ...@@ -1289,7 +1883,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 21 "__id__": 33
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -1320,16 +1914,16 @@ ...@@ -1320,16 +1914,16 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 31 "__id__": 43
}, },
{ {
"__id__": 34 "__id__": 46
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 48 "__id__": 60
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1385,16 +1979,16 @@ ...@@ -1385,16 +1979,16 @@
"_name": "bg", "_name": "bg",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 30 "__id__": 42
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 32 "__id__": 44
}, },
{ {
"__id__": 33 "__id__": 45
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1450,7 +2044,7 @@ ...@@ -1450,7 +2044,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 31 "__id__": 43
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1482,7 +2076,7 @@ ...@@ -1482,7 +2076,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 31 "__id__": 43
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -1509,23 +2103,23 @@ ...@@ -1509,23 +2103,23 @@
"_name": "confirm_bg", "_name": "confirm_bg",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 30 "__id__": 42
}, },
"_children": [ "_children": [
{ {
"__id__": 35 "__id__": 47
}, },
{ {
"__id__": 37 "__id__": 49
}, },
{ {
"__id__": 42 "__id__": 54
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 47 "__id__": 59
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1581,13 +2175,13 @@ ...@@ -1581,13 +2175,13 @@
"_name": "label", "_name": "label",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 34 "__id__": 46
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 36 "__id__": 48
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1643,7 +2237,7 @@ ...@@ -1643,7 +2237,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 35 "__id__": 47
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1676,20 +2270,20 @@ ...@@ -1676,20 +2270,20 @@
"_name": "btn_no", "_name": "btn_no",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 34 "__id__": 46
}, },
"_children": [ "_children": [
{ {
"__id__": 38 "__id__": 50
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 40 "__id__": 52
}, },
{ {
"__id__": 41 "__id__": 53
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1745,13 +2339,13 @@ ...@@ -1745,13 +2339,13 @@
"_name": "New Label", "_name": "New Label",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 37 "__id__": 49
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 39 "__id__": 51
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1807,7 +2401,7 @@ ...@@ -1807,7 +2401,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 38 "__id__": 50
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1840,7 +2434,7 @@ ...@@ -1840,7 +2434,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 37 "__id__": 49
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1872,7 +2466,7 @@ ...@@ -1872,7 +2466,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 37 "__id__": 49
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -1933,7 +2527,7 @@ ...@@ -1933,7 +2527,7 @@
"hoverSprite": null, "hoverSprite": null,
"_N$disabledSprite": null, "_N$disabledSprite": null,
"_N$target": { "_N$target": {
"__id__": 37 "__id__": 49
}, },
"_id": "c0Mfl8X79DsqvxMASeT7S5" "_id": "c0Mfl8X79DsqvxMASeT7S5"
}, },
...@@ -1942,20 +2536,20 @@ ...@@ -1942,20 +2536,20 @@
"_name": "btn_yes", "_name": "btn_yes",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 34 "__id__": 46
}, },
"_children": [ "_children": [
{ {
"__id__": 43 "__id__": 55
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 45 "__id__": 57
}, },
{ {
"__id__": 46 "__id__": 58
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2011,13 +2605,13 @@ ...@@ -2011,13 +2605,13 @@
"_name": "New Label", "_name": "New Label",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 42 "__id__": 54
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 44 "__id__": 56
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2073,7 +2667,7 @@ ...@@ -2073,7 +2667,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 43 "__id__": 55
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2106,7 +2700,7 @@ ...@@ -2106,7 +2700,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 42 "__id__": 54
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2138,7 +2732,7 @@ ...@@ -2138,7 +2732,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 42 "__id__": 54
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -2199,7 +2793,7 @@ ...@@ -2199,7 +2793,7 @@
"hoverSprite": null, "hoverSprite": null,
"_N$disabledSprite": null, "_N$disabledSprite": null,
"_N$target": { "_N$target": {
"__id__": 42 "__id__": 54
}, },
"_id": "6aiQPNDmFJLareQY/Hy1Yf" "_id": "6aiQPNDmFJLareQY/Hy1Yf"
}, },
...@@ -2208,7 +2802,7 @@ ...@@ -2208,7 +2802,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 34 "__id__": 46
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2240,7 +2834,7 @@ ...@@ -2240,7 +2834,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 30 "__id__": 42
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
......
import { initAir } from "./air"; import { initAir } from "./air";
import { middleLayerBase } from "./middleLayerBase"; import { middleLayerBase } from "./middleLayerBase";
import { buttonOnceClick } from "./util"; import { buttonOnceClick, buttonOnClick } from "./util";
const { ccclass, property } = cc._decorator; const { ccclass, property } = cc._decorator;
...@@ -129,8 +129,30 @@ export default class NewClass extends middleLayerBase { ...@@ -129,8 +129,30 @@ export default class NewClass extends middleLayerBase {
} else { } else {
this.loadOnlineBundle('NJ_login'); this.loadOnlineBundle('NJ_login');
} }
this.initListener();
} }
initListener() {
const exitBtn = cc.find('middleLayer/ExitBtn');
buttonOnClick(exitBtn, () => {
cc.find('middleLayer/BtnRight').active = false;
cc.find('middleLayer/BtnLeft').active = false;
exitBtn.active = false;
cc.audioEngine.stopAll();
(<any>window).courseware.freeAllOcMethod();
this.loadOnlineBundle('NJ_QianShuiTing');
});
buttonOnClick(cc.find('middleLayer/BtnRight'), () => {
this.goNextPage();
});
buttonOnClick(cc.find('middleLayer/BtnLeft'), () => {
this.goPrePage();
});
};
role = 'student'; role = 'student';
protected onLoad(): void { protected onLoad(): void {
initAir(this); initAir(this);
......
...@@ -105,7 +105,7 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -105,7 +105,7 @@ export abstract class middleLayerBase extends cc.Component {
this.loadBundle(sceneName, version, bondleUrl); this.loadBundle(sceneName, version, bondleUrl);
} }
loadBundle(sceneName, version, bondleUrl) { loadBundle(sceneName, version, bondleUrl, callback = null) {
this.currentBundleInfo = { sceneName, version, bondleUrl }; this.currentBundleInfo = { sceneName, version, bondleUrl };
this.showMask(); this.showMask();
this.showWaitingLetters(); this.showWaitingLetters();
...@@ -120,6 +120,7 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -120,6 +120,7 @@ export abstract class middleLayerBase extends cc.Component {
this.hideMask(); this.hideMask();
canvas.getComponent(cc.Widget).updateAlignment(); canvas.getComponent(cc.Widget).updateAlignment();
middleLayer.scale = canvas.width / middleLayer.width; middleLayer.scale = canvas.width / middleLayer.width;
callback && callback();
// this.showLog('middleLayer.scale = ' + middleLayer.scale); // this.showLog('middleLayer.scale = ' + middleLayer.scale);
}); });
}); });
...@@ -150,11 +151,13 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -150,11 +151,13 @@ export abstract class middleLayerBase extends cc.Component {
cc.find('middleLayer/BtnLeft').active = false; cc.find('middleLayer/BtnLeft').active = false;
} }
this.reWriteAir(); this.reWriteAir();
this.loadPageBundle(); this.loadPageBundle(() => {
cc.find('middleLayer/ExitBtn').active = true;
});
}); });
} }
loadPageBundle() { loadPageBundle(callback = null) {
let sceneName, version, bondleUrl = ""; let sceneName, version, bondleUrl = "";
if (cc.sys.os == cc.sys.OS_IOS) { if (cc.sys.os == cc.sys.OS_IOS) {
sceneName = this.courseItem.conf.ios.sceneName; sceneName = this.courseItem.conf.ios.sceneName;
...@@ -170,8 +173,9 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -170,8 +173,9 @@ export abstract class middleLayerBase extends cc.Component {
bondleUrl = this.courseItem.conf.web_desktop.bondleUrl; bondleUrl = this.courseItem.conf.web_desktop.bondleUrl;
} }
this.loadBundle(sceneName, version, bondleUrl); this.loadBundle(sceneName, version, bondleUrl, callback);
} }
goPrePage() { goPrePage() {
this.goTarIndexPage(this.courseIndex - 1); this.goTarIndexPage(this.courseIndex - 1);
} }
......
{
"ver": "2.3.5",
"uuid": "581e9073-8bf2-454d-a651-28d2b8436b84",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 171,
"height": 146,
"platformSettings": {},
"subMetas": {
"Btn": {
"ver": "1.0.4",
"uuid": "7adb35f3-75de-4ecb-8542-f187f1b9fadf",
"rawTextureUuid": "581e9073-8bf2-454d-a651-28d2b8436b84",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 171,
"height": 146,
"rawWidth": 171,
"rawHeight": 146,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "a35000bb-0e08-4a42-93f5-5fd08c740236",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 61,
"height": 67,
"platformSettings": {},
"subMetas": {
"btnLeft": {
"ver": "1.0.4",
"uuid": "1b62c9c3-fabc-4f29-abaf-b446ebdb5571",
"rawTextureUuid": "a35000bb-0e08-4a42-93f5-5fd08c740236",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 61,
"height": 67,
"rawWidth": 61,
"rawHeight": 67,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "d12a2294-3ae5-46b1-848d-6ae7f6e6777e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 209,
"height": 146,
"platformSettings": {},
"subMetas": {
"btnRight": {
"ver": "1.0.4",
"uuid": "164fd569-a9be-4a1d-8e9c-fc852550fbe1",
"rawTextureUuid": "d12a2294-3ae5-46b1-848d-6ae7f6e6777e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 209,
"height": 146,
"rawWidth": 209,
"rawHeight": 146,
"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