index.js 3.91 KB
Newer Older
leiqingsong's avatar
leiqingsong committed
1 2 3 4 5 6 7 8
import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/my-status",
leiqingsong's avatar
leiqingsong committed
9
    name: "MyStatus",
10
    component: () => import("../views/my/myStatus.vue"),
leiqingsong's avatar
leiqingsong committed
11
    meta: { title: "我的直推", noNav: false }
12 13 14
  },
  {
    path: "/publish",
leiqingsong's avatar
leiqingsong committed
15
    name: "Publish",
leiqingsong's avatar
leiqingsong committed
16
    component: () => import("@/views/moments/publish"),
17 18
    meta: { title: "发布资讯" }
  },
leiqingsong's avatar
leiqingsong committed
19 20 21 22
  {
    path: "/moments",
    name: "Moments",
    component: () => import("@/views/moments/moments"),
全球's avatar
全球 committed
23
    meta: { title: "资讯", noNav: false }
leiqingsong's avatar
leiqingsong committed
24
  },
25 26 27
  {
    path: "/cash-out",
    name: "CashOut",
28
    component: () => import("@/views/cashOut/cash-out"),
29 30
    meta: { title: "提现" }
  },
31 32 33 34 35 36
  {
    path: "/cash-out-record",
    name: "CashOutRecord",
    component: () => import("@/views/cashOut/cash-out-record"),
    meta: { title: "提现记录" }
  },
37 38 39 40 41
  {
    path: "/bank",
    name: "Bank",
    component: () => import("@/views/bank"),
    meta: { title: "银行卡" }
42 43 44 45 46 47 48 49 50 51 52 53 54
  },
  {
    path: "/income",
    component: () => import("@/views/income/index"),
    children: [
      {
        path: "detail",
        name: "IncomeDetail",
        component: () => import("@/views/income/income-detail"),
        meta: { title: "收益明细查看" }
      },
      {
        path: "wallet",
leiqingsong's avatar
leiqingsong committed
55
        name: "Wallet",
56 57
        component: () => import("@/views/income/wallet"),
        meta: { title: "钱包" }
leiqingsong's avatar
leiqingsong committed
58 59 60 61 62 63
      },
      {
        path: "all",
        name: "AllIncomme",
        component: () => import("@/views/income/allIncome"),
        meta: { title: "累计收益" }
64 65 66
      }
    ]
  },
leiqingsong's avatar
leiqingsong committed
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
  {
    path: "/rewards",
    component: () => import("@/views/rewards/index"),
    children: [
      {
        path: "fastest-progress",
        name: "FastestProgress",
        component: () => import("@/views/rewards/fastest-progress"),
        meta: { title: "进步奖", noNav: true }
      },
      {
        path: "month-award",
        name: "MonthAward",
        component: () => import("@/views/rewards/month-award"),
        meta: { title: "月度奖励", noNav: true }
      }
    ]
  },
85 86
  {
    path: "/instructions",
leiqingsong's avatar
leiqingsong committed
87
    name: "Instructions",
88 89 90 91 92
    component: () => import("@/views/instructions"),
    meta: { title: "用户协议" }
  },
  {
    path: "/settings",
leiqingsong's avatar
leiqingsong committed
93
    name: "Settings",
94 95
    component: () => import("@/views/settings"),
    meta: { title: "设置" }
96 97 98 99 100 101
  },
  {
    path: "/modefy-avatar",
    name: "ModefyAvatar",
    component: () => import("@/views/modefyAvatar"),
    meta: { title: "更换头像" }
leiqingsong's avatar
leiqingsong committed
102
  },
xulili's avatar
xulili committed
103 104 105 106 107 108 109 110 111 112
  {
    path: "/grade",
    name: "Grade",
    component: () => import("@/views/grade"),
    meta: { title: "森林状态", noNav: true }
  },
  {
    path: "/leagueNums",
    name: "LeagueNums",
    component: () => import("@/views/leagueNums"),
全球's avatar
全球 committed
113
    meta: { title: "团队详情", noNav: true }
xulili's avatar
xulili committed
114 115 116 117 118 119 120 121 122 123 124 125 126
  },
  {
    path: "/canCashOut",
    name: "CanCashOut",
    component: () => import("@/views/canCashOut"),
    meta: { title: "可提现", noNav: true }
  },
  {
    path: "/airDrop",
    name: "AirDrop",
    component: () => import("@/views/airDropPool"),
    meta: { title: "空投池", noNav: true }
  },
leiqingsong's avatar
leiqingsong committed
127
  {
leiqingsong's avatar
leiqingsong committed
128
    path: "/",
leiqingsong's avatar
leiqingsong committed
129 130 131
    name: "Router",
    component: () => import("@/views/router"),
    meta: { title: "路径导航", noNav: true }
xulili's avatar
xulili committed
132 133 134 135 136
  },
  {
    path: "/register",
    name: "Register",
    component: () => import("@/views/register"),
leiqingsong's avatar
leiqingsong committed
137
    meta: { title: "注册", noNav: true }
xulili's avatar
xulili committed
138 139 140
  },
  {
    path: "/customer",
leiqingsong's avatar
leiqingsong committed
141
    name: "CustomerService",
xulili's avatar
xulili committed
142
    component: () => import("@/views/customer-service"),
leiqingsong's avatar
leiqingsong committed
143
    meta: { title: "专属客服", noNav: true }
144 145 146 147 148 149 150 151 152
  },
  {
    path: "/invite",
    name: "Invite",
    component: () => import("@/views/invite"),
    meta: { title: "邀请码", noNav: true }
  },
  {
    path: "/aboutUs",
leiqingsong's avatar
leiqingsong committed
153
    name: "AboutUs",
154
    component: () => import("@/views/aboutUs"),
xulili's avatar
xulili committed
155
    meta: { title: "公司简介", noNav: false }
leiqingsong's avatar
leiqingsong committed
156 157 158 159 160 161 162 163 164 165
  }
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes
});

export default router;