li-guang
2020-12-24 087e498f73c3bea6210b65e4d0df668db3c3fa81
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<template>
    <!-- 项目套餐 -->
    <view>
        <!-- #ifndef H5 -->
        <view class="status_bar"></view>
        <!-- #endif -->
        <view>
            <h-tabs
                class="tab"
                :tabData="tabs" 
                :config="{
                    color: '#abb1cc',
                    activeColor: '#518EFF',
                    underLineColor: '#518EFF',
                    underLineHeight: 6,
                    fontSize: '28',
                    underLineWidth: 60,
                }"
            />
        </view>
        <view class="content">
            <view class="content-box">
                <view class="content-box-title">
                    <text>项目</text>
                </view>
                <view class="flex align-center content-box-row" v-for="item in 2">
                    <image class="product-img" mode="aspectFill" src="../../static/images/product.jpg"></image>
                    <view class="flex flex-v ml-10 flex-1">
                        <view class="font-12 flex align-center justify-between">
                            <text>面部护理</text>
                            <text class="red">即将过期</text>
                        </view>
                        <text class="font-10 gray mt-5">时长: 30分钟</text>
                        <text class="font-10 gray mt-5">有效期至: 2021-01-02</text>
                        <view class="mt-5 flex align-center justify-between">
                            <text class="font-12 blue">剩余次数: 2次</text>
                            <navigator url="./" hover-class="none" class="right">
                                <button class="blue-btn small-btn">立即预约</button>
                            </navigator>
                        </view>
                    </view>
                </view>
            </view>
            
            <view class="content-box mt-10">
                <view class="content-box-title">
                    <text>套餐</text>
                </view>
                <view class="flex flex-v content-box-row" v-for="item in 2">
                    <view class="font-14 flex align-center justify-between">
                        <text>时尚补水套餐</text>
                        <text class="red">即将过期</text>
                    </view>
                    <view class="flex align-center mt-5">
                        <image class="product-img" mode="aspectFill" src="../../static/images/product.jpg"></image>
                        <view class="flex flex-v ml-10 flex-1">
                            <text class="font-12">面部护理</text>
                            <text class="font-10 gray mt-5">时长: 30分钟</text>
                            <text class="font-10 gray mt-5">有效期至: 2021-01-02</text>
                            <view class="mt-5 flex align-center justify-between">
                                <text class="font-12 blue">剩余次数: 2次</text>
                                <navigator url="./" hover-class="none" class="right">
                                    <button class="blue-btn small-btn">立即预约</button>
                                </navigator>
                            </view>
                        </view>
                    </view>
                    <view class="flex align-center mt-10">
                        <image class="product-img" mode="aspectFill" src="../../static/images/product.jpg"></image>
                        <view class="flex flex-v ml-10 flex-1">
                            <text class="font-12">面部护理</text>
                            <text class="font-10 gray mt-5">时长: 30分钟</text>
                            <text class="font-10 gray mt-5">有效期至: 2021-01-02</text>
                            <view class="mt-5 flex align-center justify-between">
                                <text class="font-12 blue">剩余次数: 2次</text>
                                <navigator url="./" hover-class="none" class="right">
                                    <button class="blue-btn small-btn">立即预约</button>
                                </navigator>
                            </view>
                        </view>
                    </view>
                    <view class="font-12 mt-5">
                        <text>有效期至: 2021-01-03</text>
                    </view>
                </view>
            </view>
        </view>
    </view>
</template>
 
<script>
    import HTabs from "@/components/liuyuno-tabs/liuyuno-tabs.vue";
    export default {
        components: {
            HTabs
        },
        data() {
          return {
            tabs:[
                {
                    state: 1,
                    name: '全部'
                },
                {
                    state: 2,
                    name: '有效'
                },
                {
                    state: 3,
                    name: '1个月内过期'
                },
                {
                    state: 4,
                    name: '失效'
                },
            ],
          }  
        }
    }
</script>
 
<style>
    page{
        background: #F6F6F8;
    }
    .tab{
        background: #FFFFFF;
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
        box-shadow:0 6px 6px rgba(237,234,244,0.5);
    }
    .content{
        padding: 10px;
    }
    .content-box{
        background: #FFFFFF;
        padding: 10px;
        border: 1px solid #EDEAF4;
        border-radius: 4px;
        box-shadow:0 6px 6px rgba(237,234,244,0.5);
    }
    .content-box-title{
        padding: 10px 5px;
        border-bottom: 1px solid #EDEAF4;
    }
    .content-box-row{
        padding: 10px 0;
        border-bottom: 1px solid #EDEAF4;
    }
    .content-box-row:nth-last-child(1){
        border: 0;
        padding-bottom: 0;
    }
    .product-img{
        width: 80px;
        height: 80px;
        border-radius: 4px;
    }
    .shopping{
        background: #FFFFFF;
        padding: 10px 10px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }
    .shopping-icon{
        font-size: 28px;
        position: relative;
    }
    .shopping-icon-num{
        width: 20px;
        height: 20px;
        background: #518EFF;
        border-radius: 50%;
        color: #FFFFFF;
        position: absolute;
        right: -10px;
        top: -10px;
    }
    .btn{
        border-radius: 20px;
        line-height: 34px;
        padding: 0 24px;
        font-size: 14px;
    }
</style>