瀏覽代碼

tijiaodaima

XiaBx 3 年之前
父節點
當前提交
a46e24dc2c
共有 3 個文件被更改,包括 10 次插入7 次删除
  1. 二進制
      src/assets/adddeskot.gif
  2. 1 1
      src/components/reader/index.vue
  3. 9 6
      src/view/reader.vue

二進制
src/assets/adddeskot.gif


+ 1 - 1
src/components/reader/index.vue

@@ -187,7 +187,7 @@ export default {
 }
 
 .x-reader-text-footer {
-  margin: 0 0.24rem;
+  margin: 0 0.24rem .2rem;
   display: flex;
   align-items: center;
   justify-content: space-between;

+ 9 - 6
src/view/reader.vue

@@ -124,7 +124,7 @@
       </transition>
     </div>
 
-    <div class="add_desk" v-if="addDesktop && !isStandalone">
+    <div class="add_desk" v-if="addDesktop && !isStandalone" @touchmove.prevent>
       <div class="addgif">
         <div class="add-title">
           <p>添加至桌面,方便下次继续阅读</p>
@@ -271,7 +271,8 @@ export default {
       copyVal: "",
       uuids: "",
       addDesktop: false,
-      isStandalone:Number(localStorage.getItem('userMode')) || window.navigator.standalone
+      isStandalone:
+        Number(localStorage.getItem("userMode")) || window.navigator.standalone
     };
   },
   computed: {
@@ -375,7 +376,7 @@ export default {
     },
     next() {
       // 静默复制
-      
+
       if (this.text.next_jump) {
         location.href = this.text.next_jump_url;
       } else {
@@ -1143,12 +1144,14 @@ export default {
   z-index: 1001;
   .addgif {
     position: absolute;
-    bottom: 0;
+    top: 0;
     left: 0;
-    width: 100%;
+    right: 0;
+    bottom: 0;
+    width: 80%;
     height: 9.8rem;
+    margin: auto;
     .add-gif {
-      height: 100%;
       background: #fff;
       display: flex;
       justify-content: center;