index.vue 668 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <view class="container">
  3. <navbar></navbar>
  4. <baner></baner>
  5. <imgList :name="'期刊内容'" :data="contentList" :cover="cover"></imgList>
  6. <list :name="'新闻内容'" :data="contentList"></list>
  7. </view>
  8. </template>
  9. <script>
  10. import { mapActions, mapState } from 'vuex'
  11. export default {
  12. data() {
  13. return {
  14. cover: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg',
  15. }
  16. },
  17. computed: {
  18. ...mapState(['contentList'])
  19. },
  20. async mounted() {
  21. await this.contentQuery();
  22. },
  23. methods: {
  24. ...mapActions(['contentQuery']),
  25. }
  26. }
  27. </script>
  28. <style></style>