瀏覽代碼

empty youhua

future 2 年之前
父節點
當前提交
c73802acd7
共有 2 個文件被更改,包括 8 次插入2 次删除
  1. 4 1
      pages/AI-draw/AI-draw.vue
  2. 4 1
      pages/AI_chat/AI_chat.vue

+ 4 - 1
pages/AI-draw/AI-draw.vue

@@ -2,7 +2,7 @@
 	<view class="container" :style="{'top': viewTop + 'px', 'height': viewHeight + 'px'}">
 		<view class="content">
 			    <scroll-view scroll-y="true" :show-scrollbar="false" :scroll-top="scroll_top" style="position: fixed; top: 70px;width: 80vw; bottom: 210upx;">
-					<view class="scroll-view-text">
+					<view v-if="recvMsgQueue.length > 0" class="scroll-view-text">
 						<view  style="margin-left: 13%; display: flex; align-items: center;justify-content: center;width: 100%;  user-select: text;" v-for="(msgIndex,index) in recvMsgQueue " :key="index">
 							<!-- ai 的消息结构体 -->
 							<view v-if="isAItell(recvMsgQueue[index].who_msg)"  style="width: 100%;height: 100%;margin-bottom: 1%;">
@@ -71,6 +71,9 @@
 							
 						</view>
 					</view>
+					<view v-else style="display:flex; width: 100%; height: 100%; color: #ffffff; justify-content: center; align-items: center;">
+						<text style="font-size: 20px; font-weight: 400; text-align: center; line-height: 60px;">探索AI世界的奥秘,释放无限的创造潜能。\n开始您的创作吧!</text>
+					</view>
 			</scroll-view>
 			
 			<view class="inputbox" style="display: flex;width: 70vw;height: 90upx;position: fixed;bottom:80upx;">

+ 4 - 1
pages/AI_chat/AI_chat.vue

@@ -3,7 +3,7 @@
 		<view class="content">
 			<!-- <scroll-view scroll-y="true" :show-scrollbar="false" :scroll-top="scroll_top" style="top: 0%;width: 80vw; height:65%;position: absolute;"> -->
 			<scroll-view scroll-y="true" :show-scrollbar="false" :scroll-top="scroll_top" style="position: fixed; top: 70px;width: 80vw; bottom: 210upx;">
-					<view class="scroll-view-text">
+					<view v-if="recvMsgQueue.length > 0" class="scroll-view-text">
 						<view  style="margin-left: 13%; display: flex; align-items: center;justify-content: center;width: 100%;  user-select: text;" v-for="(msgIndex,index) in recvMsgQueue ">
 							<!-- ai 的消息结构体 -->
 							<view v-if="isAItell(recvMsgQueue[index].who_msg)"  style="width: 100%;height: 100%;margin-bottom: 1%;">
@@ -49,6 +49,9 @@
 							
 						</view>
 					</view>
+					<view v-else style="display:flex; width: 100%; height: 100%; color: #ffffff; justify-content: center; align-items: center;">
+						<text style="font-size: 20px; font-weight: 400; text-align: center; line-height: 60px;">探索AI世界的奥秘,释放无限的创造潜能。\n开始您的创作吧!</text>
+					</view>
 			</scroll-view>
 			
 			<view style="display: flex;width: 70vw;height: 90upx;position: fixed;bottom:80upx;">