Showing
10 changed files
with
94 additions
and
17 deletions
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> |
apps/pages/article/components/waterfall.vue
0 → 100644
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', |
apps/store/article/list/actions.js
0 → 100644
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 | } |
apps/store/article/list/mutations.js
0 → 100644
apps/store/article/list/types.js
0 → 100644
@@ -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 | }; |
config/article-api-map.js
0 → 100644
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 | +}; |
-
Please register or login to post a comment