Authored by huzhiming

feat(二手):初始化store

... ... @@ -8,9 +8,11 @@
* @path: 页面访问路径及参数说明 http://m.yohobuy.com:6001/xianyu/second/product/商品id.html
!-->
<template>
<div class="second-detail-wrap">
UfoSecondProductDetail
</div>
<LayoutApp :show-back="true" title="商品详情">
<div class="second-detail-wrap">
UfoSecondProductDetail
</div>
</LayoutApp>
</template>
<script>
... ... @@ -39,6 +41,7 @@ export default {
},
created() {},
mounted() {
//
// this.skup
},
activated() {},
... ...
<template>
<div>
UfoSecondListPage
</div>
<LayoutApp :show-back="true" title="二手">
</LayoutApp>
</template>
<script>
... ...
<template>
<div>
UfoSecondSellListPage
</div>
<LayoutApp :show-back="true" title="商品列表">
</LayoutApp>
</template>
<script>
... ... @@ -11,5 +11,4 @@ export default {
</script>
<style lang="scss" scoped>
</style>
... ...
... ... @@ -13,6 +13,7 @@ import storeAddress from './address';
import storeNotice from './notice';
import storeCategory from './category';
import storeActivitys from './activitys';
import storeSecond from './second';
Vue.use(Vuex);
... ... @@ -34,6 +35,7 @@ export function createStore(context) {
category: storeCategory(),
// buyerOderList: buyerOderList(),
activitys: storeActivitys(),
second: storeSecond(),
},
strict: process.env.NODE_ENV !== 'production',
});
... ...
import * as Types from './types';
import { get } from 'lodash';
import Vue from 'vue';
export default {
};
... ...
import actions from './actions';
import mutations from './mutations';
export default function() {
return {
namespaced: true,
state: {},
mutations,
actions,
};
}
... ...
import * as Types from './types';
import { find, set } from 'lodash';
export default {
[Types.ENSURE_PRODUCT_DETAIL](state, { productId }) {
}
};
... ...
export const ENSURE_PRODUCT_DETAIL = 'UPDATE_PRODUCT_DETAIL';
... ...