fix[litemall-vue]: fix bug

This commit is contained in:
Junling Bu
2019-07-13 20:22:00 +08:00
parent f6bb713bc0
commit d10336db64
2 changed files with 4 additions and 20 deletions

View File

@@ -1,7 +1,8 @@
<template>
<div class="coupon_list">
<van-tabs v-model="activeIndex"
:swipe-threshold="5"
type="card"
sticky
@click="handleTabClick">
<van-tab v-for="(tabTitle, tabIndex) in tabTitles"
:title="tabTitle"
@@ -58,9 +59,8 @@ export default {
},
data() {
return {
activeIndex: this.active,
activeIndex: Number(this.active),
tabTitles: ['未使用', '已使用', '已过期'],
status: 0,
couponList: [],
page: 0,
limit: 10,
@@ -108,23 +108,7 @@ export default {
</script>
<style lang="scss" scoped>
.coupon_list {
&--footer_btn {
text-align: right;
}
&--panel {
margin-bottom: 10px;
}
&--van-card {
background-color: #fafafa;
}
&--total {
text-align: right;
padding: 10px;
}
}
.van-coupon-item {
overflow: hidden;
border-radius: 4px;

View File

@@ -87,7 +87,7 @@ export default {
},
data() {
return {
activeIndex: this.active,
activeIndex: Number(this.active),
tabTitles: ['全部', '待付款', '待发货', '待收货', '待评价'],
orderList: [],
page: 0,