detail.vue
1.49 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<template>
<div>
<BannerPage></BannerPage>
<div class="body-wrapper">
<InviteCode class="mg" :data="inviteCode" :status="status"></InviteCode>
<FriendList class="mg" :list="inviteCode.inviteRecordList" v-if="inviteCode.inviteRecordList.length > 0"></FriendList>
<BankStatus class="mg" :card="getBandLength"></BankStatus>
<RecordList class="mg" :list="recordList"></RecordList>
<DescPage class="mg"></DescPage>
</div>
</div>
</template>
<script>
import InviteCode from './components/invite-code';
import FriendList from './components/friend-list';
import BankStatus from './components/bankcard-status';
import RecordList from './components/record-list';
import DescPage from '../components/desc';
import BannerPage from './components/banner';
import {createNamespacedHelpers} from 'vuex';
const {mapState, mapGetters} = createNamespacedHelpers('invite/invite');
export default {
name: 'detailPage',
computed: {
...mapState(['recordList', 'inviteCode', 'status']),
...mapGetters(['getBandLength'])
},
data() {
return {};
},
mounted() {
this.$store.dispatch('mine/bankCard/fetchBankCard', null, { root: true });
},
components: {
InviteCode,
FriendList,
BankStatus,
RecordList,
DescPage,
BannerPage
}
};
</script>
<style lang="scss" scoped>
.body-wrapper {
padding: 0 20PX;
}
.mg {
margin: 0 auto;
margin-bottom: 160px;
text-align: center;
&:last-child {
margin-bottom: 0;
padding-bottom: 120px;
}
}
</style>