|
|
<template>
|
|
|
<!-- 订单卡片 -->
|
|
|
<view class="sh-order-box x-f mb10">
|
|
|
<view class="order-wrapper"> <!-- 为了加样式-->
|
|
|
<view class="sh-order-box x-f">
|
|
|
<view class="order-box x-f">
|
|
|
<view class="order-item y-f" @tap="jump('/pages/order/list', { type: order.type })" v-for="order in orderNav" :key="order.id">
|
|
|
<view class="y-f item-box">
|
...
|
...
|
@@ -9,24 +10,25 @@ |
|
|
<view class="cu-tag badge" v-if=" orderNum && orderNum[order.type]">{{ orderNum[order.type] }}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="order-item y-f" @tap="jump('/pages/order/after-sale/list')">
|
|
|
<!-- <view class="order-item y-f" @tap="jump('/pages/order/after-sale/list')">
|
|
|
<view class="y-f item-box">
|
|
|
<image class="order-img" src="http://shopro.7wpp.com/imgs/user/tab55.png" mode=""></image>
|
|
|
<text class="item-title">退换货</text>
|
|
|
<!-- <view class="cu-tag badge"></view> -->
|
|
|
</view>
|
|
|
<view class="cu-tag badge"></view>
|
|
|
</view>
|
|
|
</view> -->
|
|
|
</view>
|
|
|
|
|
|
<view class="order-item y-f all-order" @tap="jump('/pages/order/list', { type: 'all' })">
|
|
|
<image class="cut-off--line" src="/static/imgs/user/cut_off_line.png" mode=""></image>
|
|
|
<!-- <image class="cut-off--line" src="/static/imgs/user/cut_off_line.png" mode=""></image> -->
|
|
|
<view class="y-f item-box">
|
|
|
<image class="order-img" src="/static/imgs/user/all_order.png" mode="aspectFill"></image>
|
|
|
<text class="item-title">全部订单</text>
|
|
|
<text class="item-title">全部</text>
|
|
|
<!-- <view class="cu-tag badge" v-if="orderNum[order.type]">{{ orderNum[order.type] }}</view> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
...
|
...
|
@@ -42,12 +44,12 @@ export default { |
|
|
img: 'http://shopro.7wpp.com/imgs/user/tab11.png',
|
|
|
type: 'nopay'
|
|
|
},
|
|
|
// {
|
|
|
// id: 2,
|
|
|
// title: '待发货',
|
|
|
// img: 'http://shopro.7wpp.com/imgs/user/tab22.png',
|
|
|
// type: 'nosend'
|
|
|
// },
|
|
|
{
|
|
|
id: 2,
|
|
|
title: '待发货',
|
|
|
img: 'http://shopro.7wpp.com/imgs/user/tab22.png',
|
|
|
type: 'nosend'
|
|
|
},
|
|
|
{
|
|
|
id: 3,
|
|
|
title: '待收货',
|
...
|
...
|
@@ -56,11 +58,17 @@ export default { |
|
|
},
|
|
|
{
|
|
|
id: 4,
|
|
|
title: '待评价',
|
|
|
title: '已完成',
|
|
|
img: 'http://shopro.7wpp.com/imgs/user/tab44.png',
|
|
|
type: 'nocomment'
|
|
|
},
|
|
|
// {
|
|
|
// id: 4,
|
|
|
// title: '待评价',
|
|
|
// img: 'http://shopro.7wpp.com/imgs/user/tab44.png',
|
|
|
// type: 'nocomment'
|
|
|
// },
|
|
|
// {
|
|
|
// id: 5,
|
|
|
// title: '退换货',
|
|
|
// img: 'http://shopro.7wpp.com/imgs/user/tab55.png',
|
...
|
...
|
@@ -88,22 +96,29 @@ export default { |
|
|
|
|
|
<style lang="scss">
|
|
|
// 订单卡片
|
|
|
.order-wrapper{
|
|
|
padding-bottom: 32rpx !important;
|
|
|
}
|
|
|
.sh-order-box {
|
|
|
height: 180rpx;
|
|
|
padding-top: 28rpx;
|
|
|
padding-bottom: 28rpx;
|
|
|
background: #fff;
|
|
|
width: 686rpx;
|
|
|
border-radius: 16px;
|
|
|
margin: 0 auto;
|
|
|
.order-box {
|
|
|
flex: 4;
|
|
|
}
|
|
|
.all-order {
|
|
|
position: relative;
|
|
|
.cut-off--line {
|
|
|
position: absolute;
|
|
|
top: 50%;
|
|
|
transform: translateY(-50%);
|
|
|
right: (750rpx/5) - 15rpx;
|
|
|
width: 30rpx;
|
|
|
height: 136rpx;
|
|
|
}
|
|
|
// .cut-off--line {
|
|
|
// position: absolute;
|
|
|
// top: 50%;
|
|
|
// transform: translateY(-50%);
|
|
|
// right: (750rpx/5) - 15rpx;
|
|
|
// width: 30rpx;
|
|
|
// height: 136rpx;
|
|
|
// }
|
|
|
}
|
|
|
.order-item {
|
|
|
flex: 1;
|
...
|
...
|
|