123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518 |
- const routes = [
-
-
- {
- name: "首页",
- page: "pages/index/index",
- pkg: "main",
- isTab: true,
- type: "main",
- shortcut: {
- chat: false,
- consultant: true,
- },
-
- },
- {
- name: "视频",
- page: "pages/video/index",
- pkg: "main",
- isTab: true,
- type: "other",
- },
- {
- name: "消息",
- page: "pages/chat/index",
- pkg: "main",
- isTab: true,
- type: "other",
- auth: ["page", "avatar"],
- },
- {
- name: "我是",
- page: "pages/mine/index",
- pkg: "main",
- isTab: true,
- type: "center",
- auth: ["page", "avatar"],
- },
-
-
- {
- name: "聊天",
- page: "pages/chat/chatDetail/index",
- pkg: "main",
- type: "other",
- auth: ["phone", "avatar"],
- },
-
-
-
-
- {
- name: "定位",
- page: "pages/index/location/index",
- pkg: "main",
- type: "other",
- },
- {
- name: "帮我找房",
- page: "pages/index/helpToFindHouse/index",
- pkg: "main",
- type: "building",
- auth: ["phone"],
- },
- {
- name: "地图找房",
- page: "pages/index/findHouseFromMap/index",
- pkg: "main",
- type: "building",
- },
- {
- name: "楼盘搜索",
- page: "pages/index/buildingSearch/index",
- pkg: "main",
- type: "building",
- },
- {
- name: "楼盘列表",
- page: "pages/index/buildingList/index",
- pkg: "main",
- type: "building",
- },
- {
- name: "楼盘详情",
- page: "pages/index/buildingDetail/index",
- pkg: "main",
- type: "building",
-
- shortcut: {
- chat: false,
- consultant: true,
- },
- },
- {
- name: "全景看房",
- page: "pages/index/panoramaChecking/index",
- pkg: "main",
- type: "building",
- },
- {
- name: "楼盘信息",
- page: "pages/index/buildingInfo/index",
- pkg: "main",
- type: "building",
- },
- {
- name: "围观记录",
- page: "pages/index/buildingViewsRecords/index",
- pkg: "main",
- type: "building",
- },
- {
- name: "置业顾问",
- page: "pages/index/buildingPropertyConsultant/index",
- pkg: "main",
- type: "building",
- },
- {
- name: "相册图片",
- page: "pages/index/buildingPictures/index",
- pkg: "main",
- type: "building",
- },
- {
- name: "报备规则",
- page: "pages/index/buildingRules/index",
- pkg: "main",
- type: "building",
- },
- {
- name: "一键带看",
- page: "pages/index/buildingTakeLook/index",
- pkg: "main",
- type: "building",
- auth: ["phone", "avatar"],
- },
- {
- name: "项目动态",
- page: "pages/index/buildingDynamic/index",
- pkg: "main",
- type: "building",
- },
- {
- name: "周边设施",
- page: "pages/index/buildingAround/index",
- pkg: "main",
- type: "building",
- },
- {
- name: "品牌列表",
- page: "pages/index/brandList/index",
- pkg: "main",
- type: "building",
- },
- {
- name: "品牌专题",
- page: "pages/index/brandDetail/index",
- pkg: "main",
- type: "building",
- },
- {
- name: "增值服务",
- page: "pages/index/addedValueService/index",
- pkg: "main",
- type: "building",
- auth: ["phone"],
- },
- {
- name: "活动列表",
- page: "pages/index/activityList/index",
- pkg: "main",
- type: "dymic",
-
- },
- {
- name: "活动详情",
- page: "pages/index/activityDetail/index",
- pkg: "main",
- type: "activity",
- auth: ["phone", "avatar"],
- },
- {
- name: "特价房",
- page: "pages/index/specialPriceHouse/index",
- pkg: "main",
- type: "building",
- auth: ["phone", "avatar"],
- },
- {
- name: "免责声明",
- page: "pages/index/disclaimer/index",
- pkg: "main",
- type: "building",
- },
- {
- name: "康养",
- page: "pages/index/recovered/index",
- pkg: "main",
- type: "other",
- },
- {
- name: "文旅商办",
- page: "pages/index/culturalAndBusiness/index",
- pkg: "main",
- type: "building",
- },
- {
- name: "资讯",
- page: "pages/index/newsList/index",
- pkg: "main",
- type: "news",
- },
- {
- name: "资讯详情",
- page: "pages/index/newsDetail/index",
- pkg: "main",
- type: "news",
- },
- {
- name: "购房百科",
- page: "pages/index/encyclopediasOfBuyHouse/index",
- pkg: "main",
- type: "building",
- },
- {
- name: "百科详情",
- page: "pages/index/encyDetail/index",
- pkg: "main",
- type: "building",
- },
- {
- name: "课程详情",
- page: "pages/index/courseDetail/index",
- pkg: "main",
- type: "curriculum",
- },
-
-
- {
- name: "直播活动",
- page: "pages/video/liveDetail/index",
- pkg: "main",
- type: "live",
-
- },
- {
- name: "视频详情",
- page: "pages/video/videoDetail/index",
- pkg: "main",
- type: "live",
- auth: ["phone"],
- },
-
-
- {
- name: "我的推广码",
- page: "pages/mine/myRecommendCode/index",
- pkg: "main",
- type: "mine",
-
- },
- {
- name: "房贷计算器",
- page: "pages/mine/mortgageCalc/index",
- pkg: "main",
- type: "other",
- },
- {
- name: "基本信息",
- page: "pages/mine/userInfo/index",
- pkg: "main",
- type: "center",
- auth: ["phone", "avatar"],
- },
- {
- name: "成为驻场管理",
- page: "pages/mine/toBeManager/index",
- pkg: "main",
- type: "center",
-
- },
- {
- name: "成为合伙人",
- page: "pages/mine/toBeAgent/index",
- pkg: "main",
- type: "center",
-
- },
- {
- name: "我的分享",
- page: "pages/mine/myShare/index",
- pkg: "main",
- type: "center",
- },
- {
- name: "我的课堂",
- page: "pages/mine/myCourse/index",
- pkg: "main",
- type: "center",
-
- },
- {
- name: "我的活动",
- page: "pages/mine/myActivity/index",
- pkg: "main",
- type: "center",
- },
- {
- name: "我的客户",
- page: "pages/mine/myCustomer/index",
- pkg: "main",
- type: "center",
-
- },
- {
- name: "客户详情",
- page: "pages/mine/myCustomerDetail/index",
- pkg: "main",
- type: "other",
-
- },
- {
- name: "操作人员",
- page: "pages/mine/myCustomerForOperator/index",
- pkg: "main",
- type: "other",
-
- },
- {
- name: "跟进记录",
- page: "pages/mine/myCustomerForRecord/index",
- pkg: "main",
- type: "other",
-
- },
- {
- name: "我的收藏",
- page: "pages/mine/myCollect/index",
- pkg: "main",
- type: "other",
- },
- {
- name: "合作渠道",
- page: "pages/channel/partnerChannel/index",
- pkg: "subpackages",
- type: "other",
-
- },
- {
- name: "添加客户",
- page: "pages/mine/addCustomer/index",
- pkg: "main",
- type: "other",
-
- },
- {
- name: "驻场管理",
- page: "pages/marketing/residentManager/index",
- pkg: "subpackages",
- type: "other",
-
- },
- {
- name: "确认到访",
- page: "pages/marketing/sureVisit/index",
- pkg: "subpackages",
- type: "other",
-
- },
- {
- name: "变更交易节点",
- page: "pages/marketing/changeVisit/index",
- pkg: "subpackages",
- type: "other",
-
- },
- {
- name: "盘客工具",
- page: "pages/consultant/statCustomer/index",
- pkg: "subpackages",
- type: "other",
-
- },
- {
- name: "客户信息",
- page: "pages/mine/customerDetail/index",
- pkg: "main",
- type: "other",
-
- },
- {
- name: "客户分析",
- page: "pages/consultant/customerAnalyse/index",
- pkg: "subpackages",
- type: "other",
-
- },
- {
- name: "个人主页",
- page: "pages/consultant/myHomepage/index",
- pkg: "subpackages",
- type: "card",
-
- },
- {
- name: "意见反馈",
- page: "pages/mine/feedBack/index",
- pkg: "main",
- type: "other",
- },
- {
- name: "全景图",
- page: "pages/index/webview/index",
- pkg: "main",
- type: "other",
- },
- {
- name: "全民经纪人",
- page: "pages/broker/toBeBroker/index",
- pkg: "subpackages",
- type: "other",
- },
- {
- name: "我的钱包",
- page: "pages/broker/myWallet/index",
- pkg: "subpackages",
- type: "other",
- },
- {
- name: "我的消息",
- page: "pages/broker/myMessage/index",
- pkg: "subpackages",
- type: "other",
- },
- {
- name: "排行榜",
- page: "pages/broker/rankingList/index",
- pkg: "subpackages",
- type: "other",
- },
- {
- name: "佣金结算",
- page: "pages/broker/commissionSettlement/index",
- pkg: "subpackages",
- type: "other",
- },
-
- {
- name: "邀请奖励",
- page: "pages/broker/agentRule/index",
- pkg: "subpackages",
- type: "other",
-
- },
- {
- name: "佣金规则",
- page: "pages/broker/agreement/index",
- pkg: "subpackages",
- type: "other",
-
- },
- {
- name: "我的邀请",
- page: "pages/broker/invitation/index",
- pkg: "subpackages",
- type: "other",
-
- },
- {
- name: "邀请列表",
- page: "pages/broker/invitationlist/index",
- pkg: "subpackages",
- type: "other",
-
- },
- {
- name: "邀请列表",
- page: "pages/broker/firstScreenDetail/index",
- pkg: "subpackages",
- type: "other",
- },
- ];
-
-
- function getPages() {
- const grp = routes.reduce((g, r) => {
- const { pkg, page } = r;
- const pg = g[pkg] || [];
-
- return Object.assign(g, {
- [`${pkg}`]: pg.concat(page),
- });
- }, {});
-
- const pages = grp.main;
- const subPackages = Object.keys(grp)
- .filter((x) => x !== "main")
- .reduce((pkg, key) => {
- return pkg.concat({
- root: key,
- pages: grp[key],
- });
- }, []);
-
- return {
- pages,
- subPackages,
- };
- }
-
-
- module.exports = {
- routes,
- getPages,
- };
|