Commit 531fc82d authored by Tt's avatar Tt

修改需求

parent b9237bac
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "e187dccb-ea0a-45de-be95-53c50683cd19", "uuid": "e187dccb-ea0a-45de-be95-53c50683cd19",
"downloadMode": 0, "downloadMode": 0,
"duration": 1.188, "duration": 1.708286,
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
...@@ -13,13 +13,17 @@ class GameManager { ...@@ -13,13 +13,17 @@ class GameManager {
this._list = []; this._list = [];
this._stage = 0;//关卡 this._stage = 0;//关卡
this._state = 0;//状态 this._state = 0;//状态
this._cat = {};
this._tryagain = {};
} }
init() { init() {
console.log(`init`); console.log(`init`);
} }
parseData(data) { parseData(data) {
console.log(data); console.log(data);
let arr = data.contentObj.picArr; this._cat = data.contentObj.picArr.cat;
this._tryagain = data.contentObj.picArr.tryagain;
let arr = data.contentObj.picArr.list;
for (let i = 0; i < arr.length; i++) { for (let i = 0; i < arr.length; i++) {
let ar = arr[i]; let ar = arr[i];
let obj = {}; let obj = {};
...@@ -33,6 +37,12 @@ class GameManager { ...@@ -33,6 +37,12 @@ class GameManager {
} }
console.log(this._list);//原始数据转为数组 console.log(this._list);//原始数据转为数组
} }
get cat() {
return this._cat;
}
get tryagain() {
return this._tryagain;
}
setState(num) { setState(num) {
this._state = num; this._state = num;
} }
......
...@@ -3,7 +3,10 @@ export const defaultData = { ...@@ -3,7 +3,10 @@ export const defaultData = {
{ {
"picArr": { "picArr": {
"cat": { "cat": {
"start": "http://staging-teach.cdn.ireadabc.com/c3db5ac421ef039cf540edfa5116c831.mp3", "record": "http://staging-teach.cdn.ireadabc.com/2db9fa7c28a11fdbcecfa6a5b5e62319.mp3", "wait": "http://staging-teach.cdn.ireadabc.com/aaeb274c49f400c26b05583d481aca09.mp3", "finish": "http://staging-teach.cdn.ireadabc.com/f1ce89b2162d82214369265e47d3dda3.mp3" "start": "http://staging-teach.cdn.ireadabc.com/c3db5ac421ef039cf540edfa5116c831.mp3",
"record": "http://staging-teach.cdn.ireadabc.com/2db9fa7c28a11fdbcecfa6a5b5e62319.mp3",
"wait": "http://staging-teach.cdn.ireadabc.com/aaeb274c49f400c26b05583d481aca09.mp3",
"finish": "http://staging-teach.cdn.ireadabc.com/f1ce89b2162d82214369265e47d3dda3.mp3"
}, },
"tryagain": { "tryagain": {
"one": "http://staging-teach.cdn.ireadabc.com/bdc09d9eb89b73e67357b502ae2158dd.mp3", "two": "http://staging-teach.cdn.ireadabc.com/aaeb274c49f400c26b05583d481aca09.mp3", "three": "http://staging-teach.cdn.ireadabc.com/301ec5c708d22928ccf2162215f429fe.mp3" "one": "http://staging-teach.cdn.ireadabc.com/bdc09d9eb89b73e67357b502ae2158dd.mp3", "two": "http://staging-teach.cdn.ireadabc.com/aaeb274c49f400c26b05583d481aca09.mp3", "three": "http://staging-teach.cdn.ireadabc.com/301ec5c708d22928ccf2162215f429fe.mp3"
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
"premultiplyAlpha": false, "premultiplyAlpha": false,
"genMipmaps": false, "genMipmaps": false,
"packable": true, "packable": true,
"width": 244, "width": 176,
"height": 232, "height": 206,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"btn_replay": { "btn_replay": {
...@@ -22,10 +22,10 @@ ...@@ -22,10 +22,10 @@
"offsetY": 0, "offsetY": 0,
"trimX": 0, "trimX": 0,
"trimY": 0, "trimY": 0,
"width": 244, "width": 176,
"height": 232, "height": 206,
"rawWidth": 244, "rawWidth": 176,
"rawHeight": 232, "rawHeight": 206,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
......
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