import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";
import Search from "../views/Search.vue";
import Yygh from "../views/Yygh.vue";
import Jkzd from "../views/Jkzd.vue";
import Jkzd_detail from "../views/Jkzd_detail.vue";
// import Zstj from "../views/Zstj.vue";
// import Xzks from "../views/Xzks.vue";
// import Xzks_yy from "../views/Xzks_yy.vue";
import Guke from "../views/Guke.vue";
import Guke_yy from "../views/Guke_yy.vue";
import Ysgh from "../views/Ysgh.vue";
import Ghxq from "../views/Ghxq.vue";
// import Yycg from "../views/Yycg.vue";
import Yylb from "../views/Yylb.vue";
import Yylb_detail from "../views/Yylb_detail.vue";
import Zstj_yy from "../views/Zstj_yy.vue";
import Zstj_tc from "../views/Zstj_tc.vue";
import Zstj_detail from "../views/Zstj_detail.vue";
import Zstj_detaill from "../views/Zstj_detaill.vue";
import Zstj_wd from "../views/Zstj_wd.vue";
// import Zstj_zxly from "../views/Zstj_zxly.vue";
import Zstj_wd_detail from "../views/Zstj_wd_detail.vue";
import Hospital from "../views/Hospital.vue";
import Hospital_about from "../views/Hospital_about.vue";
import Hospital_dh from "../views/Hospital_dh.vue";
import Hospital_dh1 from "../views/Hospital_dh1.vue";
import Hospital_zn from "../views/Hospital_zn.vue";
import Hospital_zn_detail from "../views/Hospital_zn_detail.vue";
import Hospital_ksjs from "../views/Hospital_ksjs.vue";
import Hospital_ksjs_detail from "../views/Hospital_ksjs_detail.vue";
import Hospital_zjjs from "../views/Hospital_zjjs.vue";
import Hospital_zjjs_detail from "../views/Hospital_zjjs_detail.vue";
// import Hospital_xmcx from "../views/Hospital_xmcx.vue";
// import Hospital_xmcx_detail from "../views/Hospital_xmcx_detail.vue";
// import Message from "../views/Message.vue";
import Login from "../views/Login.vue";
// import Wjmm from "../views/Wjmm.vue";
import Register from "../views/Register.vue";
import Member from "../views/Member.vue";
// import Member_cz from "../views/Member_cz.vue";
// import Member_czcg from "../views/Member_czcg.vue";
import Member_ghjl from "../views/Member_ghjl.vue";
import Member_jzjl from "../views/Member_jzjl.vue";
import Member_jzr from "../views/Member_jzr.vue";
import Member_jzrbj from "../views/Member_jzrbj.vue";
import Member_wdzd from "../views/Member_wdzd.vue";
import Member_addjzr from "../views/Member_addjzr.vue";
// import HeSuanJC from "../views/HeSuanJC.vue";
// import HeSuan from "../views/HeSuan.vue";
import ZYindex from "../views/ZYindex.vue";
import ZYCharge from "../views/ZYCharge.vue";
import ZYdailylist from "../views/ZYdailylist.vue";
// import HeSuanQuery from "../views/HeSuanQuery.vue";
import Member_wdzd_detail from "../views/Member_wdzd_detail.vue";
import tijian from "../views/tijian.vue";
import ZYCharge_list from "../views/ZYCharge_list.vue";
import Zndz from "../views/Zndz.vue";
// import Zndz_detail from "../views/Zndz_detail.vue";
// import Succ from "../views/Succ.vue";
// import mz_dt from "../views/mz_dt.vue";
import jzxz from "../views/jzxz.vue";
import Member_pdjh from "../views/Member_pdjh.vue";
import Member_pdmz from "../views/Member_pdmz.vue";
import Member_pbry from "../views/Member_pbry.vue";
// import Member_cflb from "../views/Member_cflb.vue";
import xzmz from "../views/xzmz.vue";
// import xzmz2 from "../views/xzmz2.vue";
import xzmz_pbcx from "../views/xzmz_pbcx.vue";
import Guke_pbcx from "../views/Guke_pbcx.vue";
import Ysgh_pbcx from "../views/Ysgh_pbcx.vue";
import Prescription_details from "../views/Prescription_details.vue";
// import myd_test from "../views/mz_test.vue";
// import ccbpay from "../views/ccbpay.vue";
import member_gz from "../views/member_gz.vue";
import Member_bayj from "../views/Member_bayj.vue";
import Bayj_fysq from "../views/Bayj_fysq.vue";
import Bayj_wdsq from "../views/Bayj_wdsq.vue";
import JiaoFei_detail from "../views/JiaoFei_detail.vue";
import Wjcx from "../views/Wjcx.vue";
import ZYJS from "../views/ZYJS.vue";
import ZJZF from "../views/ZJZF.vue";
import yborder from "../views/yborder.vue";
import ybloading from "../views/ybloading.vue";
import ybsuccess from "../views/ybsuccess.vue";

import Zhdz_ai from "../views/Zhdz_ai.vue";
import tui from "../views/tui.vue";
import ybAUTH from "../views/ybAUTH.vue";

Vue.use(VueRouter);
const router = new VueRouter({
    base: "/nxwj-gzh/", // 主要添加这个 /app/mall 注意这个 和上面的一致，为nginx location路径， 也就是请求路径
    // mode: 'history',
    routes: [
        {
            path: "/",
            name: "Home",
            component: Home,
            meta: {
                // 页面标题title
                title: "武警宁夏总队医院",
            },
        },
        {
            path: "/Search",
            name: "Search",
            component: Search,
            meta: {
                title: "搜索结果",
            },
        },
        {
            path: "/Zhdz_ai",
            name: "Zhdz_ai",
            component: Zhdz_ai,
            meta: {
                title: "智慧导诊",
            },
        },
        {
            path: "/Yygh",
            name: "Yygh",
            component: Yygh,
            meta: {
                title: "预约挂号",
            },
        },
        {
            path: "/yborder",
            name: "yborder",
            component: yborder,
            meta: {
                title: "确认支付",
            }
        },
        {
            path: "/ybloading",
            name: "ybloading",
            component: ybloading,
            meta: {
                title: "加载中",
            }

        },
        {
            path: "/ybsuccess",
            name: "ybsuccess",
            component: ybsuccess,
            meta: {
                title: "支付成功",
            }
        },
        {
            path: "/Jkzd",
            name: "Jkzd",
            component: Jkzd,
            meta: {
                title: "健康指导",
            },
        },
        {
            path: "/ZYJS",
            name: "ZYJS",
            component: ZYJS,
            meta: {
                title: "住院结算",
            },
        },
        {
            path: "/Jkzd_detail",
            name: "Jkzd_detail",
            component: Jkzd_detail,
            meta: {
                title: "指南详情",
            },
        },
        {
            path: "/Zstj",
            name: "Zstj",
            component: () => import(/* webpackChunkName: "Zstj" */ "../views/Zstj.vue"),
            meta: {
                title: "掌上体检",
            },
        },
          {
            path: "/tui",
            name: "tui",
            component: tui,
            meta: {
                title: "收费室退费专用页",
            },
        },
        {
            path: "/ybAUTH",
            name: "ybAUTH",
            component: ybAUTH,
            meta: {
                title: "授权退款",
            },
        },
        {
            path: "/Xzks",
            name: "Xzks",
            component: () => import(/* webpackChunkName: "Xzks" */ "../views/Xzks.vue"),
            meta: {
                title: "选择科室",
            },
        },
        {
            path: "/Xzks_yy",
            name: "Xzks_yy",
            component: () => import(/* webpackChunkName: "Xzks_yy" */ "../views/Xzks_yy.vue"),
            meta: {
                title: "选择科室",
            },
        },
        {
            path: "/Guke",
            name: "Guke",
            component: Guke,
            meta: {
                title: "挂号",
            },
        },
        {
            path: "/Guke_yy",
            name: "Guke_yy",
            component: Guke_yy,
            meta: {
                title: "挂号",
            },
        },
        {
            path: "/Ysgh",
            name: "Ysgh",
            component: Ysgh,
            meta: {
                title: "挂号",
            },
        },
        {
            path: "/Ghxq",
            name: "Ghxq",
            component: Ghxq,
            meta: {
                title: "确认挂号",
            },
        },
        {
            path: "/Yycg",
            name: "Yycg",
            component: () => import(/* webpackChunkName: "Yycg" */ "../views/Yycg.vue"),
            meta: {
                title: "预约成功",
            },
        },
        {
            path: "/Yylb",
            name: "Yylb",
            component: Yylb,
            meta: {
                title: "挂号记录",
            },
        },
        {
            path: "/Yylb_detail",
            name: "Yylb_detail",
            component: Yylb_detail,
            meta: {
                title: "挂号信息",
            },
        },
        {
            path: "/Tj_jsc",
            name: "Tj_jsc",
            component: () => import(/* webpackChunkName: "Tj_jsc" */ "../views/Tj_jsc.vue"),
            meta: {
                title: "公众号驾驶舱",
            },

        },
        {
            path: "/ZJZF",
            name: "ZJZF",
            component: ZJZF,
            meta: {
                title: "诊间支付",
            },

        },
        {
            path: "/Zstj_yy",
            name: "Zstj_yy",
            component: Zstj_yy,
            meta: {
                title: "预约体检",
            },
        },
        {
            path: "/Zstj_tc",
            name: "Zstj_tc",
            component: Zstj_tc,
            meta: {
                title: "体检套餐",
                keepAlive: true,
            },
        },
        {
            path: "/Zstj_detail",
            name: "Zstj_detail",
            component: Zstj_detail,
            meta: {
                title: "套餐详情",
            },
        },
        {
            path: "/Zstj_detaill",
            name: "Zstj_detaill",
            component: Zstj_detaill,
            meta: {
                title: "套餐详情",
            },
        },
        {
            path: "/Zstj_wd",
            name: "Zstj_wd",
            component: Zstj_wd,
            meta: {
                title: "我的体检",
            },
        },
        {
            path: "/Zstj_zxly",
            name: "Zstj_zxly",
            component: () => import(/* webpackChunkName: "Zstj_zxly" */ "../views/Zstj_zxly.vue"),
            meta: {
                title: "资讯留言",
            },
        },
        {
            path: "/Zstj_wd_detail",
            name: "Zstj_wd_detail",
            component: Zstj_wd_detail,
            meta: {
                title: "体检详情",
            },
        },
        {
            path: "/Hospital",
            name: "Hospital",
            component: Hospital,
            meta: {
                title: "武警宁夏总队医院",
            },
        },
        {
            path: "/Hospital_about",
            name: "Hospital_about",
            component: Hospital_about,
            meta: {
                title: "医院概况",
            },
        },
        {
            path: "/Hospital_dh",
            name: "Hospital_dh",
            component: Hospital_dh,
            meta: {
                title: "医院导航",
            },
        },
        {
            path: "/Hospital_dh1",
            name: "Hospital_dh1",
            component: Hospital_dh1,
            meta: {
                title: "医院导航",
            },
        },
        {
            path: "/Hospital_zn",
            name: "Hospital_zn",
            component: Hospital_zn,
            meta: {
                title: "就医指南",
            },
        },
        {
            path: "/Hospital_zn_detail",
            name: "Hospital_zn_detail",
            component: Hospital_zn_detail,
            meta: {
                title: "就医指南详情",
            },
        },
        {
            path: "/Hospital_ksjs",
            name: "Hospital_ksjs",
            component: Hospital_ksjs,
            meta: {
                title: "科室介绍",
            },
        },
        {
            path: "/Hospital_ksjs_detail",
            name: "Hospital_ksjs_detail",
            component: Hospital_ksjs_detail,
            meta: {
                title: "科室介绍",
            },
        },
        {
            path: "/Hospital_zjjs",
            name: "Hospital_zjjs",
            component: Hospital_zjjs,
            meta: {
                title: "专家介绍",
            },
        },
        {
            path: "/Hospital_zjjs_detail",
            name: "Hospital_zjjs_detail",
            component: Hospital_zjjs_detail,
            meta: {
                title: "专家介绍",
            },
        },
        {
            path: "/Hospital_xmcx",
            name: "Hospital_xmcx",
            component: () => import(/* webpackChunkName: "Hospital_xmcx" */ "../views/Hospital_xmcx.vue"),
            meta: {
                title: "收费项目查询",
            },
        },
        {
            path: "/Hospital_xmcx_detail",
            name: "Hospital_xmcx_detail",
            component: () => import(/* webpackChunkName: "Hospital_xmcx_detail" */ "../views/Hospital_xmcx_detail.vue"),
            meta: {
                title: "费用详情",
            },
        },

        {
            path: "/Message",
            name: "Message",
            component: () => import(/* webpackChunkName: "Message" */ "../views/Message.vue"),
            meta: {
                title: "消息中心",
            },
        },
        {
            path: "/Login",
            name: "Login",
            component: Login,
            meta: {
                title: "登录",
            },
        },
        {
            path: "/Wjmm",
            name: "Wjmm",
            component: () => import(/* webpackChunkName: "Wjmm" */ "../views/Wjmm.vue"),
            meta: {
                title: "忘记密码",
            },
        },
        {
            path: "/Register",
            name: "Register",
            component: Register,
            meta: {
                title: "用户注册",
            },
        },
        {
            path: "/Member",
            name: "Member",
            component: Member,
            meta: {
                title: "个人中心",
            },
        },
        {
            path: "/Member_cz",
            name: "Member_cz",
            component: () => import(/* webpackChunkName: "Member_cz" */ "../views/Member_cz.vue"),
            meta: {
                title: "预约充值",
            },
        },
        {
            path: "/Member_czcg",
            name: "Member_czcg",
            component: () => import(/* webpackChunkName: "Member_czcg" */ "../views/Member_czcg.vue"),
            meta: {
                title: "充值成功",
            },
        },
        {
            path: "/Member_ghjl",
            name: "Member_ghjl",
            component: Member_ghjl,
            meta: {
                title: "挂号记录",
            },
        },
        {
            path: "/Member_bayj",
            name: "Member_bayj",
            component: Member_bayj,
            meta: {
                title: "病案邮寄",
            },
        },
        {
            path: "/Bayj_fysq",
            name: "Bayj_fysq",
            component: Bayj_fysq,
            meta: {
                title: "复印申请",
            },
        },
        {
            path: "/Bayj_wdsq",
            name: "Bayj_wdsq",
            component: Bayj_wdsq,
            meta: {
                title: "我的申请",
            },
        },
        {
            path: "/Member_jzjl",
            name: "Member_jzjl",
            component: Member_jzjl,
            meta: {
                title: "就诊记录",
            },
        },
        {
            path: "/Member_wdbg",
            name: "Member_wdbg",
            component: () => import(/* webpackChunkName: "Member_wdbg" */ "../views/Member_wdbg.vue"),
            meta: {
                title: "我的报告",
            },
        },
        {
            path: "/JiaoFei_detail",
            name: "JiaoFei_detail",
            component: JiaoFei_detail,
            meta: {
                title: "缴费详情",
            },
        },
        {
            path: "/Member_jzr",
            name: "Member_jzr",
            component: Member_jzr,
            meta: {
                title: "我的就诊人",
            },
        },
        {
            path: "/Member_jzrbj",
            name: "Member_jzrbj",
            component: Member_jzrbj,
            meta: {
                title: "添加就诊人",
            },
        },
        {
            path: "/Wjcx",
            name: "Wjcx",
            component: Wjcx,
            meta: {
                title: "物价查询",
            },
        },
        {
            path: "/Member_wdzd",
            name: "Member_wdzd",
            component: Member_wdzd,
            meta: {
                title: "我的账单",
            },
        },
        {
            path: "/Member_myd",
            name: "Member_myd",
            component: () => import(/* webpackChunkName: "Member_myd" */ "../views/Member_myd.vue"),
            meta: {
                title: "满意度调查",
            },
        },
        {
            path: "/Member_addjzr",
            name: "Member_addjzr",
            component: Member_addjzr,
            meta: {
                title: "新建就诊人",
            },
        },
        {
            path: "/HeSuanJC",
            name: "HeSuanJC",
            component: () => import(/* webpackChunkName: "HeSuanJC" */ "../views/HeSuanJC.vue"),
            meta: {
                title: "核酸检测",
            },
        },
        {
            path: "/HeSuan",
            name: "HeSuan",
            component: () => import(/* webpackChunkName: "HeSuan" */ "../views/HeSuan.vue"),
            meta: {
                title: "核酸检测",
            },
        },
        {
            path: "/ZYindex",
            name: "ZYindex",
            component: ZYindex,
            meta: {
                title: "住院管理",
            },
        },
        {
            path: "/ZYCharge",
            name: "ZYCharge",
            component: ZYCharge,
            meta: {
                title: "住院预交",
            },
        },
        {
            path: "/ZYdailylist",
            name: "ZYdailylist",
            component: ZYdailylist,
            meta: {
                title: "每日清单",
            },
        },
        { path: "/HeSuanQuery", 
            name: "HeSuanQuery", 
            component: () => import(/* webpackChunkName: "HeSuanQuery" */ "../views/HeSuanQuery.vue"), 
            meta: { title: "核酸查询", },
         },
        {
            path: "/Member_wdzd_detail",
            name: "Member_wdzd_detail",
            component: Member_wdzd_detail,
            meta: {
                title: "单据缴费",
            },
        },
        {
            path: "/tijian",
            name: "tijian",
            component: tijian,
            meta: {
                title: "预约体检",
            },
        },
        {
            path: "/ZYCharge_list",
            name: "ZYCharge_list",
            component: ZYCharge_list,
            meta: {
                title: "预交金记录",
            },
        },
        {
            path: "/Zndz",
            name: "Zndz",
            component: Zndz,
            meta: {
                title: "智能导诊",
            },
        },
        {
            path: "/Zndz_detail",
            name: "Zndz_detail",
            component: () => import(/* webpackChunkName: "Zndz_detail" */ "../views/Zndz_detail.vue"),
            meta: {
                title: "症状自测",
            },
        },
        {
            path: "/myd",
            name: "myd",
            component: () => import(/* webpackChunkName: "myd" */ "../views/myd.vue"),
            meta: {
                title: "满意度评价",
            },
        },
        {
            path: "/myd_zy",
            name: "myd_zy",
            component: () => import(/* webpackChunkName: "myd_zy" */ "../views/myd_zy.vue"),
            meta: {
                title: "住院满意度调查",
            },
        },
        {
            path: "/myd_mz",
            name: "myd_mz",
            component: () => import(/* webpackChunkName: "myd_mz" */ "../views/myd_mz.vue"),
            meta: {
                title: "门诊满意度调查",
            },
        },
        {
            path: "/Succ",
            name: "Succ",
            component: () => import(/* webpackChunkName: "Succ" */ "../views/Succ.vue"),
            meta: {
                title: "评价成功",
            },
        },
        {
            path: "/mz_dt",
            name: "mz_dt",
            component: () => import(/* webpackChunkName: "mz_dt" */ "../views/mz_dt.vue"),
            meta: {
                title: "评价",
            },
        },
        {
            path: "/ccbpay",
            name: "ccbpay",
            component: () => import(/* webpackChunkName: "ccbpay" */ "../views/ccbpay.vue"),
            meta: {
                title: "支付测试",
            },
        },
        {
            path: "/jzxz",
            name: "jzxz",
            component: jzxz,
            meta: {
                title: "就诊须知",
            },
        },
        {
            path: "/myd_t",
            name: "myd_t",
            component: () => import(/* webpackChunkName: "myd_t" */ "../views/myd_t.vue"),
            meta: {
                title: "满意度测试",
            },
        },
        {
            path: "/member_gz",
            name: "member_gz",
            component: member_gz,
            meta: {
                title: "我的关注",
            },
        },
        {
            path: "/Member_pdjh",
            name: "Member_pdjh",
            component: Member_pdjh,
            meta: {
                title: "排队叫号",
            },
        },
        {
            path: "/Member_pdmz",
            name: "Member_pdmz",
            component: Member_pdmz,
            meta: {
                title: "选择门诊",
            },
        },
        {
            path: "/Member_pbry",
            name: "Member_pbry",
            component: Member_pbry,
            meta: {
                title: "排班人员",
            },
        },
        {
            path: "/Member_cflb",
            name: "Member_cflb",
            component: () => import(/* webpackChunkName: "Member_cflb" */ "../views/Member_cflb.vue"),
            meta: {
                title: "我的处方",
            },
        },
        {
            path: "/xzmz",
            name: "xzmz",
            component: xzmz,
            meta: {
                title: "选择门诊",
            },
        },
        //   {
        //         path: "/xzmz2",
        //         name: "xzmz2",
        //         component: xzmz2,
        //         meta: {
        //             title: "选择门诊",
        //         },
        //     },
        {
            path: "/xzmz_pbcx",
            name: "xzmz_pbcx",
            component: xzmz_pbcx,
            meta: {
                title: "排班查询",
            }
        },
        {
            path: "/Guke_pbcx",
            name: "Guke_pbcx",
            component: Guke_pbcx,
        },
        {
            path: "/Ysgh_pbcx",
            name: "Ysgh_pbcx",
            component: Ysgh_pbcx,
        },
        {
            path: "/Prescription_details",
            name: "Prescription_details",
            component: Prescription_details,
            meta: {
                title: "处方详情",
            },
        },
        // {
        //   path: "/myd_test",
        //   name: "myd_test",
        //   component: myd_test,
        //   meta: {
        //     title: "满意度测试",
        //   },
        // },
    ],
});

router.beforeEach((to, from, next) => {
    document.title = "武警宁夏总队医院";
    next();
});
export default router;
