|
|
|
|
@ -1,24 +1,12 @@
|
|
|
|
|
<template>
|
|
|
|
|
<view class="container">
|
|
|
|
|
<!-- 顶部筛选标签 -->
|
|
|
|
|
<view class="filter-tabs">
|
|
|
|
|
<view class="tab-item" :class="{ active: activeTab === 'all' }" @click="switchTab('all')">
|
|
|
|
|
全部
|
|
|
|
|
</view>
|
|
|
|
|
<view class="tab-item" :class="{ active: activeTab === 'recharge' }" @click="switchTab('recharge')">
|
|
|
|
|
充值
|
|
|
|
|
</view>
|
|
|
|
|
<view class="tab-item" :class="{ active: activeTab === 'monthly' }" @click="switchTab('monthly')">
|
|
|
|
|
包月
|
|
|
|
|
</view>
|
|
|
|
|
<view class="tab-item" :class="{ active: activeTab === 'season' }" @click="switchTab('season')">
|
|
|
|
|
包季
|
|
|
|
|
</view>
|
|
|
|
|
<view class="tab-item" :class="{ active: activeTab === 'yearly' }" @click="switchTab('yearly')">
|
|
|
|
|
包年
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<uv-sticky bgColor="#fff" offsetTop="0">
|
|
|
|
|
<div class="tabBox">
|
|
|
|
|
<div class="tabItem" :class="{selected:active==='全部'}" @click="() => active = '全部'">全部</div>
|
|
|
|
|
<div class="tabItem" :class="{selected:active==='已支付'}" @click="() => active = '已支付'">已支付</div>
|
|
|
|
|
<div class="tabItem" :class="{selected:active==='待支付'}" @click="() => active = '待支付'">待支付</div>
|
|
|
|
|
</div>
|
|
|
|
|
</uv-sticky>
|
|
|
|
|
<!-- 订单列表 -->
|
|
|
|
|
<view class="order-list">
|
|
|
|
|
<view class="order-item" v-for="order in filteredOrders" :key="order.id">
|
|
|
|
|
@ -140,6 +128,7 @@
|
|
|
|
|
} from "@/store";
|
|
|
|
|
import HeaderCustom from '/components/HeaderCustom/HeaderCustom.vue'
|
|
|
|
|
import RPC from "@/utils/request";
|
|
|
|
|
const active = ref('全部')
|
|
|
|
|
|
|
|
|
|
const authStore = useAuthStore()
|
|
|
|
|
const userStore = useUserStore()
|
|
|
|
|
@ -321,39 +310,25 @@
|
|
|
|
|
background-color: #f8f8f8;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.filter-tabs {
|
|
|
|
|
.tabBox {
|
|
|
|
|
height: 50px;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
display: flex;
|
|
|
|
|
background: white;
|
|
|
|
|
padding: 0 16px;
|
|
|
|
|
border-bottom: 1px solid #e5e5e5;
|
|
|
|
|
|
|
|
|
|
.tab-item {
|
|
|
|
|
.tabItem {
|
|
|
|
|
height: 100%;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
flex: 1;
|
|
|
|
|
text-align: center;
|
|
|
|
|
padding: 16px 0;
|
|
|
|
|
color: #666;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
|
color: #4285f4;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
|
content: '';
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
left: 50%;
|
|
|
|
|
transform: translateX(-50%);
|
|
|
|
|
width: 20px;
|
|
|
|
|
height: 2px;
|
|
|
|
|
background: #4285f4;
|
|
|
|
|
border-radius: 1px;
|
|
|
|
|
&.selected {
|
|
|
|
|
color: #5479ED;
|
|
|
|
|
border-bottom: 1px solid #5479ED;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.order-list {
|
|
|
|
|
padding: 16px;
|
|
|
|
|
|
|
|
|
|
|