|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { reactive, ref, toRefs } from 'vue'
|
|
|
|
|
import { format } from 'date-fns'
|
|
|
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
|
|
|
import { getMessageList, readAllMsg, readMsg } from '@/api/message/message'
|
|
|
|
|
import iconApproveActive from '@/assets/images/message/approve-active.png'
|
|
|
|
|
import iconApprove from '@/assets/images/message/approve.png'
|
|
|
|
@ -12,7 +13,8 @@ import iconClear from '@/assets/images/message/clear.png'
|
|
|
|
|
import iconArrowDown from '@/assets/images/message/arrow-down.png'
|
|
|
|
|
|
|
|
|
|
const emit = defineEmits(['goDetail'])
|
|
|
|
|
|
|
|
|
|
const router = useRouter()
|
|
|
|
|
const route = useRoute()
|
|
|
|
|
const hasNextPage = ref(false)
|
|
|
|
|
|
|
|
|
|
const state = reactive({
|
|
|
|
@ -73,7 +75,8 @@ function goDetail(item) {
|
|
|
|
|
clearMsgOne(item.id)
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
emit('goDetail', item.id)
|
|
|
|
|
// emit('goDetail', item.id)
|
|
|
|
|
router.push({ name: 'message-detail', query: { id: item.id } })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async function clearMsgOne(id) {
|
|
|
|
@ -198,7 +201,6 @@ function getMore() {
|
|
|
|
|
|
|
|
|
|
.content{
|
|
|
|
|
display: flex;
|
|
|
|
|
padding-right: 24px;
|
|
|
|
|
.slider{
|
|
|
|
|
.icon{
|
|
|
|
|
width: 17px;
|
|
|
|
@ -262,6 +264,7 @@ function getMore() {
|
|
|
|
|
padding-bottom: 97px;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
height: calc(100vh - 88px - 76px);
|
|
|
|
|
padding-right: 24px;
|
|
|
|
|
|
|
|
|
|
.more{
|
|
|
|
|
display: flex;
|
|
|
|
|