fix
This commit is contained in:
@@ -75,7 +75,11 @@
|
||||
<div>{{ $t('DesignDetail.CurrentApparel') }}</div>
|
||||
<i class="fi fi-rr-edit" @click.stop="openCurrent(1)"></i>
|
||||
</div>
|
||||
<img :src="designItemDetail?.clothes?.[currentIndex]?.path" alt="" class="centent" @click="openCurrent(1)">
|
||||
<div class="centent_div" v-if="designItemDetail?.clothes?.[currentIndex]?.path" @click="openCurrent(1)">
|
||||
<img :src="designItemDetail?.clothes?.[currentIndex]?.path" alt="" class="" @click="openCurrent(1)">
|
||||
</div>
|
||||
<i v-else class="fi fi-rr-picture centent" @click="openCurrent(1)"></i>
|
||||
|
||||
</div>
|
||||
<div class="clothes_detail_item clothes_detail_item_print">
|
||||
<div class="clothes_item_header">
|
||||
@@ -685,6 +689,8 @@ export default defineComponent({
|
||||
item.clothesOpen = false
|
||||
})
|
||||
this.designItemDetail.clothes[index].clothesOpen = true
|
||||
console.log(this.designItemDetail);
|
||||
|
||||
},
|
||||
setClothesOpen(){
|
||||
this.designItemDetail.clothes.forEach((item:any)=>{
|
||||
@@ -692,33 +698,38 @@ export default defineComponent({
|
||||
})
|
||||
// console.log(designItemDetail);
|
||||
|
||||
// this.current = {
|
||||
// "id": '',
|
||||
// "type": "Bottoms",
|
||||
// "level1Type": null,
|
||||
// "path": "",
|
||||
// "minIOPath": "",
|
||||
// "color": {
|
||||
// "id": 1921,
|
||||
// "name": "",
|
||||
// "tcx": "#FFFFFF",
|
||||
// "r": 255,
|
||||
// "g": 255,
|
||||
// "b": 255,
|
||||
// "h": '',
|
||||
// "s": '',
|
||||
// "v": ''
|
||||
// },
|
||||
// "printObject": {
|
||||
// "ifSingle": null,
|
||||
// "prints": [
|
||||
// {}
|
||||
// ]
|
||||
// },
|
||||
// "layersObject": [
|
||||
// ]
|
||||
// }
|
||||
// this.currentIndex = 3
|
||||
let aa = {
|
||||
"id": '',
|
||||
"type": "",
|
||||
"level1Type": null,
|
||||
"path": "",
|
||||
"minIOPath": "",
|
||||
"color": {
|
||||
"id": 1921,
|
||||
"name": "",
|
||||
"tcx": "#FFFFFF",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"h": '',
|
||||
"s": '',
|
||||
"v": ''
|
||||
},
|
||||
"printObject": {
|
||||
"ifSingle": null,
|
||||
"prints": [
|
||||
{}
|
||||
]
|
||||
},
|
||||
"layersObject": [
|
||||
]
|
||||
}
|
||||
this.current = aa
|
||||
this.designOrder = true
|
||||
let DesignDetailAlter:any = this.$refs.DesignDetailAlter
|
||||
DesignDetailAlter.changePlace()
|
||||
// this.designItemDetail.clothes.push(aa)
|
||||
|
||||
},
|
||||
//元素替换
|
||||
clothesDetail(clothes:any, index:number){
|
||||
|
||||
Reference in New Issue
Block a user