Feat(页面):页面埋点配置
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user