list.vue
916 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<template>
<LayoutApp>
<Tabs>
<template slot="panes">
<TabPane label="有货优惠券" :disable="true">
<YohoPage></YohoPage>
</TabPane>
<TabPane label="UFO优惠券" :disable="true">
<UfoPage></UfoPage>
</TabPane>
</template>
</Tabs>
</LayoutApp>
</template>
<script>
import Tabs from './components/tabs';
import Layout from './components/layout';
import YohoPage from './yoho';
import UfoPage from './ufo';
const TYPE = {notuse: 'notuse', use: 'use', overtime: 'overtime'};
export default {
name: 'ListPage',
asyncData({store}) {
return Promise.all([
store.dispatch('coupon/yoho/fetchYohoList', {
type: TYPE.notuse,
refresh: true
})
]);
},
components: {
Tabs,
TabPane: Tabs.Pane,
YohoPage,
UfoPage,
LayoutApp: Layout
}
};
</script>
<style lang="scss" scoped>
</style>