diff --git a/components/PostList.vue b/components/PostList.vue
index 58bcd76..ce8253b 100644
--- a/components/PostList.vue
+++ b/components/PostList.vue
@@ -2,7 +2,8 @@
.post-list
ul(v-if="data.length")
li(v-for="item in data", :key="item._id")
- NuxtLink.avatar(:to="`/user/${item.user._id}`")
+ NuxtLink(:to="`/user/${item.user._id}`")
+ img.avatar(:src="item.user.avatar")
.content
.title {{ item.user.name }}
.info
diff --git a/components/ThreadList.vue b/components/ThreadList.vue
index 10e309c..522408b 100644
--- a/components/ThreadList.vue
+++ b/components/ThreadList.vue
@@ -2,7 +2,8 @@
.thread-list
ul(v-if="data.length")
li(v-for="item in data", :key="item._id")
- NuxtLink.avatar(:to="'/user/' + item.user._id")
+ NuxtLink(:to="'/user/' + item.user._id")
+ img.avatar(:src="item.user.avatar")
NuxtLink.content(:to="'/thread/' + item._id")
.title {{ item.title }}
.info
diff --git a/pages/index.vue b/pages/index.vue
index 2a9b1a8..debc92a 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -11,7 +11,7 @@
span 最新
span 精华
.expnone
- nuxt-link.thread-create(to="/thread/create") 发新帖
+ nuxt-link.create-thread(to="/thread/create") 新议题
.content
ThreadList(:data="data")
aside
@@ -58,12 +58,12 @@ export default {
.content
padding: 1rem
-.thread-create
+a.create-thread
border: none
border-radius: .25rem
padding: .5rem 1rem
background-color: #007bff
- color: #ffffff
+ color: #ffffff !important
display: block
.bbs-title
diff --git a/pages/thread/_id.vue b/pages/thread/_id.vue
index 6619ac3..eac3504 100644
--- a/pages/thread/_id.vue
+++ b/pages/thread/_id.vue
@@ -13,7 +13,7 @@
p {{ thread.data }}
PostList(:data="postlist")
.post-create(v-if="account.online")
- .avatar
+ img.avatar(:src="account.avatar")
.content
textarea(v-model="post.data", rows="12")
button.submit(@click="createpost") 发表
@@ -112,4 +112,5 @@ export default {
background-color: #cc1414
font-weight: 600
min-width: 6rem
+ cursor: pointer
diff --git a/pages/thread/create.vue b/pages/thread/create.vue
index a3a310d..4b7bdd8 100644
--- a/pages/thread/create.vue
+++ b/pages/thread/create.vue
@@ -1,19 +1,28 @@
.thread-create
.header
- .background
+ h1.title {{ thread.title }}
+ .info info
+ //span.user {{ thread.user.name }}
+ //span.date {{ rwdate(thread.createdAt) }}
+ //span.view {{ thread.views }}
+ .tags
+ span.tag test
+ span.tag demo
.content.main-width
- input.title(v-model="thread.title")
- textarea.data(v-model="thread.data")
- button.submit(@click="submit") 发表x
+ p {{ thread.data }}
+ .content.main-width
+ input.title(v-model="thread.title")
+ textarea.data(v-model="thread.data", rows="32")
+ button.submit(@click="submit") 发表