Authored by 邱骏

update

1 <template> 1 <template>
2 - 2 + <LayoutApp :show-back="false" :hideHeader="hideHeader" :no-safe-area="true">
  3 + <waterfall :listData="listData"></waterfall>
  4 + </LayoutApp>
3 </template> 5 </template>
4 6
5 <script> 7 <script>
6 - export default {  
7 - name: 'article.vue'  
8 - }; 8 +import LayoutApp from '../../components/layout/layout-app';
  9 +import {createNamespacedHelpers} from 'vuex';
  10 +import waterfall from './components/waterfall';
  11 +
  12 +const {mapActions, mapState} = createNamespacedHelpers('article/list');
  13 +
  14 +export default {
  15 + name: 'article.vue',
  16 + components: {
  17 + LayoutApp,
  18 + waterfall
  19 + },
  20 + props: ['hideHeader'],
  21 + data() {
  22 + return {
  23 + listData: []
  24 + };
  25 + },
  26 + mounted() {
  27 +
  28 + },
  29 + activated() {
  30 +
  31 + },
  32 + computed: {
  33 +
  34 + },
  35 + methods: {
  36 +
  37 + },
  38 +
  39 +};
9 </script> 40 </script>
10 41
11 -<style scoped> 42 +<style lang="scss" scoped>
12 43
13 </style> 44 </style>
  1 +<template>
  2 + <div class="water-fall-container">
  3 +
  4 + </div>
  5 +</template>
  6 +
  7 +<script>
  8 +export default {
  9 + name: 'waterfall',
  10 + props: {
  11 + listData: {
  12 + type: Array,
  13 + default: []
  14 + }
  15 + },
  16 +};
  17 +</script>
  18 +
  19 +<style lang="scss" scoped>
  20 +
  21 +</style>
1 export default [ 1 export default [
2 - // {  
3 - // name: 'Article',  
4 - // path: '/xianyu/article',  
5 - // // component: () => import()  
6 - // },  
7 - // {  
8 - // name: 'ArticleDetail',  
9 - // path: '/xianyu/article/detail',  
10 - // // component: () => import()  
11 - // }, 2 + {
  3 + name: 'Article',
  4 + path: '/xianyu/article',
  5 + component: () => import(/* webpackChunkName: "article" */ './article')
  6 + },
  7 + {
  8 + name: 'ArticleDetail',
  9 + path: '/xianyu/article/detail',
  10 + // component: () => import()
  11 + },
12 { 12 {
13 name: 'waterfall', 13 name: 'waterfall',
14 path: '/xianyu/waterfallTest', 14 path: '/xianyu/waterfallTest',
1 import actions from './actions'; 1 import actions from './actions';
2 import mutations from './mutations'; 2 import mutations from './mutations';
3 3
4 -export default function () { 4 +export default function() {
5 return { 5 return {
6 namespaced: true, 6 namespaced: true,
7 state: { 7 state: {
  1 +import actions from './actions';
  2 +import mutations from './mutations';
  3 +
1 export default function() { 4 export default function() {
2 return { 5 return {
3 namespaced: true, 6 namespaced: true,
4 - state: {} 7 + state: {
  8 + articleList: []
  9 + },
  10 + actions,
  11 + mutations,
5 }; 12 };
6 } 13 }
  1 +export const FETCH_ARTICLE_LIST = 'FETCH_ARTICLE_LIST';
  2 +
@@ -11,6 +11,7 @@ const sellerAskApi = require('./sellerask-api-map'); @@ -11,6 +11,7 @@ const sellerAskApi = require('./sellerask-api-map');
11 const systemApi = require('./system-api-map'); 11 const systemApi = require('./system-api-map');
12 const activitysApi = require('./activitys-api-map'); 12 const activitysApi = require('./activitys-api-map');
13 const secondHandApi = require('./second-hand-api-map'); 13 const secondHandApi = require('./second-hand-api-map');
  14 +const articleApi = require('./article-api-map');
14 15
15 module.exports = { 16 module.exports = {
16 ...orderApi, 17 ...orderApi,
@@ -26,4 +27,5 @@ module.exports = { @@ -26,4 +27,5 @@ module.exports = {
26 ...systemApi, 27 ...systemApi,
27 ...activitysApi, 28 ...activitysApi,
28 ...secondHandApi, 29 ...secondHandApi,
  30 + ...articleApi,
29 }; 31 };
  1 +module.exports = {
  2 + '/api/ufo/seller/entryGoodsSizeList': {
  3 + auth: true,
  4 + accessLog: true,
  5 + checkSign: true,
  6 + ufo: true,
  7 + api: 'ufo.seller.entryGoodsSizeList',
  8 + params: {
  9 + productId: { type: Number },
  10 + limit: { type: Number },
  11 + page: { type: Number },
  12 + },
  13 + },
  14 +};