Commit ba093a59 by liwk

commit

1 parent ec78ed04
...@@ -9,6 +9,8 @@ export default { ...@@ -9,6 +9,8 @@ export default {
} }
}, },
mounted() { mounted() {
let { tabIndex } = this.getQuery()
if (tabIndex) this.tabIndex = tabIndex
if (this.$route.meta.isTab) this.init() if (this.$route.meta.isTab) this.init()
}, },
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
<tab <tab
:list="['秒杀活动','直播活动']" :list="['秒杀活动','直播活动']"
@change="change" @change="change"
:index="tabIndex"
sticky sticky
></tab> ></tab>
<template v-if="flag"> <template v-if="flag">
...@@ -94,12 +95,11 @@ export default { ...@@ -94,12 +95,11 @@ export default {
} }
}, },
mounted () { mounted () {
}, },
activated () { activated () {
console.log('活动')
}, },
deactivated () { deactivated () {
console.log('离开活动页')
}, },
methods: { methods: {
getList_0 (pageNum) { getList_0 (pageNum) {
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
<tab <tab
:list="['新车精品礼券','商城优惠券']" :list="['新车精品礼券','商城优惠券']"
@change="change" @change="change"
:index="tabIndex"
sticky sticky
></tab> ></tab>
<template v-if="flag"> <template v-if="flag">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!