|
@@ -1,32 +1,14 @@
|
|
|
<template>
|
|
|
<view :style="colorStyle">
|
|
|
<view class="my-order">
|
|
|
- <view class="nav acea-row row-around">
|
|
|
- <view class="item" :class="orderStatus == 0 ? 'on' : ''" @click="statusClick(0)">
|
|
|
- <view>{{ $t(`全部`) }}</view>
|
|
|
- <!-- <view class="num">{{ orderData.evaluated_count || 0 }}</view> -->
|
|
|
- </view>
|
|
|
- <view class="item" :class="orderStatus == 1 ? 'on' : ''" @click="statusClick(1)">
|
|
|
- <view>{{ $t(`待付款`) }}</view>
|
|
|
- <!-- <view class="num">{{ orderData.unpaid_count || 0 }}</view> -->
|
|
|
- </view>
|
|
|
- <view class="item" :class="orderStatus == 2 ? 'on' : ''" @click="statusClick(2)">
|
|
|
- <view>{{ $t(`待发货`) }}</view>
|
|
|
- <!-- <view class="num">{{ orderData.unshipped_count || 0 }}</view> -->
|
|
|
- </view>
|
|
|
- <view class="item" :class="orderStatus == 3 ? 'on' : ''" @click="statusClick(3)">
|
|
|
- <view>{{ $t(`待收货`) }}</view>
|
|
|
- <!-- <view class="num ">{{ orderData.received_count || 0 }}</view> -->
|
|
|
- </view>
|
|
|
- <!-- <view class="item" :class="orderStatus == 3 ? 'on' : ''" @click="statusClick(3)">
|
|
|
- <view>{{$t(`待评价`)}}</view>
|
|
|
- <view class="num">{{ orderData.evaluated_count || 0 }}</view>
|
|
|
- </view> -->
|
|
|
- <view class="item" :class="orderStatus == 4 ? 'on' : ''" @click="statusClick(4)">
|
|
|
- <view>{{ $t(`已完成`) }}</view>
|
|
|
- <!-- <view class="num">{{ orderData.complete_count || 0 }}</view> -->
|
|
|
+ <view class="header-group" style="padding-left: 20rpx;" >
|
|
|
+ <view class="tabs">
|
|
|
+ <u-tabs :is-scroll="true" :list="navigationList" @change="statusClick()" lineColor="#B22338"
|
|
|
+ :inactiveStyle="{ color: '#999999' }" :activeStyle="{ color: '#B22338', fontWeight: 'bold' }"
|
|
|
+ keyName="title"></u-tabs>
|
|
|
</view>
|
|
|
</view>
|
|
|
+
|
|
|
<view class="list" @click="goOrderDetails()">
|
|
|
<view class="myclient_list">
|
|
|
<view class="myclient_list_name">
|
|
@@ -123,6 +105,28 @@ export default {
|
|
|
mixins: [colors],
|
|
|
data () {
|
|
|
return {
|
|
|
+ navigationList: [{
|
|
|
+ title: '全部',
|
|
|
+ id: 0
|
|
|
+ }
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ title: '待收货',
|
|
|
+ id: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '待提货',
|
|
|
+ id: 2
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '已完成',
|
|
|
+ id: 3
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '售后',
|
|
|
+ id: 4
|
|
|
+ },
|
|
|
+ ],
|
|
|
loading: false, //是否加载中
|
|
|
loadend: false, //是否加载完毕
|
|
|
loadTitle: this.$t(`加载更多`), //提示语
|