Explorar o código

暂时屏蔽无用功能

ytf %!s(int64=2) %!d(string=hai) anos
pai
achega
00a4e179f1
Modificáronse 2 ficheiros con 39 adicións e 33 borrados
  1. 27 26
      seller/config/router.config.js
  2. 12 7
      seller/src/models/login.js

+ 27 - 26
seller/config/router.config.js

@@ -54,14 +54,15 @@ export default [
54 54
     ],
55 55
   },
56 56
   //PC装修页面
57
-  {
58
-    path: '/diy/decorate_pc_home_to_edit',
59
-    component: '../layouts/UserLayout',
60
-    Routes: ['src/pages/CheckLogin'],
61
-    routes: [
62
-      { path: '/diy/decorate_pc_home_to_edit', component: './diy/pc_diy/edit_diy_page' },
63
-    ],
64
-  },
57
+  // {
58
+  //   path: '/diy/decorate_pc_home_to_edit',
59
+  //   component: '../layouts/UserLayout',
60
+  //   Routes: ['src/pages/CheckLogin'],
61
+  //   routes: [
62
+  //     { path: '/diy/decorate_pc_home_to_edit', component: './diy/pc_diy/edit_diy_page' },
63
+  //     // { path: '/diy/decorate_mhome', component: './diy/m_diy/m_diy_lists' },
64
+  //   ],
65
+  // },
65 66
   // app
66 67
   {
67 68
     path: '/',
@@ -467,19 +468,19 @@ export default [
467 468
         component: './store/brand_lists',
468 469
       },
469 470
       // 模板列表
470
-      {
471
-        path: '/diy/tpl_lists',
472
-        icon: 'home',
473
-        name: 'diy_tpl_lists',
474
-        component: './diy/pc_diy/tpl_lists',
475
-      },
471
+      // {
472
+      //   path: '/diy/tpl_lists',
473
+      //   icon: 'home',
474
+      //   name: 'diy_tpl_lists',
475
+      //   component: './diy/pc_diy/tpl_lists',
476
+      // },
476 477
       // 实例化模版
477
-      {
478
-        path: '/diy/instance_template_lists',
479
-        icon: 'profile',
480
-        name: 'diy_instance_template_lists',
481
-        component: './diy/pc_diy/instance_template_lists',
482
-      },
478
+      // {
479
+      //   path: '/diy/instance_template_lists',
480
+      //   icon: 'profile',
481
+      //   name: 'diy_instance_template_lists',
482
+      //   component: './diy/pc_diy/instance_template_lists',
483
+      // },
483 484
       // 新增/编辑模版
484 485
       {
485 486
         path: '/diy/instance_template_lists_to_edit',
@@ -487,12 +488,12 @@ export default [
487 488
         component: './diy/pc_diy/add_template',
488 489
       },
489 490
       // 店铺PC端首页装修
490
-      {
491
-        path: '/diy/decorate_pc_home',
492
-        icon: 'desktop',
493
-        name: 'diy_decorate_pc_home',
494
-        component: './diy/pc_diy/diy_lists',
495
-      },
491
+      // {
492
+      //   path: '/diy/decorate_pc_home',
493
+      //   icon: 'desktop',
494
+      //   name: 'diy_decorate_pc_home',
495
+      //   component: './diy/pc_diy/diy_lists',
496
+      // },
496 497
       // 店铺移动端首页装修
497 498
       {
498 499
         path: '/diy/decorate_mhome',

+ 12 - 7
seller/src/models/login.js

@@ -74,6 +74,7 @@ export default {
74 74
               } else if (target == 'diy') {
75 75
                 target_data.name = '装修';
76 76
                 target_data.left_icon = require('../assets/nav/store.png');
77
+                target_data.path = "/diy/decorate_mhome";
77 78
               } else if (target == 'service') {
78 79
                 target_data.name = '售后';
79 80
                 target_data.left_icon = require('../assets/nav/service.png');
@@ -83,16 +84,20 @@ export default {
83 84
               } else if (target == 'account') {
84 85
                 target_data.name = '账号';
85 86
                 target_data.left_icon = require('../assets/nav/account.png');
86
-              } else if (target == 'point') {
87
-                target_data.name = '积分商城';
88
-                target_data.left_icon = require('../assets/nav/point.png');
89
-              } else if (target == 'im') {
87
+              }  else if (target == 'im') {
90 88
                 target_data.name = '客服';
91 89
                 target_data.left_icon = require('../assets/nav/point.png');
92
-              } else if (target == 'spreader') {
93
-                target_data.name = '推手';
94
-                target_data.left_icon = require('../assets/nav/spreader.png');
90
+              } else {
91
+                continue;
95 92
               }
93
+
94
+              //  else if (target == 'point') {
95
+              //   target_data.name = '积分商城';
96
+              //   target_data.left_icon = require('../assets/nav/point.png');
97
+              // } else if (target == 'spreader') {
98
+              //   target_data.name = '推手';
99
+              //   target_data.left_icon = require('../assets/nav/spreader.png');
100
+              // }
96 101
               cur_top_nav.push(target);
97 102
               cur_top_nav_info.push(target_data);
98 103
             }