Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7e731bc

Browse files
committed
样式调整
1 parent 013e0e2 commit 7e731bc

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

src/component/ListContent.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<div class="article_other">
2121
<div class="like">
2222
<img class="img" src="http://static.gocoder.top/like.png" alt="" mode="widthFix">
23+
{{item.like}}
2324
</div>
2425
<div class="acticle_comments">
2526
<img class="img" src="http://static.gocoder.top/comment.png" style="" alt="" mode="widthFix" >
@@ -134,7 +135,7 @@ word-break:break-all;
134135
.img{
135136
height: 28rpx;
136137
width: 30rpx;
137-
margin-left: 10rpx;
138+
margin-right: 10rpx;
138139
}
139140
.acticle_comments{
140141
.img{

src/home/Index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
<script>
2424
import Vue from 'vue'
25-
import Tabs from './Tabs/Index.vue'
25+
import Tabs from './tabs/Index.vue'
2626
import Web from 'reduce-loader!../common/Web.vue'
2727
import 'reduce-loader!./web'
2828

src/home/Tabs/Index.vue

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77
@click.stop="tabChang(item.key)"
88
:class="item.key === activeKey?'item_active':'item'"
99
>
10-
{{item.label}}
11-
<img class='icon' v-if="item.icon || item.activeIcon" :src="item.key === activeKey?item.activeIcon:item.icon" style="height:30rpx;width:30rpx"/>
10+
{{item.label}}
11+
<img
12+
class='icon' v-if="item.icon || item.activeIcon"
13+
:src="item.key === activeKey?item.activeIcon:item.icon"
14+
style="height:30rpx;width:30rpx"/>
1215
</KView>
1316
</KView>
1417
<kView class="content">
@@ -26,7 +29,7 @@ export default Vue.extend({
2629
data() {
2730
return {
2831
tabList: [
29-
{ label: '最新', key: 'newest' ,icon:'http://static.gocoder.top/unfold.png' ,activeIcon:'http://static.gocoder.top/unfold_active.png'},
32+
{ label: '最新', key: 'newest', icon: 'http://static.gocoder.top/unfold.png', activeIcon: 'http://static.gocoder.top/unfold_active.png' },
3033
{ label: '专栏', key: 'column' },
3134
{ label: '付费', key: 'pay' }
3235
],
@@ -39,7 +42,7 @@ export default Vue.extend({
3942
},
4043
title: '什么是协程(goroutine),它们是怎样作的呢?,什么是协程(goroutine),它们是怎样作的呢?',
4144
description: '这是描述这是描述这是描述这是描述这是描述这是描述这是描述这是描述这是描述这是描述这是描述这是描述这是描述这是描述这是描述',
42-
like: true,
45+
like: 6,
4346
comments: 10,
4447
id: 12,
4548
cover: ''
@@ -51,7 +54,7 @@ export default Vue.extend({
5154
},
5255
title: '什么是协程(goroutine),它们是怎样作的呢?什么是协程(goroutine),它们是怎样作的呢?什么是协程(goroutine),它们是怎样作的呢?',
5356
description: '这是描述这是描述这是描述这是描述这是描述这是描述这是描述这是描述这是描述这是描述这是描述',
54-
like: true,
57+
like: 6,
5558
comments: 10,
5659
id: 13,
5760
cover: 'http://img1.3lian.com/gif/more/11/2012/03/d037a77443c0a72a1432d815cd3b5724.jpg'
@@ -65,7 +68,7 @@ export default Vue.extend({
6568
methods: {
6669
tabChang(activeKey) {
6770
this.activeKey = activeKey
68-
this.$emit("onChange",activeKey)
71+
this.$emit('onChange', activeKey)
6972
}
7073
}
7174
})

0 commit comments

Comments
 (0)