1
|
<template>
|
1
|
<template>
|
2
|
- <div style="height: 100%;">
|
2
|
+ <div class="coupon-page">
|
3
|
<ClassicTabs ref="tabs" v-model="selectLabel" :data="tabLabels" :filterId.sync="selectFilterId"></ClassicTabs>
|
3
|
<ClassicTabs ref="tabs" v-model="selectLabel" :data="tabLabels" :filterId.sync="selectFilterId"></ClassicTabs>
|
4
|
-
|
|
|
5
|
- <div class="tab-slide-container">
|
|
|
6
|
- <Slide
|
|
|
7
|
- ref="slide"
|
|
|
8
|
- :loop="false"
|
|
|
9
|
- :auto-play="false"
|
|
|
10
|
- :show-dots="false"
|
|
|
11
|
- :initial-index="initialIndex"
|
|
|
12
|
- :options="slideOptions"
|
|
|
13
|
- @scroll="scroll"
|
|
|
14
|
- @change="changePage"
|
|
|
15
|
- >
|
|
|
16
|
- <SlideItem style="background-color: #f0f0f0;">
|
|
|
17
|
- <ExchangeBox v-model="inputCouponCode" @click="onSubmitCode"></ExchangeBox>
|
|
|
18
|
-
|
|
|
19
|
- <ScrollView class="scroll-view1" ref="notuse" :data="getNotUseList" :options="scrollOptions" v-if="getNotUseList.length" :reach-bottom="reachBottom">
|
|
|
20
|
- <CouponItem :item="item" v-for="(item, index) in getNotUseList" :key="index + '' + item.coupon_id"></CouponItem>
|
|
|
21
|
- </ScrollView>
|
|
|
22
|
- <Empty v-else></Empty>
|
|
|
23
|
- </SlideItem>
|
|
|
24
|
-
|
|
|
25
|
- <SlideItem style="background-color: #f0f0f0;">
|
|
|
26
|
- <ScrollView class="scroll-view2" ref="use" :data="getUseList" :options="scrollOptions" v-if="getUseList.length" :reach-bottom="reachBottom">
|
|
|
27
|
- <CouponItem :item="item" v-for="(item, index) in getUseList" :key="index + '' + item.coupon_id"></CouponItem>
|
|
|
28
|
- </ScrollView>
|
|
|
29
|
- <Empty v-else></Empty>
|
|
|
30
|
- </SlideItem>
|
|
|
31
|
-
|
|
|
32
|
- <SlideItem style="background-color: #f0f0f0;">
|
|
|
33
|
- <ScrollView class="scroll-view2" ref="overtime" :data="getOvertimeList" :options="scrollOptions" v-if="getOvertimeList.length" :reach-bottom="reachBottom">
|
|
|
34
|
- <CouponItem :item="item" v-for="(item, index) in getOvertimeList" :key="index + '' + item.coupon_id"></CouponItem>
|
|
|
35
|
- </ScrollView>
|
|
|
36
|
- <Empty v-else></Empty>
|
|
|
37
|
- </SlideItem>
|
|
|
38
|
- </Slide>
|
|
|
39
|
- </div>
|
4
|
+ <Slide
|
|
|
5
|
+ class="slide-box"
|
|
|
6
|
+ ref="slide"
|
|
|
7
|
+ :loop="false"
|
|
|
8
|
+ :auto-play="false"
|
|
|
9
|
+ :show-dots="false"
|
|
|
10
|
+ :initial-index="initialIndex"
|
|
|
11
|
+ :options="slideOptions"
|
|
|
12
|
+ @scroll="scroll"
|
|
|
13
|
+ @change="changePage"
|
|
|
14
|
+ >
|
|
|
15
|
+ <SlideItem class="slide-item">
|
|
|
16
|
+ <ExchangeBox class="" v-model="inputCouponCode" @click="onSubmitCode"></ExchangeBox>
|
|
|
17
|
+ <ScrollView class="scroll-view" ref="notuse" :data="getNotUseList" :options="scrollOptions" v-if="getNotUseList.length" :reach-bottom="reachBottom">
|
|
|
18
|
+ <CouponItem :item="item" v-for="(item, index) in getNotUseList" :key="index + '' + item.coupon_id"></CouponItem>
|
|
|
19
|
+ </ScrollView>
|
|
|
20
|
+ <Empty v-else></Empty>
|
|
|
21
|
+ </SlideItem>
|
|
|
22
|
+
|
|
|
23
|
+ <SlideItem class="slide-item">
|
|
|
24
|
+ <ScrollView class="scroll-view" ref="use" :data="getUseList" :options="scrollOptions" v-if="getUseList.length" :reach-bottom="reachBottom">
|
|
|
25
|
+ <CouponItem :item="item" v-for="(item, index) in getUseList" :key="index + '' + item.coupon_id"></CouponItem>
|
|
|
26
|
+ </ScrollView>
|
|
|
27
|
+ <Empty v-else></Empty>
|
|
|
28
|
+ </SlideItem>
|
|
|
29
|
+
|
|
|
30
|
+ <SlideItem class="slide-item">
|
|
|
31
|
+ <ScrollView class="scroll-view" ref="overtime" :data="getOvertimeList" :options="scrollOptions" v-if="getOvertimeList.length" :reach-bottom="reachBottom">
|
|
|
32
|
+ <CouponItem :item="item" v-for="(item, index) in getOvertimeList" :key="index + '' + item.coupon_id"></CouponItem>
|
|
|
33
|
+ </ScrollView>
|
|
|
34
|
+ <Empty v-else></Empty>
|
|
|
35
|
+ </SlideItem>
|
|
|
36
|
+ </Slide>
|
40
|
</div>
|
37
|
</div>
|
41
|
</template>
|
38
|
</template>
|
42
|
|
39
|
|
|
@@ -189,19 +186,31 @@ export default { |
|
@@ -189,19 +186,31 @@ export default { |
189
|
|
186
|
|
190
|
<style lang="scss" scoped>
|
187
|
<style lang="scss" scoped>
|
191
|
|
188
|
|
192
|
- .page-wrapper {
|
|
|
193
|
- height: calc(100% - 90px);
|
|
|
194
|
- }
|
189
|
+.coupon-page {
|
|
|
190
|
+ width: 100%;
|
|
|
191
|
+ height: 100%;
|
|
|
192
|
+ display: flex;
|
|
|
193
|
+ flex-direction: column;
|
|
|
194
|
+}
|
195
|
|
195
|
|
196
|
- .tab-slide-container {
|
|
|
197
|
- height: 100%;
|
|
|
198
|
- }
|
196
|
+.slide-box {
|
|
|
197
|
+ flex: 1;
|
|
|
198
|
+}
|
199
|
|
199
|
|
200
|
- .scroll-view1 {
|
|
|
201
|
- height: calc(100% - 270px);
|
|
|
202
|
- }
|
200
|
+.page-wrapper {
|
|
|
201
|
+ height: calc(100% - 90px);
|
|
|
202
|
+}
|
|
|
203
|
+
|
|
|
204
|
+.slide-item {
|
|
|
205
|
+ display: flex;
|
|
|
206
|
+ flex-direction: column;
|
203
|
|
207
|
|
204
|
- .scroll-view2 {
|
|
|
205
|
- height: calc(100% - 180px);
|
208
|
+ .scroll-view {
|
|
|
209
|
+ flex: 1;
|
206
|
}
|
210
|
}
|
|
|
211
|
+}
|
|
|
212
|
+
|
|
|
213
|
+.tab-slide-container {
|
|
|
214
|
+ height: 100%;
|
|
|
215
|
+}
|
207
|
</style> |
216
|
</style> |