Commit 40cd4b23 authored by liujiaxin's avatar liujiaxin

123

parent f3bcc7bd
......@@ -2,10 +2,24 @@
<div style="padding: 10px;">
<div style="margin-top: 5px">
<span>音频: </span>
<span>始第1遍音频: </span>
<app-audio-recorder
[audioUrl]="item.begin_audio"
(audioUploaded)="onAudioUploadSuccess($event, 'begin_audio')"
[audioUrl]="item.begin_audio1"
(audioUploaded)="onAudioUploadSuccess($event, 'begin_audio1')"
></app-audio-recorder>
</div>
<div style="margin-top: 5px">
<span>开始第2遍音频: </span>
<app-audio-recorder
[audioUrl]="item.begin_audio2"
(audioUploaded)="onAudioUploadSuccess($event, 'begin_audio2')"
></app-audio-recorder>
</div>
<div style="margin-top: 5px">
<span>做题引导音频: </span>
<app-audio-recorder
[audioUrl]="item.guide_audio"
(audioUploaded)="onAudioUploadSuccess($event, 'guide_audio')"
></app-audio-recorder>
</div>
<div style="margin-top: 5px">
......@@ -15,6 +29,41 @@
(audioUploaded)="onAudioUploadSuccess($event, 'playing_audio')"
></app-audio-recorder>
</div>
<!-- <div style="margin-top: 5px">-->
<!-- <span>做题引导音频: </span>-->
<!-- <app-audio-recorder-->
<!-- [audioUrl]="item.guide_audio"-->
<!-- (audioUploaded)="onAudioUploadSuccess($event, 'guide_audio')"-->
<!-- ></app-audio-recorder>-->
<!-- </div>-->
<div style="margin-top: 5px">
<span>正确提示音: </span>
<app-audio-recorder
[audioUrl]="item.right_audio"
(audioUploaded)="onAudioUploadSuccess($event, 'right_audio')"
></app-audio-recorder>
</div>
<div style="margin-top: 5px">
<span>默认错误提示音: </span>
<app-audio-recorder
[audioUrl]="item.wrong_audio"
(audioUploaded)="onAudioUploadSuccess($event, 'wrong_audio')"
></app-audio-recorder>
</div>
<div style="margin-top: 5px">
<span>错误提示音频1: </span>
<app-audio-recorder
[audioUrl]="item.wrong_audio1"
(audioUploaded)="onAudioUploadSuccess($event, 'wrong_audio1')"
></app-audio-recorder>
</div>
<div style="margin-top: 5px">
<span>错误提示音频2: </span>
<app-audio-recorder
[audioUrl]="item.wrong_audio2"
(audioUploaded)="onAudioUploadSuccess($event, 'wrong_audio2')"
></app-audio-recorder>
</div>
<div style="margin-top: 5px">
<span>结尾音频: </span>
<app-audio-recorder
......
{
"ver": "1.1.2",
"uuid": "7b142208-7ebf-4c01-894f-e214d8bc95c8",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
......@@ -2169,22 +2169,26 @@
}
],
"_armatureName": "Armature",
"_animationName": "",
"_animationName": "enlarge",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "4d85228f-ec02-4cbe-a0d8-cc8628fe805d#146d0d76-3625-438b-a6c8-dbd27ca2af63",
"_armatureKey": "ff020f6d-a4b6-4baf-bcad-94ae605c2977#ac49bcc0-d84e-4dd4-a8e3-7d81d1885337",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": null,
"_N$dragonAtlasAsset": null,
"_N$dragonAsset": {
"__uuid__": "ff020f6d-a4b6-4baf-bcad-94ae605c2977"
},
"_N$dragonAtlasAsset": {
"__uuid__": "ac49bcc0-d84e-4dd4-a8e3-7d81d1885337"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_animationIndex": 2,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
......
......@@ -110,11 +110,14 @@ cc.Class({
_hintsNodeList : null,
_figurePointRectArray: null,
_allAnimationNodes: null,
initSceneData() {
this._imageResList = [];
this._audioResList = [];
this._animaResList = [];
this._allAnimationNodes = [];
this._hintsNodeList = [];
this._lastFingerPosition= {
pos: null,
......@@ -208,12 +211,12 @@ cc.Class({
src: (context, event) => (callback, onReceive) => {
console.log('[answer] thinking and playing');
// This will send the 'INC' event to the parent every second
// check every second
const id = setInterval(() => {
const region = context.questions[context.questionIndex];
const result = this.checkInRegion(region.rect);
console.log('checkInRegion', JSON.stringify(this._lastFingerPosition), JSON.stringify(region.rect), result);
// console.log('checkInRegion', JSON.stringify(this._lastFingerPosition), JSON.stringify(region.rect), result);
if (result) {
callback('RIGHT')
// playAudioByUrl(this.data.begin_audio, () => {
......@@ -277,17 +280,27 @@ cc.Class({
wrong:{
invoke: {
src: (context, event) => {
console.log(1111)
this._lastFingerPosition.pos = null;
this._lastFingerPosition.dirty = false;
return new Promise((resolve, reject) => {
console.log('answer wrong', context.questionPlayTimes , context.maxQuestionTryTimes);
console.log('answer wrong', context.questionIndex, context.questionPlayTimes , context.maxQuestionTryTimes);
const ddLogoCat = this.logoCat.getComponent(dragonBones.ArmatureDisplay)
ddLogoCat.playAnimation('wrong', 1)
ddLogoCat.once(dragonBones.EventObject.COMPLETE, function() {
this.logoCat.getComponent(dragonBones.ArmatureDisplay).playAnimation('normal', 0)
}, this)
playAudioByUrl(this.wrongAudio, () => {
}, this);
let wrongEffect = this.wrongAudio;
// 第一和第二题的提示音
if ([0, 1].includes(context.questionIndex)) {
wrongEffect = this.data[`wrong_audio${context.questionPlayTimes}`]
} else {
// 非第一和第二题,并且做第二遍的提示音
if (context.questionPlayTimes == 2) {
wrongEffect = this.data[`wrong_audio${context.questionPlayTimes}`]
}
}
playAudioByUrl(wrongEffect, () => {
if (context.questionPlayTimes >= context.maxQuestionTryTimes) {
const an = context.questions[context.questionIndex].node;
an.active = true;
......@@ -298,7 +311,6 @@ cc.Class({
} else {
resolve()
}
})
});
},
......@@ -312,9 +324,6 @@ cc.Class({
}
}
},
}
}
const QuestionsArrayStatus = {
......@@ -322,7 +331,6 @@ cc.Class({
initial: 'play',
states: {
play: {
...QuestionState
},
next: {
......@@ -356,10 +364,9 @@ cc.Class({
},
states: {
begin: {
invoke: {
src: (ctx) => {
console.log('game begin');
console.log('game begin 1');
if(window.courseware && window.courseware.openOsmoFingerRead) {
this.isOpenedOsmoFingerRead = true;
window.courseware.openOsmoFingerRead()
......@@ -367,15 +374,50 @@ cc.Class({
var dragonDisplay = this.logoCat.getComponent(dragonBones.ArmatureDisplay);
const state = dragonDisplay.playAnimation('begin', 0);
return new Promise((resolve,reject) => {
playAudioByUrl(this.data.begin_audio, () => {
playAudioByUrl(this.data.begin_audio1, () => {
console.log('game begin audio finish');
resolve()
})
});
},
onDone: 'begin2',
onError: 'begin2'
}
},
begin2: {
invoke: {
src: (ctx) => {
console.log('game begin 2');
for(let i = 0 ;i < this._allAnimationNodes.length; i++) {
const t = this._allAnimationNodes[i];
const dragonDisplay = t.getComponent(dragonBones.ArmatureDisplay);
dragonDisplay.playAnimation('normal', 0);
}
return new Promise((resolve,reject) => {
playAudioByUrl(this.data.begin_audio2, () => {
resolve()
})
});
},
onDone: 'guide',
onError: 'guide'
}
},
guide:{
invoke: {
src: (ctx) => {
return new Promise((resolve,reject) => {
playAudioByUrl(this.data.guide_audio, () => {
console.log('game guide audio finish');
reject()
})
});
},
onDone: 'playing',
onError: 'playing'
}
},
},
playing: {
entry: (ctx) => {
......@@ -401,9 +443,9 @@ cc.Class({
},
end: {
entry: (ctx, event) => {
console.log('game end', ctx, event);
console.log('game end');
var dragonDisplay = this.logoCat.getComponent(dragonBones.ArmatureDisplay);
const state = dragonDisplay.playAnimation('end', 0);
const state = dragonDisplay.playAnimation('finish', 0);
if(window.courseware && window.courseware.closeOsmoFingerRead) {
this.isOpenedOsmoFingerRead = false;
window.courseware.closeOsmoFingerRead()
......@@ -428,17 +470,26 @@ cc.Class({
const k = this._hintsNodeList[i].after;
after[k]= {
actions: () => {
console.log(k)
// this.playAni(i, 'normal')
// cc.tween(t).to(.8, {scale: .3}).to(.8, {scale: .25}).start();
const dragonDisplay = t.getComponent(dragonBones.ArmatureDisplay);
dragonDisplay.playAnimation('enlarge', 1);
console.log(dragonDisplay._armatureKey, 'enlarge')
dragonDisplay.addEventListener(dragonBones.EventObject.COMPLETE, (event) => {
//TODO 这里写触发事件
//event.name为事件名称
event.armature.animation.play('normal', 0);
console.log(event.animationState.name)
// TODO 这里写触发事件
// event.name为事件名称
// event.armature.animation.play('normal', 0);
// console.log(event.animationState.name, dragonDisplay._armatureKey, 'end')
}, this);
// const dragonDisplay = t.getComponent(dragonBones.ArmatureDisplay);
// dragonDisplay.playAnimation('enlarge', 1);
// console.log(dragonDisplay._armatureKey, 'enlarge')
// dragonDisplay.addEventListener(dragonBones.EventObject.COMPLETE, (event) => {
// //TODO 这里写触发事件
// //event.name为事件名称
// event.armature.animation.play('normal', 0);
// console.log(event.animationState.name, dragonDisplay._armatureKey, 'end')
// }, this);
}
}
}
......@@ -463,7 +514,7 @@ cc.Class({
}
getData((data) => {
console.log('data:', data);
// console.log('data:', data);
this.data = data || this.getDefaultData();
this.data = JSON.parse(JSON.stringify(this.data))
......@@ -549,8 +600,20 @@ cc.Class({
addPreloadAudio() {
this._audioResList.push({ url: this.data.begin_audio });
this._audioResList.push({ url: this.data.begin_audio1 });
this._audioResList.push({ url: this.data.begin_audio2 });
this._audioResList.push({ url: this.data.guide_audio });
this._audioResList.push({ url: this.data.playing_audio });
if (this.data.wrong_audio) {
this._audioResList.push({ url: this.data.wrong_audio });
this.wrongAudio = this.data.wrong_audio
}
if (this.data.right_audio) {
this._audioResList.push({ url: this.data.right_audio });
this.rightAudio = this.data.right_audio
}
this._audioResList.push({ url: this.data.wrong_audio1 });
this._audioResList.push({ url: this.data.wrong_audio2 });
this._audioResList.push({ url: this.data.end_audio });
......@@ -572,7 +635,7 @@ cc.Class({
cc.assetManager.loadAny(preloadArr, null, (f, t, item) => {
// console.log(f, t, item)
}, (err, data) => {
console.log(err, data);
// console.log(err, data);
const ground = cc.find(`Canvas/frame-border/ground`);
const groundBg = cc.find(`Canvas/frame-border/ground/bg`);
groundBg.active = false;
......@@ -617,7 +680,8 @@ cc.Class({
n.width = width;
n.height = height;
n.active = true;
db.playAnimation('normal', 0);
db.playAnimation('null', 0);
this._allAnimationNodes.push(n);
finishDbCount++;
console.log(finishDbCount, dbCount)
if (finishDbCount == dbCount) {
......
export const defaultData = {
"playing_audio": "https://staging-teach.cdn.ireadabc.com/71ab414eb007042f060416301c50be5b.mp3",
"begin_audio": "https://staging-teach.cdn.ireadabc.com/b1e5378083adac9950839772c7b67f34.mp3",
"end_audio": "https://staging-teach.cdn.ireadabc.com/0ffcb92067cac989b6e90a26f19ffc1f.mp3",
"bgItem": {
"url": "https://staging-teach.cdn.ireadabc.com/adcccbd26e2cfa259920e24df01d4b92.png",
"rect": {
"x": 326.06,
"y": 0,
"width": 256.88,
"height": 341
}
},
"hotZoneItemArr": [{
"id": "1637989476417",
"index": 0,
"itemType": "rect",
"fontScale": 0.71015625,
"imgScale": 1,
"imgSizeW": 0,
"imgSizeH": 0,
"mapScale": 0.71015625,
"skeJsonData": {
"url": "https://staging-teach.cdn.ireadabc.com/c5c6cd890660a3c22fde393a3770458f.json",
"name": "小汽车_ske.json"
},
"texJsonData": {
"url": "https://staging-teach.cdn.ireadabc.com/cea107517406463474d907e306163226.json",
"name": "小汽车_tex.json"
},
"texPngData": {
"url": "https://staging-teach.cdn.ireadabc.com/84bce64cd4259e604a458d08ddd75bec.png",
"name": "小汽车_tex.png"
},
"dragDot": {
"x": 454.5,
"y": 170.92032577903686
},
"gIdx": "1",
"rect": {
"x": 64.22,
"y": 106.28,
"width": 128.44,
"height": 128.44
}
}, {
"id": "1637989503084",
"index": 1,
"pic_url": "https://staging-teach.cdn.ireadabc.com/6c46921facf36b9f7d590faed1aac69c.png",
"itemType": "pic",
"fontScale": 0.71015625,
"imgScale": 0.3210399032648126,
"imgSizeW": 1246,
"imgSizeH": 1654,
"mapScale": 0.71015625,
"dragDot": {
"x": 454.5,
"y": 170.92032577903686
},
"gIdx": "2",
"rect": {
"x": -71.57,
"y": -94.36,
"width": 400.02,
"height": 531
}
}, {
"id": "1637989527254",
"index": 2,
"audio_url": "https://staging-teach.cdn.ireadabc.com/e31c3b1914837a611d4d3bb1ceb00773.mp3",
"itemType": "rect",
"fontScale": 0.71015625,
"imgScale": 1,
"imgSizeW": 0,
"imgSizeH": 0,
"mapScale": 0.71015625,
"skeJsonData": {
"url": "https://staging-teach.cdn.ireadabc.com/d2d7de9f8079f36e8354d16e4ca26476.json",
"name": "房子_ske.json"
},
"texJsonData": {
"url": "https://staging-teach.cdn.ireadabc.com/204ea18018a352a30fd233a46f9a0a1a.json",
"name": "房子_tex.json"
},
"texPngData": {
"url": "https://staging-teach.cdn.ireadabc.com/cf8da0ab00a7d9f34bdf8f490c29dcbf.png",
"name": "房子_tex.png"
},
"dragDot": {
"x": 454.5,
"y": 170.92032577903686
},
"gIdx": "0",
"labelText": "13",
"posX": 786.9990048260586,
"posY": 202.4928652448877,
"rect": {
"x": 106.61,
"y": 86.69,
"width": 147.7,
"height": 86.69
}
}, {
"id": "1637989873000",
"index": 3,
"itemType": "rect",
"fontScale": 0.71015625,
"imgScale": 1,
"imgSizeW": 0,
"imgSizeH": 0,
"mapScale": 0.71015625,
"skeJsonData": {
"url": "https://staging-teach.cdn.ireadabc.com/ed2ac4931a9c00ff6c4298381722676e.json",
"name": "牛_ske.json"
},
"texJsonData": {
"url": "https://staging-teach.cdn.ireadabc.com/0e153093ee7265b6a843847543d6110b.json",
"name": "牛_tex.json"
},
"texPngData": {
"url": "https://staging-teach.cdn.ireadabc.com/631661e13616eea6cde9f9e6610f5008.png",
"name": "牛_tex.png"
},
"dragDot": {
"x": 454.5,
"y": 170.92032577903686
},
"gIdx": "1",
"rect": {
"x": 64.22,
"y": 106.28,
"width": 128.44,
"height": 128.44
}
}, {
"id": "1637989920132",
"index": 4,
"itemType": "rect",
"fontScale": 0.71015625,
"imgScale": 1,
"imgSizeW": 0,
"imgSizeH": 0,
"mapScale": 0.71015625,
"skeJsonData": {
"url": "https://staging-teach.cdn.ireadabc.com/1d4b251caf0c0b8245fb17cd8445672c.json",
"name": "农夫_ske.json"
},
"texJsonData": {
"url": "https://staging-teach.cdn.ireadabc.com/1fdd04cacb6d543cf05ce64e8124a6ff.json",
"name": "农夫_tex.json"
},
"texPngData": {
"url": "https://staging-teach.cdn.ireadabc.com/8f582cb39eb349da08e06289b0ce6c16.png",
"name": "农夫_tex.png"
},
"dragDot": {
"x": 454.5,
"y": 170.92032577903686
},
"gIdx": "1",
"rect": {
"x": 64.22,
"y": 106.28,
"width": 128.44,
"height": 128.44
}
}, {
"id": "1637989946959",
"index": 5,
"audio_url": "https://staging-teach.cdn.ireadabc.com/bf1924c502ca1a4ac928a31e7c8aa70e.mp3",
"itemType": "rect",
"fontScale": 0.71015625,
"imgScale": 1,
"imgSizeW": 0,
"imgSizeH": 0,
"mapScale": 0.71015625,
"skeJsonData": {
"url": "https://staging-teach.cdn.ireadabc.com/bd3c2cc93b1593433a58d8482972ff66.json",
"name": "苹果_ske.json"
},
"texJsonData": {
"url": "https://staging-teach.cdn.ireadabc.com/1f54df317a8c86271e29d6db3ffb55ce.json",
"name": "苹果_tex.json"
},
"texPngData": {
"url": "https://staging-teach.cdn.ireadabc.com/734ac06a7ef018b457e7ac7692789ffa.png",
"name": "苹果_tex.png"
},
"dragDot": {
"x": 454.5,
"y": 170.92032577903686
},
"gIdx": "0",
"labelText": "6",
"posX": 577.001380402564,
"posY": 189.49808990808017,
"rect": {
"x": 1.29,
"y": 72.57,
"width": 88.62,
"height": 98.25
}
}, {
"id": "1637990008894",
"index": 6,
"itemType": "rect",
"fontScale": 0.71015625,
"imgScale": 1,
"imgSizeW": 0,
"imgSizeH": 0,
"mapScale": 0.71015625,
"skeJsonData": {
"url": "https://staging-teach.cdn.ireadabc.com/4503721901880d0b6c3ad6d4261e958b.json",
"name": "小女孩_ske.json"
},
"texJsonData": {
"url": "https://staging-teach.cdn.ireadabc.com/fc4fd0b2f672dff7c7b2148830164090.json",
"name": "小女孩_tex.json"
},
"texPngData": {
"url": "https://staging-teach.cdn.ireadabc.com/4be41c15972caf99eef956ba48759c91.png",
"name": "小女孩_tex.png"
},
"dragDot": {
"x": 454.5,
"y": 170.92032577903686
},
"gIdx": "1",
"rect": {
"x": 64.22,
"y": 106.28,
"width": 128.44,
"height": 128.44
}
}, {
"id": "1637990039605",
"index": 7,
"audio_url": "https://staging-teach.cdn.ireadabc.com/323feb19d153069702ffd21097f18f79.mp3",
"itemType": "rect",
"fontScale": 0.71015625,
"imgScale": 1,
"imgSizeW": 0,
"imgSizeH": 0,
"mapScale": 0.71015625,
"skeJsonData": {
"url": "https://staging-teach.cdn.ireadabc.com/cd7c7a756c0f79d28f419576e3b85b0c.json",
"name": "鸭子_ske.json"
},
"texJsonData": {
"url": "https://staging-teach.cdn.ireadabc.com/7613f30893a5f64773a77723c1d67f0d.json",
"name": "鸭子_tex.json"
},
"texPngData": {
"url": "https://staging-teach.cdn.ireadabc.com/59b2293ef4eea9d64ff9821bc5d69a6d.png",
"name": "鸭子_tex.png"
},
"dragDot": {
"x": 454.5,
"y": 170.92032577903686
},
"gIdx": "0",
"labelText": "12",
"posX": 757.9994649602465,
"posY": 349.49668810392615,
"rect": {
"x": 123.94,
"y": 176.6,
"width": 75.78,
"height": 95.68
}
}, {
"id": "1637990077830",
"index": 8,
"itemType": "rect",
"fontScale": 0.71015625,
"imgScale": 1,
"imgSizeW": 0,
"imgSizeH": 0,
"mapScale": 0.71015625,
"skeJsonData": {
"url": "https://staging-teach.cdn.ireadabc.com/55951c794b414ab58cca023642819e37.json",
"name": "母鸡_ske.json"
},
"texJsonData": {
"url": "https://staging-teach.cdn.ireadabc.com/47b93323b1d1e1e6020704c537f46820.json",
"name": "母鸡_tex.json"
},
"texPngData": {
"url": "https://staging-teach.cdn.ireadabc.com/dd66021ff860b02a559d59817c71e27f.png",
"name": "母鸡_tex.png"
},
"dragDot": {
"x": 454.5,
"y": 170.92032577903686
},
"gIdx": "1",
"rect": {
"x": 64.22,
"y": 106.28,
"width": 128.44,
"height": 128.44
}
}, {
"id": "1637990112530",
"index": 9,
"itemType": "rect",
"fontScale": 0.71015625,
"imgScale": 1,
"imgSizeW": 0,
"imgSizeH": 0,
"mapScale": 0.71015625,
"skeJsonData": {
"url": "https://staging-teach.cdn.ireadabc.com/357fef8204228afb43d0ce73746228e5.json",
"name": "鱼_ske.json"
},
"texJsonData": {
"url": "https://staging-teach.cdn.ireadabc.com/f694e5442095a317fc7d8b1390e630c7.json",
"name": "鱼_tex.json"
},
"texPngData": {
"url": "https://staging-teach.cdn.ireadabc.com/f566cca10fd83f62a465b144ac73d483.png",
"name": "鱼_tex.png"
},
"dragDot": {
"x": 454.5,
"y": 170.92032577903686
},
"gIdx": "1",
"rect": {
"x": 64.22,
"y": 106.28,
"width": 128.44,
"height": 128.44
}
}, {
"id": "1637990135223",
"index": 10,
"audio_url": "https://staging-teach.cdn.ireadabc.com/b903b174f09107517b5d6f8934b73447.mp3",
"itemType": "rect",
"fontScale": 0.71015625,
"imgScale": 1,
"imgSizeW": 0,
"imgSizeH": 0,
"mapScale": 0.71015625,
"skeJsonData": {
"url": "https://staging-teach.cdn.ireadabc.com/b9fa85c227daa6539f12cab5a5058052.json",
"name": "鸡蛋_ske.json"
},
"texJsonData": {
"url": "https://staging-teach.cdn.ireadabc.com/99aa8de7b69000ac6c5e0fb6a508b692.json",
"name": "鸡蛋_tex.json"
},
"texPngData": {
"url": "https://staging-teach.cdn.ireadabc.com/09bd0a34a4508613fd7c167724e4a969.png",
"name": "鸡蛋_tex.png"
},
"dragDot": {
"x": 454.5,
"y": 170.92032577903686
},
"gIdx": "0",
"labelText": "7",
"posX": 648.0005885437288,
"posY": 413.4958641427058,
"rect": {
"x": 60.37,
"y": 224.12,
"width": 61.65,
"height": 82.83
}
}, {
"id": "1637990214160",
"index": 11,
"audio_url": "https://staging-teach.cdn.ireadabc.com/2656b72aec7f6def07713fbc99309168.mp3",
"itemType": "rect",
"fontScale": 0.71015625,
"imgScale": 1,
"imgSizeW": 0,
"imgSizeH": 0,
"mapScale": 0.71015625,
"skeJsonData": {
"url": "https://staging-teach.cdn.ireadabc.com/20cbf3d186a197baaed38204dd017f51.json",
"name": "猫_ske.json"
},
"texJsonData": {
"url": "https://staging-teach.cdn.ireadabc.com/d7de5a32de3ee1ad660dc509ba8adf1d.json",
"name": "猫_tex.json"
},
"texPngData": {
"url": "https://staging-teach.cdn.ireadabc.com/af86e967aab8632cd0b26d60a62f0675.png",
"name": "猫_tex.png"
},
"dragDot": {
"x": 454.5,
"y": 170.92032577903686
},
"gIdx": "0",
"labelText": "10",
"posX": 552.0016265208506,
"posY": 399.496046056222,
"rect": {
"x": 0.65,
"y": 194.58,
"width": 57.8,
"height": 123.93
}
}, {
"id": "1637990319579",
"index": 12,
"itemType": "rect",
"fontScale": 0.71015625,
"imgScale": 1,
"imgSizeW": 0,
"imgSizeH": 0,
"mapScale": 0.71015625,
"skeJsonData": {
"url": "https://staging-teach.cdn.ireadabc.com/3d1d49e583d97cd5097d08102265b1c6.json",
"name": "蚂蚁_ske.json"
},
"texJsonData": {
"url": "https://staging-teach.cdn.ireadabc.com/9a3a5c871b288aebb1e6920f1e9709f8.json",
"name": "蚂蚁_tex.json"
},
"texPngData": {
"url": "https://staging-teach.cdn.ireadabc.com/1fad62f313b6ff72a642cb4b15aeaf04.png",
"name": "蚂蚁_tex.png"
},
"dragDot": {
"x": 454.5,
"y": 170.92032577903686
},
"gIdx": "1",
"rect": {
"x": 64.22,
"y": 106.28,
"width": 128.44,
"height": 128.44
}
}, {
"id": "1637990911365",
"index": 13,
"audio_url": "https://staging-teach.cdn.ireadabc.com/9bbf8ba2fa7f96ea5a95c27a384414a2.mp3",
"itemType": "rect",
"fontScale": 0.71015625,
"imgScale": 1,
"imgSizeW": 0,
"imgSizeH": 0,
"mapScale": 0.71015625,
"skeJsonData": {
"url": "https://staging-teach.cdn.ireadabc.com/d8506ebddb29c8d08b4b93376b45f5c9.json",
"name": "鸟_ske.json"
},
"texJsonData": {
"url": "https://staging-teach.cdn.ireadabc.com/9fad47c99025b7b229df52afb797ec5c.json",
"name": "鸟_tex.json"
},
"texPngData": {
"url": "https://staging-teach.cdn.ireadabc.com/e86b136b9706768c5ca0dba3dc0aab21.png",
"name": "鸟_tex.png"
},
"dragDot": {
"x": 454.5,
"y": 170.92032577903686
},
"gIdx": "0",
"labelText": "8",
"posX": 763.9994542594516,
"posY": 90.49888176691528,
"rect": {
"x": 99.54,
"y": 32.11,
"width": 132.29,
"height": 52.02
}
}]
}
\ No newline at end of file
export const defaultData = {"begin_audio":"http://teach.cdn.ireadabc.com/b1e5378083adac9950839772c7b67f34.mp3","playing_audio":"http://teach.cdn.ireadabc.com/549347d1be620d9d91b7420d45b3cb7a.mp3","end_audio":"http://staging-teach.cdn.ireadabc.com/81e7a94e1420a4cbcaa583d4188ab145.mp3","bgItem":{"url":"http://teach.cdn.ireadabc.com/adcccbd26e2cfa259920e24df01d4b92.png","rect":{"x":374.6,"y":0,"width":293.8,"height":390}},"hotZoneItemArr":[{"id":"1638090450402","index":0,"itemType":"rect","fontScale":0.81484375,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":0.81484375,"skeJsonData":{"url":"http://teach.cdn.ireadabc.com/c5c6cd890660a3c22fde393a3770458f.json","name":"小汽车_ske.json"},"texJsonData":{"url":"http://teach.cdn.ireadabc.com/cea107517406463474d907e306163226.json","name":"小汽车_tex.json"},"texPngData":{"url":"http://teach.cdn.ireadabc.com/84bce64cd4259e604a458d08ddd75bec.png","name":"小汽车_tex.png"},"dragDot":{"x":521.5,"y":195},"gIdx":"1","rect":{"x":46.9,"y":95,"width":200,"height":200}},{"id":"1638090465133","index":1,"pic_url":"http://teach.cdn.ireadabc.com/70d02ee3788e373f707a45530cd2f9c0.png","itemType":"pic","fontScale":0.81484375,"imgScale":0.23579201934703747,"imgSizeW":1246,"imgSizeH":1654,"mapScale":0.81484375,"dragDot":{"x":521.5,"y":195},"gIdx":"2","rect":{"x":0,"y":1,"width":293.8,"height":390}},{"id":"1638090485031","index":2,"audio_url":"http://teach.cdn.ireadabc.com/e31c3b1914837a611d4d3bb1ceb00773.mp3","itemType":"rect","fontScale":0.81484375,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":0.81484375,"skeJsonData":{"url":"http://teach.cdn.ireadabc.com/d2d7de9f8079f36e8354d16e4ca26476.json","name":"房子_ske.json"},"texJsonData":{"url":"http://teach.cdn.ireadabc.com/204ea18018a352a30fd233a46f9a0a1a.json","name":"房子_tex.json"},"texPngData":{"url":"http://teach.cdn.ireadabc.com/cf8da0ab00a7d9f34bdf8f490c29dcbf.png","name":"房子_tex.png"},"dragDot":{"x":521.5,"y":195},"gIdx":"0","labelText":"14","posX":578,"posY":160.99791334496155,"rect":{"x":124.9,"y":108,"width":170,"height":106}},{"id":"1638090539787","index":3,"itemType":"rect","fontScale":0.81484375,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":0.81484375,"skeJsonData":{"url":"http://teach.cdn.ireadabc.com/ed2ac4931a9c00ff6c4298381722676e.json","name":"牛_ske.json"},"texJsonData":{"url":"http://teach.cdn.ireadabc.com/0e153093ee7265b6a843847543d6110b.json","name":"牛_tex.json"},"texPngData":{"url":"http://teach.cdn.ireadabc.com/631661e13616eea6cde9f9e6610f5008.png","name":"牛_tex.png"},"dragDot":{"x":521.5,"y":197.46116504854368},"gIdx":"1","rect":{"x":46.9,"y":95,"width":200,"height":200}},{"id":"1638090562867","index":4,"audio_url":"http://teach.cdn.ireadabc.com/bf1924c502ca1a4ac928a31e7c8aa70e.mp3","itemType":"rect","fontScale":0.81484375,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":0.81484375,"skeJsonData":{"url":"http://teach.cdn.ireadabc.com/bd3c2cc93b1593433a58d8482972ff66.json","name":"苹果_ske.json"},"texJsonData":{"url":"http://teach.cdn.ireadabc.com/1f54df317a8c86271e29d6db3ffb55ce.json","name":"苹果_tex.json"},"texPngData":{"url":"http://teach.cdn.ireadabc.com/734ac06a7ef018b457e7ac7692789ffa.png","name":"苹果_tex.png"},"dragDot":{"x":521.5,"y":197.46116504854368},"gIdx":"0","labelText":"6","posX":429,"posY":146,"rect":{"x":-0.1,"y":70,"width":122,"height":152}},{"id":"1638090594247","index":5,"itemType":"rect","fontScale":0.81484375,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":0.81484375,"skeJsonData":{"url":"http://teach.cdn.ireadabc.com/1d4b251caf0c0b8245fb17cd8445672c.json","name":"农夫_ske.json"},"texJsonData":{"url":"http://teach.cdn.ireadabc.com/1fdd04cacb6d543cf05ce64e8124a6ff.json","name":"农夫_tex.json"},"texPngData":{"url":"http://teach.cdn.ireadabc.com/8f582cb39eb349da08e06289b0ce6c16.png","name":"农夫_tex.png"},"dragDot":{"x":521.5,"y":197.46116504854368},"gIdx":"1","rect":{"x":46.9,"y":95,"width":200,"height":200}},{"id":"1638090663056","index":6,"itemType":"rect","fontScale":0.81484375,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":0.81484375,"skeJsonData":{"url":"http://teach.cdn.ireadabc.com/4503721901880d0b6c3ad6d4261e958b.json","name":"小女孩_ske.json"},"texJsonData":{"url":"http://teach.cdn.ireadabc.com/fc4fd0b2f672dff7c7b2148830164090.json","name":"小女孩_tex.json"},"texPngData":{"url":"http://teach.cdn.ireadabc.com/4be41c15972caf99eef956ba48759c91.png","name":"小女孩_tex.png"},"dragDot":{"x":521.5,"y":197.46116504854368},"gIdx":"1","rect":{"x":46.9,"y":95,"width":200,"height":200}},{"id":"1638090685571","index":7,"itemType":"rect","fontScale":0.81484375,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":0.81484375,"skeJsonData":{"url":"http://teach.cdn.ireadabc.com/55951c794b414ab58cca023642819e37.json","name":"母鸡_ske.json"},"texJsonData":{"url":"http://teach.cdn.ireadabc.com/47b93323b1d1e1e6020704c537f46820.json","name":"母鸡_tex.json"},"texPngData":{"url":"http://teach.cdn.ireadabc.com/dd66021ff860b02a559d59817c71e27f.png","name":"母鸡_tex.png"},"dragDot":{"x":521.5,"y":197.46116504854368},"gIdx":"1","rect":{"x":46.9,"y":95,"width":200,"height":200}},{"id":"1638090695652","index":8,"audio_url":"http://teach.cdn.ireadabc.com/323feb19d153069702ffd21097f18f79.mp3","itemType":"rect","fontScale":0.81484375,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":0.81484375,"skeJsonData":{"url":"http://teach.cdn.ireadabc.com/cd7c7a756c0f79d28f419576e3b85b0c.json","name":"鸭子_ske.json"},"texJsonData":{"url":"http://teach.cdn.ireadabc.com/7613f30893a5f64773a77723c1d67f0d.json","name":"鸭子_tex.json"},"texPngData":{"url":"http://teach.cdn.ireadabc.com/59b2293ef4eea9d64ff9821bc5d69a6d.png","name":"鸭子_tex.png"},"dragDot":{"x":521.5,"y":197.46116504854368},"gIdx":"0","labelText":"11","posX":564.4993151491155,"posY":247.99735690361797,"rect":{"x":127.9,"y":216,"width":124,"height":64}},{"id":"1638090758159","index":9,"audio_url":"http://teach.cdn.ireadabc.com/b903b174f09107517b5d6f8934b73447.mp3","itemType":"rect","fontScale":0.81484375,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":0.81484375,"skeJsonData":{"url":"http://teach.cdn.ireadabc.com/b9fa85c227daa6539f12cab5a5058052.json","name":"鸡蛋_ske.json"},"texJsonData":{"url":"http://teach.cdn.ireadabc.com/99aa8de7b69000ac6c5e0fb6a508b692.json","name":"鸡蛋_tex.json"},"texPngData":{"url":"http://teach.cdn.ireadabc.com/09bd0a34a4508613fd7c167724e4a969.png","name":"鸡蛋_tex.png"},"dragDot":{"x":521.5,"y":197.46116504854368},"gIdx":"0","labelText":"7","posX":471.50036382703234,"posY":291.99683256465954,"rect":{"x":67.4,"y":223,"width":59,"height":138}},{"id":"1638090812155","index":10,"itemType":"rect","fontScale":0.81484375,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":0.81484375,"skeJsonData":{"url":"http://teach.cdn.ireadabc.com/357fef8204228afb43d0ce73746228e5.json","name":"鱼_ske.json"},"texJsonData":{"url":"http://teach.cdn.ireadabc.com/f694e5442095a317fc7d8b1390e630c7.json","name":"鱼_tex.json"},"texPngData":{"url":"http://teach.cdn.ireadabc.com/f566cca10fd83f62a465b144ac73d483.png","name":"鱼_tex.png"},"dragDot":{"x":521.5,"y":197.46116504854368},"gIdx":"1","rect":{"x":46.9,"y":95,"width":200,"height":200}},{"id":"1638090824244","index":11,"audio_url":"http://teach.cdn.ireadabc.com/2656b72aec7f6def07713fbc99309168.mp3","itemType":"rect","fontScale":0.81484375,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":0.81484375,"skeJsonData":{"url":"http://teach.cdn.ireadabc.com/20cbf3d186a197baaed38204dd017f51.json","name":"猫_ske.json"},"texJsonData":{"url":"http://teach.cdn.ireadabc.com/d7de5a32de3ee1ad660dc509ba8adf1d.json","name":"猫_tex.json"},"texPngData":{"url":"http://teach.cdn.ireadabc.com/af86e967aab8632cd0b26d60a62f0675.png","name":"猫_tex.png"},"dragDot":{"x":521.5,"y":197.46116504854368},"gIdx":"0","labelText":"10","posX":408.50114498507236,"posY":288.99689676943,"rect":{"x":1.4,"y":222,"width":65,"height":134}},{"id":"1638090897644","index":12,"audio_url":"http://teach.cdn.ireadabc.com/9bbf8ba2fa7f96ea5a95c27a384414a2.mp3","itemType":"rect","fontScale":0.81484375,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":0.81484375,"skeJsonData":{"url":"http://teach.cdn.ireadabc.com/d8506ebddb29c8d08b4b93376b45f5c9.json","name":"鸟_ske.json"},"texJsonData":{"url":"http://teach.cdn.ireadabc.com/9fad47c99025b7b229df52afb797ec5c.json","name":"鸟_tex.json"},"texPngData":{"url":"http://teach.cdn.ireadabc.com/e86b136b9706768c5ca0dba3dc0aab21.png","name":"鸟_tex.png"},"dragDot":{"x":521.5,"y":197.46116504854368},"gIdx":"0","labelText":"9","posX":573,"posY":74,"rect":{"x":127.9,"y":41,"width":154,"height":66}},{"id":"1638090948950","index":13,"itemType":"rect","fontScale":0.81484375,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":0.81484375,"skeJsonData":{"url":"http://teach.cdn.ireadabc.com/3d1d49e583d97cd5097d08102265b1c6.json","name":"蚂蚁_ske.json"},"texJsonData":{"url":"http://teach.cdn.ireadabc.com/9a3a5c871b288aebb1e6920f1e9709f8.json","name":"蚂蚁_tex.json"},"texPngData":{"url":"http://teach.cdn.ireadabc.com/1fad62f313b6ff72a642cb4b15aeaf04.png","name":"蚂蚁_tex.png"},"dragDot":{"x":521.5,"y":197.46116504854368},"gIdx":"1","rect":{"x":46.9,"y":95,"width":200,"height":200}}],"guide_audio":"http://staging-teach.cdn.ireadabc.com/d6c1d3b84a4774a0fc183a14abbb6c09.mp3","wrong_audio1":"http://staging-teach.cdn.ireadabc.com/b77ef2a6cdcb6504520484a9b197b2fd.mp3","wrong_audio2":"http://staging-teach.cdn.ireadabc.com/8dacb2445816e1f068ea116752c21173.mp3","begin_audio1":"http://staging-teach.cdn.ireadabc.com/e45ad0823ae2c8e04246d76c7f57030d.mp3","begin_audio2":"http://staging-teach.cdn.ireadabc.com/05232ad51f8d9e1af6dd1273147bc58f.mp3","right_audio":"http://staging-teach.cdn.ireadabc.com/330eff8d5e8cc429965da82652207ff2.mp3","wrong_audio":"http://staging-teach.cdn.ireadabc.com/1664170e569d974279bcec626be176d9.mp3"}
\ 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