# Qunar-Vue **Repository Path**: onethinking/qunar-vue ## Basic Information - **Project Name**: Qunar-Vue - **Description**: 本项目使用的是用vue+vue-cli脚手架,模仿的 “去哪网” 移动端端页面 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-05-25 - **Last Updated**: 2021-05-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # VueH5 ## 项目介绍 本项目使用的是用 vue+vue-cli 脚手架,模仿的 “去哪网” 移动端端页面。使用的技术有 vue , vue-cli , webpack , vuex, stylus, axios, fastclick, vue-awesome-swiper 等等。 ### 项目预览 [在线预览地址,请在移动端或调试工具模拟器中打开](https://jonesxie.github.io/demobox/VueH5/) > 请在手机端,或控制台模拟移动端进行浏览 ## 使用的技术,按照使用顺序排列 1. vue-cli 脚手架搭建,使用的是 webpack 打包工具 2. 引入 rest.css 样式,对 css 样式进行初始化。 3. 引用 border.css,更加方便使用一像素边框 4. 引用 stylus 插件,使得编写 css 样式更加简便 5. 使用 vue-awesome-swiper 插件,对首页中的轮播图使用该插件 ![vue-awesome-swiper](https://raw.githubusercontent.com/JonesXie/demobox/master/VueH5/static/img/intro_index.png "vue-awesome-swiper") 6.使用 axios 获取数据,此 Demo 中大部分数据都是通过 axios 插件获取的 json 格式文件,模拟接入后台文件。 > 1. 首页轮播图地址获取: > 2. 城市列表页获取: > 3. 详情页相关数据获取: 7.使用 better-scroll 插件,在城市列表中使用此插件,实现在移动端可以滑动,并出现一些默认触顶动画。联动了右边字母排序,滑动右侧字母表可以实时滚动相对应的字母区域块。 8.使用 vuex 对数据进行跨组件传输。比如在城市列表页中,选择某一城市后,在首页中城市也将随之改变 9.使用 vue-router 路由对整个页面和子页面进行调试。 ## 体验说明 1.当进入页面时,手机是横屏状态将会提醒: ![横屏提示](https://raw.githubusercontent.com/JonesXie/demobox/master/VueH5/static/img/horizontal_tip.png "tips") 2.主页详情 ![主页详情](https://raw.githubusercontent.com/JonesXie/demobox/master/VueH5/static/img/intro_index.png "index.png") 3.点击左上角城市页面,进入城市列表页 > 1.点击顶部输入框,将会搜索城市 > 2.上下滑动字母表,城市列表也会联动 > 3.随意点击任何一个城市,将返回首页,并更新当前城市 ![城市列表](https://raw.githubusercontent.com/JonesXie/demobox/master/VueH5/static/img/intro_city.png "list.png") 4.点击热销推荐列表,将进入详情页 > 1.点击顶部图片,将会进入图片展示页,可以左右滑动 2.上滑,将会出现顶部蓝色头部导航栏 ![热销推荐](https://raw.githubusercontent.com/JonesXie/demobox/master/VueH5/static/img/intro_detail.png "pic.png")