Răsfoiți Sursa

弹窗海报修改

jwyu 2 ani în urmă
părinte
comite
250d274bdc
1 a modificat fișierele cu 7 adăugiri și 5 ștergeri
  1. 7 5
      src/views/hzyb/components/SharePoster.vue

+ 7 - 5
src/views/hzyb/components/SharePoster.vue

@@ -32,17 +32,19 @@ const handleCreatePoster=async ()=>{
 
 
 <template>
-    <div class="share-poster-wrap">
+<Teleport to="body">
+    <div class="share-poster-wrap" @touchmove.prevent>
         <img @click="handleCreatePoster" class="chart-icon" src="@/assets/hzyb/share-poster-chart-icon.png" alt="" v-if="props.shareData.type=='chart_detail'">
         <img v-else @click="handleCreatePoster" :style="props.style" class="share-icon" src="@/assets/hzyb/share-poster-icon.png"/>
 
-        <view class="poster-mask" v-if="show||showPoster" @click="showPoster=false"></view>
-        <view class="loading-box" v-if="show">
+        <div class="poster-mask" v-if="show||showPoster" @click="showPoster=false" @touchmove.prevent></div>
+        <div class="loading-box" v-if="show">
             <img class="load-img" src="@/assets/hzyb/loading.png"/>
-            <view>海报生成中...</view>
-        </view>
+            <div>海报生成中...</div>
+        </div>
         <img v-if="showPoster" class="poster-img" :src="posterImg" show-menu-by-longpress />
     </div>
+</Teleport>
 </template>
 
 <style lang="scss" scoped>