changes
This commit is contained in:
parent
8887f4937d
commit
1bd62a211b
|
@ -59,4 +59,8 @@
|
|||
|
||||
[v-cloak] {
|
||||
display: none;
|
||||
}
|
||||
.active{
|
||||
color:#fff;
|
||||
background-color: #ccc;
|
||||
}
|
|
@ -22,8 +22,8 @@
|
|||
<td>{{item.author}}</td>
|
||||
<td>{{item.num}}</td>
|
||||
<td>
|
||||
<button class="buy" @click="buy_item(item.id)">买入</button>
|
||||
<button class="sale" @click="sale_item(item.id)">卖出</button>
|
||||
<button class="buy" @click="buy_item(item.id)" :class="item.num>=10?'active':''">买入</button>
|
||||
<button class="sale" @click="sale_item(item.id)" :class="item.num<=0?'active':''">卖出</button>
|
||||
<button class="del" @click="remove(index)">删除</button>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in New Issue