提交信息

This commit is contained in:
duan
2024-05-14 11:34:41 +08:00
parent 740c83bb4a
commit da87e38df0
6 changed files with 276 additions and 9 deletions

View File

@@ -12,9 +12,17 @@
</view>
<u-sticky bgColor="#fff">
<view class="tab-wrap">
<view class="item" v-for="(item, index) in tabs" :key="index" @click="orderswitch(item,index)">
<text>{{ item.name }}</text>
<block v-if="navtabindex==0">
<view class="item" v-for="(item, index) in tabs2" :key="index" @click="orderswitch(item,index)">
<text >{{ item.name }}</text>
</view>
</block>
<block v-if="navtabindex==1">
<view class="item" v-for="(item, index) in tabs" :key="index" @click="orderswitch(item,index)">
<text >{{ item.name }}</text>
</view>
</block>
<view class="line-wrap"
:style="{ left: `${(100 / tabs.length) * active}%`, width: `${100 / tabs.length}%` }">
<view class="line">
@@ -38,6 +46,8 @@
<text class="status" v-if="item.status == 'unsend'">
<text>待发货</text>
</text>
<text class="status" v-if="item.status == 'closed'">
<text>订单完成</text>
</text>
@@ -141,6 +151,7 @@
type: 3,
status: 'unsend'
},
{
name: '已完成',
type: 4,
@@ -150,7 +161,34 @@
name: '退款',
type: 5,
status: 'refund'
}
},
],
tabs2: [{
name: '全部',
type: 1,
status: ''
},
{
name: '待支付',
type: 2,
status: 'unpaid'
},
{
name: '待使用',
type: 3,
status: 'unused'
},
{
name: '已完成',
type: 4,
status: 'closed'
},
{
name: '退款',
type: 5,
status: 'refund'
},
],
list: [],
groupList: [],