htc 9 mēneši atpakaļ
vecāks
revīzija
8a7afbdd5a
3 mainītis faili ar 8 papildinājumiem un 3 dzēšanām
  1. 5 1
      App.vue
  2. 2 1
      pages.json
  3. 1 1
      pages/index/index.vue

+ 5 - 1
App.vue

@@ -15,5 +15,9 @@
 <style lang="scss">
 	/*每个页面公共css */
 	@import "@/node_modules/uview-ui/index.scss";
-	.page{padding-bottom: 145rpx;background-color: #E1EDFF;}
+	.page{
+		padding-bottom: calc(144rpx + constant(safe-area-inset-bottom));
+		padding-bottom: calc(144rpx + env(safe-area-inset-bottom));
+		background-color: #E1EDFF;
+	}
 </style>

+ 2 - 1
pages.json

@@ -6,7 +6,8 @@
 		{
 			"path": "pages/index/index",
 			"style": {
-				"navigationBarTitleText": "传秀科技"
+				"navigationBarTitleText": "传秀科技",
+				"navigationStyle": "custom"
 			}
 		},
 		{

+ 1 - 1
pages/index/index.vue

@@ -240,7 +240,7 @@
 			display: flex;
 			flex-direction: column;
 			align-items: center;
-			margin-top: -5px;
+			margin-top: -12rpx;
 			
 			.title{
 				width: 288rpx;