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