|
|
@@ -28,6 +28,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import { getPlatformInfo } from '@/utils/platform.js';
|
|
|
export default {
|
|
|
props:{
|
|
|
list:{
|
|
|
@@ -49,7 +50,6 @@
|
|
|
this.$emit('scrolltolower')
|
|
|
},
|
|
|
reviewReport(item){
|
|
|
- if(!item.fileUrl) return this.$showToast('报告pdf为空,请稍后再试。')
|
|
|
// uni.navigateTo({
|
|
|
// url:`/pagesHome/reportDetail?pdfUrl=${item.fileUrl}&reportId=${item.reportId}&fileName=${this.typeCfg[item.type]||'个人版'}-${item.reportName}`
|
|
|
// })
|
|
|
@@ -62,9 +62,16 @@
|
|
|
// })
|
|
|
// }
|
|
|
// })
|
|
|
- uni.navigateTo({
|
|
|
- url:'/pages/webView?src='+item.fileUrl
|
|
|
- })
|
|
|
+
|
|
|
+ const { isPC, isMobile, platform } = getPlatformInfo();
|
|
|
+ if (isPC) {
|
|
|
+ this.$showModal('请在手机端该微信小程序中查看报告')
|
|
|
+ } else if (isMobile||platform==='devtools') {
|
|
|
+ if(!item.fileUrl) return this.$showToast('报告pdf为空,请稍后再试。')
|
|
|
+ uni.navigateTo({
|
|
|
+ url:'/pages/webView?src='+item.fileUrl
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
askReport(item){
|
|
|
uni.navigateTo({
|