Commit afcd3d3c authored by limingzhe's avatar limingzhe

feat: 适配

parent dbe5bff1
No preview for this file type
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1440, "width": 2000,
"height": 1080 "height": 1080
}, },
"_anchorPoint": { "_anchorPoint": {
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
720, 1000,
540, 540,
0, 0,
0, 0,
...@@ -166,7 +166,7 @@ ...@@ -166,7 +166,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1440, "width": 2000,
"height": 1080 "height": 1080
}, },
"_anchorPoint": { "_anchorPoint": {
...@@ -1886,7 +1886,7 @@ ...@@ -1886,7 +1886,7 @@
"_enabled": true, "_enabled": true,
"_designResolution": { "_designResolution": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1440, "width": 2000,
"height": 1080 "height": 1080
}, },
"_fitWidth": true, "_fitWidth": true,
......
...@@ -62,13 +62,13 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -62,13 +62,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
getState(cb) { getState(cb) {
// this.isFirst = this.checkIsFirst(); this.isFirst = this.checkIsFirst();
// this.isLast = this.checkIsLast(); this.isLast = this.checkIsLast();
// this.playTimes = this.checkPlayTimes(); this.playTimes = this.checkPlayTimes();
// this.jumpData = this.getJumpData(); this.jumpData = this.getJumpData();
// cb && cb(); cb && cb();
// return; return;
callMiddleLayerFunction('PSQS_get_course_info', {}, (data) => { callMiddleLayerFunction('PSQS_get_course_info', {}, (data) => {
this.isFirst = data.first; //this.checkIsFirst(); this.isFirst = data.first; //this.checkIsFirst();
...@@ -581,7 +581,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -581,7 +581,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
animaNode['animationNames'] = animationNames; animaNode['animationNames'] = animationNames;
} }
animaNode.scale = this._mapScaleMin; animaNode.scale = this._mapScaleMax;
if (this.data.scale) { if (this.data.scale) {
animaNode.scale *= this.data.scale; animaNode.scale *= this.data.scale;
} }
......
export const defaultData = {"songArr":[{},{},{},{}],"lrcData":{"audio_url":"http://staging-teach.cdn.ireadabc.com/16cebf8be768535b68df70b8d25a7462.mp3","fontSize":24,"lineHeight":32,"lyrics":[{"time":20.399973,"data":"zi zi zi ...","newLine":false},{"time":23.867417,"data":"","newLine":false},{"time":26.611311,"data":"This wheel is for the bicycle. This wheel is for the bicycle This wheel is for the bicycle This wheel is for the bicycle ","newLine":false},{"time":30.723609,"data":"","newLine":false}]},"stepArr":[{"text":"432","px":"0","X":"0.2","Y":"0.3"},{"text":"648","X":"0","Y":"0"}],"skeJsonData":{"url":"http://staging-teach.cdn.ireadabc.com/275aa8c510a1ee7b936ca837de00ca2a.json","name":"1_ske.json"},"texJsonData":{"url":"http://staging-teach.cdn.ireadabc.com/fec620437ee4d51e11e7fe7a524f06ea.json","name":"1_tex.json"},"texPngData":{"url":"http://staging-teach.cdn.ireadabc.com/4fb895205ad5787e582cd65e517026d6.png","name":"1_tex.png"},"frame":"24","isDebug":true,"scale":"2"} export const defaultData = {"stepArr":[],"scale":"2","frame":24,"skeJsonData":{"url":"https://teach.cdn.ireadabc.com/74c0f13c87145949c64299f4ccadd4e3.json","name":"04_ske.json"},"texJsonData":{"url":"https://teach.cdn.ireadabc.com/efa89d081ae999115cf5f834b57dc2cc.json","name":"04_tex.json"},"texPngData":{"url":"https://teach.cdn.ireadabc.com/93c55ad5d25d2a11d10db065a5147cb7.png","name":"04_tex.png"},"lrcData":{"audio_url":"https://teach.cdn.ireadabc.com/60e980f5d8ebdace422da98b916a8654.mp3","fontSize":24,"lineHeight":32,"lyrics":[{"time":8.5231,"data":"‘I see a motorcycle on the flyover,' says Jack.","newLine":false},{"time":16.152121,"data":"","newLine":false}]}}
\ No newline at end of file \ 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