feat: 替换3d的lib,更改shelfId的获取方式

This commit is contained in:
wanganmao
2022-10-21 10:51:43 +08:00
parent 6d82e941e1
commit 4a873d5175
4 changed files with 6 additions and 11 deletions

View File

@@ -99,9 +99,6 @@ export default defineComponent({
surveyId() {
return this.config.scene;
},
shelfId() {
return this.config.shelf || this.scene.shelves[0].planetid;
},
scene() {
return this.config.scene_information;
},
@@ -205,7 +202,7 @@ export default defineComponent({
// question_index: this.question.question_index,
// question_type: this.question.question_type,
// planet_id: data[0].wareId,
// shelve_planet_id: this.shelfId,
// shelve_planet_id: data[0].shelfId,
// action_info: data,
// },
// }).catch((e) => console.error(e));

View File

@@ -76,9 +76,6 @@ export default defineComponent({
surveyId() {
return this.config.scene;
},
shelfId() {
return this.config.shelf || this.scene.shelves[0].planetid;
},
scene() {
return this.config.scene_information;
},
@@ -164,7 +161,7 @@ export default defineComponent({
// question_index: this.question.question_index,
// question_type: this.question.question_type,
// planet_id: data[0].wareId,
// shelve_planet_id: this.shelfId,
// shelve_planet_id: data[0].shelfId,
// action_info: data,
// },
// }).catch((e) => console.error(e));

File diff suppressed because one or more lines are too long

View File

@@ -18,7 +18,8 @@ export const scenes = [
{
"name": "货架1",
"planetid": "shelf1",
"id": "shelf1",
"url": "https://diaoyanxingqiu.oss-cn-zhangjiakou.aliyuncs.com/3d/shelves/shelves-v3-store/v3.5/shelf/shelf-ghost-1.glb",
"urlThumb": "https://diaoyanxingqiu.oss-cn-zhangjiakou.aliyuncs.com/3d/shelves/shelves-v3-store/v3.5/shelf/shelf-ghost-1.png",
"hideWhenSurvey": true,