{"id":20237825,"url":"https://github.com/fantasticlbp/hotels","last_synced_at":"2025-04-05T17:10:01.024Z","repository":{"id":44114228,"uuid":"76864258","full_name":"FantasticLBP/Hotels","owner":"FantasticLBP","description":"酒店预订App","archived":false,"fork":false,"pushed_at":"2023-01-05T20:26:22.000Z","size":128467,"stargazers_count":357,"open_issues_count":15,"forks_count":113,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-03-29T16:09:13.325Z","etag":null,"topics":["api-rest","app","booking","bookingsystem","fullscreen-navigation","hotel","hotel-booking","hotel-management","ios-animation","ios-app","ios-demo","ios-demos","ios-development","ios-source","ios-tutorial","logger","map","navigation"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FantasticLBP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-19T13:24:32.000Z","updated_at":"2025-02-24T15:58:06.000Z","dependencies_parsed_at":"2023-02-04T15:03:20.870Z","dependency_job_id":null,"html_url":"https://github.com/FantasticLBP/Hotels","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FantasticLBP%2FHotels","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FantasticLBP%2FHotels/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FantasticLBP%2FHotels/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FantasticLBP%2FHotels/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FantasticLBP","download_url":"https://codeload.github.com/FantasticLBP/Hotels/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247369953,"owners_count":20927928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-rest","app","booking","bookingsystem","fullscreen-navigation","hotel","hotel-booking","hotel-management","ios-animation","ios-app","ios-demo","ios-demos","ios-development","ios-source","ios-tutorial","logger","map","navigation"],"created_at":"2024-11-14T08:28:57.637Z","updated_at":"2025-04-05T17:09:56.008Z","avatar_url":"https://github.com/FantasticLBP.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hotels\n\n住哪儿App\n\n\n\n![AppLogo](https://github.com/FantasticLBP/Hotels/blob/master/住哪儿/Assets.xcassets/AppIcon.appiconset/11.png?raw=true \"这是App的Logo\")\n\n[![platform](https://img.shields.io/badge/platform-iOS-red.svg)]()\n[![weibo](https://img.shields.io/badge/weibo-%40杭城小刘-green.svg)](http://weibo.com/3194053975/profile?rightmod=1\u0026wvr=6\u0026mod=personinfo\u0026is_hot=1)\n[![Updated](https://img.shields.io/badge/Updated-2018--11--06-green.svg)]()\n\n\n\n**实现了类似艺龙App的预定酒店功能，包括酒店搜索、特色酒店推荐、特惠酒店推荐等等功能，可以预定酒店、查看订单，唯独不能支付（支付功能必须由公司的名义注册，个人练手注册不了）。**\n\u003cul\u003e包括iOS开发的常见功能：\n\u003cli\u003e自定义NavigationController实现全屏右滑返回上一控制器的LBPNavigationController\u003c/li\u003e\n\u003cli\u003e自定义UIScrollView实现全屏滑动显示不同控制器的LBPScrollSegmentView\u003c/li\u003e\n\u003cli\u003e封装网络访问类AFNetPackage，具备检查网络状态、JSON方式获取数据、xml方式获取数据、post、get、delete、文件下载、文件上传等功能\u003c/li\u003e\n\u003cli\u003eUITableview上拉加载、下面刷新功能;UITableView潜逃UICollecionView展现界面，事件、数据等通过Delegate处理；cell的重用内存优化\u003c/li\u003e\n\u003cli\u003eMasonry自动布局库的使用\u003c/li\u003e\n\u003cli\u003e封装好的启动欢迎页\u003c/li\u003e\n\u003cli\u003e个人信息持久化保存\u003c/li\u003e\n\u003cli\u003e复杂界面的布局纯代码实现\u003c/li\u003e\n\u003cli\u003e加速度传感器的使用\u003c/li\u003e\n\u003cli\u003e下拉拖拽放大特效、拖动吸附特效\u003c/li\u003e\n\u003cli\u003e自定义URL Schemes便于其他App或者网页唤起；方便App或者网页传递参数\u003c/li\u003e\n\u003cli\u003e地图及其导航功能\u003c/li\u003e\n\u003cli\u003e工程结构良好，便于拓展\u003c/li\u003e\n\u003cli\u003e地图模块（高德、百度、系统自带地图检测及其导航）用 Swift 语言编写。使用很方便\u003c/li\u003e\n\u003cli\u003e界面采用代码实现，部分界面采用xib实现。整个代码可读性比较好、代码规范、有注释说明，配合服务端是自己用php写的，Api也是php实现的。\u003c/li\u003e\n\u003cli\u003e主要功能：根据不同主题查找酒店、摇一摇随机推荐酒店、根据城市定位推荐酒店、根据用户输入多条件模糊搜索查找酒店、酒店位置地图显示、路径规划及其导航（百度地图、高德地图、系统地图）、订单查看等、酒店分享等功能\u003c/li\u003e\n\u003c/ul\u003e\n\n\n\u003ch3\u003e效果截图\u003c/h3\u003e\n\n![首页](https://github.com/FantasticLBP/Hotels/raw/master/images/IMG_1875.PNG \"首页\")\n![发现](https://github.com/FantasticLBP/Hotels/raw/master/images/IMG_1876.PNG \"发现\")\n![酒店详情](https://github.com/FantasticLBP/Hotels/raw/master/images/IMG_1877.PNG \"酒店详情\")\n![摇一摇推荐酒店](https://github.com/FantasticLBP/Hotels/raw/master/images/IMG_1878.PNG \"摇一摇酒店推荐\")\n![入住提醒](https://github.com/FantasticLBP/Hotels/raw/master/images/IMG_1879.PNG \"入住提醒\")\n![酒店导航](https://github.com/FantasticLBP/Hotels/raw/master/images/IMG_1880.PNG \"酒店导航\")\n\n![App效果图](https://raw.githubusercontent.com/FantasticLBP/Hotels/master/1.gif \"这是App的效果图\")\n\n\u003cp\u003eToDo：后期可能会实现MVVM框架，将RAC技术应用到工程中去。一些容易变的页面采用Html5实现，比如\"发现模块\"的特色酒店。\u003c/p\u003e\n\n\u003ch3\u003e福利\u003c/h3\u003e\n\n\u003cp\u003e如果想了解服务端开发以及App与服务端交互（也就是接口开发）可以看看这个App的后台代码。项目地址：(https://github.com/FantasticLBP/Hotels_Server) \u003cp\u003e\n\n\u003ch3\u003e住哪儿App的后台管理功能，包括主题酒店、特色酒店发布、注册用户的统计查看、订单的统计查看、酒店的统计查看。Controller目录下的Api下就是给App开发的api。想写api的童鞋们可以看看。\u003c/h3\u003e\n\u003cul\u003e包括php系统开发的常见功能：\n\u003cli\u003e复杂表单的提交，包括多图片上传\u003c/li\u003e\n\u003cli\u003e基于Bootstrap框架的界面布局\u003c/li\u003e\n\u003cli\u003e封装PDO数据库操作类，实现增删改查等等常见功能，调用简单\u003c/li\u003e\n\u003cli\u003e随机酒店推荐策略\u003c/li\u003e\n\u003cli\u003e多条件模糊搜索酒店算法\u003c/li\u003e\n\u003cli\u003ejquery表格插件Datatables的使用大大丰富了数据的展现方式，更具交互性。具有自动分页、模糊搜索等功能\u003c/li\u003e\n\u003cli\u003e封装了Response类，可以传递4个参数 show($code, $message = '', $data = array(), $type = self::JSON)来展示json或者array或者xml。\u003c/li\u003e\n\u003cli\u003e工程结构一幕了然，便于拓展\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch3\u003e效果截图\u003c/h3\u003e\n\n![系统截图](https://github.com/FantasticLBP/Hotels_Server/blob/master/Systemt_Screen1.png?raw=true \"这是系统截图\")\n\n\n各位同学觉得有帮助的欢迎给个star，我会继续优化代码。\n如果有不懂的地方可以加入QQ交流群讨论：\u003ca target=\"_blank\" href=\"//shang.qq.com/wpa/qunwpa?idkey=c9dc4ab0b2062e0004b3b2ed556da1ce898631742e15780297feb3465ad08eda\"\u003e**515066271**\u003c/a\u003e。这个QQ群讨论技术范围包括：iOS、H5混合开发、前端开发、PHP开发，欢迎大家讨论技术。\n\n## 如有需要商业合作请联系本人（QQ/微信：704568245）\n\n\n## 交流\n\n如果你也是大前端路上的一名修行者,可以加入微信群一起交流.\n\n![微信群](https://raw.githubusercontent.com/FantasticLBP/knowledge-kit/master/assets/wechat_group.jpg)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffantasticlbp%2Fhotels","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffantasticlbp%2Fhotels","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffantasticlbp%2Fhotels/lists"}