Browse Source

小优化

future 2 years ago
parent
commit
dfb2bc7d42

+ 19 - 7
pages/AI-draw/AI-draw.vue

@@ -63,7 +63,7 @@
 					</view>
 			</scroll-view>
 			
-			<view class="inputbox" style="display: flex;width: 70vw;height: 90upx;position: absolute;bottom:500upx;">
+			<view class="inputbox" style="display: flex;width: 70vw;height: 90upx;position: absolute;bottom:250upx;">
 				<view style="display: flex;align-items: center;justify-content: center;width: 5%;position: relative;">
 					<image @click="onclickchooseImg()" src="../../static/img_upload.png" style="width: 65upx;height: 65upx;"></image>
 				</view>
@@ -94,10 +94,8 @@
 						<view style="color: white;margin-right: 10upx;">导入图片</view>
 						<image  src="../../static/import-img.png" style="width: 60upx;height: 60upx;"></image>
 					</view>
-					
-					
-					// v-if="is_show_import_img_view==true"
-					<view v-if="false" style=" display: flex; height: 100vh; position: absolute;top: 0;width: 500upx;background-color:#24BF74;">
+										
+					<view v-if="is_show_import_img_view==true" style=" display: flex; height: 100vh; position: absolute;top: 0;width: 500upx;background-color:#24BF74;">
 						<view style="width: 100%;;">
 							<view @click="onFileInput" style="display: flex;align-items: center;justify-content: center;margin-top: 5%;center;margin-bottom: 5%;">
 								<image :src="cur_select_img" style="width: 100upx;height: 100upx;"></image>
@@ -129,9 +127,9 @@
 				
 					</view>
 					
-					<view v-if="choose_img_tempFilePath != ''" style="position: fixed; top: 480px; left: 20%; width: 130px; height: 90px;">
+					<view v-if="choose_img_tempFilePath != ''" style="position: fixed; top: 525px; left: 20%; width: 130px; height: 90px;">
 						<view style="position: absolute; top: 10px; width: 120px; height: 80px; background-color: #111111;">
-							<image style="width: 100%; height: 100%;" :src="choose_img_tempFilePath" mode="aspectFill"></image>
+							<image style="width: 100%; height: 100%;" :src="choose_img_tempFilePath" mode="aspectFill" @click="onclickPreviewChooseImg"></image>
 						</view>
 						<view style="position: absolute; right: 0; width: 30px; height: 30px;" @click="onclickDeleteChooseImg">
 							<image style="margin-left: 10px; width: 20px; height: 20px;" src="../../static/img_jian.png" mode="aspectFit"></image>
@@ -629,6 +627,20 @@
 					})
 				}
 			},
+			onclickPreviewChooseImg() {
+				let img_url = this.choose_img_tempFilePath
+				if(img_url) {
+					uni.previewImage({
+						urls:[img_url]
+					})
+				} else {
+					uni.showToast({
+						icon:'error',
+						title:'预览图片失败',
+						duration:2000
+					})
+				}
+			},
 			onclickDeleteChooseImg() {
 				let self = this
 				uni.showModal({

+ 1 - 1
pages/AI_chat/AI_chat.vue

@@ -50,7 +50,7 @@
 					</view>
 			</scroll-view>
 			
-			<view style="display: flex;width: 70vw;height: 90upx;position: absolute;bottom:500upx;">
+			<view style="display: flex;width: 70vw;height: 90upx;position: absolute;bottom:300upx;">
 					<view style="display: flex;width: 90%;  border-radius: 25px 25px 25px 25px;opacity: 1;border: 1px solid #32B3AA;width: 100%;" class="textarea-box">
 					
 						<view style="width: 90%; height: 100%; display: flex;align-items: center;justify-content: center" >

+ 6 - 4
pages/enter/enter-navigator.vue

@@ -108,7 +108,7 @@ import { nextTick } from "vue"
 		position: fixed;
 		z-index: 100;
 		width: 100%;
-		height: 60px;
+		height: 6vw; //60px;
 		top: 0%;
 		left: 0;
 		background: linear-gradient(to right, #303373, #C9A391);
@@ -154,7 +154,8 @@ import { nextTick } from "vue"
 				}
 				.navigator_box_selected{
 					color: #B34FFF;
-					background: linear-gradient(90deg, #24BF74 10%, #FAEE07 90%); 
+					// background: linear-gradient(90deg, #24BF74 10%, #FAEE07 90%); 
+					background: linear-gradient(90deg, #FAEE07 10%, #24BF74 90%);
 					-webkit-background-clip: text;
 					-webkit-text-fill-color: transparent;
 				}
@@ -163,7 +164,8 @@ import { nextTick } from "vue"
 					bottom: -0.3vw;
 					width: 100%;
 					height: 1.5px;
-					background: linear-gradient(90deg, #24BF74 10%, #FAEE07 90%);
+					// background: linear-gradient(90deg, #24BF74 10%, #FAEE07 90%);
+					background: linear-gradient(90deg, #FAEE07 10%, #24BF74 90%);
 				}
 			}
 		}
@@ -204,7 +206,7 @@ import { nextTick } from "vue"
 		.userState_logout{
 			// width: 145px;
 			color: #ffffff;
-			font-size: 1.8vw; //18px;
+			font-size: 1.5vw; //18px;
 			justify-content: center;
 		}
 	}

+ 1 - 1
pages/enter/enter.vue

@@ -25,7 +25,7 @@
 			let systemInfo = uni.getSystemInfoSync()
 			
 			this.subviewTop = 60
-			this.subviewHeight = systemInfo.screenHeight - this.subviewTop
+			this.subviewHeight = systemInfo.windowHeight - this.subviewTop
 			
 			this.onNotification()
 		},

+ 2 - 1
pages/home/home-bottom.vue

@@ -53,7 +53,7 @@
 		box-sizing: border-box;
 		flex-direction: column;
 		width: 100%;
-		height: 350px;
+		// height: 350px;
 		padding: 25px 50px;
 		background-color: #2A2832;
 		
@@ -91,6 +91,7 @@
 			font-weight: 400;
 			text-align: center;
 			color: #49A5E9;
+			margin-bottom: 50px;
 		}
 	}
 </style>

+ 1 - 1
pages/home/home.vue

@@ -1,5 +1,5 @@
 <template>
-	<view class="container" :style="{'top': viewTop + 'px', 'height': viewHeight + 'px'}">
+	<view class="container" :style="{'top': (viewTop / 10) + 'vw', 'height': viewHeight + 'px'}">
 		<scroll-view style="width: 100%; height: 100%;" scroll-y="true">
 			<brief />
 			<serviceTrait />