jwyu 3 anni fa
parent
commit
d96d2bb4b5

+ 10 - 5
src/views/hzyb/activity/reportDetail.vue

@@ -101,7 +101,8 @@ onMounted(()=>{
                 startPosition: imgArray.indexOf(curImageSrc)||0,
                 overlayStyle:{
                     background: 'rgba(0, 0, 0, 0.9)'
-                }
+                },
+                teleport:'.report-detail'
             });
 	    }
     })
@@ -164,11 +165,15 @@ const goDetail=(e)=>{
     </div>
 </template>
 
-<style>
-/* .van-image-preview__overlay{
-    background: rgba(0, 0, 0, 0.9);
-} */
+<style lang="scss">
+.report-detail{
+    .van-popup{
+        background: rgba(0, 0, 0, 0.9) !important;
+    }
+}
 </style>
+
+
 <style lang="scss" scoped>
 
 .flex{

+ 9 - 5
src/views/hzyb/activity/reportWeekDetail.vue

@@ -62,7 +62,8 @@ onMounted(() => {
                 startPosition: imgArray.indexOf(curImageSrc)||0,
                 overlayStyle:{
                     background: 'rgba(0, 0, 0, 0.9)'
-                }
+                },
+                teleport:'.report-detail'
             });
         }
     })
@@ -160,11 +161,14 @@ onBeforeRouteUpdate(to => {
     </div>
 </template>
 
-<style>
-/* .van-image-preview__overlay{
-    background: rgba(230, 33, 33, 0.9);
-} */
+<style lang="scss">
+.report-detail{
+    .van-popup{
+        background: rgba(0, 0, 0, 0.9) !important;
+    }
+}
 </style>
+
 <style lang="scss" scoped>
 .flex {
     display: flex;