XiaBx 3 年之前
父節點
當前提交
a26379d5ca
共有 1 個文件被更改,包括 10 次插入9 次删除
  1. 10 9
      src/view/pay.vue

+ 10 - 9
src/view/pay.vue

@@ -276,12 +276,7 @@
           <span class="red">(1元=100书币)</span>
         </div>
 
-        <template v-if="showPayYearBanner || showSpecialPayTempalte">
-          <div class="pay-btn-box">
-            <div class="pay-btn" @click="pay">立即充值</div>
-          </div>
-        </template>
-        <template v-else>
+        <div class="fixed-content">
           <div class="pay-box__fixed">
             <div class="pay-btn" @click="pay">
               {{
@@ -289,7 +284,8 @@
               }}立即充值
             </div>
           </div>
-        </template>
+        </div>
+
         <!-- <div class="pay-agreement">点击立即充值,即表示您已同意
           <router-link to="agreement"
                       class="red">《充值协议》</router-link>
@@ -529,7 +525,7 @@ export default {
         confirmButtonHighlight: true,
         showCancelButton: true
       }).then(action => {
-        if(action==="confirm") this.$router.back();
+        if (action === "confirm") this.$router.back();
       });
     },
     payForYear() {
@@ -624,9 +620,14 @@ export default {
     text-align: left;
   }
 }
+.fixed-content {
+  position: relative;
+  height: 1.2rem;
+  width: 100%;
+}
 
 .pay-box__fixed {
-  position: fixed;
+  position: fixed;  
   bottom: 0;
   left: 0;
   right: 0;