fix[litemall-vue]: fix bug
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -87,7 +87,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
activeIndex: this.active,
|
||||
activeIndex: Number(this.active),
|
||||
tabTitles: ['全部', '待付款', '待发货', '待收货', '待评价'],
|
||||
orderList: [],
|
||||
page: 0,
|
||||
|
||||
Reference in New Issue
Block a user