li-guang
2020-12-18 7baf798ebef349d2d40879dc1ec6cbe48c245b94
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<template>
    <!-- 订单列表 -->
    <view>
        <!-- #ifndef H5 -->
        <view class="status_bar"></view>
        <!-- #endif -->
        <search-bar :placeholder=placeholder class="header-input"></search-bar>
        <view>
            <h-tabs
                class="tab"
                :tabData="tabs" 
                :config="{
                    color: '#abb1cc',
                    activeColor: '#518EFF',
                    underLineColor: '#518EFF',
                    underLineHeight: 4,
                    fontSize: '30',
                    underLineWidth: 60,
                }"
            />
            <view class="order">
                <view class="flex justify-between order-number">
                    <text class="font-14">订单号: N202012123556</text>
                    <text class="font-14 blue">待付款</text>
                </view>
                <view class="flex justify-between order-content">
                    <view class="flex flex-v">
                        <text class="font-12">李某某</text>
                        <text class="font-12 gray mt-10">2020-12-15 18:11:01</text>
                    </view>
                    <view class="flex flex-v">
                        <text class="font-12">应付金额</text>
                        <text class="font-12 mt-10">实付金额</text>
                        <text class="font-12 mt-10">欠款总额</text>
                    </view>
                    <view class="flex flex-v">
                        <text class="font-12">¥ 8000.00</text>
                        <text class="font-12 mt-10">¥ 0.00</text>
                        <text class="font-12 mt-10">¥ 8000.00</text>
                    </view>
                </view>
                <view class="flex justify-end">
                    <button class="blue-btn small-btn">取消订单</button>
                </view>
            </view>
            <view class="order">
                <view class="flex justify-between order-number">
                    <text class="font-14">订单号: N202012123556</text>
                    <text class="font-14 blue">已完成</text>
                </view>
                <view class="flex justify-between order-content">
                    <view class="flex flex-v">
                        <text class="font-12">李某某</text>
                        <text class="font-12 gray mt-10">2020-12-15 18:11:01</text>
                    </view>
                    <view class="flex flex-v">
                        <text class="font-12">应付金额</text>
                        <text class="font-12 mt-10">实付金额</text>
                    </view>
                    <view class="flex flex-v">
                        <text class="font-12">¥ 8000.00</text>
                        <text class="font-12 mt-10">¥ 8000.00</text>
                    </view>
                </view>
                <view class="flex justify-end">
                    <navigator url="./orderDetail">
                        <button class="blue-btn small-btn">查看详情</button>
                    </navigator>
                </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 {
            placeholder:"输入会员姓名、手机号、编号查询",
            tabs:[
                {
                    state: 1,
                    name: '全部'
                },
                {
                    state: 2,
                    name: '代付款'
                },
                {
                    state: 3,
                    name: '已付款'
                },
                {
                    state: 4,
                    name: '欠款'
                },
            ],
          }  
        }
    }
</script>
 
<style>
    .header-input{
        margin: 0 10px;
    }
    .tab{
        border-bottom: 1px solid #EDEAF4;
        border-radius: 4px;
        box-shadow:0 6px 6px rgba(237,234,244,0.5);
    }
    .order{
        border: 1px solid #EDEAF4;
        border-radius: 4px;
        box-shadow:0 6px 6px rgba(237,234,244,0.5);
        margin: 10px;
        padding: 0 6px;
    }
    .order-number{
        padding: 10px 6px;
        border-bottom: 1px solid #EDEAF4;
    }
    .order-content{
        padding: 15px 6px;
        border-bottom: 1px solid #EDEAF4;
    }
    .small-btn{
        width: 100px;
        margin: 10px 0;
        line-height: 30px;
    }
</style>