Commit d10336db authored by Junling Bu's avatar Junling Bu
Browse files

fix[litemall-vue]: fix bug

parent f6bb713b
<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;
......
......@@ -87,7 +87,7 @@ export default {
},
data() {
return {
activeIndex: this.active,
activeIndex: Number(this.active),
tabTitles: ['全部', '待付款', '待发货', '待收货', '待评价'],
orderList: [],
page: 0,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment