调整history和3d

This commit is contained in:
X1627315083
2025-04-09 16:10:44 +08:00
parent e1eccba8a1
commit fd2e47e783
7 changed files with 46 additions and 39 deletions

View File

@@ -18,15 +18,15 @@
<div class="heard">
<div class="text">Technical sketch</div>
<div class="switch">
back
<a-switch v-model:checked="isFront" />
front
<a-switch v-model:checked="isFront" />
back
</div>
</div>
<div class="modelBox">
<div v-show="!imgOrThree" class="img">
<img v-show="isFront" :src="selectModel.threeDLayoutList?.[0]?.url" alt="">
<img v-show="!isFront" :src="selectModel.threeDLayoutList?.[1]?.url" alt="">
<img v-show="!isFront" :src="selectModel.threeDLayoutList?.[0]?.url" alt="">
<img v-show="isFront" :src="selectModel.threeDLayoutList?.[1]?.url" alt="">
</div>
<threeBox v-if="imgOrThree" ref="threeBox"></threeBox>
</div>
@@ -81,7 +81,7 @@ export default defineComponent({
const setSelectModel = (item:any)=>{
data.isShowMark = true
const value = {
threeDSimpleId:item.id,
threeDSimpleId:item.threeDSimpleId,
}
Https.axiosPost(Https.httpUrls.getLayoutDetail,{},{params:value}).then((res:any)=>{
data.selectModel = res
@@ -244,8 +244,10 @@ export default defineComponent({
align-items: center;
> .modelBox{
width: 100%;
height: 20rem;
height: 75rem;
// height: 20rem;
// height: 75rem;
flex: 1;
overflow: hidden;
margin: auto;
>.img{
width: 100%;