郭宇琦 2 weeks ago
parent
commit
e615e7dd90
1 changed files with 22 additions and 20 deletions
  1. 22 20
      pages/moreInfo/moreInfo.vue

+ 22 - 20
pages/moreInfo/moreInfo.vue

@@ -1,34 +1,36 @@
 <template>
 	<view class="container-view">
-		<div :style="'padding-top:'+sumHeight+'px;height:0'"></div>
-		<img src="https://qiniu.bms16.com/Fg8_p7083jpsy8BXG4bR6yMs7jQX" style="width: 100%;height: 526rpx;" alt="">
+		<view :style="'padding-top:'+sumHeight+'px;height:0'"></view>
+		<!-- <img src="https://qiniu.bms16.com/Fg8_p7083jpsy8BXG4bR6yMs7jQX" style="width: 100%;height: 526rpx;" alt=""> -->
+		<image src="https://qiniu.bms16.com/Fg8_p7083jpsy8BXG4bR6yMs7jQX" style="width: 100%;height: 526rpx;"
+			mode="aspectFit"></image>
 		<view class="btnWrap">
 			<view class="btnClass" @tap="toDashboard">
 				<view class="margin_r">
-					<img src="https://qiniu.bms16.com/Fjx1qYpRoVX6dqg1sGqn1Lzn6Bpc" style="width: 80rpx;height: 80rpx;"
-						alt="">
+					<image src="https://qiniu.bms16.com/Fjx1qYpRoVX6dqg1sGqn1Lzn6Bpc"
+						style="width: 80rpx;height: 80rpx;" mode="aspectFit"></image>
 				</view>
 				<view class="text">
 					仪表盘
 				</view>
-				<img src="https://qiniu.bms16.com/FqnbZ2iKHmzCGJA8XD30sf5g_CAm" style="width: 28rpx;height: 28rpx;"
-					alt="">
+				<image src="https://qiniu.bms16.com/FqnbZ2iKHmzCGJA8XD30sf5g_CAm" style="width: 28rpx;height: 28rpx;"
+					mode="aspectFit"></image>
 			</view>
 			<view class="btnClass" @tap="toDeviceInfo">
 				<view class="margin_r">
-					<img src="https://qiniu.bms16.com/FpRgmuTWpd-QyPbl_yuavOM7NtVb" style="width: 80rpx;height: 80rpx;"
-						alt="">
+					<image src="https://qiniu.bms16.com/FpRgmuTWpd-QyPbl_yuavOM7NtVb"
+						style="width: 80rpx;height: 80rpx;" mode="aspectFit"></image>
 				</view>
 				<view class="text">
 					设备信息
 				</view>
-				<img src="https://qiniu.bms16.com/FqnbZ2iKHmzCGJA8XD30sf5g_CAm" style="width: 28rpx;height: 28rpx;"
-					alt="">
+				<image src="https://qiniu.bms16.com/FqnbZ2iKHmzCGJA8XD30sf5g_CAm" style="width: 28rpx;height: 28rpx;"
+					mode="aspectFit"></image>
 			</view>
 		</view>
 		<view class="imgWrpa" @tap="toBack">
-			<img src="https://qiniu.bms16.com/FpfRLdpO1VjkzytUI72T36V1_j9n" style="width: 112rpx;height: 112rpx;"
-				alt="">
+			<image src="https://qiniu.bms16.com/FpfRLdpO1VjkzytUI72T36V1_j9n" style="width: 112rpx;height: 112rpx;"
+				mode="aspectFit"></image>
 		</view>
 	</view>
 </template>
@@ -39,20 +41,21 @@
 			return {
 				statusBarHeight: 0,
 				navabarHeight: 0,
-				sumHeight:0
+				sumHeight: 0
 			}
 		},
-		onLoad(){
+		onLoad() {
 			const clientRect = uni.getMenuButtonBoundingClientRect()
 			const sysinfo = uni.getSystemInfoSync()
 			let GAP = 8
 			// #ifdef MP-ALIPAY
 			GAP = 0
 			// #endif
-			const navabarHeight = (clientRect.bottom - sysinfo.statusBarHeight) + (clientRect.top - sysinfo.statusBarHeight) + GAP
+			const navabarHeight = (clientRect.bottom - sysinfo.statusBarHeight) + (clientRect.top - sysinfo
+				.statusBarHeight) + GAP
 			this.navabarHeight = navabarHeight
 			this.statusBarHeight = sysinfo.statusBarHeight
-			this.sumHeight = this.statusBarHeight+this.navabarHeight 
+			this.sumHeight = this.statusBarHeight + this.navabarHeight
 		},
 		methods: {
 			toDashboard() {
@@ -65,12 +68,11 @@
 					url: '/pages/deviceInfo/deviceInfo'
 				})
 			},
-			toBack(){
-				uni.navigateTo({
-					url: '/pages/index/index'
+			toBack() {
+				uni.navigateBack({
+					delta: 1
 				})
 			},
-			
 		}
 	}
 </script>