Vue.filter("money", function(value) { return "¥ " + value.tofixed(2); });
<tr class="text-center" v-for="(item,index) in filterPorduct"> <td v-text="index+1"></td> <td v-text="item.porductId"></td> <td v-text="item.porductName"></td> <td v-text="item.porductPrice | money"></td> <td> <a href="javascript:;" @click="quentity(item,-1)">减</a> <span style="display: inline-block;width: 50px;" v-text="item.porductQuentity"></span> <a href="javascript:;" @click="quentity(item,1)">加</a> </td> <td v-text="item.porductPrice*item.porductQuentity"></td> <td><img v-bind:src="item.porductImage"></td> <td> <a href="javascript:;" @click="deleteItem(item)">删除</a> </td> </tr>
陌上人如玉_010
相关分类