Skip to content

Commit f6655f7

Browse files
committed
更新 Web
1 parent a2eb7e4 commit f6655f7

13 files changed

+492
-86
lines changed

app/src/main/assets/css/content-dark.css

Lines changed: 9 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/assets/css/content-light.css

Lines changed: 9 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/assets/css/topic-dark.css

Lines changed: 90 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/assets/css/topic-light.css

Lines changed: 90 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/assets/topic.html

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,31 @@
2828
<template v-if="topic">
2929
<div class="topic surface">
3030
<div class="title">{{topic.title}}</div>
31+
<div class="info">
32+
<div class="left">
33+
<img class="avatar" :src="topic.author.avatar_url" :alt="topic.author.loginname">
34+
</div>
35+
<div class="center">
36+
<div class="line">
37+
<span class="tag-top" v-if="topic.top">置顶</span>
38+
<span class="tag-tab" v-else>{{topic.tab}}</span>
39+
<span class="login-name">{{topic.author.loginname}}</span>
40+
</div>
41+
<div class="line">
42+
<span class="create-time-and-visit_count">{{topic.create_at}} · {{topic.visit_count}} 阅读</span>
43+
</div>
44+
</div>
45+
<div class="right">
46+
47+
</div>
48+
</div>
3149
<div class="content markdown-body" v-html="topic.content.html"></div>
3250
</div>
3351
<div class="empty surface" v-if="!topic.replies || topic.replies.length === 0">
3452
暂无评论
3553
</div>
36-
<div class="surface" v-else>
37-
<div class="replies-info">
54+
<div class="replies surface" v-else>
55+
<div class="info">
3856
<div class="count">评论 {{topic.replies.length}}</div>
3957
</div>
4058
<template v-for="(reply, index) in topic.replies">

0 commit comments

Comments
 (0)