+
+
+
+ 返回列表
+
+
+ {{ store.findTypeById(topic.data.type)?.name }}
+
+
{{topic.data.title}}
+
+ {{new Date(topic.data.time).toLocaleString()}}
+
+
+
+
-
+
+
+
+
+ {{topic.data.user.username}}
+
+
+
+
+
+
+
+
{{topic.data.user.email || '已隐藏电子邮件'}}
+
+
+
+
微信号: {{topic.data.user.wx}}
+
QQ号: {{topic.data.user.qq}}
+
手机号: {{topic.data.user.phone}}
+
+
+
{{topic.data.user.desc}}
+
+
@@ -27,10 +85,37 @@ get(`/api/forum/topic?tid=${tid}`, data => topic.value = data)
display: flex;
flex-direction: column;
gap: 10px;
+ padding: 10px 0;
}
.topic-main {
display: flex;
border-radius: 7px;
+ margin: 0 auto;
+ background-color: var(--el-bg-color);
+ width: 800px;
+
+ .topic-main-left {
+ width: 200px;
+ padding: 10px;
+ text-align: center;
+ border-right: solid 1px var(--el-border-color);
+
+ .desc {
+ font-size: 13px;
+ color: grey;
+ }
+ }
+
+ .topic-main-right {
+ width: 600px;
+ padding: 10px 20px;
+
+ .topic-content {
+ font-size: 14px;
+ line-height: 22px;
+ opacity: 0.8;
+ }
+ }
}
diff --git a/my-project-frontend/src/views/forum/TopicList.vue b/my-project-frontend/src/views/forum/TopicList.vue
index 8bf79fd..2ebe15b 100644
--- a/my-project-frontend/src/views/forum/TopicList.vue
+++ b/my-project-frontend/src/views/forum/TopicList.vue
@@ -61,12 +61,6 @@ function updateList() {
topics.end = true
})
}
-get('/api/forum/types', data => {
- const array = []
- array.push({name: '全部', id: 0, color: 'linear-gradient(45deg, white, red, orange, gold, green, blue)'})
- data.forEach(d => array.push(d))
- store.forum.types = array
-})
get('/api/forum/top-topic', data => topics.top = data)
function onTopicCreate() {
@@ -298,15 +292,6 @@ navigator.geolocation.getCurrentPosition(position => {
border-radius: 5px;
}
- .topic-type {
- display: inline-block;
- border: solid 0.5px grey;
- border-radius: 5px;
- font-size: 12px;
- padding: 0 5px;
- height: 18px;
- }
-
.topic-preview-content {
font-size: 13px;
color: grey;