Showing
3 changed files
with
15 additions
and
5 deletions
@@ -5,14 +5,22 @@ let purviews = { | @@ -5,14 +5,22 @@ let purviews = { | ||
5 | subPurviews: { | 5 | subPurviews: { |
6 | create: { | 6 | create: { |
7 | name: '发布新商品', | 7 | name: '发布新商品', |
8 | - path: '/product/create', | 8 | + path: '/product/create/step1', |
9 | menu: true, | 9 | menu: true, |
10 | own: true, | 10 | own: true, |
11 | subPurviews: { | 11 | subPurviews: { |
12 | step1: { | 12 | step1: { |
13 | name: '类目选择', | 13 | name: '类目选择', |
14 | own: true, | 14 | own: true, |
15 | - } | 15 | + }, |
16 | + step2: { | ||
17 | + name: '基础信息', | ||
18 | + own: true, | ||
19 | + }, | ||
20 | + step3: { | ||
21 | + name: '网销信息', | ||
22 | + own: true, | ||
23 | + }, | ||
16 | } | 24 | } |
17 | }, | 25 | }, |
18 | onsale: { | 26 | onsale: { |
@@ -38,7 +38,7 @@ | @@ -38,7 +38,7 @@ | ||
38 | }, | 38 | }, |
39 | methods: { | 39 | methods: { |
40 | nextStep: function() { | 40 | nextStep: function() { |
41 | - this.step.value = 1 | 41 | + this.step.value = 1; |
42 | this.$router.push({name:'product.create.step2'}); | 42 | this.$router.push({name:'product.create.step2'}); |
43 | } | 43 | } |
44 | } | 44 | } |
@@ -24,7 +24,9 @@ global.yoho = { | @@ -24,7 +24,9 @@ global.yoho = { | ||
24 | }; | 24 | }; |
25 | 25 | ||
26 | app.use(session({ | 26 | app.use(session({ |
27 | - secret: 'yoho!shop@manage' | 27 | + secret: 'yoho!shop@manage', |
28 | + resave: false, | ||
29 | + saveUninitialized: true | ||
28 | })); | 30 | })); |
29 | 31 | ||
30 | app.use(bodyParser.json()); | 32 | app.use(bodyParser.json()); |
@@ -55,5 +57,5 @@ try { | @@ -55,5 +57,5 @@ try { | ||
55 | 57 | ||
56 | 58 | ||
57 | app.listen(config.port, () => { | 59 | app.listen(config.port, () => { |
58 | - logger.log('yoho shop manage start !'); | 60 | + logger.info(`yoho shop manage start at ${config.port}`); |
59 | }); | 61 | }); |
-
Please register or login to post a comment