| | |
| | | </view> |
| | | </view> |
| | | <view> |
| | | <text class="font-14">¥{{item.price}}</text> |
| | | <text class="font-14">¥{{item.isFree?0:item.price}}</text> |
| | | </view> |
| | | </view> |
| | | <view class="list-footer"> |
| | |
| | | totalAmount(){ |
| | | let amount = 0; |
| | | this.list.forEach((item) => { |
| | | amount += item.price * item.num; |
| | | if(!item.isFree){ |
| | | amount += item.price * item.num; |
| | | } |
| | | }) |
| | | return amount; |
| | | } |
| | |
| | | "count": item.num, |
| | | "goodsId": item.id, |
| | | "goodsType": item.goodsType, |
| | | "isFree": item.isPresent |
| | | "isFree": item.isFree?1:0 |
| | | } |
| | | }) |
| | | this.$httpUtils.request('/api/order/createOrder', { |