gx
queenwuli
2021-01-09 79f11f34546a394ab1c16ba427c31e9b59d05523
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
<template>
    <!-- 领用 -->
    <view>
        <h-tabs
            class="tab"
            :activeIndex="orderStatus"
            :tabData="tabs" 
            :config="{
                color: '#abb1cc',
                activeColor: '#518EFF',
                underLineColor: '#518EFF',
                underLineHeight: 6,
                fontSize: '28',
                underLineWidth: 60,
            }"
        />
        <view>
            <navigator class="list-item">
                <view class="list-header">
                    <view class="flex align-center">
                        <image class="icon" src="../../static/images/order-icon1.png"></image>
                        <text>六女士</text>
                    </view>
                    <text class="gray">2020-12-12 19:06:08</text>
                </view>
                <view class="list-content">
                    <image class="icon" src="../../static/images/order-icon2.png"></image>
                    <view class="flex-1">
                        <view class="flex justify-between">
                            <view>
                                <text>肽妍氨基酸平衡基础洁面乳</text>
                                <text class="ml-15">x6</text>
                            </view>
                            <text>已领 1/3</text>
                        </view>
                        <view class="flex justify-between mt-10">
                            <view>
                                <text>水光面膜</text>
                                <text class="ml-15">x6</text>
                            </view>
                            <text>已领 2/6</text>
                        </view>
                        <view class="flex justify-between mt-10">
                            <text class="gray">共计9件,已领3件</text>
                            <text class="blue">待领取</text>
                        </view>
                    </view>
                </view>
                <view class="list-footer">
                    <navigator class="blue-btn small-btn mr-10" url="./" hover-class="none">
                        <text>查看订单</text>
                    </navigator>
                    <navigator class="blue-btn small-btn mr-10" url="./receiveRecord" hover-class="none">
                        <text>领取记录</text>
                    </navigator>
                    <navigator class="blue-btn small-btn" url="./confirmReceive" hover-class="none" v-if="$utils.hasPermission('linyong.linqu')">
                        <text>领取</text>
                    </navigator>
                </view>
            </navigator>
        </view>
    </view>
</template>
 
<script>
    import HTabs from "@/components/liuyuno-tabs/liuyuno-tabs.vue";
    export default {
        components: {
            HTabs
        },
        data() {
            return {
                tabs:[
                    {
                        state: 0,
                        name: '全部'
                    },
                    {
                        state: 1,
                        name: '待领取'
                    },
                    {
                        state: 2,
                        name: '已领取'
                    }
                ],
                list: []
            }  
        }
    }
</script>
 
<style>
    page{
        background: #F6F6F8;
    }
    .tab{
        background: #FFFFFF;
        border-bottom: 1px solid #EDEAF4;
    }
    .list-item{
        background: #FFFFFF;
        border-radius: 4px;
        margin: 10px;
        color: #3a3f3f;
        padding: 0 10px;
    }
    .list-header{
        display: flex;
        justify-content: space-between;
        padding: 12px 0;
        font-size: 15px;
        border-bottom: 1px solid #EDEAF4;
    }
    .list-content{
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 12px 0;
        font-size: 14px;
    }
    .icon{
        width: 16px;
        height: 16px;
        vertical-align: sub;
        margin-right: 10px;
    }
    .list-footer{
        display: flex;
        justify-content: flex-end;
        padding: 10px 0;
        border-top: 1px solid #EDEAF4;
    }
</style>