|
@@ -11,13 +11,16 @@
|
|
|
<iframe :src="iframe_url" frameborder="0" sandbox></iframe>
|
|
|
</div>
|
|
|
<div class="content" v-else>
|
|
|
- <div class="mask" @click="confirmStatus" v-if="state.showMask && state.status != '固定右上角'">
|
|
|
- <img class="luck" :src=" require('@/assets/svg/icon-post-lock.svg') " />
|
|
|
- <div class="btn">
|
|
|
- <img class="img" v-if="state.detail && state.detail.nftProjectIcon" :src=" state.detail.nftProjectIcon " />
|
|
|
- <div class="font">Available for holders of {{state.detail.nftProjectName}} NFT</div>
|
|
|
+ <template v-if="state.showMask && state.status != '固定右上角'">
|
|
|
+ <div class="mask" @click="confirmStatus">
|
|
|
+ <img class="luck" :src=" require('@/assets/svg/icon-post-lock.svg') " />
|
|
|
+ <div class="btn">
|
|
|
+ <img class="img" v-if="state.detail && state.detail.nftProjectIcon" :src=" state.detail.nftProjectIcon " />
|
|
|
+ <div class="font">Available for holders of {{state.detail.nftProjectName}} NFT</div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ <img class="mask_bg" v-if="state.detail.linkImagePath" :src=" state.detail.linkImagePath " />
|
|
|
+ </template>
|
|
|
<iframe :src="state.iframe_url" v-show="state.status == 'iframe'" ref="dom_iframe" frameborder="0"
|
|
|
scrolling="yes" allow="camera *;microphone *"></iframe>
|
|
|
<!-- sandbox="allow-same-origin allow-scripts allow-popups allow-top-navigation allow-forms allow-modals allow-popups-to-escape-sandbox" -->
|
|
@@ -690,6 +693,14 @@ const msgListener = (req, sender, sendResponse) => {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ .mask_bg {
|
|
|
+ position: absolute;
|
|
|
+ z-index: 1;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ object-fit: contain;
|
|
|
+ background-color: #000000;
|
|
|
+ }
|
|
|
|
|
|
iframe {
|
|
|
background: #fff;
|