|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<!-- 封面页 -->
|
|
|
- <div class="cover">
|
|
|
+ <div class="cover" v-show-log="state.log_show">
|
|
|
<v-head :left-data="state.detail.postUserInfo || null"></v-head>
|
|
|
<div class="waring" v-if="state.cover_status == '奖励已被领光'">
|
|
|
<div>All treasures</div>
|
|
@@ -43,7 +43,7 @@
|
|
|
<span>to Hunt Treasure</span>
|
|
|
</div>
|
|
|
<v-btn :txt="state.open_btn.txt" :font-size="'17px'" :icon="true" :disabled="state.open_btn.disabled"
|
|
|
- @onClick="clickBtn" :loading="state.btn_loading"></v-btn>
|
|
|
+ @onClick="clickBtn" :loading="state.btn_loading" v-click-log="state.log_click"></v-btn>
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
@@ -53,9 +53,25 @@ import VBtn from '@/view/iframe/treasure-hunt/components/btn.vue'
|
|
|
import VHead from '@/view/iframe/treasure-hunt/components/head.vue'
|
|
|
import ComponentZoom from "@/view/components/component-zoom.vue";
|
|
|
import { pageUrl } from "@/http/configAPI.js"
|
|
|
+import Report from "@/log-center/log"
|
|
|
import { prepareStart, treasureStart } from '@/http/treasure.js'
|
|
|
import { getChromeCookie, removeChromeCookie } from '@/uilts/chromeExtension.js'
|
|
|
|
|
|
+state.log_show = {
|
|
|
+ pageSource: Report.pageSource.pending_page,
|
|
|
+ redPacketType: Report.redPacketType.treasure,
|
|
|
+ shareLinkId: state.invite_code,
|
|
|
+ postId: state.postId
|
|
|
+}
|
|
|
+
|
|
|
+state.log_click = {
|
|
|
+ objectType: Report.pageSource.open_button,
|
|
|
+ pageSource: Report.pageSource.pending_page,
|
|
|
+ redPacketType: Report.redPacketType.treasure,
|
|
|
+ shareLinkId: state.invite_code,
|
|
|
+ postId: state.postId
|
|
|
+}
|
|
|
+
|
|
|
chrome.storage.onChanged.addListener(changes => {
|
|
|
if (changes.userInfo) {
|
|
|
// let item = JSON.parse(changes.userInfo.newValue)
|