|
@@ -39,47 +39,7 @@
|
|
|
name: '已过期',
|
|
|
status: -1
|
|
|
}],
|
|
|
- couponList: [{
|
|
|
- id: 23432445,
|
|
|
- couponTitle: "满100减50",
|
|
|
- couponAmount: 100,
|
|
|
- validEndTime: "2020-05-16",
|
|
|
- remarks: '优惠卷使用说明优惠卷使用说明优惠卷使用说明',
|
|
|
- checked: false
|
|
|
- },
|
|
|
- {
|
|
|
- id: 3544355,
|
|
|
- couponTitle: "满100减50",
|
|
|
- couponAmount: 100,
|
|
|
- validEndTime: "2020-05-16",
|
|
|
- remarks: '优惠卷使用说明优惠卷使用说明优惠卷使用说明',
|
|
|
- checked: false
|
|
|
- },
|
|
|
- {
|
|
|
- id: 234234234,
|
|
|
- couponTitle: "满100减50",
|
|
|
- couponAmount: 100,
|
|
|
- validEndTime: "2020-05-16",
|
|
|
- remarks: '优惠卷使用说明优惠卷使用说明优惠卷使用说明',
|
|
|
- checked: false
|
|
|
- },
|
|
|
- {
|
|
|
- id: 66264646,
|
|
|
- couponTitle: "满100减50",
|
|
|
- couponAmount: 100,
|
|
|
- validEndTime: "2020-05-16",
|
|
|
- remarks: '优惠卷使用说明优惠卷使用说明优惠卷使用说明',
|
|
|
- checked: false
|
|
|
- },
|
|
|
- {
|
|
|
- id: 9794694698,
|
|
|
- couponTitle: "满100减50",
|
|
|
- couponAmount: 100,
|
|
|
- validEndTime: "2020-05-16",
|
|
|
- remarks: '优惠卷使用说明优惠卷使用说明优惠卷使用说明',
|
|
|
- checked: false
|
|
|
- }
|
|
|
- ], // 优惠卷列表
|
|
|
+ couponList: [], // 优惠卷列表
|
|
|
// 因为内部的滑动机制限制,请将tabs组件和swiper组件的current用不同变量赋值
|
|
|
current: 0, // tabs组件的current值,表示当前活动的tab选项
|
|
|
swiperCurrent: 0, // swiper组件的current值,表示当前那个swiper-item是活动的
|
|
@@ -104,7 +64,7 @@
|
|
|
this.swiperCurrent = index;
|
|
|
this.couponList = []
|
|
|
this.count = 0
|
|
|
- this.getList()
|
|
|
+ // this.getList()
|
|
|
},
|
|
|
// swiper-item左右移动,通知tabs的滑块跟随移动
|
|
|
transition(e) {
|
|
@@ -168,5 +128,8 @@
|
|
|
uni-swiper{
|
|
|
flex-grow: 1;
|
|
|
}
|
|
|
+ .u-empty.data-v-6938e513{
|
|
|
+ height: 90%;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|