2024-08-13 09:36:13 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="account_comment">
|
2024-08-19 10:36:46 +08:00
|
|
|
<div class="account_generalMessage_title modal_title_text">
|
|
|
|
|
<span>收到的评论</span>
|
|
|
|
|
<div class="account_generalMessage_title_setting" @click="allRead">全部已读</div>
|
2024-08-13 09:36:13 +08:00
|
|
|
</div>
|
2024-08-19 10:36:46 +08:00
|
|
|
<div class="account_generalMessage_center modal_title_text">
|
|
|
|
|
|
|
|
|
|
<div class="account_generalMessage_item">
|
|
|
|
|
<div class="account_generalMessage_item_right">
|
|
|
|
|
<div class="account_generalMessage_item_right_img" @click="openOtherUsers">
|
2024-08-13 09:36:13 +08:00
|
|
|
<img src="https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png" alt="">
|
|
|
|
|
</div>
|
2024-08-19 10:36:46 +08:00
|
|
|
<div class="account_generalMessage_item_right_title">
|
|
|
|
|
<div class="account_generalMessage_item_right_title_name">名字 <span>回复你的作品</span></div>
|
|
|
|
|
<div class="account_generalMessage_item_right_title_center modal_title_text_assistant">回复内容回复内容回复内容回复内容回复内容回复内容回复内容回复内容回复内容回复内容回复内容回复内容回复内容回复内容回复内容回复内容回复内容回复内容</div>
|
|
|
|
|
<div class="account_generalMessage_item_right_works modal_title_text_intro">回复作品名</div>
|
2024-08-13 09:36:13 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-08-19 10:36:46 +08:00
|
|
|
<div class="account_generalMessage_item_left">
|
|
|
|
|
<div class="account_generalMessage_item_left_delete modal_title_text_intro">
|
2024-08-13 09:36:13 +08:00
|
|
|
<span class="icon iconfont icon-shanchu operate_icon"></span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal_title_text_intro">2024-06-05</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-08-19 10:36:46 +08:00
|
|
|
<div class="account_generalMessage_item">
|
|
|
|
|
<div class="account_generalMessage_item_right">
|
|
|
|
|
<div class="account_generalMessage_item_right_img">
|
2024-08-13 09:36:13 +08:00
|
|
|
<img src="https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png" alt="">
|
|
|
|
|
</div>
|
2024-08-19 10:36:46 +08:00
|
|
|
<div class="account_generalMessage_item_right_title">
|
|
|
|
|
<div class="account_generalMessage_item_right_title_name">名字 <span>回复你的作品</span></div>
|
|
|
|
|
<div class="account_generalMessage_item_right_title_center modal_title_text_assistant">回复内容回复内容回复内容回复内容回复内容回复内容回复内容回复内容回复内容回复内容回复内容回复内容回复内容回复内容回复内容回复内容回复内容回复内容</div>
|
|
|
|
|
<div class="account_generalMessage_item_right_works modal_title_text_intro">回复作品名</div>
|
2024-08-13 09:36:13 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-08-19 10:36:46 +08:00
|
|
|
<div class="account_generalMessage_item_left">
|
|
|
|
|
<div class="account_generalMessage_item_left_delete modal_title_text_intro">
|
2024-08-13 09:36:13 +08:00
|
|
|
<span class="icon iconfont icon-shanchu operate_icon"></span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal_title_text_intro">2024-06-05</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script lang="ts">
|
|
|
|
|
import { defineComponent,computed,ref,reactive,nextTick,toRefs,createVNode, onMounted} from 'vue'
|
|
|
|
|
import { Https } from "@/tool/https";
|
|
|
|
|
import { useRouter,useRoute } from 'vue-router'
|
|
|
|
|
import { Modal,message } from 'ant-design-vue';
|
|
|
|
|
import { useStore } from "vuex";
|
|
|
|
|
import { setCookie, getCookie, WriteCookie } from "@/tool/cookie";
|
|
|
|
|
import { useI18n } from 'vue-i18n'
|
|
|
|
|
export default defineComponent({
|
|
|
|
|
components:{
|
|
|
|
|
},
|
|
|
|
|
setup() {
|
|
|
|
|
const router = useRouter()
|
|
|
|
|
const store = useStore();
|
|
|
|
|
let accountMessage = reactive({
|
|
|
|
|
activeKey: ref('1'),
|
2024-08-19 10:36:46 +08:00
|
|
|
dataList:ref([
|
2024-08-13 09:36:13 +08:00
|
|
|
{
|
|
|
|
|
name:'张三',
|
|
|
|
|
avatar:'https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png',
|
|
|
|
|
time:'2024-01-01 12:00:00',
|
|
|
|
|
content:'关注了你',
|
|
|
|
|
isRead:false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name:'李四',
|
|
|
|
|
avatar:'https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png',
|
|
|
|
|
}
|
|
|
|
|
])
|
|
|
|
|
})
|
|
|
|
|
// let ws = new WebSocket('ws://127.0.0.1:3000')
|
|
|
|
|
// console.log(ws);
|
|
|
|
|
|
|
|
|
|
// ws.onopen = ()=>{
|
|
|
|
|
// console.log(222);
|
|
|
|
|
// let data = {
|
|
|
|
|
// cmd:4,
|
|
|
|
|
// data:{
|
|
|
|
|
// msg:'222'
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// ws.send(JSON.stringify(data))
|
|
|
|
|
// // ws.onmessage = (data)=>{
|
|
|
|
|
// // console.log(data);
|
|
|
|
|
// // }
|
|
|
|
|
// }
|
|
|
|
|
// provide('exhibitionList',exhibitionList)
|
|
|
|
|
let openOtherUsers = ()=>{
|
|
|
|
|
const routeUrl = router.resolve({
|
|
|
|
|
path:'/home/otherUsers',
|
|
|
|
|
query:{
|
|
|
|
|
id:123
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
window.open(routeUrl.href,'_blank')
|
|
|
|
|
}
|
|
|
|
|
onMounted (()=>{
|
|
|
|
|
})
|
|
|
|
|
return{
|
|
|
|
|
...toRefs(accountMessage),
|
|
|
|
|
openOtherUsers,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
data(){
|
|
|
|
|
return{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.account_comment{
|
|
|
|
|
width: 100%;
|
2024-08-19 10:36:46 +08:00
|
|
|
.account_generalMessage_item{
|
|
|
|
|
.account_generalMessage_item_right{
|
2024-08-13 09:36:13 +08:00
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2024-08-19 10:36:46 +08:00
|
|
|
margin-right: 1rem;
|
|
|
|
|
.account_generalMessage_item_right_works{
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
.account_generalMessage_item_right_works:hover{
|
|
|
|
|
text-decoration: underline;
|
|
|
|
|
}
|
|
|
|
|
.account_generalMessage_item_right_img{
|
|
|
|
|
width: 8rem;
|
|
|
|
|
height: 8rem;
|
|
|
|
|
margin-right: 2rem;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
img{
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
border-radius: 50%;
|
2024-08-13 09:36:13 +08:00
|
|
|
}
|
2024-08-19 10:36:46 +08:00
|
|
|
}
|
|
|
|
|
.account_generalMessage_item_right_title{
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
.account_generalMessage_item_right_title_center{
|
|
|
|
|
display: -webkit-box;
|
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
|
overflow: hidden;
|
2024-08-13 09:36:13 +08:00
|
|
|
}
|
2024-08-19 10:36:46 +08:00
|
|
|
.account_generalMessage_item_right_title_name{
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: #000;
|
|
|
|
|
span{
|
2024-08-13 09:36:13 +08:00
|
|
|
font-weight: 500;
|
2024-08-19 10:36:46 +08:00
|
|
|
color: #9999aa;
|
2024-08-13 09:36:13 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-08-19 10:36:46 +08:00
|
|
|
}
|
|
|
|
|
.account_generalMessage_item_left{
|
|
|
|
|
text-align: right;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
.account_generalMessage_item_left_delete{
|
|
|
|
|
span{
|
|
|
|
|
cursor: pointer;
|
2024-08-13 09:36:13 +08:00
|
|
|
}
|
|
|
|
|
}
|
2024-08-19 10:36:46 +08:00
|
|
|
div{
|
|
|
|
|
padding: .5rem 2rem;
|
|
|
|
|
border-radius: 4rem;
|
|
|
|
|
}
|
2024-08-13 09:36:13 +08:00
|
|
|
}
|
2024-08-19 10:36:46 +08:00
|
|
|
}
|
|
|
|
|
.account_generalMessage_item:last-child{
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
border-bottom: none;
|
2024-08-13 09:36:13 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|