import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/pay",
    name: "Search",
    component: () => import("../views/Search.vue"),
  },
  {
    path: "/",
    name: "Search",
    component: () => import("../views/Search.vue"),
  },
  {
    path: "/recharge",
    name: "Recharge",
    component: () => import("../views/Recharge.vue"),
  },
  {
    path: "/recharge",
    name: "Recharge",
    component: () => import("../views/Recharge.vue"),
  },
  {
    path: "/login",
    name: "Login",
    component: () => import("../views/Login.vue"),
  },
  {
    path: "/verify-code",
    name: "VerifyCode",
    component: () => import("../views/VerifyCode.vue"),
  },
  {
    path: "/coin-exchange",
    name: "CoinExchange",
    component: () => import("../views/CoinExchange.vue"),
  },
  {
    path: "/coin-exchange-record",
    name: "CoinExchangeRecord",
    component: () => import("../views/CoinExchangeRecord.vue"),
  },
];

const router = new VueRouter({
  routes,
});

export default router;
