import Vue from "vue";
import Router from "vue-router";
import HelloWorld from "@/components/HelloWorld";

const SubscribeHouse = () => import("@/pages/form/subscribeHouse"); //预约看房
const RealNameCheck = () => import("@/pages/form/realNameCheck"); //实名认证
const BindHouseCheck = () => import("@/pages/form/bindHouseCheck"); //绑定房之实名认证
const ApplyCheckIn = () => import("@/pages/form/applyCheckIn"); //申请入住
const ApplyUpload = () => import("@/pages/form/applyUpload"); //申请入住证件上传
const MaintenanceApply = () => import("@/pages/form/maintenanceApply"); //申请维保
const Feedback = () => import("@/pages/form/feedback"); //功能异常与产品建议
const ComplainSuggest = () => import("@/pages/form/complainSuggest"); //投诉建议
const EvaluateRepair = () => import("@/pages/maintenance/evaluateRepair"); //维保评价


const UserApplyList = () => import("@/pages/apply/userApplyList"); //我的申请
const UserMaintenanceList = () => import("@/pages/maintenance/usermaintenanceList"); //我的维保
const SubscribeList = () => import("@/pages/subscribe/subscribeList"); //我的预约

const ActivityList = () => import("@/pages/activity/activityList"); //我的活动
const ActivityDetail = () => import("@/pages/activity/activityDetail"); //活动详情
const ActivityJoin = () => import("@/pages/activity/activityJoin"); //活动报名

const SubscribeDetail = () => import("@/pages/subscribe/subscribeDetail"); //预约详情
const ApplyDetail = () => import("@/pages/apply/applyDetail"); //申请详情
const MaintenanceDetail = () => import("@/pages/maintenance/maintenanceDetail"); //维保详情

const OnlineSelectHouse = () => import("@/pages/house/onlineSelectHouse"); //维保详情

const CleanProjectSearchList = () => import("@/pages/house/CleanProjectSearchList");
const MixSearchList = () => import("@/pages/house/mixSearchList");
//const Home = () => import('@/pages/home');//首页
import Home from "@/pages/home";//首页
const Login = () => import("@/pages/login/login");//登录注册
const Forget = () => import("@/pages/login/forgetPassword");//登录注册

const ProjectList = () => import("@/pages/house/projectList"); //项目列表
const ProjectDetails = () => import("@/pages/house/projectDetails"); //项目详情
const HousingTypeList = () => import("@/pages/house/housingTypeList"); //户型列表
const HousingTypeDetails = () => import("@/pages/house/housingTypeDetails"); //户型详情
const SampleRoomList = () => import("@/pages/house/sampleRoomList"); //样板间列表
const SampleRoomDetails = () => import("@/pages/house/sampleRoomDetails"); //样板间详情
//const CommunityActivityHome = () => import('@/pages/activity/communityActivityHome'); //社区首页
import CommunityActivityHome from "@/pages/activity/communityActivityHome"; //社区首页
const CommunityActivityList = () => import("@/pages/activity/communityActivityList"); //社区活动列表
const CommunityActivityDetail = () => import("@/pages/activity/communityActivityDetail"); //社区活动列表
//const ServiceHome = () => import('@/pages/service/serviceHome'); //服务首页
import ServiceHome from "@/pages/service/serviceHome"; //服务首页

const MobilePhoneOpenDoor = () => import("@/pages/service/mobilePhoneOpenDoor"); //手机开门页面
const CheckInGuide = () => import("@/pages/service/checkInGuide"); //入住指南
const SelectionOfActivityList = () => import("@/pages/activity/selectionOfActivityList"); //精选活动列表页
const SelectionOfActivityDetails = () => import("@/pages/activity/selectionOfActivityDetails"); //精选活动详情
const HelloHouseKeeper = () => import("@/pages/service/helloHouseKeeper"); //管家你好
const MyCollections = () => import("@/pages/personalCenter/myCollections"); //我的收藏
const ProtectClean = () => import("@/pages/service/protectClean"); //保洁
const MoveHouse = () => import("@/pages/service/moveHouse"); //保洁



const AutoBindHouse = () => import("@/pages/bindHouse/autoBindHouse"); //绑定房源信息
const SwitchBindHouse = () => import("@/pages/bindHouse/switchBindHouse"); //选择绑定房源

//const MyPage = () => import('@/pages/personalCenter/MyPage');    //我的主页面
import MyPage from "@/pages/personalCenter/MyPage";    //我的主页面
const MyPersonalInfor = () => import("@/pages/personalCenter/MyPersonalInfor"); //我的个人信息
const SetUpPage = () => import("@/pages/personalCenter/setUpPage");  //设置
const MyNewsPage = () => import("@/pages/personalCenter/MyNewsPage"); //消息
const NickName = () => import("@/pages/personalCenter/personalMessageChildren/NickName"); //昵称
const ModifyPassword = () => import("@/pages/personalCenter/personalMessageChildren/ModifyPassword"); //修改密码
const ModifyTelephone = () => import("@/pages/personalCenter/personalMessageChildren/ModifyTelephone"); //修改手机号
const UserProtocol = () => import("@/pages/personalCenter/setChildren/userProtocol"); //用户协议
const Copyright = () => import("@/pages/personalCenter/setChildren/copyright"); //版权信息
const BusinessMessage = () => import("@/pages/personalCenter/newsChildren/businessMessage"); //业务消息
const SystemMessage = () => import("@/pages/personalCenter/newsChildren/systemMessage"); //系统消息
const SystemMessageDetail = () => import("@/pages/personalCenter/newsChildren/systemMessageDetail"); //系统消息详情
const ManageOwnedHouse = () => import("@/pages/personalCenter/ownedHouse/manageOwnedHouse"); //我的房屋
const FellowResident = () => import("@/pages/personalCenter/fellowResident/fellowResident"); //我的同住人
const Relevant = () => import("@/pages/personalCenter/relevant/relevant"); //关于我们
const FullBill = () => import("@/pages/personalCenter/detailsBill/fullBill"); //全部账单
const PayAccount = () => import("@/pages/personalCenter/detailsBill/payAccount"); //缴清账单
const ServiceTeam = () => import("@/pages/personalCenter/serviceTeam/serviceTeam"); //服务团队
const Coupon = () => import("@/pages/personalCenter/coupon/coupon"); //我的优惠券
const GetCoupon = () => import("@/pages/personalCenter/coupon/getCoupon"); //领取优惠券

/*const BillFrame = () => import('@/pages/personalCenter/detailsBill/billFrame'); //抵用券*/
const AllBillList= () => import("@/pages/personalCenter/detailsBill/allBillList"); //我的全部账单
const BillDetails= () => import("@/pages/personalCenter/detailsBill/billDetails"); //我的账单详情页
const DetailsOccupancy= () => import("@/pages/personalCenter/detailsOccupancy/detailsOccupancy"); //我的申请
const myIntegral= () => import("@/pages/personalCenter/myIntegral"); //我的积分
const myFair= () => import("@/pages/personalCenter/myFair"); //我的市集
const myCars= () => import("@/pages/personalCenter/myCars"); //我的车辆
// const sailUserAgreement= () => import('@/pages/login/sailUserAgreement'); //用户使用协议
const lifePayManage= () => import("@/pages/service/lifePayManage"); //生活缴费
const payMoneyRecord= () => import("@/pages/service/payMoneyRecord"); //缴费记录
const advanceDepositManage= () => import("@/pages/service/advanceDepositManage"); //预存电费
const payDepositBill= () => import("@/pages/personalCenter/detailsBill/payDepositBill"); //缴纳定金
const reservationProtocol= () => import("@/pages/apply/reservationProtocol"); //预定协议


Vue.use(Router);

export default new Router({
  routes: [
    {
      path: "/",
      name: "rootHome",
      component: Home,
      meta: { description: "首页", requiresAuth: false }
    },
    {
      path: "/bindHouseCheck",
      name: "bindHouseCheck",
      component: BindHouseCheck,
      meta: { description: "绑定房源", requiresAuth: false, requiresLogin: true }
    },
    {
      path: "/complainSuggest",
      name: "complainSuggest",
      component: ComplainSuggest,
      meta: { description: "投诉建议", requiresAuth: false, requiresLogin: false }
    },
    {
      path: "/onlineSelectHouse/:id",
      name: "onlineSelectHouse",
      component: OnlineSelectHouse,
      meta: { description: "在线选房", requiresAuth: false, requiresLogin: true }
    },
    {
      path: "/activityJoin",
      name: "activityJoin",
      component: ActivityJoin,
      meta: { description: "活动报名", requiresAuth: false, requiresLogin: true }
    },
    {
      path: "/activityDetail/:id/:name",
      name: "activityDetail",
      component: ActivityDetail,
      meta: { description: "报名详情", requiresAuth: false, requiresLogin: true }
    },
    {
      path: "/feedback",
      name: "feedback",
      component: Feedback,
      meta: { description: "首页", requiresAuth: false, requiresLogin: false }
    },
    {
      path: "/switchBindHouse",
      name: "switchBindHouse",
      component: SwitchBindHouse,
      meta: { description: "绑定房源", requiresAuth: false, requiresLogin: true }
    },
    {
      path: "/autoBindHouse",
      name: "autoBindHouse",
      component: AutoBindHouse,
      meta: { description: "绑定房源", requiresAuth: false, requiresLogin: true }
    },
    {
      path: "/maintenanceApply/:id/:code",
      name: "maintenanceApply",
      component: MaintenanceApply,
      meta: { description: "申请维保", requiresAuth: false, requiresLogin: true }
    },
    {
      path: "/evaluateRepair/:id",
      name: "evaluateRepair",
      component: EvaluateRepair,
      meta: { description: "维保评价", requiresAuth: false, requiresLogin: true }
    },
    {
      path: "/maintenanceDetail/:id",
      name: "maintenanceDetail",
      component: MaintenanceDetail,
      meta: { description: "维保详情", requiresAuth: false, requiresLogin: true }
    },
    {
      path: "/applyDetail/:id",
      name: "applyDetail",
      component: ApplyDetail,
      meta: { description: "申请详情", requiresAuth: false, requiresLogin: true }
    },
    {
      path: "/subscribeDetail/:id",
      name: "subscribeDetail",
      component: SubscribeDetail,
      meta: { description: "预约详情", requiresAuth: false, requiresLogin: true}
    },
    {
      path: "/activityList",
      name: "activityList",
      component: ActivityList,
      meta: { description: "我的活动", requiresAuth: false, requiresLogin: true }
    },
    {
      path: "/userMaintenanceList",
      name: "userMaintenanceList",
      component: UserMaintenanceList,
      meta: { description: "我的维保", requiresAuth: false, requiresLogin: true }
    },
    {
      path: "/subscribeList",
      name: "subscribeList",
      component: SubscribeList,
      meta: { description: "我的预约", requiresAuth: false, requiresLogin: true }
    },
    {
      path: "/userApplyList",
      name: "userApplyList",
      component: UserApplyList,
      meta: { description: "首页", requiresAuth: false, requiresLogin: true }
    },
    {
      path: "/applyCheckIn",
      name: "applyCheckIn",
      component: ApplyCheckIn,
      meta: { description: "申请入住", requiresAuth: true, requiresLogin: true }
    },
    {
      path: "/applyUpload",
      name: "applyUpload",
      component: ApplyUpload,
      meta: { description: "首页", requiresAuth: false, requiresLogin: true }
    },
    {
      path: "/realNameCheck/:flag",
      name: "realNameCheck",
      component: RealNameCheck,
      meta: { description: "实名认证", requiresAuth: false, requiresLogin: true }
    },
    {
      path: "/subscribeHouse",
      name: "subscribeHouse",
      component: SubscribeHouse,
      meta: { description: "预约房源", requiresAuth: false, requiresLogin: true }
    },
    {
      path: "/cleanProjectSearchList",
      name: "cleanProjectSearchList",
      component: CleanProjectSearchList,
      meta: { description: "首页", requiresAuth: false }
    },
    {
      path: "/mixSearchList/:keyWords",
      name: "mixSearchList",
      component: MixSearchList,
      meta: { description: "首页", requiresAuth: false }
    },
    {
      path: "/home",
      name: "home",
      component: Home,
      meta: { description: "首页", requiresAuth: false }
    },
    {
      path: "/forget",
      name: "forget",
      component: Forget,
      meta: { description: "忘记密码", requiresAuth: false }
    },
    {
      path: "/login",
      name: "login",
      component: Login,
      meta: { description: "首页", requiresAuth: false }
    },
    {
      path: "/MyPage",
      name: "MyPage",
      component: MyPage,
      meta: { description: "首页", requiresAuth: false }
    },
    {
      path: "/MyPersonalInfor",
      name: "MyPersonalInfor",
      component: MyPersonalInfor,
      meta: { description: "首页", requiresAuth: false, requiresLogin: true }
    },
    {
      path: "/setUpPage",
      name: "setUpPage",
      component: SetUpPage,
      meta: { description: "我的设置", requiresAuth: false, requiresLogin: false }
    },
    {
      path: "/MyNewsPage",
      name: "MyNewsPage",
      component: MyNewsPage,
      meta: { description: "我的消息", requiresAuth: false,requiresLogin: true }
    },
    {
      path: "/projectList",
      name: "projectList",
      component: ProjectList,
      meta: { description: "热门项目", requiresAuth: false }
    },
    {
      path: "/projectDetails/:id",
      name: "projectDetails",
      component: ProjectDetails,
      meta: { description: "项目详情", requiresAuth: false }
    },
    {
      path: "/housingTypeList",
      name: "housingTypeList",
      component: HousingTypeList,
      meta: { description: "热门户型", requiresAuth: false }
    },
    {
      path: "/housingTypeDetails/:id",
      name: "housingTypeDetails",
      component: HousingTypeDetails,
      meta: { description: "户型详情", requiresAuth: false }
    },
    {
      path: "/sampleRoomList",
      name: "sampleRoomList",
      component: SampleRoomList,
      meta: { description: "样板间列表", requiresAuth: false }
    },
    {
      path: "/sampleRoomDetails/:id",
      name: "sampleRoomDetails",
      component: SampleRoomDetails,
      meta: { description: "样板间详情", requiresAuth: false }
    },
    {
      path: "/NickName",
      name: "NickName",
      component: NickName,
      meta: { description: "昵称", requiresAuth: false }
    },
    {
      path: "/ModifyPassword",
      name: "ModifyPassword",
      component: ModifyPassword,
      meta: { description: "修改密码", requiresAuth: false }
    },
    {
      path: "/ModifyTelephone",
      name: "ModifyTelephone",
      component: ModifyTelephone,
      meta: { description: "修改手机号", requiresAuth: false }
    },
    {
      path: "/userProtocol",
      name: "userProtocol",
      component: UserProtocol,
      meta: { description: "用户协议", requiresAuth: false }
    },
    {
      path: "/copyright",
      name: "copyright",
      component: Copyright,
      meta: { description: "版权信息", requiresAuth: false }
    },
    {
      path: "/businessMessage",
      name: "businessMessage",
      component: BusinessMessage,
      meta: { description: "业务消息", requiresAuth: false }
    },
    {
      path: "/systemMessage",
      name: "systemMessage",
      component: SystemMessage,
      meta: { description: "系统消息", requiresAuth: false }
    },
    {
      path: "/systemMessageDetail/:id/:userRecordId",
      name: "systemMessageDetail",
      component: SystemMessageDetail,
      meta: { description: "系统消息详情", requiresAuth: false }
    },
    {
      path: "/manageOwnedHouse",
      name: "manageOwnedHouse",
      component: ManageOwnedHouse,
      meta: { description: "我的房屋", requiresAuth: false, requiresLogin: true }
    },
    {
      path: "/fellowResident",
      name: "fellowResident",
      component: FellowResident,
      meta: { description: "首页", requiresAuth: false, requiresLogin: true }
    },
    {
      path: "/relevant",
      name: "relevant",
      component: Relevant,
      meta: { description: "关于我们", requiresAuth: false }
    },
    {
      path: "/fullBill",
      name: "fullBill",
      component: FullBill,
      meta: { description: "我的账单", requiresAuth: false, requiresLogin: true }
    },
    {
      path: "/serviceTeam",
      name: "serviceTeam",
      component: ServiceTeam,
      meta: { description: "服务团队", requiresAuth: false }
    },
    {
      path: "/communityActivityHome",
      name: "communityActivityHome",
      component: CommunityActivityHome,
      meta: { description: "社区首页", requiresAuth: false }
    },
    {
      path: "/communityActivityList",
      name: "communityActivityList",
      component: CommunityActivityList,
      meta: { description: "社区活动列表", requiresAuth: false }
    },
    {
      path: "/communityActivityDetail/:id",
      name: "communityActivityDetail",
      component: CommunityActivityDetail,
      meta: { description: "活动详情", requiresAuth: false }
    },
    {
      path: "/serviceHome",
      name: "serviceHome",
      component: ServiceHome,
      meta: { description: "服务首页", requiresAuth: false }
    },
    {
      path: "/mobilePhoneOpenDoor",
      name: "mobilePhoneOpenDoor",
      component: MobilePhoneOpenDoor,
      meta: { description: "手机开门页面", requiresAuth: false, requiresLogin:true }
    },
    {
      path: "/checkInGuide",
      name: "checkInGuide",
      component: CheckInGuide,
      meta: { description: "入住指南", requiresAuth: false }
    },
    {
      path: "/selectionOfActivityList",
      name: "selectionOfActivityList",
      component: SelectionOfActivityList,
      meta: { description: "精选活动列表页", requiresAuth: false }
    },
    {
      path: "/helloHouseKeeper",
      name: "helloHouseKeeper",
      component: HelloHouseKeeper,
      meta: { description: "管家你好", requiresAuth: false }
    },
    {
      path: "/selectionOfActivityDetails/:id",
      name: "selectionOfActivityDetails",
      component: SelectionOfActivityDetails,
      meta: { description: "精选活动详情", requiresAuth: false }
    },
    {
      path: "/myCollections",
      name: "myCollections",
      component: MyCollections,
      meta: { description: "我的收藏", requiresAuth: false, requiresLogin: true }
    },
    {
      path: "/protectClean",
      name: "protectClean",
      component: ProtectClean,
      meta: { description: "保洁", requiresAuth: false }
    },
    {
      path: "/moveHouse",
      name: "moveHouse",
      component: MoveHouse,
      meta: { description: "搬家", requiresAuth: false }
    },
    {
      path: "/allBillList",
      name: "allBillList",
      component: AllBillList,
      meta: { description: "全部账单", requiresAuth: false, requiresLogin: true }
    },
    {
      path: "/billDetails/:id",
      name: "billDetails",
      component: BillDetails,
      meta: { description: "账单详情", requiresAuth: false, requiresLogin: true }
    },
    {
      path: "/coupon",
      name: "coupon",
      component: Coupon,
      meta: { description: "优惠券", requiresAuth: false, requiresLogin: true }
    },
    {
      path: "/getCoupon/:id",
      name: "getCoupon",
      component: GetCoupon,
      meta: { description: "优惠券详情", requiresAuth: false, requiresLogin: true }
    },   
    {
      path: "/detailsOccupancy",
      name: "detailsOccupancy",
      component: DetailsOccupancy,
      meta: { description: "申请入住", requiresAuth: false}
    },
    {
      path: "/payAccount",
      name: "payAccount",
      component: PayAccount,
      meta: { description: "账单缴清", requiresAuth: false }
    },   
    {
      path: "/myIntegral",
      name: "myIntegral",
      component: myIntegral,
      meta: { description: "我的积分", requiresAuth: false}
    },
    {
      path: "/myFair",
      name: "myFair",
      component: myFair,
      meta: { description: "我的市集", requiresAuth: false }
    },
    {
      path: "/myCars",
      name: "myCars",
      component: myCars,
      meta: { description: "我的车辆", requiresAuth: false }
    },
    {
      path: "/lifePayManage",
      name: "lifePayManage",
      component: lifePayManage,
      meta: { description: "生活缴费", requiresAuth: false,requiresLogin: true }
    },
    {
      path: "/payMoneyRecord",
      name: "payMoneyRecord",
      component: payMoneyRecord,
      meta: { description: "缴费记录", requiresAuth: false }
    },
    {
      path: "/advanceDepositManage/:type",
      name: "advanceDepositManage",
      component: advanceDepositManage,
      meta: { description: "预存费用", requiresAuth: false }
    },
    {
      path: "/payDepositBill/:type",
      name: "payDepositBill",
      component: payDepositBill,
      meta: { description: "缴纳定金", requiresAuth: false }
    },
    {
      path: "/reservationProtocol",
      name: "reservationProtocol",
      component: reservationProtocol,
      meta: { description: "预定协议", requiresAuth: false }
    },
     
    // {
    //   path: '/sailUserAgreement',
    //   name: "sailUserAgreement",
    //   component: sailUserAgreement,
    //   meta: { description: "用户使用协议", requiresAuth: false }
    // }
    
    


    
    
    // {
    //   path: '/loading',
    //   name: 'Load',
    //   component: Load,
    //meta: { description: "首页", requiresAuth: false }
    // },
    // {
    //   path: '/radio',
    //   name: 'Radio',
    //   component: Radio,
    //meta: { description: "首页", requiresAuth: false }
    // }
  ]
});
