| | |
| | | */ |
| | | @Getter |
| | | public enum PageIndex { |
| | | defaultPage( -1, "默认页","default.html","default.html"), |
| | | index( 0, "首页","index.html","index.html"), |
| | | zhxt( 1, "智慧系统一级页","intelligent_system.html","intelligent_system.html"), |
| | | zhxt2( 2, "智慧场馆二级页","index.html","index.html"), |
| | | about( 3, "关于我们","about.html","about.html"), |
| | | operation( 4, "渠道合作","operation.html","operation.html"), |
| | | dynamics( 5, "最新动态","dynamics.html","dynamics.html"), |
| | | alot( 6, "alot物联","alot.html","alot.html"), |
| | | dynamicsDetail( 7, "最新动态详情","dynamics_details.html","dynamics/${id}.html"), |
| | | solution( 8, "解决方案","solution.html","solution.html"), |
| | | casesDetail( 9, "客户案例详情页","case_details.html","cases/${id}.html"); |
| | | defaultPage( -1, "默认页", "default.html","default.html",-1), |
| | | index( 0, "首页","index.html","index.html",0), |
| | | zhxt( 1, "智慧系统一级页","intelligent_system.html","intelligent_system.html",1), |
| | | zhxt2( 2, "智慧场馆二级页","index.html","index.html",1), |
| | | about( 3, "关于我们","about.html","about.html",5), |
| | | operation( 4, "渠道合作","aboutChannel.html","aboutChannel.html",6), |
| | | dynamics( 5, "最新动态","dynamics.html","dynamics.html",4), |
| | | alot( 6, "alot物联","alot.html","alot.html",3), |
| | | dynamicsDetail( 7, "最新动态详情","dynamics_details.html","dynamics/${id}.html",4), |
| | | solution( 8, "解决方案","solution.html","solution.html",2), |
| | | casesDetail( 9, "客户案例详情页","case_details.html","cases/${id}.html",0); |
| | | private int key; |
| | | private String name; |
| | | private String template; |
| | | private String html; |
| | | private int navIndex; |
| | | |
| | | PageIndex(int key, String name,String template,String html) { |
| | | PageIndex(int key, String name,String template,String html,int navIndex) { |
| | | this.html = html; |
| | | this.key = key; |
| | | this.name = name; |
| | | this.template = template; |
| | | this.navIndex = navIndex; |
| | | } |
| | | public static PageIndex getObj(int index) { |
| | | for (PageIndex c : PageIndex.values()) { |