diff --git a/src/components/market/Herodialog.vue b/src/components/market/Herodialog.vue index e733cc5..d79acd6 100644 --- a/src/components/market/Herodialog.vue +++ b/src/components/market/Herodialog.vue @@ -351,6 +351,17 @@ export default { visible: this.dialogVisible, loadingInstance: null, chainManager: new ChainManager(), + infoList: [ + { id: 1, val: 40 }, + { id: 2, val: 50 }, + { id: 3, val: 60 }, + ], + typeName: { 1: "HOBO" , 2: "HODE" , 3: "HOCD" }, + info: {}, + imge:[ + 'https://www.baidu.com', + 'https://www.baidu.com', + 'https://www.baidu.com',] }; }, watch: { @@ -358,6 +369,31 @@ export default { this.visible = val; }, }, + created(){ + // console.log( this.infoList,'this.infoList'); + // let list= this.infoList.map((i) =>{ + // + // console.log(list) + // }), +// const list = this.infoList.map((i)=>{ +// this.info[this.typeName[i.id]] = i.val +// }) +// console.log(this.info,'list') +// let newArr = new Array; +// for (var key in this.info) { +// var temp = {}; +// if (this.info[key] != "") { +// temp.name = key; +// temp.val = this.info[key]; +// newArr.push(temp); +// } +// } +// this.newArr.map((item,i)=>{ +// i.imgeSrc =this.imge[item] +// }) +// console.log(newArr,'newArr') + // console.log(Object.entries(this.info),'info') + }, methods: { closeMyself(hide) { this.$emit("on-close", hide); diff --git a/src/components/market/TheSellDialog.vue b/src/components/market/TheSellDialog.vue index ea34e3b..69ac28a 100644 --- a/src/components/market/TheSellDialog.vue +++ b/src/components/market/TheSellDialog.vue @@ -1,5 +1,5 @@