|
@@ -1,12 +1,12 @@
|
|
|
<template>
|
|
|
<view class="trajectory">
|
|
|
<view class="title">访问轨迹</view>
|
|
|
- <time-axis v-for="item in trajectoryList" :key="item.userID">
|
|
|
+ <time-axis v-for="item,index in trajectoryList" :key="item.userID" @click.native="handleLink(item)">
|
|
|
<template #title>
|
|
|
<text>{{ item.accessTime }}(停留时长{{ item.accessDuration }})</text>
|
|
|
</template>
|
|
|
<template #content>
|
|
|
- <view class="time-axis-content" @click="handleLink(item)">
|
|
|
+ <view class="time-axis-content">
|
|
|
<image
|
|
|
:src="fileType(item)"
|
|
|
class="axis-product"
|
|
@@ -53,6 +53,7 @@ export default {
|
|
|
methods: {
|
|
|
handleLink(item) {
|
|
|
if (Number(item.pageType) >= 69) {
|
|
|
+ console.log(item.pagePath)
|
|
|
uni.setStorageSync('databaseurl', item.pagePath)
|
|
|
uni.navigateTo({
|
|
|
url: `/pages/h5/article/path?databaseurl=1`
|
|
@@ -61,10 +62,10 @@ export default {
|
|
|
},
|
|
|
fileType(item) {
|
|
|
if (item.titleImage) return item.titleImage
|
|
|
- if (item.title) {
|
|
|
+ if (item.title && Number(item.pageType) === 69) {
|
|
|
return item.title?.indexOf('.pdf') !== -1
|
|
|
? 'https://static.caimei365.com/app/mini-database/H5-pdf.png'
|
|
|
- : item?.indexOf('.docx') !== -1
|
|
|
+ : item.title?.indexOf('.docx') !== -1
|
|
|
? 'https://static.caimei365.com/app/mini-database/H5-doc.png'
|
|
|
: 'https://static.caimei365.com/app/mini-database/H5-ppt.png'
|
|
|
}
|