Commit 6a8b50fa authored by Li MingZhe's avatar Li MingZhe

fix: 开始事件

parent 92986369
No preview for this file type
<div class="model-content"> <div class="model-content">
<div style="padding: 10px;"> <div style="padding: 50px;">
<h2> 此模版无需表单配置 </h2> <nz-radio-group [(ngModel)]="item.isEndStyle" (ngModelChange)="save()">
<label nz-radio nzValue="0">开始页</label>
<label nz-radio nzValue="1">结束页</label>
</nz-radio-group>
<!-- <!--
<div style="width: 300px;" align='center'> <div style="width: 300px;" align='center'>
<span>图1: </span> <span>图1: </span>
......
...@@ -10,7 +10,7 @@ import { JsonPipe } from '@angular/common'; ...@@ -10,7 +10,7 @@ import { JsonPipe } from '@angular/common';
export class FormComponent implements OnInit, OnChanges, OnDestroy { export class FormComponent implements OnInit, OnChanges, OnDestroy {
// 储存数据用 // 储存数据用
saveKey = "test_001"; saveKey = "aks_01";
// 储存对象 // 储存对象
item; item;
...@@ -60,6 +60,9 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -60,6 +60,9 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
init() { init() {
if(this.item.isEndStyle == null) {
this.item.isEndStyle = "0";
}
} }
......
{
"ver": "1.1.2",
"uuid": "6b25e575-6124-4fe9-9fbb-176387b5103e",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{"name":"pageturn","version":"5.5","frameRate":24,"armature":[{"name":"Armature","animation":[{"name":"pageturn","frame":[],"ik":[],"duration":34,"slot":[{"name":"外圈","displayFrame":[],"colorFrame":[{"duration":14},{"tweenEasing":0,"duration":4},{"tweenEasing":0,"duration":12,"color":{"aM":52}},{"tweenEasing":0,"duration":4,"color":{"aM":0}},{"duration":0,"color":{"aM":0}}]},{"name":"星2","displayFrame":[],"colorFrame":[{"duration":14},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"duration":14,"color":{"aM":62}},{"duration":0,"color":{"aM":0}}]},{"name":"三角","displayFrame":[],"colorFrame":[{"duration":16},{"tweenEasing":0,"duration":18},{"duration":0,"color":{"aM":0}}]},{"name":"星1","displayFrame":[],"colorFrame":[{"duration":14},{"tweenEasing":0,"duration":20},{"duration":0,"color":{"aM":0}}]},{"name":"中间","displayFrame":[],"colorFrame":[{"duration":22},{"tweenEasing":0,"duration":12},{"duration":0,"color":{"aM":0}}]},{"name":"光","displayFrame":[{"duration":10,"value":-1},{"duration":24}],"colorFrame":[{"duration":10},{"tweenEasing":0,"duration":16,"color":{"aM":0}},{"tweenEasing":0,"duration":4,"color":{"aM":0}},{"tweenEasing":0,"duration":4},{"duration":0}]}],"bone":[{"name":"root","rotateFrame":[],"scaleFrame":[],"translateFrame":[]},{"name":"中间","rotateFrame":[{"tweenEasing":0,"rotate":-58.1972,"duration":10},{"duration":24}],"scaleFrame":[{"duration":10},{"duration":12,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":6,"x":1.3,"tweenEasing":0,"y":1.3},{"duration":0}],"translateFrame":[{"duration":5,"curve":[0,0,0.5,1],"y":300},{"duration":5,"tweenEasing":0,"y":-40},{"duration":24}]},{"name":"星1","rotateFrame":[{"tweenEasing":0,"rotate":30.7638,"duration":10},{"duration":24}],"scaleFrame":[{"duration":10},{"duration":4,"tweenEasing":0},{"duration":6},{"duration":14,"x":1.2,"tweenEasing":0,"y":1.2},{"duration":0,"x":0.5,"y":0.5}],"translateFrame":[{"duration":5,"tweenEasing":0,"y":300},{"duration":5,"tweenEasing":0,"y":-40},{"duration":24}]},{"name":"三角","rotateFrame":[{"tweenEasing":0,"rotate":18.9253,"duration":10},{"duration":24}],"scaleFrame":[{"duration":10},{"duration":24,"tweenEasing":0},{"duration":0}],"translateFrame":[{"duration":5,"tweenEasing":0,"y":300},{"duration":5,"tweenEasing":0,"y":40},{"duration":24}]},{"name":"星2","rotateFrame":[{"tweenEasing":0,"rotate":-40.7489,"duration":10},{"duration":24}],"scaleFrame":[{"duration":10},{"duration":4,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":14,"x":1.2,"tweenEasing":0,"y":1.2},{"duration":0,"x":0.5,"y":0.5}],"translateFrame":[{"duration":5,"tweenEasing":0,"y":300},{"duration":5,"tweenEasing":0,"y":-40},{"duration":24}]},{"name":"外圈","rotateFrame":[{"tweenEasing":0,"rotate":84.1193,"duration":10},{"duration":24}],"scaleFrame":[{"duration":10},{"duration":4},{"duration":4,"tweenEasing":0},{"duration":12,"x":1.2,"tweenEasing":0,"y":1.2},{"duration":4,"x":0.55,"tweenEasing":0,"y":0.55},{"duration":0,"x":0.55,"y":0.55}],"translateFrame":[{"duration":5,"tweenEasing":0,"y":300},{"duration":5,"tweenEasing":0,"y":-40},{"duration":24}]},{"name":"光","rotateFrame":[],"scaleFrame":[{"duration":10},{"duration":16,"x":0.2,"tweenEasing":0,"y":0.2},{"duration":8,"x":0.2,"tweenEasing":0,"y":0.2},{"duration":0,"x":2.42,"y":1.34}],"translateFrame":[]}],"playTimes":0,"ffd":[]},{"name":"pageturn2","frame":[],"ik":[],"duration":12,"slot":[{"name":"外圈","displayFrame":[{"duration":12,"value":-1}],"colorFrame":[]},{"name":"星2","displayFrame":[{"duration":12,"value":-1}],"colorFrame":[]},{"name":"三角","displayFrame":[{"duration":12,"value":-1}],"colorFrame":[]},{"name":"星1","displayFrame":[{"duration":12,"value":-1}],"colorFrame":[]},{"name":"中间","displayFrame":[{"duration":12,"value":-1}],"colorFrame":[]},{"name":"光","displayFrame":[],"colorFrame":[{"tweenEasing":0,"duration":12},{"duration":0,"color":{"aM":0}}]}],"bone":[{"name":"root","rotateFrame":[],"scaleFrame":[],"translateFrame":[]},{"name":"中间","rotateFrame":[],"scaleFrame":[],"translateFrame":[]},{"name":"星1","rotateFrame":[],"scaleFrame":[],"translateFrame":[]},{"name":"三角","rotateFrame":[],"scaleFrame":[],"translateFrame":[]},{"name":"星2","rotateFrame":[],"scaleFrame":[],"translateFrame":[]},{"name":"外圈","rotateFrame":[],"scaleFrame":[],"translateFrame":[]},{"name":"光","rotateFrame":[],"scaleFrame":[{"duration":12,"x":2.42,"y":1.34}],"translateFrame":[]}],"playTimes":0,"ffd":[]}],"slot":[{"name":"光","color":{},"parent":"光"},{"name":"外圈","color":{},"z":1,"parent":"外圈"},{"name":"星2","color":{},"z":2,"parent":"星2"},{"name":"三角","color":{},"z":3,"parent":"三角"},{"name":"星1","color":{},"z":4,"parent":"星1"},{"name":"中间","color":{},"z":5,"parent":"中间"}],"ik":[],"skin":[{"name":"","slot":[{"name":"三角","display":[{"name":"魔法阵/三角","transform":{},"type":"image","path":"魔法阵/三角"}]},{"name":"星2","display":[{"name":"魔法阵/星2","transform":{},"type":"image","path":"魔法阵/星2"}]},{"name":"外圈","display":[{"name":"魔法阵/外圈","transform":{},"type":"image","path":"魔法阵/外圈"}]},{"name":"光","display":[{"name":"魔法阵/光","transform":{},"type":"image","path":"魔法阵/光"}]},{"name":"中间","display":[{"name":"魔法阵/中间","transform":{},"type":"image","path":"魔法阵/中间"}]},{"name":"星1","display":[{"name":"魔法阵/星1","transform":{},"type":"image","path":"魔法阵/星1"}]}]}],"defaultActions":[{"gotoAndPlay":"pageturn"}],"frameRate":24,"bone":[{"name":"root","transform":{}},{"name":"中间","transform":{},"parent":"root"},{"name":"星1","transform":{},"parent":"root"},{"name":"三角","transform":{},"parent":"root"},{"name":"星2","transform":{},"parent":"root"},{"name":"外圈","transform":{},"parent":"root"},{"name":"光","transform":{},"parent":"root"}],"type":"Armature","aabb":{"x":-527,"height":1054,"y":-527,"width":1054}}],"isGlobal":0}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "81464aac-0ae6-48cd-a634-46bc2b50bcd4",
"subMetas": {}
}
\ No newline at end of file
{"name":"pageturn","imagePath":"pageturn_tex.png","height":2048,"SubTexture":[{"name":"魔法阵/光","x":1,"height":1054,"y":1,"width":1054},{"name":"魔法阵/外圈","x":1,"height":519,"y":1057,"width":519},{"name":"魔法阵/星2","x":1,"height":424,"y":1578,"width":424},{"name":"魔法阵/三角","x":427,"height":409,"y":1578,"width":405},{"name":"魔法阵/星1","x":834,"height":322,"y":1578,"width":322},{"name":"魔法阵/中间","x":1158,"height":229,"y":1578,"width":229}],"width":2048}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "f67c6223-dc12-4cb2-a5e1-86b4fd9ab377",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "7d4f60bc-1264-4154-b02f-6986efb822d7",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 2048,
"height": 2048,
"platformSettings": {},
"subMetas": {
"pageturn_tex": {
"ver": "1.0.4",
"uuid": "acd6d2fb-3d2d-4385-831c-beedbec6f796",
"rawTextureUuid": "7d4f60bc-1264-4154-b02f-6986efb822d7",
"trimType": "custom",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 2048,
"height": 2048,
"rawWidth": 2048,
"rawHeight": 2048,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "fa8c4abc-22ba-4e03-8255-156941c7c723",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.0.1",
"uuid": "ebbe8efd-ae97-40be-8a32-6b389329aceb",
"subMetas": {}
}
\ No newline at end of file
{"name":"ip","SubTexture":[{"name":"走路/阴影","x":626,"frameWidth":187,"height":38,"y":1896,"frameHeight":391,"frameX":-15,"frameY":-353,"width":172},{"name":"走路/19","x":480,"height":372,"y":376,"width":147},{"name":"走路/5","x":775,"height":372,"y":1,"width":147},{"name":"走路/9","x":327,"height":377,"y":382,"width":151},{"name":"走路/17","x":626,"height":372,"y":1,"width":147},{"name":"走路/1","x":1,"height":379,"y":1527,"width":164},{"name":"走路/16","x":641,"height":374,"y":749,"width":144},{"name":"走路/15","x":174,"height":377,"y":382,"width":151},{"name":"走路/8","x":480,"height":376,"y":1527,"width":144},{"name":"走路/23","x":169,"height":379,"y":1146,"width":163},{"name":"走路/14","x":171,"height":378,"y":764,"width":160},{"name":"走路/7","x":477,"height":373,"y":1,"width":147},{"name":"走路/2","x":333,"height":377,"y":764,"width":153},{"name":"走路/4","x":626,"height":373,"y":1521,"width":144},{"name":"走路/11","x":1,"height":379,"y":1,"width":172},{"name":"走路/20","x":497,"height":375,"y":1144,"width":144},{"name":"走路/站立","x":629,"height":372,"y":375,"width":147},{"name":"走路/12","x":1,"height":380,"y":382,"width":171},{"name":"走路/10","x":334,"height":379,"y":1146,"width":161},{"name":"走路/3","x":333,"height":375,"y":1527,"width":145},{"name":"走路/22","x":488,"height":378,"y":764,"width":151},{"name":"走路/6","x":175,"height":372,"y":1,"width":149},{"name":"走路/13","x":1,"height":379,"y":1146,"width":166},{"name":"走路/24","x":1,"height":380,"y":764,"width":168},{"name":"走路/25","x":167,"height":379,"y":1527,"width":164},{"name":"走路/18","x":326,"height":371,"y":1,"width":149},{"name":"走路/21","x":643,"height":377,"y":1125,"width":141},{"name":"走路/眼6","x":525,"height":51,"y":1905,"width":30},{"name":"走路/眼1","x":493,"height":51,"y":1905,"width":30},{"name":"走路/眼4","x":365,"height":51,"y":1904,"width":30},{"name":"走路/眼5","x":429,"height":51,"y":1904,"width":30},{"name":"走路/眼10","x":1,"height":49,"y":1957,"width":29},{"name":"走路/眼3","x":557,"height":51,"y":1905,"width":30},{"name":"走路/眼7","x":397,"height":51,"y":1904,"width":30},{"name":"走路/眼8","x":589,"height":51,"y":1905,"width":30},{"name":"走路/眼9","x":333,"height":51,"y":1904,"width":30},{"name":"走路/眼2","x":461,"height":51,"y":1905,"width":30},{"name":"走路/嘴13","x":35,"height":13,"y":1923,"width":15},{"name":"走路/嘴8","x":18,"height":13,"y":1908,"width":15},{"name":"走路/嘴11","x":677,"height":13,"y":1504,"width":15},{"name":"走路/嘴5","x":1,"height":13,"y":1908,"width":15},{"name":"走路/嘴6","x":18,"height":13,"y":1923,"width":15},{"name":"走路/嘴12","x":694,"height":13,"y":1504,"width":15},{"name":"走路/嘴14","x":660,"height":13,"y":1504,"width":15},{"name":"走路/嘴15","x":35,"height":13,"y":1908,"width":15},{"name":"走路/嘴2","x":1,"height":13,"y":1938,"width":15},{"name":"走路/嘴3","x":35,"height":13,"y":1938,"width":15},{"name":"走路/嘴9","x":1,"height":13,"y":1923,"width":15},{"name":"走路/嘴4","x":711,"height":13,"y":1504,"width":15},{"name":"走路/嘴10","x":18,"height":13,"y":1938,"width":15},{"name":"走路/嘴7","x":643,"height":13,"y":1504,"width":15}],"imagePath":"ip_tex.png","height":2048,"width":2048}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "c67c38f8-c0b0-443f-8848-cfe45bdf639f",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "35d81069-c39e-4000-a242-26ac21c798f7",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 2048,
"height": 2048,
"platformSettings": {},
"subMetas": {
"ip_tex": {
"ver": "1.0.4",
"uuid": "f0f329ce-20d4-4a11-8dba-cdd6fb4c1383",
"rawTextureUuid": "35d81069-c39e-4000-a242-26ac21c798f7",
"trimType": "custom",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 2048,
"height": 2048,
"rawWidth": 2048,
"rawHeight": 2048,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "6ea56005-77b1-400e-9366-c5e41ed852ef",
"downloadMode": 0,
"duration": 50.050612,
"subMetas": {}
}
\ No newline at end of file
{ {
"ver": "1.2.7", "ver": "1.2.9",
"uuid": "9993b7c8-e4e4-4b48-8922-9c55f423bdb3", "uuid": "9993b7c8-e4e4-4b48-8922-9c55f423bdb3",
"optimizationPolicy": "AUTO", "optimizationPolicy": "AUTO",
"asyncLoadAssets": false, "asyncLoadAssets": false,
......
...@@ -99,13 +99,13 @@ ...@@ -99,13 +99,13 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 68 "__id__": 74
}, },
{ {
"__id__": 69 "__id__": 75
}, },
{ {
"__id__": 70 "__id__": 76
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1170,7 +1170,7 @@ ...@@ -1170,7 +1170,7 @@
"__id__": 52 "__id__": 52
}, },
{ {
"__id__": 65 "__id__": 67
} }
], ],
"_active": false, "_active": false,
...@@ -2388,6 +2388,9 @@ ...@@ -2388,6 +2388,9 @@
}, },
{ {
"__id__": 63 "__id__": 63
},
{
"__id__": 65
} }
], ],
"_active": true, "_active": true,
...@@ -2442,7 +2445,7 @@ ...@@ -2442,7 +2445,7 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "btn", "_name": "walk",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 52 "__id__": 52
...@@ -2500,7 +2503,7 @@ ...@@ -2500,7 +2503,7 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "9eCTFE7aVAdYw7VCThmsIO" "_id": "80vfrwpCBAmKyQb1DRpmgx"
}, },
{ {
"__type__": "cc.AudioSource", "__type__": "cc.AudioSource",
...@@ -2510,6 +2513,86 @@ ...@@ -2510,6 +2513,86 @@
"__id__": 53 "__id__": 53
}, },
"_enabled": true, "_enabled": true,
"_clip": {
"__uuid__": "6ea56005-77b1-400e-9366-c5e41ed852ef"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"playOnLoad": false,
"preload": false,
"_id": "f4T/5QELxB668Gz/YC1zZy"
},
{
"__type__": "cc.Node",
"_name": "btn",
"_objFlags": 0,
"_parent": {
"__id__": 52
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 56
}
],
"_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": "9eCTFE7aVAdYw7VCThmsIO"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 55
},
"_enabled": true,
"_clip": { "_clip": {
"__uuid__": "7ba5a104-ea06-415f-841d-18ff400a6906" "__uuid__": "7ba5a104-ea06-415f-841d-18ff400a6906"
}, },
...@@ -2531,7 +2614,7 @@ ...@@ -2531,7 +2614,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 56 "__id__": 58
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2587,7 +2670,7 @@ ...@@ -2587,7 +2670,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 55 "__id__": 57
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -2611,7 +2694,7 @@ ...@@ -2611,7 +2694,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 58 "__id__": 60
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2667,7 +2750,7 @@ ...@@ -2667,7 +2750,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 57 "__id__": 59
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -2691,7 +2774,7 @@ ...@@ -2691,7 +2774,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 60 "__id__": 62
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2747,7 +2830,7 @@ ...@@ -2747,7 +2830,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 59 "__id__": 61
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -2771,7 +2854,7 @@ ...@@ -2771,7 +2854,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 62 "__id__": 64
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2827,7 +2910,7 @@ ...@@ -2827,7 +2910,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 61 "__id__": 63
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -2851,7 +2934,7 @@ ...@@ -2851,7 +2934,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 64 "__id__": 66
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2907,7 +2990,7 @@ ...@@ -2907,7 +2990,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 63 "__id__": 65
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -2929,7 +3012,13 @@ ...@@ -2929,7 +3012,13 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 66 "__id__": 68
},
{
"__id__": 70
},
{
"__id__": 72
} }
], ],
"_active": true, "_active": true,
...@@ -2982,18 +3071,120 @@ ...@@ -2982,18 +3071,120 @@
"groupIndex": 0, "groupIndex": 0,
"_id": "a3NtiuGsVNvrgVOCxGCqwE" "_id": "a3NtiuGsVNvrgVOCxGCqwE"
}, },
{
"__type__": "cc.Node",
"_name": "pageturn",
"_objFlags": 0,
"_parent": {
"__id__": 67
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 69
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1054,
"height": 1054
},
"_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": "ebD/MyPYpD4LQsF6wtPGGc"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 68
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "81464aac-0ae6-48cd-a634-46bc2b50bcd4#f67c6223-dc12-4cb2-a5e1-86b4fd9ab377",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "81464aac-0ae6-48cd-a634-46bc2b50bcd4"
},
"_N$dragonAtlasAsset": {
"__uuid__": "f67c6223-dc12-4cb2-a5e1-86b4fd9ab377"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "fdU/seFMdFl4KvGSv1GI4V"
},
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "magic", "_name": "magic",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 65 "__id__": 67
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 67 "__id__": 71
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3049,7 +3240,7 @@ ...@@ -3049,7 +3240,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 66 "__id__": 70
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3084,6 +3275,104 @@ ...@@ -3084,6 +3275,104 @@
"_N$enableBatch": false, "_N$enableBatch": false,
"_id": "1emaP8A/hBi6p9JhEdrPYO" "_id": "1emaP8A/hBi6p9JhEdrPYO"
}, },
{
"__type__": "cc.Node",
"_name": "role",
"_objFlags": 0,
"_parent": {
"__id__": 67
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 73
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 187,
"height": 391
},
"_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": "aeNPK1AHdBdIB1d4jlKzlQ"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 72
},
"_enabled": true,
"_materials": [],
"_armatureName": "Armature",
"_animationName": "walk",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": true,
"_armatureKey": "ebbe8efd-ae97-40be-8a32-6b389329aceb#c67c38f8-c0b0-443f-8848-cfe45bdf639f",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "ebbe8efd-ae97-40be-8a32-6b389329aceb"
},
"_N$dragonAtlasAsset": {
"__uuid__": "c67c38f8-c0b0-443f-8848-cfe45bdf639f"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "663bHXhDdEgpJ5kBRkA6kW"
},
{ {
"__type__": "cc.Canvas", "__type__": "cc.Canvas",
"_name": "", "_name": "",
......
{ {
"ver": "1.2.7", "ver": "1.2.9",
"uuid": "5e0a03aa-9b9e-4076-b508-7dbf209bb115", "uuid": "5e0a03aa-9b9e-4076-b508-7dbf209bb115",
"asyncLoadAssets": false, "asyncLoadAssets": false,
"autoReleaseAssets": true, "autoReleaseAssets": true,
......
...@@ -87,6 +87,7 @@ cc.Class({ ...@@ -87,6 +87,7 @@ cc.Class({
if (aspect) { if (aspect) {
console.log('aspect : ', aspect); console.log('aspect : ', aspect);
this.serverAllUser = aspect.all_user; this.serverAllUser = aspect.all_user;
this.initPageData(aspect);
} }
console.log('data:', data); console.log('data:', data);
...@@ -122,7 +123,7 @@ cc.Class({ ...@@ -122,7 +123,7 @@ cc.Class({
cc.assetManager.loadAny(preloadArr, null, null, (err, data) => { cc.assetManager.loadAny(preloadArr, null, null, (err, data) => {
// console.log(' preload data, ', data); // console.log(' preload data, ', data);
this.loadEnd(); // this.loadEnd();
this.addServerListener(); this.addServerListener();
if (window && window["air"]) { if (window && window["air"]) {
window["air"].hideAirClassLoading(); window["air"].hideAirClassLoading();
...@@ -185,6 +186,48 @@ cc.Class({ ...@@ -185,6 +186,48 @@ cc.Class({
}); });
}, },
// 用于存储公共数据 当翻页时清空
pageData: null,
initPageData(aspect) {
const pageDataStr = aspect?.page_aspect?.pagedata;
if (!pageDataStr) {
this.pageData = {};
} else {
this.pageData = JSON.parse(pageDataStr);
}
console.log('this.pageData: ', this.pageData);
},
setPageData(key, value) {
if (this.pageData) {
this.pageData[key] = value;
this.sendPageData();
}
},
getPageData(key) {
if (this.pageData && this.pageData[key]) {
return this.pageData[key];
}
},
sendPageData() {
const data = this.pageData;
if (window && window.courseware) {
let storePageAspect = window.courseware.storePageAspect;
if (storePageAspect) {
storePageAspect(data);
console.log('storePageAspect : ', data);
}
}
},
smogArr: null, smogArr: null,
initData() { initData() {
this.smogArr = []; this.smogArr = [];
...@@ -198,6 +241,7 @@ cc.Class({ ...@@ -198,6 +241,7 @@ cc.Class({
magicAppearClip: null, magicAppearClip: null,
bgClip: null, bgClip: null,
btnClip: null, btnClip: null,
walkClip: null,
initAudioEffect() { initAudioEffect() {
this.tip1Clip = cc.find('Canvas/res/audio/tip_1').getComponent(cc.AudioSource).clip; this.tip1Clip = cc.find('Canvas/res/audio/tip_1').getComponent(cc.AudioSource).clip;
this.tip2Clip = cc.find('Canvas/res/audio/tip_2').getComponent(cc.AudioSource).clip; this.tip2Clip = cc.find('Canvas/res/audio/tip_2').getComponent(cc.AudioSource).clip;
...@@ -205,6 +249,7 @@ cc.Class({ ...@@ -205,6 +249,7 @@ cc.Class({
this.magicAppearClip = cc.find('Canvas/res/audio/magic_appear').getComponent(cc.AudioSource).clip; this.magicAppearClip = cc.find('Canvas/res/audio/magic_appear').getComponent(cc.AudioSource).clip;
this.bgClip = cc.find('Canvas/res/audio/bg').getComponent(cc.AudioSource).clip; this.bgClip = cc.find('Canvas/res/audio/bg').getComponent(cc.AudioSource).clip;
this.btnClip = cc.find('Canvas/res/audio/btn').getComponent(cc.AudioSource).clip; this.btnClip = cc.find('Canvas/res/audio/btn').getComponent(cc.AudioSource).clip;
this.walkClip = cc.find('Canvas/res/audio/walk').getComponent(cc.AudioSource).clip;
}, },
...@@ -231,10 +276,32 @@ cc.Class({ ...@@ -231,10 +276,32 @@ cc.Class({
console.log(' in addServerListener'); console.log(' in addServerListener');
const gameStart = () => {
this.showTemplateStartAnima();
this.loadEnd();
}
if (window.air) {
window.air.onCourseInScreen = (next) => {
gameStart();
next();
}
}
const c = window.courseware; const c = window.courseware;
if (!c) { if (!c) {
return; return;
} }
if (this.isTeacher) {
c.onEvent('check_enter_next_template', (data, next) => {
this.checkEnterNextTemplate(data);
next();
});
}
c.onEvent('btn_click', (data, next) => { c.onEvent('btn_click', (data, next) => {
...@@ -242,24 +309,128 @@ cc.Class({ ...@@ -242,24 +309,128 @@ cc.Class({
next(); next();
}); });
},
checkEnterNextTemplate(data) {
},
showTemplateStartAnima() {
const resDragonBone = cc.find("Canvas/res/anima/pageturn")
const pageturn = cc.instantiate(resDragonBone)
pageturn.scale = this._mapScaleMax;
const canvas = cc.find('Canvas');
canvas.addChild(pageturn, 100);
const dragonDisplay = pageturn.getComponent(dragonBones.ArmatureDisplay);
dragonDisplay.on(dragonBones.EventObject.COMPLETE, () => {
pageturn.removeFromParent();
})
dragonDisplay.playAnimation('pageturn2', 1);
},
showTemplateEndAnima() {
const resDragonBone = cc.find("Canvas/res/anima/pageturn")
const pageturn = cc.instantiate(resDragonBone)
const canvas = cc.find('Canvas');
canvas.addChild(pageturn, 100);
const dragonDisplay = pageturn.getComponent(dragonBones.ArmatureDisplay);
dragonDisplay.on(dragonBones.EventObject.COMPLETE, () => {
cc.tween({})
.delay(1)
.call(() => {
if (window && window.courseware && this.isTeacher) {
window.courseware.nextPage();
}
})
.start();
})
dragonDisplay.playAnimation('pageturn', 1);
}, },
initView() { initView() {
this.initTitle();
this.initTree(); this.initTree();
this.initSmog();
this.showSound();
this.playBgMusic(); this.playBgMusic();
if (this.data.isEndStyle == '1') {
this.showEndStyle()
} else {
this.initTitle();
this.initSmog();
this.showSound();
}
// this.initHotZone(); // this.initHotZone();
},
showEndStyle() {
this.hideEdge();
this.addMagicBg();
this.enlargeMap();
this.addRole();
},
hideEdge() {
cc.find("Canvas/bg_leftbottom").active = false;
cc.find("Canvas/bg_rightbottom").active = false;
cc.find("Canvas/bg_righttop").active = false;
cc.find("Canvas/bg_lefttop").active = false;
},
addRole() {
console.log("in showMagic");
const resDragonBone = cc.find("Canvas/res/anima/role")
const role = cc.instantiate(resDragonBone)
const dragonDisplay = role.getComponent(dragonBones.ArmatureDisplay);
dragonDisplay.playAnimation('walk', -1);
role.parent = cc.find("Canvas/bg_door");
role.x = - this.canvas.width / 2;
role.y = -30;
cc.tween(role)
.to(4, {x: 0})
.start();
cc.tween(role)
.delay(3)
.to(1, {opacity: 0}, {easing: "cubicIn"})
.call(() => {
cc.audioEngine.stop(audioId);
this.showTemplateEndAnima();
})
.start();
const audioId = playAudio(this.walkClip, () => {
});
// playAudio(this.magicAppearClip);
}, },
enlargeMap() {
this.canvas.scale *= 1.2;
},
addMagicBg() {
const resDragonBone = cc.find("Canvas/res/anima/magic")
const magic = cc.instantiate(resDragonBone)
const dragonDisplay = magic.getComponent(dragonBones.ArmatureDisplay);
dragonDisplay.playAnimation('spinturn', -1);
magic.parent = cc.find("Canvas/bg_door");
},
showSound() { showSound() {
this.showPanel1(); this.showPanel1();
...@@ -407,7 +578,9 @@ cc.Class({ ...@@ -407,7 +578,9 @@ cc.Class({
} }
this.btn.opacity = 0 this.btn.opacity = 0
playAudio(this.btnClip); playAudio(this.btnClip);
playAudio(this.tip3Clip); playAudio(this.tip3Clip, () => {
this.showTemplateEndAnima();
});
}, },
......
...@@ -108,6 +108,7 @@ export function playAudio(audioClip, cb=null) { ...@@ -108,6 +108,7 @@ export function playAudio(audioClip, cb=null) {
cb(); cb();
}); });
} }
return audioId;
} }
} }
......
{ {
"ver": "1.2.0", "ver": "1.2.1",
"uuid": "98e67bef-67d6-4a6d-945d-4d481cbd6b33", "uuid": "98e67bef-67d6-4a6d-945d-4d481cbd6b33",
"maxWidth": 1024, "maxWidth": 1024,
"maxHeight": 1024, "maxHeight": 1024,
......
No preview for this file type
...@@ -14,7 +14,7 @@ set +e ...@@ -14,7 +14,7 @@ set +e
# npm run publish # npm run publish
# cd ../publish cd ../publish
node build_step_0.js node build_step_0.js
......
{"ios":{"sceneName":"aks_01","version":"78ae2"},"android":{"sceneName":"aks_01","version":"78ae2"}} {"ios":{"sceneName":"aks_01","version":"bb929"},"android":{"sceneName":"aks_01","version":"bb929"}}
\ No newline at end of file \ No newline at end of file
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<script src="src/settings.js" charset="utf-8"></script> <script src="src/settings.js" charset="utf-8"></script>
<script src="main.js" charset="utf-8"></script> <script src="main.js" charset="utf-8"></script>
<script type="text/javascript" src="https://staging-teach.cdn.ireadabc.com/h5template/h5-static-lib/js/air_online.js"></script> <script type="text/javascript" src="https://staging-teach.cdn.ireadabc.com/h5template/h5-static-lib/js/air_online_open.js"></script>
<script type="text/javascript"> <script type="text/javascript">
......
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