This commit is contained in:
X1627315083
2023-12-11 15:12:53 +08:00
parent 3a4d122af0
commit 039fe738e4
5 changed files with 44 additions and 30 deletions

View File

@@ -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){

View File

@@ -288,6 +288,7 @@ export default defineComponent({
}),
upload: {
isPin: 0,
gender:'',
level1Type: prop.msg,
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
},

View File

@@ -227,6 +227,7 @@ export default defineComponent({
}),
upload: {
isPin: 0,
gender:'',
level1Type: "Moodboard",
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
},

View File

@@ -457,7 +457,7 @@ export default defineComponent({
);
this.store.commit("setSketchboardFile", fileList);
} else if (file.status === "error") {
} else if (data.errCode === -1) {
let index = -1;
this.fileList.forEach((ele: any, index1: any) => {
if (file.uid === ele.uid) {
@@ -556,7 +556,7 @@ export default defineComponent({
},
deleteFile(item: any) {
if(item.type_.type1 == 'generate' || item.type_.type1 == 'material'){
if(item?.type_?.type1 == 'generate' || item?.type_?.type1 == 'material'){
item.jsContent1 = this.t('uploadFile.jsContent1',{maxImg:20})
this.store.commit("addGenerateMaterialFils", item);
}else{