【类 型】:test

【原  因】:
【过  程】:
【影  响】:

# 类型 包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
This commit is contained in:
sszdot 2024-12-19 14:21:15 +08:00
parent 248fb100d7
commit ea1ca41c62

View File

@ -1,30 +1,6 @@
<template>
<view>
<!-- topbar -->
<u-navbar title="订单查询" bgColor="#d43030" :titleStyle="{ color: '#FFF'}" :autoBack="true" placeholder>
<view class="u-nav-slot" slot="left">
<u-icon name="arrow-left" color="#fff" size="19"></u-icon>
</view>
</u-navbar>
<!-- tabs -->
<u-subsection :list="list" :current="curNow" @change="sectionChange"></u-subsection>
<!-- tabBoxs -->
<!-- 未付款 -->
<view v-if="curNow===0">
<view v-for="item in orderList" :key="item.id" v-if="item.main_status === '未付款' && item.refund_status !== '申请中'">
订单号: {{item.order_sn}}
</view>
</view>
<view v-if="curNow===1">
<view v-for="item in orderList" :key="item.id" v-if="item.main_status === '已付款' && item.refund_status !== '申请中'">
订单号: {{item.order_sn}}
</view>
</view>
<view v-if="curNow===2">
<view v-for="item in orderList" :key="item.id" v-if="item.refund_status === '申请中'">
订单号: {{item.order_sn}}
</view>
</view>
<u-tabs-swiper ref="tabs" :list="list" :is-scroll="false"></u-tabs-swiper>
</view>
</template>
@ -32,26 +8,15 @@
export default {
data() {
return {
list: ['未付款', '已付款', '申请售后'],
curNow: 0
list: [{
name: '待收货'
}, {
name: '待付款'
}, {
name: '待评价',
count: 5
}],
}
},
computed: {
orderList() {
return this.$store.state.orderList
}
},
methods: {
sectionChange(index) {
this.curNow = index;
}
},
onLoad() {
this.$store.dispatch('fetchOrderList')
}
}
</script>
<style>
</style>
</script>