Authored by huzhiming

feat(二手):初始化store

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