|
@@ -85,6 +85,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script setup >
|
|
|
+import Report from "@/log-center/log"
|
|
|
import router from "@/router/buy-nft.js";
|
|
|
import { ref, onMounted, inject, reactive } from 'vue'
|
|
|
import topUp2 from "@/view/iframe/publish/components/top-up2.vue";
|
|
@@ -98,6 +99,7 @@ import "element-plus/es/components/message/style/css";
|
|
|
import { sendChromeTabMessage } from '@/uilts/chromeExtension.js';
|
|
|
|
|
|
let pay_info = inject('pay_info');
|
|
|
+let postId = inject('post_Id');
|
|
|
let state = reactive({
|
|
|
loading: {
|
|
|
show: false
|
|
@@ -138,6 +140,16 @@ const clickPlay = () => {
|
|
|
pay_info.buy_items = res.data.buyItems
|
|
|
sendChromeTabMessage({ actionType: "FINISH_GROUP_BANNNER" }, () => { })
|
|
|
router.push({ path: '/open_box' });
|
|
|
+ Report.reportLog({
|
|
|
+ pageSource: Report.pageSource.nftShopPage,
|
|
|
+ businessType: Report.businessType.buttonClick,
|
|
|
+ objectType: Report.objectType.buy_button,
|
|
|
+ nftProjectId: pay_info.home.nftProjectId,
|
|
|
+ postEditorPostId: postId.value,
|
|
|
+ }, {
|
|
|
+ 'buy-number': pay_info.home?.sale_plan?.itemCount,
|
|
|
+ result: 'success'
|
|
|
+ })
|
|
|
} else {
|
|
|
let msg = ''
|
|
|
switch (res.code.toString()) {
|
|
@@ -166,10 +178,28 @@ const clickPlay = () => {
|
|
|
offset: -16,
|
|
|
appendTo: document.body
|
|
|
})
|
|
|
+ Report.reportLog({
|
|
|
+ pageSource: Report.pageSource.nftShopPage,
|
|
|
+ businessType: Report.businessType.buttonClick,
|
|
|
+ objectType: Report.objectType.buy_button,
|
|
|
+ nftProjectId: pay_info.home.nftProjectId,
|
|
|
+ postEditorPostId: postId.value,
|
|
|
+ }, {
|
|
|
+ 'buy-number': pay_info.home?.sale_plan?.itemCount,
|
|
|
+ result: 'fail'
|
|
|
+ })
|
|
|
}
|
|
|
}).catch(() => {
|
|
|
state.loading.show = false
|
|
|
})
|
|
|
+ // report
|
|
|
+ Report.reportLog({
|
|
|
+ pageSource: Report.pageSource.nftPreviewPage,
|
|
|
+ businessType: Report.businessType.buttonClick,
|
|
|
+ objectType: Report.objectType.confirmButton,
|
|
|
+ nftProjectId: pay_info.home.nftProjectId,
|
|
|
+ postEditorPostId: postId.value,
|
|
|
+ })
|
|
|
}
|
|
|
// 余额是否同步中
|
|
|
let asyncIng = ref(false);
|
|
@@ -213,6 +243,13 @@ onMounted(() => {
|
|
|
currentCurrencyInfo.currencyCode = pay_info.home.sale_plan.currencyCode
|
|
|
getLocalCurrencyInfoByCode();
|
|
|
setDialogStyle()
|
|
|
+ // report
|
|
|
+ Report.reportLog({
|
|
|
+ pageSource: Report.pageSource.nftPreviewPage,
|
|
|
+ businessType: Report.businessType.pageView,
|
|
|
+ nftProjectId: pay_info.home.nftProjectId,
|
|
|
+ postEditorPostId: postId.value,
|
|
|
+ })
|
|
|
})
|
|
|
|
|
|
|