shish 6 months ago
parent
commit
00e30ba25c
1 changed files with 32 additions and 5 deletions
  1. 32 5
      hdApp/src/pagesPurchase/xj.vue

+ 32 - 5
hdApp/src/pagesPurchase/xj.vue

@@ -31,11 +31,11 @@
 				</view>
 			</block>
 		</view>
-		<div style="text-align: center;">
+		<view class="footer-button-box">
 			<button class="admin-button-com big blue" @click="clearXj()">清除全部</button>
 			<button class="admin-button-com big blue" @click="goBack()" style="margin-left:58upx;padding:30upx 55upx 30upx 55upx;">返回</button>
 			<button class="admin-button-com big blue" @click="confirmXj()" style="margin-left:58upx;padding:30upx 65upx 30upx 65upx;" >确认</button>
-		</div>
+		</view>
 	</view>
 </template>
 <script>
@@ -220,10 +220,11 @@ export default {
 
 <style lang="scss" scoped>
 .billing_box_bg {
-	height: 100%;
+	height: 100vh;
 	display: flex;
-	margin-bottom:120upx;
 	flex-direction: column;
+	position: relative;
+	padding-bottom: 120upx;
 	.input-wrap {
 		font-size:32upx;
 		font-weight:bold;
@@ -283,7 +284,7 @@ export default {
 	}
 	.item_list_bx {
 		padding: 10upx 40upx;
-		margin-bottom:130upx;
+		margin-bottom: 20upx;
 	}
 	.item_list_title {
 		font-size: 30upx;
@@ -395,4 +396,30 @@ export default {
 .footer-button{
 	height:120upx;
 }
+.footer-button-box {
+	position: fixed;
+	bottom: 0;
+	left: 0;
+	right: 0;
+	width: 100%;
+	height: 120upx;
+	display: flex;
+	justify-content: center;
+	align-items: center;
+	background-color: #fff;
+	box-sizing: border-box;
+	border-top: 1px solid #f0f0f0;
+	padding: 20upx 0;
+	
+	/* #ifdef MP-WEIXIN */
+	height: calc(120upx + constant(safe-area-inset-bottom));
+	padding-bottom: constant(safe-area-inset-bottom);
+	/* #endif */
+	
+	/* #ifdef MP-WEIXIN */
+	@supports (padding: max(0px)) {
+		padding-bottom: max(20upx, env(safe-area-inset-bottom));
+	}
+	/* #endif */
+}
 </style>