heyang 2 年之前
父节点
当前提交
d459b4c3a6
共有 3 个文件被更改,包括 23 次插入4 次删除
  1. 14 2
      component/tabBar.vue
  2. 8 1
      pages.json
  3. 1 1
      pages/emergencyEvacuationBig.vue

+ 14 - 2
component/tabBar.vue

@@ -1,6 +1,6 @@
 <!-- 底部导航组件 -->
 <template>
-	<view class="tabBar">
+	<view class="tabBar" :style="{'padding-bottom': paddingBottomHeight + 'rpx'}">
 		<!-- 运输 -->
 		<view class="tab-bar-box">
 			<view class="null-box"></view>
@@ -32,13 +32,25 @@
 	export default {
 		data() {
 			return {
+				paddingBottomHeight: 0,  //苹果X以上手机底部适配高度
 				currentRoute:"",
 				userType:"",
 				totalCount:0,
 			}
 		},
 		created() {
-			
+			let that = this;
+			uni.getSystemInfo({
+			    success: function (res) {
+			        let model = ['X', 'XR', 'XS', '11', '12', '13', '14', '15'];
+			        model.forEach(item => {
+			            //适配iphoneX以上的底部,给tabbar一定高度的padding-bottom
+			            if(res.model.indexOf(item) != -1 && res.model.indexOf('iPhone') != -1) {
+			                that.paddingBottomHeight = 40;
+			            }
+			        })
+			    }
+			});
 		},
 		
 		onShow(){

+ 8 - 1
pages.json

@@ -1,7 +1,6 @@
 {
 	"pages": [
 		
-      
 		{
 			"path": "pages/home",//首页
 			"style": {
@@ -16,6 +15,14 @@
 				"navigationBarTitleText": "报警信息"
 			}
 		},
+		{
+			"path": "pages/alarmInfo/alarmInfoMonitor",//报警信息
+			"style": {
+				"navigationBarTitleText": "视频监控"
+			}
+		},
+	
+		
 
 		{
 			"path": "pages/supplierWorkbench",

+ 1 - 1
pages/emergencyEvacuationBig.vue

@@ -530,7 +530,7 @@
 					  speed:"",
 					  params:{
 						tid:"",
-						vol:"",
+						vol:self.trumpetList[i].deviceVol,
 						urls:[]
 					  }
 					};