Commit 2241e67038aa7e8e0a1c17616069b7cb4bce2a4f

Authored by liuqimichale
1 parent 78a3ba7b

消息

src/views/mainContainer.vue
... ... @@ -13,7 +13,7 @@
13 13 <li>
14 14 <sfysection class="sectionsmall"></sfysection>
15 15 <berthsection class="sectionsmall margin12-0"></berthsection>
16   - <div class="sectionsmall"></div>
  16 + <newssection class="sectionsmall"></newssection>
17 17 </li>
18 18 </ul>
19 19 <loadinggif :showLoading="showLoaddingGif"></loadinggif>
... ... @@ -27,6 +27,7 @@ import dicisection from &#39;../views/dicisection&#39;
27 27 import youdaopingsection from '../views/youdaopingsection'
28 28 import sfysection from '../views/sfysection'
29 29 import berthsection from '../views/berthsection'
  30 +import newssection from '../views/newssection'
30 31  
31 32 export default {
32 33 name: 'mainContainer',
... ... @@ -36,7 +37,8 @@ export default {
36 37 dicisection,
37 38 youdaopingsection,
38 39 sfysection,
39   - berthsection
  40 + berthsection,
  41 + newssection
40 42 },
41 43 data() {
42 44 return {
... ...
src/views/newssection.vue 0 → 100644
  1 +<template>
  2 + <div>
  3 + <titlesection title="消息"></titlesection>
  4 + <ul class="flexfm news-wrap">
  5 +
  6 + </ul>
  7 + </div>
  8 +</template>
  9 +
  10 +<script>
  11 +import titlesection from '../components/titlesection'
  12 +import {fetchList} from '../api/api'
  13 +
  14 +export default {
  15 + name: 'newssection',
  16 + components: {
  17 + titlesection
  18 + },
  19 + data() {
  20 + return {
  21 + totalVal: '21973',
  22 + free: '454123',
  23 + nofree: '5125'
  24 + }
  25 + },
  26 + created() {
  27 + },
  28 + methods: {
  29 + getList() {
  30 + fetchList()
  31 + .then(res => {
  32 + console.log(res);
  33 +
  34 + });
  35 + },
  36 + }
  37 +}
  38 +</script>
  39 +
  40 +<style lang="scss" scoped>
  41 + .news-wrap {
  42 +
  43 + }
  44 +</style>
... ...