twt 3 years ago
parent
commit
2c6f59f09b
2 changed files with 30 additions and 3 deletions
  1. 3 2
      operatingCompany/pages.json
  2. 27 1
      operatingCompany/pages/index/index.vue

+ 3 - 2
operatingCompany/pages.json

@@ -5,8 +5,9 @@
 		{
 			"path": "pages/index/index",
 			"style": {
-				"navigationBarTitleText": "首页",
-				"navigationBarBackgroundColor": "#FFFFFF"
+				/* "navigationBarTitleText": "首页",
+				"navigationBarBackgroundColor": "#FFFFFF" */
+				"navigationStyle": "custom"
 			}
 		},
 		{

+ 27 - 1
operatingCompany/pages/index/index.vue

@@ -1,5 +1,13 @@
 <template>
 	<view class="content">
+		<view class="zdyNav">
+		  <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
+		  <view class="nav">
+			首页
+		  </view>
+		</view>
+		<view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
+		<view style="height: 44px;"></view>
 		<!-- 我的待办 -->
 		<view class="modular">
 			<view class="modularTitle">我的待办</view>
@@ -117,7 +125,7 @@
 	/* #ifdef H5 */
 	.content {
 		background: #F4F5F7;
-		min-height: calc(100vh - 44px);
+		
 		padding: 24rpx 20rpx;
 	}
 
@@ -173,4 +181,22 @@
 		top: 16rpx;
 
 	}
+	.zdyNav{
+		position: fixed;
+		left: 0;
+		top: 0;
+		background: #FFFFFF;
+		z-index: 11;
+	}
+	.nav{
+		width: 100vw;
+		height: 44px;
+		background: #FFFFFF;
+		text-align: center;
+		font-size: 34rpx;
+		line-height: 44px;
+	}
+	.status_bar{
+		background: #FFFFFF;
+	}
 </style>