|
|
<template>
|
|
|
<ul id="order-list" v-infinite-scroll="getOrderData()" infinite-scroll-disabled="busy" infinite-scroll-distance="10">
|
|
|
<li class="order-item" v-for="(index, order) in orderList">
|
|
|
<div class="order-detail">
|
|
|
<div class="order-code">
|
|
|
<p>订单号:{{order.orderCode}}</p>
|
|
|
<p>{{order.statusStr}}</p>
|
|
|
</div>
|
|
|
<div class="order-goods" >
|
|
|
<div class="goods-info" v-for="goods in order.orderGoods">
|
|
|
<div class="img-box">
|
|
|
<img v-bind:src="goods.goodsImage | resize 49 65">
|
|
|
<label v-if="goods.goodsType === 'gift'">赠品</label>
|
|
|
<label class="price-gift" v-if="goods.goodsType === 'price_gift'">加价购</label>
|
|
|
</div>
|
|
|
<div class="goods-detail">
|
|
|
<p class="name">{{goods.productName}}</p>
|
|
|
<p class="size">
|
|
|
<span>颜色:{{goods.colorName}}</span>
|
|
|
<span>尺码:{{goods.sizeName}}</span>
|
|
|
</p>
|
|
|
</div>
|
|
|
<div class="goods-price">
|
|
|
<p>¥ {{goods.goodsPrice}}</p>
|
|
|
<p>×{{goods.buyNumber}}</p>
|
|
|
<div class="order-wrapper" v-if="orderList.length > 0">
|
|
|
<ul id="order-list" v-infinite-scroll="getOrderData()" infinite-scroll-disabled="busy" infinite-scroll-distance="10">
|
|
|
<li class="order-item" v-for="(index, order) in orderList">
|
|
|
<div class="order-detail">
|
|
|
<div class="order-code">
|
|
|
<p>订单号:{{order.orderCode}}</p>
|
|
|
<p>{{order.statusStr}}</p>
|
|
|
</div>
|
|
|
<div class="order-goods" >
|
|
|
<div class="goods-info" v-for="goods in order.orderGoods">
|
|
|
<div class="img-box">
|
|
|
<img v-bind:src="goods.goodsImage | resize 49 65">
|
|
|
<label v-if="goods.goodsType === 'gift'">赠品</label>
|
|
|
<label class="price-gift" v-if="goods.goodsType === 'price_gift'">加价购</label>
|
|
|
</div>
|
|
|
<div class="goods-detail">
|
|
|
<p class="name">{{goods.productName}}</p>
|
|
|
<p class="size">
|
|
|
<span>颜色:{{goods.colorName}}</span>
|
|
|
<span>尺码:{{goods.sizeName}}</span>
|
|
|
</p>
|
|
|
</div>
|
|
|
<div class="goods-price">
|
|
|
<p>¥ {{goods.goodsPrice}}</p>
|
|
|
<p>×{{goods.buyNumber}}</p>
|
|
|
</div>
|
|
|
<a href="/me/order/detail?orderCode={{order.orderCode}}"></a>
|
|
|
</div>
|
|
|
<a href="/me/order/detail?orderCode={{order.orderCode}}"></a>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="order-option">
|
|
|
<div class="goods-total">合计: <b>¥{{order.amount}}</b></div>
|
|
|
<div class="options">
|
|
|
<button v-if="order.isCancel === 'Y'" @click="deleteOrder(order,index)" class="normal">删除订单</button>
|
|
|
<template v-else>
|
|
|
<button v-if="order.status === 0" @click="cancelOrder(order.orderCode)">取消订单</button>
|
|
|
<button v-if="order.status === 0 " class="countdown" @click="goBuy(order.orderCode)">去支付
|
|
|
<span v-count-down v-bind:left-time="order.payLefttime" v-bind:callback="autoCancel(order.orderCode)"></span>
|
|
|
</button>
|
|
|
<a v-if="order.status === 4 || order.status === 5 "
|
|
|
href="/me/logistic?order_code={{order.orderCode}}">查看物流</a>
|
|
|
<button v-if="order.status === 4 || order.status === 5 " class="black" @click="confirmGoods(order.orderCode)">确认收货</button>
|
|
|
<button v-if="order.status === 6" @click="deleteOrder(order,index)" class="normal">删除订单</button>
|
|
|
</template>
|
|
|
<div class="order-option">
|
|
|
<div class="goods-total">合计: <b>¥{{order.amount}}</b></div>
|
|
|
<div class="options">
|
|
|
<button v-if="order.isCancel === 'Y'" @click="deleteOrder(order,index)" class="normal">删除订单</button>
|
|
|
<template v-else>
|
|
|
<button v-if="order.status === 0" @click="cancelOrder(order.orderCode)">取消订单</button>
|
|
|
<button v-if="order.status === 0 " class="countdown" @click="goBuy(order.orderCode)">去支付
|
|
|
<span v-count-down v-bind:left-time="order.payLefttime" v-bind:callback="autoCancel(order.orderCode)"></span>
|
|
|
</button>
|
|
|
<a v-if="order.status === 4 || order.status === 5 "
|
|
|
href="/me/logistic?order_code={{order.orderCode}}">查看物流</a>
|
|
|
<button v-if="order.status === 4 || order.status === 5 " class="black" @click="confirmGoods(order.orderCode)">确认收货</button>
|
|
|
<button v-if="order.status === 6" @click="deleteOrder(order,index)" class="normal">删除订单</button>
|
|
|
</template>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
<div class="order-empty {{emptybox}}">
|
|
|
<p>您暂时还没有订单</p>
|
|
|
<p>Your do not have an order <br>for the time being</p>
|
...
|
...
|
|