Authored by ccbikai

Merge branch 'feature/home' into develop

... ... @@ -4,4 +4,3 @@
@import "product/index";
@import "channel/index";
@import "home/index";
@import "brand/index";
... ...
... ... @@ -2,6 +2,7 @@
<div class="refund">
<product-list v-bind:title="title" v-bind:list="list" v-bind:refund-data="refundData"></product-list>
<div class="return-amount">
<!-- TODO:退货信息优化为组件 -->
<div class="return-amount-item">
退款方法
... ...
... ... @@ -15,7 +15,7 @@
<div class="remark">
<textarea v-model="product.remark" rows="3" max-length="100" placeholder="退货原因说明"></textarea>
</div>
<div class="image-list clearfix">
<div v-show="specialReturnReason.indexOf(product.reason.id) !== -1" class="image-list clearfix">
<div class="image-item" v-for="image in imageListForShow">
<span v-on:click="deleteImage(image.index)" class="icon icon-close"></span>
<img v-bind:src="image.path">
... ... @@ -50,6 +50,15 @@
name: '请选择'
}].concat(this.refundData.returnReason);
},
specialReturnReason() {
const list = [];
this.refundData.specialReturnReason.forEach(reason => {
list.push(reason.id);
});
return list;
},
imageListForShow() {
const list = [];
... ...