Parcourir la source

调整webgl页面AI生成图模型参数

zjs_project il y a 1 an
Parent
commit
b36cce3419

+ 4 - 4
src/mixins/createImgHandle.js

@@ -47,9 +47,9 @@ export default {
 				return '';
 			}
 			return new Promise(async (resolve, reject) => {
-                parmas.keyword = "zhiqite";
-                parmas.model = "controlnet";
 				let _data = JSON.parse(JSON.stringify(parmas))
+                _data.keyword = "zhiqite";
+                _data.model = "controlnet";
 				delete _data.webhook;
 				let res = await requestConfig("img2img_local", _data);
 				if (res.success) {
@@ -122,8 +122,8 @@ export default {
 				prompt: prompt,
 				"batchSize": 1,
 				brandId: $config.brandId,
-				height: 1,
-				width: 1,
+				height: 1024,
+				width: 1024,
 				"moduleType": "AI_Biography",
 				"steps": 20,
 				"sampler": "DDIM",

+ 1 - 0
src/pages/webgl_rxdz_test1_env/webgl_rxdz_test1_env.html

@@ -23,6 +23,7 @@
 				<div class="indicator-item" :class="{'active': currentIndex == idx}" v-for="(item, idx) in aiImagesList" :key="idx"></div>
 			</div>
 			<!-- v-if="aiFlag && aiImagesList.length>0 && showAIImage" -->
+            <div class="load-mask-top"></div>
 			<div class="load-mask"></div>
 			<div class="loading_more">
 				<template v-if="!startCreate">

+ 10 - 1
src/pages/webgl_rxdz_test1_env/webgl_rxdz_test1_env.scss

@@ -31,11 +31,12 @@ page {
 		.master-pic-item{
 			width: 100%;
 			height: 100%;
+            background: linear-gradient(180deg, #00000000 0%, #00000066 100%);
 			.master-pic-img{
 			    width: 100%;
 			    height: 880px;
 			    display: block;
-				object-fit: cover;
+				object-fit: contain;
 			}
 		}
 	}
@@ -231,6 +232,14 @@ page {
 		}
 	}
 }
+.load-mask-top{
+    position: absolute;
+    width: 100%;
+    height: 158px;
+    z-index: 0;
+    background: linear-gradient(0deg, #00000000 0%, #00000066 100%);
+    top: 0px;
+}
 .load-mask{
 	position: absolute;
 	width: 100%;

+ 2 - 2
src/pages/webgl_rxdz_text_customize/webgl_rxdz_text_customize.html

@@ -145,14 +145,14 @@
             </div>
 		</div>
         <!-- 作者本人-已经支付 -->
-        <div class="bottom-view rows justify-center" v-else-if="payed==1">
+        <!-- <div class="bottom-view rows justify-center" v-else-if="payed==1">
         	<div class="bottom-btn btn-qw rows justify-center" style="margin-right: 0px;width: 143px;color: #ed9e5b;background: #fff;margin-right: 30px;" @click="toIndex">
         		{{landDataId?'返回':'返回项目首页'}}
         	</div>
             <div class="bottom-btn btn-share rows justify-center" style="width: 124px;" @click="toCustomized">
                 设计我的梦想家
             </div>
-        </div>
+        </div> -->
 		<!-- 高斯背景图 -->
 		<div class="swiper-img-gs-mh"  >
 			<img class="img" mode="aspectFill" src="https://dm.static.elab-plus.com/miniProgram/test-bg.jpg" />