|
@@ -7,8 +7,9 @@
|
|
:showCom="showCom"
|
|
:showCom="showCom"
|
|
:defaultLinkTitle="pageData.defaultLinkTitle"
|
|
:defaultLinkTitle="pageData.defaultLinkTitle"
|
|
:certNftProjectId="certNftProjectId"
|
|
:certNftProjectId="certNftProjectId"
|
|
|
|
+ :hasNft="hasNft"
|
|
@publishFinish="publishFinish">
|
|
@publishFinish="publishFinish">
|
|
- <nft-setting @change="changeSetting"></nft-setting>
|
|
|
|
|
|
+ <nft-setting ref="nftSettingDom" @change="changeSetting"></nft-setting>
|
|
</preview>
|
|
</preview>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -43,12 +44,14 @@ watch(
|
|
(newVal) => {
|
|
(newVal) => {
|
|
showCom.value = newVal;
|
|
showCom.value = newVal;
|
|
if(newVal == 'PREVIEW') {
|
|
if(newVal == 'PREVIEW') {
|
|
|
|
+ hasNft.value = nftSettingDom.value && nftSettingDom.value.nftList.length > 0;
|
|
Report.reportLog({
|
|
Report.reportLog({
|
|
pageSource: Report.pageSource.previewPage,
|
|
pageSource: Report.pageSource.previewPage,
|
|
businessType: Report.businessType.pageView,
|
|
businessType: Report.businessType.pageView,
|
|
}, {
|
|
}, {
|
|
'type': Report.bizType.ToolBox,
|
|
'type': Report.bizType.ToolBox,
|
|
- 'post-editor-url': previewData.convertUrl
|
|
|
|
|
|
+ 'post-editor-url': previewData.convertUrl,
|
|
|
|
+ 'has-nft': hasNft.value
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -71,6 +74,9 @@ let screenshotWebsiteData = reactive({
|
|
status: '',
|
|
status: '',
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+let nftSettingDom = ref(null);
|
|
|
|
+let hasNft = ref(false);
|
|
|
|
+
|
|
const changeShowCom = (params) => {
|
|
const changeShowCom = (params) => {
|
|
showCom.value = 'PREVIEW';
|
|
showCom.value = 'PREVIEW';
|
|
previewData.convertUrl = params.convertUrl;
|
|
previewData.convertUrl = params.convertUrl;
|