邹能昇 4 mesi fa
parent
commit
856295a45a

+ 1 - 1
nova-tourism/pages/homestay/homestay-order2/index.js

@@ -45,7 +45,7 @@ Page({
         const customHeight = custom.height + 10 + 2 || 0;
         const bottomNavHeight = systemInfo.screenHeight - systemInfo.safeArea.bottom || 0;
 
-        const contentHeight = (screenHeight - bottomNavHeight - statusBarHeight - customHeight) * 750 / systemInfo.windowWidth;
+        const contentHeight = (screenHeight - bottomNavHeight -5- statusBarHeight - customHeight) * 750 / systemInfo.windowWidth;
 
         this.setData({
             contentHeight

+ 26 - 25
nova-tourism/pages/homestay/homestay-order2/index.less

@@ -97,32 +97,33 @@
         }
 
     }
-    .subbox{
-        position: absolute;
-        bottom: 0;
-        left: 0;
-        width: 100%;
-        height: 90rpx;
+
+}
+.subbox{
+    position:fixed;
+    bottom: 0;
+    left: 0;
+    width: 100%;
+    height: 90rpx;
+    display: flex;
+    font-size: 30rpx;
+    .subbox1{
+        width: 40%;
         display: flex;
-        font-size: 30rpx;
-        .subbox1{
-            width: 40%;
-            display: flex;
-            justify-content: center;
-            align-items: center;
-        }
-        .subbox2{
-            width: 60%;
-            height: 100%;
-            background-color: #F89B7F;
-            color: white;
-            display: flex;
-            justify-content: center;
-            align-items: center;
-            .subbox2_2{
-                margin-left: 10rpx;
-            }
+        justify-content: center;
+        align-items: center;
+    }
+    .subbox2{
+        width: 60%;
+        height: 100%;
+        background-color: #F89B7F;
+        color: white;
+        display: flex;
+        justify-content: center;
+        align-items: center;
+        .subbox2_2{
+            margin-left: 10rpx;
         }
-        
     }
+    
 }

+ 8 - 9
nova-tourism/pages/homestay/homestay-order2/index.wxml

@@ -55,15 +55,14 @@
         </view>
     </view>
 
-    <view class="subbox">
-        <view class="subbox1" bindtap="getback">首页</view>
-        <view class="subbox2" bindtap="submit">
-            <!-- <view class="subbox2_1">优惠0</view> -->
-            <view class="subbox2_2">实付款¥{{count*room.price}}</view>
-        </view>
+
+</view>
+<view class="subbox">
+    <view class="subbox1" bindtap="getback">首页</view>
+    <view class="subbox2" bindtap="submit">
+        <!-- <view class="subbox2_1">优惠0</view> -->
+        <view class="subbox2_2">实付款¥{{count*room.price}}</view>
     </view>
 </view>
-
 <!-- 支付组件 -->
-<payment style="z-index: 99999;" id='payMent' show="{{showPayment}}" tradeNo="{{tradeNo}}" price="{{count*room.price}}"
-	bind:payResult='acceptResult' showType="all" />
+<payment style="z-index: 99999;" id='payMent' show="{{showPayment}}" tradeNo="{{tradeNo}}" price="{{count*room.price}}" bind:payResult='acceptResult' showType="all" />

+ 1 - 1
nova-tourism/pages/homestay/homestay-order2/index.wxss

@@ -1 +1 @@
-.all{width:100vw;padding-left:30rpx;padding-right:30rpx;position:relative}.all .timebox{width:100%;height:50rpx;margin-top:10rpx;font-size:30rpx;display:flex}.all .timebox .time1{margin-right:40rpx}.all .roombox{width:100%;display:flex;margin-top:40rpx}.all .roombox image{width:170rpx;height:170rpx;border-radius:10rpx}.all .roombox .room{height:100%;margin-left:20rpx}.all .roombox .room .room-name{font-size:28rpx;font-weight:600;margin-bottom:24rpx}.all .roombox .room .room-tag{font-size:26rpx;width:480rpx;height:auto;color:#F37B40;margin-bottom:10rpx}.all .roombox .room .room-text{width:480rpx;height:auto;font-size:26rpx;color:#737373}.all .lable{color:black}.all .benefitbox{width:100%;height:auto;font-size:28rpx}.all .benefitbox .benefitbox1{margin-bottom:40rpx}.all .benefitbox .benefitbox2{width:100%;display:flex;margin-bottom:40rpx}.all .benefitbox .benefitbox2 .benefitbox2-text{width:120rpx}.all .benefitbox .benefitbox2 .benefitbox2-text2{display:flex;margin-left:auto;color:#F37B40}.all .benefitbox .benefitbox2 .benefitbox2-text_2{display:flex;margin-left:auto;margin-right:30rpx;color:#F37B40}.all .benefitbox .benefitbox2 .benefitbox2-text_22{display:flex;margin-left:auto;margin-right:30rpx}.all .benefitbox2{width:100%;display:flex;margin-bottom:40rpx}.all .benefitbox2 .benefitbox2-text{width:120rpx}.all .benefitbox2 .benefitbox2-text_22{display:flex;margin-left:auto;margin-right:30rpx}.all .subbox{position:absolute;bottom:0;left:0;width:100%;height:90rpx;display:flex;font-size:30rpx}.all .subbox .subbox1{width:40%;display:flex;justify-content:center;align-items:center}.all .subbox .subbox2{width:60%;height:100%;background-color:#F89B7F;color:white;display:flex;justify-content:center;align-items:center}.all .subbox .subbox2 .subbox2_2{margin-left:10rpx}
+.all{width:100vw;padding-left:30rpx;padding-right:30rpx;position:relative}.all .timebox{width:100%;height:50rpx;margin-top:10rpx;font-size:30rpx;display:flex}.all .timebox .time1{margin-right:40rpx}.all .roombox{width:100%;display:flex;margin-top:40rpx}.all .roombox image{width:170rpx;height:170rpx;border-radius:10rpx}.all .roombox .room{height:100%;margin-left:20rpx}.all .roombox .room .room-name{font-size:28rpx;font-weight:600;margin-bottom:24rpx}.all .roombox .room .room-tag{font-size:26rpx;width:480rpx;height:auto;color:#F37B40;margin-bottom:10rpx}.all .roombox .room .room-text{width:480rpx;height:auto;font-size:26rpx;color:#737373}.all .lable{color:black}.all .benefitbox{width:100%;height:auto;font-size:28rpx}.all .benefitbox .benefitbox1{margin-bottom:40rpx}.all .benefitbox .benefitbox2{width:100%;display:flex;margin-bottom:40rpx}.all .benefitbox .benefitbox2 .benefitbox2-text{width:120rpx}.all .benefitbox .benefitbox2 .benefitbox2-text2{display:flex;margin-left:auto;color:#F37B40}.all .benefitbox .benefitbox2 .benefitbox2-text_2{display:flex;margin-left:auto;margin-right:30rpx;color:#F37B40}.all .benefitbox .benefitbox2 .benefitbox2-text_22{display:flex;margin-left:auto;margin-right:30rpx}.all .benefitbox2{width:100%;display:flex;margin-bottom:40rpx}.all .benefitbox2 .benefitbox2-text{width:120rpx}.all .benefitbox2 .benefitbox2-text_22{display:flex;margin-left:auto;margin-right:30rpx}.subbox{position:fixed;bottom:0;left:0;width:100%;height:90rpx;display:flex;font-size:30rpx}.subbox .subbox1{width:40%;display:flex;justify-content:center;align-items:center}.subbox .subbox2{width:60%;height:100%;background-color:#F89B7F;color:white;display:flex;justify-content:center;align-items:center}.subbox .subbox2 .subbox2_2{margin-left:10rpx}