Feat(页面):页面埋点配置

This commit is contained in:
lifizer
2024-06-17 23:13:22 +08:00
parent 19914b5b0d
commit cef0177716
55 changed files with 552 additions and 377 deletions
+8 -5
View File
@@ -37,14 +37,17 @@
</template>
<script>
import {getLogs, takePrize} from "@/api/lottery";
import {getLogs, takePrize} from '@/api/lottery'
import { pageListenMixins } from '@/mixins/pageListenMixins'
export default {
mixins: [pageListenMixins],
data() {
return {
webUrl: this.$VUE_APP_RESOURCES_URL,
loading: false,
page: 1,
list: []
list: [],
pageKeyId: Object.freeze('lotteryRecords')
}
},
onShow() {
@@ -98,15 +101,15 @@ export default {
confirmText: '查看订单',
success: function (res) {
if (res.confirm) {
console.log('用户点击确定');
console.log('用户点击确定')
uni.navigateTo({
url: '/pages/order/MyOrder/index'
})
} else if (res.cancel) {
console.log('用户点击取消');
console.log('用户点击取消')
}
}
});
})
}
}
}
+4 -1
View File
@@ -82,9 +82,11 @@
<script>
import { getDetail, getPrize, takePrize, getLotteryShareInfo } from '@/api/lottery'
import gbroMarquee from '../components/gbro-marquee/marquee.vue'
import { pageListenMixins } from '@/mixins/pageListenMixins'
export default {
components: { gbroMarquee },
mixins: [pageListenMixins],
data() {
return {
ready: false,
@@ -114,7 +116,8 @@ export default {
back_color: "red", //背景色
},
imgData: [],
shareAppImg: ''
shareAppImg: '',
pageKeyId: Object.freeze('lotteryIndex')
}
},
computed: {