Commit 1ed900a9 authored by Tt's avatar Tt

游戏后台配置完成

parent 4973c0b8
This diff is collapsed.
......@@ -68,9 +68,9 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
classItem() {
function AniAssets() {
this.ske = "";
this.tex = "";
this.png = "";
this.ske = {};
this.tex = {};
this.png = {};
this.setData = function (obj) {
this.ske = obj.ske;
this.tex = obj.tex;
......@@ -83,7 +83,6 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
this.bgImg = "";
this.wordAudio = "";
this.imgAni = new AniAssets();
this.wordAni = new AniAssets();
}
return new Item();
......@@ -103,21 +102,14 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
}
cardItemData() {
return {
// cardId: "",
// title: "",
// pic_url: "",
// audio_url: "",
};
return this.classItem()
}
getDefaultPicArr() {
let arr = [this.classItem(), this.classItem(), this.classItem(), this.classItem()]
let arr = [this.classItem()]
return arr;
}
initData() {
......@@ -129,12 +121,12 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
}
onImageUploadSuccessByItem(e, item) {
item.pic_url = e.url;
item.bgImg = e.url;
this.save();
}
onAudioUploadSuccessByItem(e, item) {
item.audio_url = e.url;
item.wordAudio = e.url;
this.save();
}
......
This diff is collapsed.
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