This commit is contained in:
X1627315083
2024-01-10 17:40:11 +08:00
parent c43c73e270
commit d1891feb45

View File

@@ -418,6 +418,8 @@ export default defineComponent({
} }
}) })
this.currentIndex = 0 this.currentIndex = 0
await this.setImgSize()
this.store.commit('setDesignItemDetail',rv) this.store.commit('setDesignItemDetail',rv)
this.removeRevocation() this.removeRevocation()
this.setRevocation(rv,'') this.setRevocation(rv,'')
@@ -436,7 +438,7 @@ export default defineComponent({
this.designDetailShow = true this.designDetailShow = true
this.loadingShow = false this.loadingShow = false
if(this.driver__.driver){ if(this.driver__.driver){
nextTick().then(()=>{ nextTick().then(()=>{
// driverObj__.moveNext(); // driverObj__.moveNext();
driverObj__.moveTo(41); driverObj__.moveTo(41);
}) })
@@ -471,6 +473,7 @@ export default defineComponent({
this.frontBack.body = item this.frontBack.body = item
} }
}); });
console.log(2);
let ratio:any = await this?.setPostition(body?.layersObject?.[0]?.imageUrl) let ratio:any = await this?.setPostition(body?.layersObject?.[0]?.imageUrl)
if(Number.isNaN(ratio) || ratio == 0){ if(Number.isNaN(ratio) || ratio == 0){
this.setImgSize() this.setImgSize()
@@ -523,6 +526,7 @@ export default defineComponent({
back:back, back:back,
body:body, body:body,
} }
}, },
setDesignCoverage(str:string){ setDesignCoverage(str:string){
let {design,index,collectionList} = this.parentData let {design,index,collectionList} = this.parentData