Commit aa11e4b0 authored by Tt's avatar Tt

配置添加

parent 6097235f
...@@ -11,7 +11,7 @@ import { ComponentBase } from './ComponentBase'; ...@@ -11,7 +11,7 @@ import { ComponentBase } from './ComponentBase';
export class FormComponent extends ComponentBase implements OnInit, OnChanges, OnDestroy { export class FormComponent extends ComponentBase implements OnInit, OnChanges, OnDestroy {
// 储存数据用 // 储存数据用
saveKey = "ssapp2501"; saveKey = "ssiwb2504";
// 储存对象 // 储存对象
item: any = { item: any = {
score: 0, score: 0,
......
...@@ -44,7 +44,7 @@ import TWEEN from "@tweenjs/tween.js"; ...@@ -44,7 +44,7 @@ import TWEEN from "@tweenjs/tween.js";
// ] // ]
// } // }
let defaultFormData: any = { "title": "123", "audio_title": "", "type": 0, "dataType": { "single": { "words": "ab", "wordArr": [{ "word": "a", "type": "red" }, { "word": "b", "type": "normal" }] }, "single_audio": "http://staging-teach.cdn.ireadabc.com/736c616e8b66a3ae03c8e8636ca46f0f.mp3", "single_show": true, "character_00": { "words": "gg", "wordArr": [{ "word": "g", "type": "normal" }, { "word": "g", "type": "red" }] }, "character_11": { "words": "abcd", "wordArr": [{ "word": "a", "type": "normal" }, { "word": "b", "type": "red" }, { "word": "c", "type": "normal" }, { "word": "d", "type": "red" }] }, "character_22": { "words": "ddsa", "wordArr": [{ "word": "d", "type": "normal" }, { "word": "d", "type": "red" }, { "word": "s", "type": "red" }, { "word": "a", "type": "normal" }] }, "character_33": { "words": "ddsc", "wordArr": [{ "word": "d", "type": "normal" }, { "word": "d", "type": "normal" }, { "word": "s", "type": "red" }, { "word": "c", "type": "red" }] }, "character_44": { "words": "dcxz", "wordArr": [{ "word": "d", "type": "normal" }, { "word": "c", "type": "red" }, { "word": "x", "type": "red" }, { "word": "z", "type": "normal" }] }, "character_0": { "words": "bb", "wordArr": [{ "word": "b", "type": "red" }, { "word": "b", "type": "normal" }] }, "character_1": { "words": "cc", "wordArr": [{ "word": "c", "type": "normal" }, { "word": "c", "type": "red" }] }, "character_2": { "words": "dd", "wordArr": [{ "word": "d", "type": "normal" }, { "word": "d", "type": "normal" }] }, "character_3": { "words": "ee", "wordArr": [{ "word": "e", "type": "red" }, { "word": "e", "type": "normal" }] }, "character_4": { "words": "ff", "wordArr": [{ "word": "f", "type": "normal" }, { "word": "f", "type": "red" }] }, "character_0_show": true, "character_1_show": false, "character_2_show": true, "character_3_show": false, "character_4_show": true, "character_00_show": false, "character_11_show": true, "character_22_show": false, "character_33_show": true, "character_44_show": true, "character_0_audio": "http://staging-teach.cdn.ireadabc.com/89060c9eddd5f0f67908cce77ee74f94.mp3", "character_1_audio": "http://staging-teach.cdn.ireadabc.com/3c070a33d021725219ab7eec9e60cb39.mp3", "character_00_audio": "http://staging-teach.cdn.ireadabc.com/b75df34ef55bd1c6e3a799f1dac87fec.mp3", "character_11_audio": "http://staging-teach.cdn.ireadabc.com/ed1a2dc4bfa7d35041ca94d1badde8ed.mp3" } } let defaultFormData: any = {"score":0,"title":"","questionText":"","questionType":"read","questionTextAudio":"","bgAudio":"","questions":[{"type":"txt","audio":"http://staging-teach.cdn.ireadabc.com/736c616e8b66a3ae03c8e8636ca46f0f.mp3","text":"","image":"http://staging-teach.cdn.ireadabc.com/bde25b1b2a7fdf976f17ae80b6a20a25.png","time":null,"duration":"","audioName":"","imgSize":"big"},{"type":"img","imgSize":"big","audio":"http://staging-teach.cdn.ireadabc.com/89060c9eddd5f0f67908cce77ee74f94.mp3","image":"http://staging-teach.cdn.ireadabc.com/761e1b17e16fa4674db9ad5344676bb9.png","time":null,"audioName":""},{"type":"img","imgSize":"big","audio":"http://staging-teach.cdn.ireadabc.com/0d11dcd7138f61dbead3dfaa5eb84b47.mp3","image":"http://staging-teach.cdn.ireadabc.com/f7a3455a80e34c8f0fe9a190381181f4.png","time":null,"audioName":""},{"type":"img","imgSize":"big","audio":"http://staging-teach.cdn.ireadabc.com/ed1a2dc4bfa7d35041ca94d1badde8ed.mp3","image":"http://staging-teach.cdn.ireadabc.com/7b470ba3fcee2d4a97bf2ffdf5796109.png","time":null,"audioName":""},{"type":"img","imgSize":"big","audio":"http://staging-teach.cdn.ireadabc.com/0d11dcd7138f61dbead3dfaa5eb84b47.mp3","image":"http://staging-teach.cdn.ireadabc.com/1438d4609714ad1968f546db51067c9c.png","time":null,"audioName":""},{"type":"img","imgSize":"big","audio":"http://staging-teach.cdn.ireadabc.com/ed1a2dc4bfa7d35041ca94d1badde8ed.mp3","image":"http://staging-teach.cdn.ireadabc.com/f372eace088da338fa10f65415890c70.png","time":null,"audioName":""},{"type":"img","imgSize":"big","audio":"http://staging-teach.cdn.ireadabc.com/78ba347c18b181fd4550d30bb14c90c5.mp3","image":"http://staging-teach.cdn.ireadabc.com/63a00af0b7a1d4ad38bbfd7a6363348d.png","time":null,"audioName":""},{"type":"img","imgSize":"big","audio":"http://staging-teach.cdn.ireadabc.com/ffdb9f038d5549c9deba6d3f92371e61.mp3","image":"http://staging-teach.cdn.ireadabc.com/ee85bdb5170fd9e54e174a7b003b9634.png","time":null,"audioName":""},{"type":"img","imgSize":"big","audio":"http://staging-teach.cdn.ireadabc.com/ed1a2dc4bfa7d35041ca94d1badde8ed.mp3","image":"http://staging-teach.cdn.ireadabc.com/2c94dad69f2f031bf910673c0a775651.png","time":null,"audioName":""},{"type":"img","imgSize":"big","audio":"http://staging-teach.cdn.ireadabc.com/5af2246994a28e28e155e71bb8175b85.mp3","image":"http://staging-teach.cdn.ireadabc.com/5ae211fddfdede20852c41c07f69b2a1.png","time":null,"audioName":""}]}
/** /**
* 将默认表单数据转换为目标格式 * 将默认表单数据转换为目标格式
* @param formData 原始表单数据 * @param formData 原始表单数据
......
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