eduOnline/src/views/private-records.vue
zoujiandong d10c17827d init
2025-12-02 14:39:05 +08:00

61 lines
1.6 KiB
Vue

<template>
<div class="listcontain">
<headBar :title=title></headBar>
<div class="listcon">
<paperList :url=url :emptyimg=emptyimg :emptytxt=emptytxt :needTop="false" parameter=""></paperList>
</div>
</div>
</template>
<script setup>
import historyb from '../assets/historyb.png'
import readb from '../assets/readb.png'
import collectb from '../assets/collectb.png'
import { useRoute } from 'vue-router';
import {WXSHAREHOME} from '../utils/wxshare-1.6.0';
import {fromwexin,roootUrl} from '../utils/api.js'
const title = ref('')
const emptyimg = ref('')
const emptytxt = ref('')
const router = useRoute();
const url=ref('')
onMounted(() => {
title.value = router.query.type;
if( title.value=='浏览记录')
{
emptytxt.value='暂无浏览记录'
emptyimg.value=historyb
url.value='/article/queryClickArticle'
}
else if( title.value=='我的收藏')
{
emptytxt.value='您还未添加收藏'
emptyimg.value=collectb
url.value='/article/queryColectArticle'
}
else if( title.value=='确认已读')
{
emptytxt.value='暂无已读'
emptyimg.value=readb
url.value='/article/queryReadArticle'
}
});
WXSHAREHOME( title.value, '肝胆相照-肝胆病在线公共服务平台', roootUrl + localStorage.getItem("officeid") + '&appid=' +localStorage.getItem("appid")+fromwexin,"");
</script>
<style scoped>
.listcontain{
display: flex;
height: 100vh;
flex-direction: column;
}
.listcon{
flex: 1;
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
}
.t-pull-down-refresh {
overflow: hidden;
height: auto;
}
</style>