Commit a17dc189 authored by jeff's avatar jeff

测试

parent c0b1cecc
......@@ -40,6 +40,7 @@ cc.Class({
this.onEvent()
this.playBtn.active = true
this.pauseBtn.active = false
this.node.active =false
cc.assetManager.loadRemote(url, (err, audioClip) => {
if (err) return
this.clip = audioClip
......
......@@ -109,7 +109,7 @@ cc.Class({
},
getDefaultData() {
const dataJson = '[{"bgItem":{"url":"http://staging-teach.cdn.ireadabc.com/b90a006ba41723ec11970051e92f43e0.png","bgAudioUrl":"http://staging-teach.cdn.ireadabc.com/c8a7dd49a778b0b6dd509aac0ef437ff.mp3","rect":{"x":99.06,"y":0,"width":408.89,"height":230},"colorType":"0"},"hotZoneItemArr":[{"id":"1620920863432","index":0,"pic_url":"http://staging-teach.cdn.ireadabc.com/335dea1b83498b0c7c05be637dc13dad.jpeg","itemType":"text","fontScale":0.47421875,"imgScale":0.22391857506361323,"mapScale":0.47421875,"gIdx":"0","actionData_":{"type":"text","changeOption":[["fontColor","#FF0000"],["fontSize","100"]],"text":"This is a test"},"rect":{"width":251.66,"height":47.42,"x":6.6,"y":3}},{"id":"1620920877342","index":1,"itemType":"text","fontScale":0.47421875,"imgScale":1,"mapScale":0.47421875,"gIdx":"1","actionData_":{"type":"text","changeOption":[["fontColor","#0000FF"],["fontSize","100"]],"text":"you are so good","audio_url":"http://staging-teach.cdn.ireadabc.com/c8a7dd49a778b0b6dd509aac0ef437ff.mp3"},"rect":{"width":330.64,"height":47.42,"x":49.07,"y":68.65}},{"id":"1620922839187","index":2,"itemType":"text","fontScale":0.47421875,"imgScale":1,"mapScale":0.47421875,"gIdx":"0","actionData_":{"type":"text","changeOption":[["fontColor","#000000"],["fontSize","100"]],"text":"_______________"},"rect":{"width":327.86,"height":47.42,"x":50.46,"y":77.25}}]},{"bgItem":{"colorType":"0","url":"http://staging-teach.cdn.ireadabc.com/b90a006ba41723ec11970051e92f43e0.png","rect":{"x":222.44,"y":0,"width":903.11,"height":508}},"hotZoneItemArr":[{"id":"1621656703850","index":0,"itemType":"text","fontScale":1.053125,"imgScale":1,"mapScale":1.053125,"gIdx":"0","actionData_":{"type":"text","changeOption":[["fontColor","#0ff000"],["fontSize","45"]],"text":"I have someting to tell you","audio_url":"http://staging-teach.cdn.ireadabc.com/7df4cc83a6c76dc6f0a526d07e6f1987.mp3"},"rect":{"width":557.25,"height":47.39,"x":193.92,"y":24.3}},{"id":"1621656729516","index":1,"pic_url":"http://staging-teach.cdn.ireadabc.com/335dea1b83498b0c7c05be637dc13dad.jpeg","itemType":"pic","fontScale":1.053125,"imgScale":0.1679951320521704,"mapScale":1.053125,"gIdx":"2","rect":{"x":245.54,"y":161.8,"width":66.02,"height":134.4}},{"id":"1621656764791","index":2,"itemType":"text","fontScale":1.053125,"imgScale":1,"mapScale":1.053125,"gIdx":"1","actionData_":{"type":"text","changeOption":[["fontColor","#0000f0"],["fontSize","100"]],"text":"What?"},"rect":{"width":304.72,"height":105.31,"x":499.2,"y":165.34}}]}]'
const dataJson = ' [{"bgItem":{"url":"http://staging-teach.cdn.ireadabc.com/5716af983b610b43b13efbdefec93a51.png","bgAudioUrl":"http://staging-teach.cdn.ireadabc.com/303c4bbddbdbda72b2ac1997359f8aa1.mp3","rect":{"x":190,"y":0,"width":784,"height":441},"colorType":"1"},"hotZoneItemArr":[{"id":"1621330074613","index":0,"itemType":"text","fontScale":0.909375,"imgScale":1,"mapScale":0.909375,"gIdx":"0","actionData_":{"type":"text","changeOption":[["fontColor","000000"],["fontSize","50"]],"text":"I work____ this school.","audio_url":"http://staging-teach.cdn.ireadabc.com/c1aad7a9bc0ca31e97cf10abfc2bb8bf.mp3"},"rect":{"width":440.02,"height":45.47,"x":188.68,"y":102.46}},{"id":"1621330240433","index":1,"itemType":"text","fontScale":0.909375,"imgScale":1,"mapScale":0.909375,"gIdx":"1","actionData_":{"type":"text","changeOption":[["fontColor","d66a70"],["fontSize","50"]],"text":"in"},"rect":{"width":38.27,"height":45.47,"x":340.02,"y":101.38}},{"id":"1621331048944","index":2,"pic_url":"http://staging-teach.cdn.ireadabc.com/bb7f9a709e4d4d4173c5bdc9b95765d8.jpeg","itemType":"pic","fontScale":0.909375,"imgScale":0.4843462246777164,"mapScale":0.909375,"gIdx":"2","rect":{"x":-42.9,"y":24.38,"width":273.17,"height":263}}]},{"bgItem":{"url":"http://staging-teach.cdn.ireadabc.com/5716af983b610b43b13efbdefec93a51.png","rect":{"x":375,"y":0,"width":1456,"height":819},"colorType":"1"},"hotZoneItemArr":[{"id":"1621331260891","index":0,"pic_url":"http://staging-teach.cdn.ireadabc.com/4a98b713c3cad009e02394dde6449773.png","itemType":"pic","fontScale":1.7234375,"imgScale":0.82171581769437,"mapScale":1.7234375,"gIdx":"2","rect":{"x":380.5,"y":-2,"width":613,"height":613}},{"id":"1621331278633","index":1,"itemType":"text","fontScale":1.7234375,"imgScale":1,"mapScale":1.7234375,"gIdx":"0","actionData_":{"type":"text","changeOption":[["fontColor","#000000"],["fontSize","100"]],"text":"aaaaaaa"},"rect":{"width":709.22,"height":172.34,"x":363.39,"y":634.33}}]},{"bgItem":{"url":"http://staging-teach.cdn.ireadabc.com/5716af983b610b43b13efbdefec93a51.png","rect":{"x":375,"y":0,"width":1456,"height":819},"colorType":"1"},"hotZoneItemArr":[{"id":"1621331328218","index":0,"pic_url":"http://staging-teach.cdn.ireadabc.com/4601f56cba1a6c1178c111b2dd29225b.png","itemType":"pic","fontScale":1.7234375,"imgScale":1.4078125,"mapScale":1.7234375,"gIdx":"2","rect":{"x":262.8,"y":-4,"width":902.41,"height":901}},{"id":"1621331360035","index":1,"itemType":"text","fontScale":1.7234375,"imgScale":1,"mapScale":1.7234375,"gIdx":"0","actionData_":{"type":"text","changeOption":[["fontColor","#000000"],["fontSize","100"]],"text":"girl","audio_url":"http://staging-teach.cdn.ireadabc.com/b6a1ee625d8298a757e8d78bf50352ab.mp3"},"rect":{"width":257.42,"height":172.34,"x":572.29,"y":622.33}}]}]'
const data = JSON.parse(dataJson);
return data;
},
......
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