Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
feat(topic): 话题 -> 专题
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Jul 26, 2018
1 parent 4871d54 commit 0efb730
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/page/post/PostQuestion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
<input
v-model="topicKeyWord"
type="search"
placeholder="搜索话题"
placeholder="搜索专题"
@input="inputTopicKeyWord">
<svg
v-show="topicKeyWord.length > 0"
Expand Down Expand Up @@ -179,7 +179,7 @@ export default {
case 2:
return "问题详情";
case 3:
return "至少添加一个话题";
return "至少添加一个专题";
case 4:
return "悬赏(可跳过)";
default:
Expand Down Expand Up @@ -224,7 +224,7 @@ export default {
index > -1
? this.selectedTops.splice(index, 1)
: this.selectedTops.length > 4
? this.$Message.error("添加话题不可以超过5个")
? this.$Message.error("添加专题不可以超过5个")
: this.selectedTops.push(topic);
},
serachQuestionByKey: _.debounce(function() {
Expand Down Expand Up @@ -302,7 +302,7 @@ export default {
if (!title) return (this.step = 1), this.$Message.error("请输入问题标题");
if (this.selectedTops.length === 0)
return (this.step = 3), this.$Message.error("至少选择一个话题");
return (this.step = 3), this.$Message.error("至少选择一个专题");
this.postQuestion({
subject: title,
Expand Down
2 changes: 1 addition & 1 deletion src/page/question/QuestionSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
:to="{path: '/question/search', query: {type: 'topic'}}"
replace
exact
exact-active-class="active">话题</router-link>
exact-active-class="active">专题</router-link>
</nav>

<jo-load-more
Expand Down
4 changes: 2 additions & 2 deletions src/page/question/TopicDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</svg>
</div>
<div class="m-box m-aln-center m-justify-center m-flex-auto m-head-top-title">
<span class="m-text-cut">{{ topic.name || "话题详情" }}</span>
<span class="m-text-cut">{{ topic.name || "专题详情" }}</span>
</div>
<div class="m-box m-aln-center m-justify-end m-flex-none">
<svg class="m-style-svg m-svg-def">
Expand Down Expand Up @@ -50,7 +50,7 @@

<!-- Topic desc -->
<div class="topic-desc">
话题简介:{{ topic.description }}
专题简介:{{ topic.description }}
</div>

<!-- Experts -->
Expand Down
2 changes: 1 addition & 1 deletion src/page/question/TopicList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
to="/question/topics"
replace
exact
exact-active-class="active">全部话题</router-link>
exact-active-class="active">全部专题</router-link>
<router-link
:to="{ path: '/question/topics', query: { type: 'follow' } }"
replace
Expand Down
2 changes: 1 addition & 1 deletion src/page/question/components/SwitchBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
:replace="true"
:exact="true"
to="/question/topics" >
话题
专题
</router-link>
</div>

Expand Down

0 comments on commit 0efb730

Please sign in to comment.