Prechádzať zdrojové kódy

feat:标讯详情页一键绑定弹框显示逻辑

yangfeng 9 mesiacov pred
rodič
commit
226eef7c93
1 zmenil súbory, kde vykonal 8 pridanie a 5 odobranie
  1. 8 5
      apps/mobile/src/views/article/content.vue

+ 8 - 5
apps/mobile/src/views/article/content.vue

@@ -12,26 +12,29 @@
           class="j-main article-content-main"
           :class="{
             'show-underline': otherModel.hasProject,
-            'no-scroll': !showBindPhone
+            'no-scroll': showBindPhone
           }"
           @click="onScrollWrapperClick"
           ref="scrollWrapper"
           @scroll.passive="onScroll"
         >
           <ContentHeader
-            class="z-index10"
+            :class="{ 'z-index10': showBindPhone }"
             :beforeLeavePage="beforeLeavePage"
           ></ContentHeader>
           <ContentHeaderBannerTip
-            class="z-index10"
+            :class="{ 'z-index10': showBindPhone }"
             :id="pageState.id"
             :beforeLeavePage="beforeLeavePage"
             v-if="content.recommendedService"
           ></ContentHeaderBannerTip>
-          <OneClickBinding class="z-index10"></OneClickBinding>
+          <OneClickBinding
+            v-if="showBindPhone"
+            :class="{ 'z-index10': showBindPhone }"
+          ></OneClickBinding>
           <van-overlay
             class-name="custom-overlay"
-            :show="!showBindPhone"
+            :show="showBindPhone"
             :lock-scroll="false"
           ></van-overlay>