...
|
...
|
@@ -11,8 +11,9 @@ |
|
|
|
|
|
<script>
|
|
|
|
|
|
import { createNamespacedHelpers } from 'vuex';
|
|
|
const { mapState, mapActions } = createNamespacedHelpers('home/channel');
|
|
|
import { createNamespacedHelpers, mapState} from 'vuex';
|
|
|
|
|
|
const { mapState: mapChannelState, mapActions } = createNamespacedHelpers('home/channel');
|
|
|
import Widget from './widget';
|
|
|
|
|
|
export default {
|
...
|
...
|
@@ -34,16 +35,23 @@ export default { |
|
|
};
|
|
|
};
|
|
|
},
|
|
|
...mapState(['showMsg'])
|
|
|
...mapChannelState(['showMsg']),
|
|
|
...mapState(['yoho'])
|
|
|
},
|
|
|
activated() {
|
|
|
this.getAllInboxCatInfo();
|
|
|
this.$yoho.getUser().then(user => {
|
|
|
if (user.uid) {
|
|
|
this.getAllInboxCatInfo();
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
watch: {
|
|
|
'yoho.context.isLogin': function(val) {
|
|
|
if (val) {
|
|
|
this.getAllInboxCatInfo();
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
// watch: {
|
|
|
// 'showMsg':function(sss) {
|
|
|
// console.log(sss);
|
|
|
// }
|
|
|
// },
|
|
|
methods: {
|
|
|
...mapActions(['getAllInboxCatInfo']),
|
|
|
onClick(index) {
|
...
|
...
|
|