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
+13 -10
View File
@@ -22,32 +22,35 @@
</template>
<script>
import {investmentInfo} from "@/api/shop";
import {investmentInfo} from '@/api/shop'
import { pageListenMixins } from '@/mixins/pageListenMixins'
export default {
name: "project",
name: 'ProjectDetail',
mixins: [pageListenMixins],
data() {
return {
webUrl: this.$VUE_APP_RESOURCES_URL,
id: null,
info: null
info: null,
pageKeyId: ''
}
},
onLoad(option) {
this.id = option.id;
this.init();
const id = option.id
this.id = id
this.pageKeyId = `investmentInfo_id_${id}`
this.init()
},
methods: {
init() {
investmentInfo(this.id).then(({data}) => this.info = data);
investmentInfo(this.id).then(({data}) => this.info = data)
},
viewFile(item) {
if (item.suffix === "pdf") {
if (item.suffix === 'pdf') {
uni.downloadFile({
url: item.attachment,
success: res => {
let filePath = res.tempFilePath;
const filePath = res.tempFilePath
uni.openDocument({
filePath
})