add OrderGoods component

This commit is contained in:
陈嘉涵
2017-08-30 11:54:21 +08:00
parent cfa0f649b6
commit 6d4f076c16
12 changed files with 1066 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
<template>
<van-cell
class="van-order-goods-price"
title="合计"
:value="totalPrice"
/>
</template>
<script>
import Cell from '../cell';
import { getTotalPrice } from './utils';
export default {
name: 'van-order-goods-price',
components: {
[Cell.name]: Cell
},
props: {
price: Number,
points: Number,
isPoints: Boolean
},
computed: {
totalPrice() {
return getTotalPrice(this.price, this.points, this.isPoints);
}
}
};
</script>