fix: 编辑器联调

This commit is contained in:
wanganmao
2022-12-19 20:11:36 +08:00
parent 604aef4cee
commit 8080d3b660
7 changed files with 105 additions and 38 deletions

View File

@@ -49,10 +49,15 @@ const factorys = [
{
type: THREE_D_TYPE.PANORAMA,
build(data){
var url = "";
try{
url = data.fileList[0].response.url;
}
catch(e){ }
return {
...data,
data: {
"url": "",
"url": url,
"urlSmall": "",
"urlThumb": "",
"urlDepth": "",
@@ -74,6 +79,11 @@ const factorys = [
{
type: THREE_D_TYPE.SHELF,
build(data){
var url = "";
try{
url = data.fileList[0].response.url;
}
catch(e){ }
//#region 返回值
return {
...data,
@@ -81,7 +91,7 @@ const factorys = [
"name": "货架1",
"planetid": "shelf1",
"id": "shelf1",
"url": "",
"url": url,
"urlThumb": "",
"hideWhenSurvey": true,
"cells": [],
@@ -142,21 +152,26 @@ const factorys = [
{
type: THREE_D_TYPE.WARE,
build(data){
var url = "";
try{
url = data.fileList[0].response.url;
}
catch(e){ }
return {
...data,
"planetid": "ware1-1",
"name": "伊利",
"surveyWare": {
data: {
"planetid": "ware1-1",
"name": "伊利",
"id": "ware1-1",
"type": 1,
"commodity": {
"url": ""
"url": url
},
"texture": null,
"urlThumb": ""
"urlThumb": "",
"surveyLogo": "",
"surveyPrice": 190
},
"surveyLogo": "",
"surveyPrice": 190
};
}
},