Browse Source

补充注释&去除无关代码&上传图片改为地址上传

zjs_project 1 year ago
parent
commit
593b24511f

+ 4 - 3
src/components/newBottomCom/viewMask/viewMask.vue

@@ -511,8 +511,8 @@
 				if(!this.styleList || this.curStyleIndex < 0 || !this.styleList[this.curStyleIndex].imgUrl){
 					return false
 				}
-				let imgUrl = this.styleList[this.curStyleIndex].imgUrl+"?imageMogr2/auto-orient/format/webp/blur/1x0/quality/75";
-				let base64Url = await this.image2Base64(imgUrl);
+				let imgUrl = this.styleList[this.curStyleIndex].imgUrl;
+				// let base64Url = await this.image2Base64(imgUrl);
 				let data = {
 					"configType": "AI_Biography",
 					"keyvalue": "ControlNet_IpAdapter",
@@ -524,7 +524,8 @@
 					"number2": -1,
 					"number3": 0,
 					"number4": 1,
-					"imageBase64": base64Url
+					// "imageBase64": base64Url,
+					"imageUrl":imgUrl,
 				}
 				let res1 = await requestConfig("AIuploadImgControlNet", data);
 				if(!res1 || !res1.single){

+ 2 - 6
src/pages/webgl_rxdz/webgl_rxdz.vue

@@ -1541,7 +1541,7 @@
 			},
 			//户型大类发生了变更
 			curHouseTypeChange(item){
-				this.curHouseType = item.spaceStructure;//当前选中的户型类型
+				this.curHouseType = item.spaceStructure;//当前选中的户型类型-传递给子组件触发具体的户型数据选取
 				this.curHouseName = item.spaceName;//当前选中的户型类型名称
 				//获取当前户型大类下的所有户型信息-用于用户提交
 				this.curLayoutStruct = this.houseList.find(it=>it.spaceStructure == this.curHouseType).layoutStruct;
@@ -1588,7 +1588,6 @@
 					houseId:this.houseId,
 				}
 				const res = await requestConfig('getHouseTypeSpaceDetailsV2', parmas, true);
-				console.log("户型详情数据:", res)
 				if (res.success && res.list) {
 					let list = res.list || [];
 					list && list.forEach((single,index)=>{
@@ -1606,11 +1605,8 @@
 							}
 						})
 					})
-					console.log("户型详情列表: ", list);
+					console.log("户型详情列表-接口原始数据: ", list);
 					this.houseList = list;//数据会同步到组件中-进而反馈更新页面数据
-					this.curHouseObj = this.houseList[0].layoutStruct[0];
-					// 加载户型
-					// this.loadSpace();
 				}
 			},