fix: 商品视角锁定
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
:surveyId="surveyId"
|
||||
:defaultWare="defaultWare"
|
||||
:isLocked="!!config.is_initialize"
|
||||
:freezeRotY="!!config.is_default_perspective"
|
||||
@onBehaviorFlush="onBehaviorFlush"
|
||||
/>
|
||||
<div :class="isMobile?'mobile':'pc'">
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
:surveyId="surveyId"
|
||||
:defaultWare="defaultWare"
|
||||
:isLocked="!!config.is_initialize"
|
||||
:freezeRotY="!!config.is_default_perspective"
|
||||
@onLoadingCompletion="onLoadingCompletion"
|
||||
@onFromSceneHoldToShelf="onFromSceneHoldToShelf"
|
||||
@onBehaviorFlush="onBehaviorFlush"
|
||||
|
||||
@@ -104,6 +104,14 @@
|
||||
锁定初始位置
|
||||
</ConfigCheckBox>
|
||||
</div>
|
||||
<div class="config-item">
|
||||
<ConfigCheckBox
|
||||
v-model:value="configTemp.is_default_perspective"
|
||||
@changeValue="onUpdate"
|
||||
>
|
||||
固定默认视角
|
||||
</ConfigCheckBox>
|
||||
</div>
|
||||
<div
|
||||
class="config-item"
|
||||
v-if="
|
||||
@@ -211,6 +219,7 @@
|
||||
:sceneAction="sceneViewer.sceneAction"
|
||||
:defaultWare="ware"
|
||||
:isLocked="!!configTemp.is_initialize"
|
||||
:freezeRotY="!!configTemp.is_default_perspective"
|
||||
@onLoadingCompletion="onLoadingCompletion"
|
||||
@onFromSceneHoldToShelf="onFromSceneHoldToShelf"
|
||||
/>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
var target = null;
|
||||
|
||||
export default {
|
||||
props: ["surveyId", "shopData", "page", "sceneAction", "elCart", "defaultWare", "isLocked", "hidden"],
|
||||
props: ["surveyId", "shopData", "page", "sceneAction", "elCart", "defaultWare", "isLocked", "freezeRotY", "hidden"],
|
||||
|
||||
data(){
|
||||
return {
|
||||
@@ -29,6 +29,7 @@ export default {
|
||||
elCart: this.elCart,
|
||||
defaultWare: this.defaultWare,
|
||||
isLocked: this.isLocked,
|
||||
freezeRotY: this.freezeRotY,
|
||||
}
|
||||
}), '*');
|
||||
return;
|
||||
@@ -96,6 +97,7 @@ export default {
|
||||
data: {
|
||||
defaultWare: this.defaultWare || null,
|
||||
isLocked: this.isLocked,
|
||||
freezeRotY: this.freezeRotY,
|
||||
page: newVal,
|
||||
}
|
||||
}), '*');
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
import { SurveyViewer } from "@/views/planetDesign/SceneSurveyViewerPage/shelves.module.js";
|
||||
|
||||
export default {
|
||||
props: ["surveyId", "shopData", "page", "sceneAction", "elCart", "defaultWare", "isLocked"],
|
||||
props: ["surveyId", "shopData", "page", "sceneAction", "elCart", "defaultWare", "isLocked", "freezeRotY"],
|
||||
|
||||
mounted() {
|
||||
this.$nextTick(() => this.tryInitView());
|
||||
@@ -59,6 +59,7 @@ export default {
|
||||
wareId: this.defaultWare?.planetid,
|
||||
keepHold: this.isLocked,
|
||||
frostFarScene: this.isLocked,
|
||||
freezeRotY: this.freezeRotY ? "0" : undefined,
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ import { SurveyViewer } from "./shelves.module";
|
||||
import { debounce } from 'lodash-es';
|
||||
|
||||
export default {
|
||||
// props: ["surveyId", "shopData", "page", "sceneAction", "elCart", "defaultWare", "isLocked"],
|
||||
// props: ["surveyId", "shopData", "page", "sceneAction", "elCart", "defaultWare", "isLocked", "freezeRotY"],
|
||||
|
||||
data(){
|
||||
return {
|
||||
@@ -23,7 +23,9 @@ export default {
|
||||
sceneAction: null,
|
||||
elCart: null,
|
||||
defaultWare: null,
|
||||
|
||||
isLocked: null,
|
||||
freezeRotY: false,
|
||||
|
||||
spinning: true,
|
||||
|
||||
@@ -133,6 +135,7 @@ export default {
|
||||
wareId: this.defaultWare?.planetid,
|
||||
keepHold: this.isLocked,
|
||||
frostFarScene: this.isLocked,
|
||||
freezeRotY: this.freezeRotY ? "0" : undefined,
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user