<template>
<header class="dog-header order-header"><h1>确认订单</h1></header>
<div class="order-list">
<div class="client abs-center"><img src="http://cn.vuejs.org/images/logo.png" class="thumb"><span>小小阿米达</span></div>
<div v-for="dish in dishes" class="order-dish">
<span class="dish-name">{{dish.name}}</span><span>¥{{dish.price}}<span class="btn del-btn"></span>
<input v-model="dish.count" class="dish-count"><span class="btn add-btn" @click="add"></span>
</span>
</div>
</div>
</template>
<script>
import * as Getters from '../vuex/getter.js'
import * as Actions from '../vuex/action.js'
export default{
methods:{
add:function(){
}
},
vuex:{
getters:{
dishes: Getters.dishes
}
}
}
</script>
应该发送action,然后到mutation中对其进行处理