Authored by TaoHuang

fix

... ... @@ -28,7 +28,8 @@ export default {
},
props: {
card: {
type: Object,
type: Boolean,
default: false
}
},
methods: {
... ...
... ... @@ -4,7 +4,7 @@
<div class="body-wrapper">
<InviteCode class="mg" :data="inviteCode"></InviteCode>
<FriendList class="mg" :list="inviteCode.inviteRecordList" v-if="inviteCode.inviteRecordList.length > 0"></FriendList>
<BankStatus class="mg" :card="card"></BankStatus>
<BankStatus class="mg" :card="getBandLength"></BankStatus>
<RecordList class="mg" :list="recordList"></RecordList>
<DescPage class="mg"></DescPage>
</div>
... ... @@ -20,12 +20,13 @@ import DescPage from '../components/desc';
import BannerPage from './components/banner';
import {createNamespacedHelpers} from 'vuex';
const {mapState} = createNamespacedHelpers('invite/invite');
const {mapState, mapGetters} = createNamespacedHelpers('invite/invite');
export default {
name: 'detailPage',
computed: {
...mapState(['recordList', 'inviteCode'])
...mapState(['recordList', 'inviteCode']),
...mapGetters(['getBandLength'])
},
data() {
return {
... ... @@ -33,9 +34,6 @@ export default {
};
},
mounted() {
this.$store.dispatch('mine/bankCard/fetchBankCard', null, { root: true }).then(result => {
this.card = result.data;
});
},
components: {
InviteCode,
... ...
... ... @@ -16,6 +16,11 @@ export default function() {
status: 0
},
actions,
mutations
mutations,
getters: {
getBandLength(state, getters, rootState) {
return rootState.mine.bankCard.bankCardList.length === 1;
}
}
};
}
... ...