Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
ufo-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
TaoHuang
6 years ago
Commit
b2b9453b3a011b867ee61b901f859a49de6e74b0
1 parent
79057220
fix
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
8 deletions
apps/pages/single/invite/detail/components/bankcard-status.vue
apps/pages/single/invite/detail/detail.vue
apps/store/invite/invite/index.js
apps/pages/single/invite/detail/components/bankcard-status.vue
View file @
b2b9453
...
...
@@ -28,7 +28,8 @@ export default {
},
props: {
card: {
type: Object,
type: Boolean,
default: false
}
},
methods: {
...
...
apps/pages/single/invite/detail/detail.vue
View file @
b2b9453
...
...
@@ -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,
...
...
apps/store/invite/invite/index.js
View file @
b2b9453
...
...
@@ -16,6 +16,11 @@ export default function() {
status
:
0
},
actions
,
mutations
mutations
,
getters
:
{
getBandLength
(
state
,
getters
,
rootState
)
{
return
rootState
.
mine
.
bankCard
.
bankCardList
.
length
===
1
;
}
}
};
}
...
...
Please
register
or
login
to post a comment