提交 8f5e5cca authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 df9ad456
...@@ -113,7 +113,7 @@ export default { ...@@ -113,7 +113,7 @@ export default {
.course-tag-item { .course-tag-item {
display: inline-block; display: inline-block;
max-width: 100%; max-width: 100%;
height: 24px; // height: 24px;
margin: 0 10px 10px 0; margin: 0 10px 10px 0;
padding: 0 15px; padding: 0 15px;
background: #67a8ff; background: #67a8ff;
...@@ -123,9 +123,9 @@ export default { ...@@ -123,9 +123,9 @@ export default {
font-size: 13px; font-size: 13px;
color: #fff; color: #fff;
line-height: 24px; line-height: 24px;
white-space: nowrap; // white-space: nowrap;
text-overflow: ellipsis; // text-overflow: ellipsis;
overflow: hidden; // overflow: hidden;
} }
} }
.more { .more {
......
...@@ -109,23 +109,25 @@ export default { ...@@ -109,23 +109,25 @@ export default {
this.searchTag(data.name) this.searchTag(data.name)
}, },
searchTag(keywords) { searchTag(keywords) {
api.getSearchTagList({ keywords }).then(response => { api
if (response.length) { .getSearchTagList({ keywords, course_id: this.courseId })
this.messageList.push({ .then(response => {
id: this.genId(), if (response.length) {
type: 2, this.messageList.push({
from: 'system', id: this.genId(),
payload: response type: 2,
}) from: 'system',
} else { payload: response
this.messageList.push({ })
id: this.genId(), } else {
type: 0, this.messageList.push({
from: 'system', id: this.genId(),
payload: { text: '找不到相关内容' } type: 0,
}) from: 'system',
} payload: { text: '找不到相关内容' }
}) })
}
})
}, },
onChangeTag(data) { onChangeTag(data) {
this.messageList.push({ this.messageList.push({
......
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
</li> </li>
</ul> </ul>
</div> </div>
<card title="课程试听" style="padding-bottom:.12rem;"> <card title="课程试听" style="padding-bottom:1.2rem;">
<free-course-item v-for="item in courseList" :data="item" :key="item.course_id"></free-course-item> <free-course-item v-for="(item, index) in courseList" :data="item" :key="index"></free-course-item>
</card> </card>
</div> </div>
</template> </template>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论