zjs_project 1 年之前
父节点
当前提交
ad464003bd

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

@@ -31,7 +31,7 @@
 			<!-- v-if="aiFlag && aiImagesList.length>0 && showAIImage" -->
             <div class="load-mask-top"></div>
 			<div class="load-mask"></div>
-			<div class="loading_more">
+			<div class="loading_more" v-if="noMore">
 				<template v-if="!startCreate">
 					<img class="leftSwiperImg"
 						src="https://dm.static2.elab-plus.com/miniProgram/leftSwiperImg.png"

+ 23 - 2
src/pages/webgl_rxdz_test1_env/webgl_rxdz_test1_env.vue

@@ -60,6 +60,7 @@
 				checked:false,	//是否喜欢
 				subDataList:[],	//提交的数据对象
 				queryObj:null,
+                noMore:false,
 			}
 		},
 		/**
@@ -85,6 +86,12 @@
 				console.log("***swiperChangeImg***", e);
 				this.currentIndex = e.detail ? e.detail.current : e;
 				this.checked = this.aiImagesList[this.currentIndex].checked;
+                //不存在提示词,则没有
+                if(!this.options[this.optionIndex].remark || !this.options[this.optionIndex].tips){
+                    this.noMore = false;
+                }else{
+                    this.noMore = true;
+                }
 				// this.optionIndex = this.currentIndex;
 				// this.tabData[0].checkedIndex = this.currentIndex;
 			},
@@ -110,7 +117,9 @@
 					tabIndex:this.tabIndex,
 					optionIndex:this.optionIndex,
 				}
-				this.startServer(obj);//继续生成下一张
+                if(obj.prompt && obj.negativePrompt){//有提示词
+                    this.startServer(obj);//继续生成下一张
+                }
 			},
 			//点赞喜欢
 			changeAIImg() {
@@ -195,7 +204,14 @@
 				if(this.optionIndex>-1){
 					this.aiImagesList = this.options[this.optionIndex].hardboundEffect;
 					this.checked = this.aiImagesList[this.currentIndex].checked;
-				}
+                    if(!this.options[this.optionIndex].remark || !this.options[this.optionIndex].tips){
+                        this.noMore = false;
+                    }else{
+                        this.noMore = true;
+                    }
+				}else{
+                    this.noMore = false;
+                }
 				// let param = {
 				// 	type: 'CLK', //埋点类型
 				// 	clkId: 'clk_2cmina_24012601', //点击ID
@@ -222,6 +238,11 @@
 				this.$refs.carousel.setActiveItem(0); //切换到第一张
 				this.checked = this.aiImagesList[this.currentIndex].checked;
 				console.warn("***changeOption***", this.tabData,this.AIImg,this.subDataList)
+                if(!this.options[this.optionIndex].remark || !this.options[this.optionIndex].tips){
+                    this.noMore = false;
+                }else{
+                    this.noMore = true;
+                }
 				// let param = {
 				// 	type: 'CLK', //埋点类型
 				// 	clkId: 'clk_2cmina_24012602', //点击ID