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

fix[litemall-vue]: fix bug

parent f6bb713b
<template> <template>
<div class="coupon_list"> <div class="coupon_list">
<van-tabs v-model="activeIndex" <van-tabs v-model="activeIndex"
:swipe-threshold="5" type="card"
sticky
@click="handleTabClick"> @click="handleTabClick">
<van-tab v-for="(tabTitle, tabIndex) in tabTitles" <van-tab v-for="(tabTitle, tabIndex) in tabTitles"
:title="tabTitle" :title="tabTitle"
...@@ -58,9 +59,8 @@ export default { ...@@ -58,9 +59,8 @@ export default {
}, },
data() { data() {
return { return {
activeIndex: this.active, activeIndex: Number(this.active),
tabTitles: ['未使用', '已使用', '已过期'], tabTitles: ['未使用', '已使用', '已过期'],
status: 0,
couponList: [], couponList: [],
page: 0, page: 0,
limit: 10, limit: 10,
...@@ -108,23 +108,7 @@ export default { ...@@ -108,23 +108,7 @@ export default {
</script> </script>
<style lang="scss" scoped> <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 { .van-coupon-item {
overflow: hidden; overflow: hidden;
border-radius: 4px; border-radius: 4px;
......
...@@ -87,7 +87,7 @@ export default { ...@@ -87,7 +87,7 @@ export default {
}, },
data() { data() {
return { return {
activeIndex: this.active, activeIndex: Number(this.active),
tabTitles: ['全部', '待付款', '待发货', '待收货', '待评价'], tabTitles: ['全部', '待付款', '待发货', '待收货', '待评价'],
orderList: [], orderList: [],
page: 0, 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