...
|
...
|
@@ -15,22 +15,24 @@ |
|
|
<div class="order-goods">
|
|
|
<ul>
|
|
|
<li class="goods-info" v-for="product in order.orderGoods">
|
|
|
<div class="img-box">
|
|
|
<img v-bind:src="product.goodsImage | resize 49 65">
|
|
|
<label v-if="product.goodsType === 'gift'">赠品</label>
|
|
|
<label class="price-gift" v-if="product.goodsType === 'price_gift'">加价购</label>
|
|
|
</div>
|
|
|
<div class="goods-detail">
|
|
|
<p class="name">{{product.productName}}</p>
|
|
|
<p class="size">
|
|
|
<span>颜色:{{product.colorName}}</span>
|
|
|
<span>尺码:{{product.sizeName}}</span>
|
|
|
</p>
|
|
|
</div>
|
|
|
<div class="goods-price">
|
|
|
<p>¥{{product.goodsPrice}}</p>
|
|
|
<p>×{{product.buyNumber}}</p>
|
|
|
</div>
|
|
|
<a :href="product | goodsUrl 'collection'">
|
|
|
<div class="img-box">
|
|
|
<img v-bind:src="product.goodsImage | resize 49 65">
|
|
|
<label v-if="product.goodsType === 'gift'">赠品</label>
|
|
|
<label class="price-gift" v-if="product.goodsType === 'price_gift'">加价购</label>
|
|
|
</div>
|
|
|
<div class="goods-detail">
|
|
|
<p class="name">{{product.productName}}</p>
|
|
|
<p class="size">
|
|
|
<span>颜色:{{product.colorName}}</span>
|
|
|
<span>尺码:{{product.sizeName}}</span>
|
|
|
</p>
|
|
|
</div>
|
|
|
<div class="goods-price">
|
|
|
<p>¥{{product.goodsPrice}}</p>
|
|
|
<p>×{{product.buyNumber}}</p>
|
|
|
</div>
|
|
|
</a>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
...
|
...
|
@@ -209,20 +211,23 @@ |
|
|
});
|
|
|
},
|
|
|
confirmGoods(code) {
|
|
|
$.ajax({
|
|
|
url: '/me/confirmReceive',
|
|
|
type: 'post',
|
|
|
data: {
|
|
|
orderCode: code
|
|
|
}
|
|
|
}).then(result => {
|
|
|
if (result.code === 200) {
|
|
|
location.reload();
|
|
|
} else if (result.code !== 500) {
|
|
|
tip(result.message);
|
|
|
}
|
|
|
}).fail(() => {
|
|
|
tip('操作失败');
|
|
|
Modal.confirm('', '确认删除订单?', function() {
|
|
|
this.hide();
|
|
|
$.ajax({
|
|
|
url: '/me/confirmReceive',
|
|
|
type: 'post',
|
|
|
data: {
|
|
|
orderCode: code
|
|
|
}
|
|
|
}).then(result => {
|
|
|
if (result.code === 200) {
|
|
|
location.reload();
|
|
|
} else if (result.code !== 500) {
|
|
|
tip(result.message);
|
|
|
}
|
|
|
}).fail(() => {
|
|
|
tip('操作失败');
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
goBuy(order) {
|
...
|
...
|
|