li.shaoyi 2 gadi atpakaļ
vecāks
revīzija
19cd9da7a9

+ 40 - 34
src/packages/mobile/router/index.ts

@@ -48,10 +48,11 @@ const routes: Array<RouteRecordRaw> = [
           },
           {
             path: 'goods',
-            name: 'home-goods',
+            name: 'home-16201',
             component: () => import('../views/goods/list/Index.vue'),
             props: {
-              marketId: 50101
+              title: '全款挂牌',
+              marketId: 16201
             }
           },
           // {
@@ -177,9 +178,44 @@ const routes: Array<RouteRecordRaw> = [
     component: Page,
     children: [
       {
-        path: '',
-        name: 'goods-list',
+        path: '50101',
+        name: 'goods-50101',
+        component: () => import('../views/goods/list/Index.vue'),
+        props: {
+          title: '日清挂牌',
+          marketId: 50101,
+          showBackButton: true
+        }
+      },
+      {
+        path: '50102',
+        name: 'goods-50102',
+        component: () => import('../views/goods/list/Index.vue'),
+        props: {
+          title: '中远期挂牌',
+          marketId: 50102,
+          showBackButton: true
+        }
+      },
+      {
+        path: '50103',
+        name: 'goods-50103',
+        component: () => import('../views/goods/list/Index.vue'),
+        props: {
+          title: '周清挂牌',
+          marketId: 50103,
+          showBackButton: true
+        }
+      },
+      {
+        path: '50104',
+        name: 'goods-50104',
         component: () => import('../views/goods/list/Index.vue'),
+        props: {
+          title: '月清挂牌',
+          marketId: 50104,
+          showBackButton: true
+        }
       },
       {
         path: 'detail',
@@ -350,36 +386,6 @@ const routes: Array<RouteRecordRaw> = [
     ],
   },
   {
-    path: '/forward',
-    component: Page,
-    children: [
-      {
-        path: '',
-        name: 'forward-list',
-        component: () => import('../views/goods/list/Index.vue'),
-        props: {
-          marketId: 50102,
-          showBackButton: true
-        }
-      },
-    ],
-  },
-  {
-    path: '/fullpayment',
-    component: Page,
-    children: [
-      {
-        path: '',
-        name: 'fullpayment-list',
-        component: () => import('../views/goods/list/Index.vue'),
-        props: {
-          marketId: 16201,
-          showBackButton: true
-        }
-      },
-    ],
-  },
-  {
     path: '/mine',
     component: Page,
     children: [

+ 2 - 2
src/packages/mobile/views/home/Index.vue

@@ -51,8 +51,8 @@ const tabList: Tabbar[] = [
     activeIcon: 'icon-a-zu824',
   },
   {
-    name: 'home-goods',
-    label: '订单挂牌',
+    name: 'home-16201',
+    label: '全款挂牌',
     icon: 'icon-a-zu821',
     activeIcon: 'icon-a-zu818',
   },

+ 20 - 15
src/packages/mobile/views/home/main/Index.vue

@@ -10,14 +10,17 @@
       </app-block>
       <app-block class="home-main__iconbar bg">
         <ul>
-          <li @click="routerTo('presale-list')">
-            <Iconfont label-direction="bottom" icon="icon-yushoujingpai">预售竞拍</Iconfont>
+          <li @click="routerTo('goods-50101')">
+            <Iconfont label-direction="bottom" icon="icon-a-zu771">日清挂牌</Iconfont>
           </li>
-          <li @click="routerTo('forward-list')">
-            <Iconfont label-direction="bottom" icon="icon-dingjinzhuanrang">中远期挂牌</Iconfont>
+          <li @click="routerTo('goods-50103')">
+            <Iconfont label-direction="bottom" icon="icon-a-zu771">周清挂牌</Iconfont>
           </li>
-          <li @click="routerTo('fullpayment-list')">
-            <Iconfont label-direction="bottom" icon="icon-a-zu771">全款挂牌</Iconfont>
+          <li @click="routerTo('goods-50104')">
+            <Iconfont label-direction="bottom" icon="icon-a-zu771">月清挂牌</Iconfont>
+          </li>
+          <li @click="routerTo('goods-50102')">
+            <Iconfont label-direction="bottom" icon="icon-dingjinzhuanrang">中远期挂牌</Iconfont>
           </li>
           <!-- <li @click="switchTab(1)">
             <Iconfont label-direction="bottom" icon="icon-zhongqian">预售中签</Iconfont>
@@ -25,20 +28,22 @@
           <!-- <li @click="switchTab(2)">
             <Iconfont label-direction="bottom" icon="icon-dingjinzhuanrang">定金转让</Iconfont>
           </li> -->
-          <li @click="routerTo('swap-list')">
-            <Iconfont label-direction="bottom" icon="icon-diaoqimaoyi">掉期贸易</Iconfont>
-          </li>
         </ul>
         <ul>
-          <!-- <li @click="switchTab(3)">
-            <Iconfont label-direction="bottom" icon="icon-a-zu771">订单挂牌</Iconfont>
-          </li> -->
-          <li @click="routerTo('pricing-list')">
-            <Iconfont label-direction="bottom" icon="icon-guapaidianjia">挂牌点价</Iconfont>
+          <li @click="routerTo('presale-list')">
+            <Iconfont label-direction="bottom" icon="icon-yushoujingpai">预售竞拍</Iconfont>
           </li>
           <li @click="routerTo('spot-list')">
             <Iconfont label-direction="bottom" icon="icon-xianhuomaoyi">现货贸易</Iconfont>
           </li>
+          <li @click="routerTo('pricing-list')">
+            <Iconfont label-direction="bottom" icon="icon-guapaidianjia">挂牌点价</Iconfont>
+          </li>
+          <li @click="routerTo('swap-list')">
+            <Iconfont label-direction="bottom" icon="icon-diaoqimaoyi">掉期贸易</Iconfont>
+          </li>
+        </ul>
+        <ul>
           <li @click="routerTo('market-list')">
             <Iconfont label-direction="bottom" icon="icon-cankaohangqing">参考行情</Iconfont>
           </li>
@@ -92,7 +97,7 @@ const switchTab = (tabIndex: number) => {
         routerTo('home-transfer', true)
         break
       case 3:
-        routerTo('home-goods', true)
+        routerTo('home-50101', true)
         break
     }
   } else {