<template>
|
<!-- 订单列表 -->
|
<view>
|
<view class="header">
|
<search-bar class="mb-0"></search-bar>
|
</view>
|
<view>
|
<h-tabs
|
class="tab"
|
:tabData="tabs"
|
:config="{
|
color: '#abb1cc',
|
activeColor: '#518EFF',
|
underLineColor: '#518EFF',
|
underLineHeight: 4,
|
fontSize: '28',
|
underLineWidth: 60,
|
}"
|
/>
|
<view class="list">
|
<view class="list-item" v-for="item in 4">
|
<view class="list-header">
|
<text>订单号: N202012123556</text>
|
<text class="blue">待付款</text>
|
</view>
|
<view class="list-content">
|
<view class="flex flex-v">
|
<text class="font-bold font-16">李某某</text>
|
<text class="gray">2020-12-15 18:11:01</text>
|
</view>
|
<view class="flex flex-v">
|
<text>应付金额</text>
|
<text>实付金额</text>
|
<text>欠款总额</text>
|
</view>
|
<view class="flex flex-v right">
|
<text>¥ 8000.00</text>
|
<text>¥ 0.00</text>
|
<text>¥ 8000.00</text>
|
</view>
|
</view>
|
<view class="list-footer">
|
<text class="blue-btn small-btn">取消订单</text>
|
</view>
|
</view>
|
</view>
|
</view>
|
</view>
|
</template>
|
|
<script>
|
import HTabs from "@/components/liuyuno-tabs/liuyuno-tabs.vue";
|
import searchBar from '../../components/searchBar/index.vue';
|
export default {
|
components: {
|
HTabs,
|
searchBar
|
},
|
data() {
|
return {
|
tabs:[
|
{
|
state: 1,
|
name: '全部'
|
},
|
{
|
state: 2,
|
name: '待付款'
|
},
|
{
|
state: 3,
|
name: '已付款'
|
},
|
{
|
state: 4,
|
name: '欠款'
|
},
|
],
|
}
|
}
|
}
|
</script>
|
|
<style>
|
page{
|
background: #F6F6F8;
|
}
|
.header{
|
padding: 10px;
|
background: #FFFFFF;
|
}
|
.tab{
|
background: #FFFFFF;
|
border-bottom: 1px solid #EDEAF4;
|
}
|
.list-item{
|
background: #FFFFFF;
|
border-radius: 4px;
|
margin: 10px;
|
color: #3a3f3f;
|
}
|
.list-header{
|
display: flex;
|
justify-content: space-between;
|
padding: 12px 15px;
|
font-size: 15px;
|
border-bottom: 1px solid #EDEAF4;
|
}
|
.list-content{
|
display: flex;
|
justify-content: space-between;
|
padding: 12px 15px;
|
font-size: 14px;
|
line-height: 28px;
|
}
|
.list-footer{
|
display: flex;
|
justify-content: flex-end;
|
padding: 10px 15px;
|
border-top: 1px solid #EDEAF4;
|
}
|
</style>
|