zhujindu 8 місяців тому
батько
коміт
8d14dae828
1 змінених файлів з 7 додано та 5 видалено
  1. 7 5
      src/components/share.vue

+ 7 - 5
src/components/share.vue

@@ -119,9 +119,6 @@ export default {
     //     this.$toast('图片加载失败,请检查网络');
     //   });
     // console.log(photos);
-    this.$nextTick(async () => {
-      await this.htmlToCanvas();
-    });
 
     // 上拉边界下拉出现白色空白
     let node = document.getElementsByClassName('share')[0];
@@ -203,6 +200,11 @@ export default {
         colorDark: '#000000',
         colorLight: '#ffffff',
         correctLevel: QRCode.CorrectLevel.H,
+        width: 45,
+        height: 45,
+      });
+      this.$nextTick(async () => {
+        await this.htmlToCanvas();
       });
     },
   },
@@ -223,13 +225,13 @@ export default {
     background-size: cover;
     background-attachment: local;
     width: 100%;
-    height: 100%;
+    // height: 100%;
     padding: vw(30);
     position: absolute;
+    // z-index: -1;
     padding-bottom: vw(190);
     top: 0;
     z-index: -1;
-    overflow-y: auto;
   }
 
   .header {