Authored by 邱骏

update

<template>
<LayoutApp :show-back="false" :hideHeader="hideHeader" :no-safe-area="true">
<waterfall :listData="listData"></waterfall>
</LayoutApp>
</template>
<script>
export default {
name: 'article.vue'
};
import LayoutApp from '../../components/layout/layout-app';
import {createNamespacedHelpers} from 'vuex';
import waterfall from './components/waterfall';
const {mapActions, mapState} = createNamespacedHelpers('article/list');
export default {
name: 'article.vue',
components: {
LayoutApp,
waterfall
},
props: ['hideHeader'],
data() {
return {
listData: []
};
},
mounted() {
},
activated() {
},
computed: {
},
methods: {
},
};
</script>
<style scoped>
<style lang="scss" scoped>
</style>
... ...
<template>
<div class="water-fall-container">
</div>
</template>
<script>
export default {
name: 'waterfall',
props: {
listData: {
type: Array,
default: []
}
},
};
</script>
<style lang="scss" scoped>
</style>
... ...
export default [
// {
// name: 'Article',
// path: '/xianyu/article',
// // component: () => import()
// },
// {
// name: 'ArticleDetail',
// path: '/xianyu/article/detail',
// // component: () => import()
// },
{
name: 'Article',
path: '/xianyu/article',
component: () => import(/* webpackChunkName: "article" */ './article')
},
{
name: 'ArticleDetail',
path: '/xianyu/article/detail',
// component: () => import()
},
{
name: 'waterfall',
path: '/xianyu/waterfallTest',
... ...
import actions from './actions';
import mutations from './mutations';
export default function () {
export default function() {
return {
namespaced: true,
state: {
... ...
import actions from './actions';
import mutations from './mutations';
export default function() {
return {
namespaced: true,
state: {}
state: {
articleList: []
},
actions,
mutations,
};
}
... ...
export const FETCH_ARTICLE_LIST = 'FETCH_ARTICLE_LIST';
... ...
... ... @@ -11,6 +11,7 @@ const sellerAskApi = require('./sellerask-api-map');
const systemApi = require('./system-api-map');
const activitysApi = require('./activitys-api-map');
const secondHandApi = require('./second-hand-api-map');
const articleApi = require('./article-api-map');
module.exports = {
...orderApi,
... ... @@ -26,4 +27,5 @@ module.exports = {
...systemApi,
...activitysApi,
...secondHandApi,
...articleApi,
};
... ...
module.exports = {
'/api/ufo/seller/entryGoodsSizeList': {
auth: true,
accessLog: true,
checkSign: true,
ufo: true,
api: 'ufo.seller.entryGoodsSizeList',
params: {
productId: { type: Number },
limit: { type: Number },
page: { type: Number },
},
},
};
... ...