|
|
@@ -2,8 +2,8 @@ import { createWebHashHistory, RouteRecordRaw } from 'vue-router'
|
|
|
import { useLoginStore } from '@/stores'
|
|
|
import { clearPending } from '@/services/http/pending'
|
|
|
import service from '@/services'
|
|
|
-import Page from '../components/layouts/page/index.vue'
|
|
|
-import animateRouter from './animateRouter'
|
|
|
+import Page from '@mobile/components/layouts/page/index.vue'
|
|
|
+import animateRouter from '@mobile/router/animateRouter'
|
|
|
|
|
|
const loginStore = useLoginStore()
|
|
|
|
|
|
@@ -44,7 +44,7 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
{
|
|
|
path: 'goods',
|
|
|
name: 'home-goods',
|
|
|
- component: () => import('../views/goods/list/Index.vue'),
|
|
|
+ component: () => import('@mobile/views/goods/list/Index.vue'),
|
|
|
props: {
|
|
|
marketId: 50101
|
|
|
}
|
|
|
@@ -52,7 +52,7 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
{
|
|
|
path: 'forward',
|
|
|
name: 'home-forward',
|
|
|
- component: () => import('../views/goods/list/Index.vue'),
|
|
|
+ component: () => import('@mobile/views/goods/list/Index.vue'),
|
|
|
props: {
|
|
|
marketId: 50102
|
|
|
}
|
|
|
@@ -60,7 +60,7 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
{
|
|
|
path: 'spot',
|
|
|
name: 'home-spot',
|
|
|
- component: () => import('../views/spot/list/Index.vue'),
|
|
|
+ component: () => import('@mobile/views/spot/list/Index.vue'),
|
|
|
},
|
|
|
{
|
|
|
path: 'mine',
|
|
|
@@ -86,7 +86,7 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
{
|
|
|
path: 'register',
|
|
|
name: 'user-register',
|
|
|
- component: () => import('../views/user/register/Index.vue'),
|
|
|
+ component: () => import('@mobile/views/user/register/Index.vue'),
|
|
|
meta: {
|
|
|
ignoreAuth: true,
|
|
|
},
|
|
|
@@ -94,7 +94,7 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
{
|
|
|
path: 'forget',
|
|
|
name: 'user-forget',
|
|
|
- component: () => import('../views/user/forget/Index.vue'),
|
|
|
+ component: () => import('@mobile/views/user/forget/Index.vue'),
|
|
|
meta: {
|
|
|
ignoreAuth: true,
|
|
|
},
|
|
|
@@ -102,17 +102,17 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
{
|
|
|
path: 'cancel',
|
|
|
name: 'user-cancel',
|
|
|
- component: () => import('../views/user/cancel/Index.vue'),
|
|
|
+ component: () => import('@mobile/views/user/cancel/Index.vue'),
|
|
|
},
|
|
|
{
|
|
|
path: 'password',
|
|
|
name: 'user-password',
|
|
|
- component: () => import('../views/user/password/Index.vue'),
|
|
|
+ component: () => import('@mobile/views/user/password/Index.vue'),
|
|
|
},
|
|
|
{
|
|
|
path: 'avatar',
|
|
|
name: 'user-avatar',
|
|
|
- component: () => import('../views/user/avatar/Index.vue'),
|
|
|
+ component: () => import('@mobile/views/user/avatar/Index.vue'),
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
@@ -123,7 +123,7 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
{
|
|
|
path: 'certification',
|
|
|
name: 'account-certification',
|
|
|
- component: () => import('../views/account/certification/Index.vue'),
|
|
|
+ component: () => import('@mobile/views/account/certification/Index.vue'),
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
@@ -134,7 +134,7 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
{
|
|
|
path: '',
|
|
|
name: 'news-list',
|
|
|
- component: () => import('../views/news/list/Index.vue'),
|
|
|
+ component: () => import('@mobile/views/news/list/Index.vue'),
|
|
|
meta: {
|
|
|
ignoreAuth: true,
|
|
|
},
|
|
|
@@ -142,7 +142,7 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
{
|
|
|
path: 'detail',
|
|
|
name: 'news-detail',
|
|
|
- component: () => import('../views/news/detail/Index.vue'),
|
|
|
+ component: () => import('@mobile/views/news/detail/Index.vue'),
|
|
|
meta: {
|
|
|
ignoreAuth: true,
|
|
|
},
|
|
|
@@ -156,12 +156,12 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
{
|
|
|
path: 'detail',
|
|
|
name: 'goods-detail',
|
|
|
- component: () => import('../views/goods/detail/Index.vue'),
|
|
|
+ component: () => import('@mobile/views/goods/detail/Index.vue'),
|
|
|
},
|
|
|
{
|
|
|
path: 'trade',
|
|
|
name: 'goods-trade',
|
|
|
- component: () => import('../views/goods/trade/index.vue'),
|
|
|
+ component: () => import('@mobile/views/goods/trade/index.vue'),
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
@@ -170,19 +170,14 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
component: Page,
|
|
|
children: [
|
|
|
{
|
|
|
- path: '',
|
|
|
- name: 'spot-list',
|
|
|
- component: () => import('../views/spot/list/Index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
path: 'detail',
|
|
|
name: 'spot-detail',
|
|
|
- component: () => import('../views/spot/detail/Index.vue'),
|
|
|
+ component: () => import('@mobile/views/spot/detail/Index.vue'),
|
|
|
},
|
|
|
{
|
|
|
path: 'add',
|
|
|
name: 'spot-add',
|
|
|
- component: () => import('../views/spot/add/index.vue'),
|
|
|
+ component: () => import('@mobile/views/spot/add/index.vue'),
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
@@ -193,22 +188,22 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
{
|
|
|
path: 'wallet',
|
|
|
name: 'bank-wallet',
|
|
|
- component: () => import('../views/bank/wallet/Index.vue'),
|
|
|
+ component: () => import('@mobile/views/bank/wallet/Index.vue'),
|
|
|
},
|
|
|
{
|
|
|
path: 'sign',
|
|
|
name: 'bank-sign',
|
|
|
- component: () => import('../views/bank/sign/Index.vue'),
|
|
|
+ component: () => import('@mobile/views/bank/sign/Index.vue'),
|
|
|
},
|
|
|
{
|
|
|
path: 'statement',
|
|
|
name: 'bank-statement',
|
|
|
- component: () => import('../views/bank/statement/Index.vue'),
|
|
|
+ component: () => import('@mobile/views/bank/statement/Index.vue'),
|
|
|
},
|
|
|
{
|
|
|
path: 'statement/history',
|
|
|
name: 'bank-statement-history',
|
|
|
- component: () => import('../views/bank/statement/history/Index.vue'),
|
|
|
+ component: () => import('@mobile/views/bank/statement/history/Index.vue'),
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
@@ -234,7 +229,21 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
{
|
|
|
path: 'performance',
|
|
|
name: 'order-performance',
|
|
|
- component: () => import('../views/order/performance/Index.vue'),
|
|
|
+ component: () => import('@mobile/views/order/performance/Index.vue'),
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/forward',
|
|
|
+ component: Page,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: '',
|
|
|
+ name: 'forward-list',
|
|
|
+ component: () => import('@mobile/views/goods/list/Index.vue'),
|
|
|
+ props: {
|
|
|
+ marketId: 50102
|
|
|
+ }
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
@@ -245,22 +254,22 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
{
|
|
|
path: 'address',
|
|
|
name: 'mine-address',
|
|
|
- component: () => import('../views/mine/address/Index.vue'),
|
|
|
+ component: () => import('@mobile/views/mine/address/Index.vue'),
|
|
|
},
|
|
|
{
|
|
|
path: 'invoice',
|
|
|
name: 'mine-invoice',
|
|
|
- component: () => import('../views/mine/invoice/Index.vue'),
|
|
|
+ component: () => import('@mobile/views/mine/invoice/Index.vue'),
|
|
|
},
|
|
|
{
|
|
|
path: 'profile',
|
|
|
name: 'mine-profile',
|
|
|
- component: () => import('../views/mine/profile/Index.vue'),
|
|
|
+ component: () => import('@mobile/views/mine/profile/Index.vue'),
|
|
|
},
|
|
|
{
|
|
|
path: 'setting',
|
|
|
name: 'mine-setting',
|
|
|
- component: () => import('../views/mine/setting/Index.vue'),
|
|
|
+ component: () => import('@mobile/views/mine/setting/Index.vue'),
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
@@ -271,7 +280,7 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
{
|
|
|
path: '',
|
|
|
name: 'notice-list',
|
|
|
- component: () => import('../views/notice/list/index.vue'),
|
|
|
+ component: () => import('@mobile/views/notice/list/index.vue'),
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
@@ -280,33 +289,9 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
component: Page,
|
|
|
children: [
|
|
|
{
|
|
|
- path: "ptgz",
|
|
|
- name: "rules-ptgz",
|
|
|
- component: () => import("../views/rules/ptgz/Index.vue"),
|
|
|
- meta: {
|
|
|
- ignoreAuth: true,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- path: "myrz",
|
|
|
- name: "rules-myrz",
|
|
|
- component: () => import("../views/rules/myrz/Index.vue"),
|
|
|
- meta: {
|
|
|
- ignoreAuth: true,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- path: "ccwl",
|
|
|
- name: "rules-ccwl",
|
|
|
- component: () => import("../views/rules/ccwl/Index.vue"),
|
|
|
- meta: {
|
|
|
- ignoreAuth: true,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
path: "zcxy",
|
|
|
name: "rules-zcxy",
|
|
|
- component: () => import("../views/rules/zcxy/Index.vue"),
|
|
|
+ component: () => import("@mobile/views/rules/zcxy/Index.vue"),
|
|
|
meta: {
|
|
|
ignoreAuth: true,
|
|
|
},
|
|
|
@@ -314,7 +299,7 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
{
|
|
|
path: "yhkhfxgzs",
|
|
|
name: "rules-yhkhfxgzs",
|
|
|
- component: () => import("../views/rules/fxgzs/Index.vue"),
|
|
|
+ component: () => import("@mobile/views/rules/fxgzs/Index.vue"),
|
|
|
meta: {
|
|
|
ignoreAuth: true,
|
|
|
},
|
|
|
@@ -322,7 +307,7 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
{
|
|
|
path: "yszc",
|
|
|
name: "rules-yszc",
|
|
|
- component: () => import("../views/rules/yszc/Index.vue"),
|
|
|
+ component: () => import("@mobile/views/rules/yszc/Index.vue"),
|
|
|
meta: {
|
|
|
ignoreAuth: true,
|
|
|
},
|
|
|
@@ -330,15 +315,7 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
{
|
|
|
path: "gywm",
|
|
|
name: "rules-gywm",
|
|
|
- component: () => import("../views/rules/gywm/Index.vue"),
|
|
|
- meta: {
|
|
|
- ignoreAuth: true,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- path: "fpsm",
|
|
|
- name: "rules-fpsm",
|
|
|
- component: () => import("../views/rules/fpsm/Index.vue"),
|
|
|
+ component: () => import("@mobile/views/rules/gywm/Index.vue"),
|
|
|
meta: {
|
|
|
ignoreAuth: true,
|
|
|
},
|
|
|
@@ -346,69 +323,13 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
{
|
|
|
path: "fwrx",
|
|
|
name: "rules-fwrx",
|
|
|
- component: () => import("../views/rules/fwrx/Index.vue"),
|
|
|
+ component: () => import("@mobile/views/rules/fwrx/Index.vue"),
|
|
|
meta: {
|
|
|
ignoreAuth: true,
|
|
|
},
|
|
|
},
|
|
|
- {
|
|
|
- path: "buyrule",
|
|
|
- name: "rules-buyrule",
|
|
|
- component: () => import("../views/rules/buyrule/Index.vue"),
|
|
|
- meta: {
|
|
|
- ignoreAuth: true,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- path: "sellrule",
|
|
|
- name: "rules-sellrule",
|
|
|
- component: () => import("../views/rules/sellrule/Index.vue"),
|
|
|
- meta: {
|
|
|
- ignoreAuth: true,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- path: "djgz",
|
|
|
- name: "rules-dj",
|
|
|
- component: () => import("../views/rules/djgz/Index.vue"),
|
|
|
- meta: {
|
|
|
- ignoreAuth: true,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- path: "jfgz",
|
|
|
- name: "rules-jf",
|
|
|
- component: () => import("../views/rules/jfgz/Index.vue"),
|
|
|
- meta: {
|
|
|
- ignoreAuth: true,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- path: "cght",
|
|
|
- name: "rules-cght",
|
|
|
- component: () => import("../views/rules/cght/Index.vue"),
|
|
|
- meta: {
|
|
|
- ignoreAuth: true,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- path: "zrht",
|
|
|
- name: "rules-zrht",
|
|
|
- component: () => import("../views/rules/zrht/Index.vue"),
|
|
|
- meta: {
|
|
|
- ignoreAuth: true,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- path: "xhht",
|
|
|
- name: "rules-xhht",
|
|
|
- component: () => import("../views/rules/xhht/Index.vue"),
|
|
|
- meta: {
|
|
|
- ignoreAuth: true,
|
|
|
- },
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
+ ]
|
|
|
+ }
|
|
|
]
|
|
|
|
|
|
const router = animateRouter.create({
|