# Travel **Repository Path**: tongss/Travel ## Basic Information - **Project Name**: Travel - **Description**: vue去哪儿 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-07-22 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # travel > A Vue.js project ## Build Setup ``` bash # install dependencies npm install # serve with hot reload at localhost:8080 npm run dev # build for production with minification npm run build # build for production and view the bundle analyzer report npm run build --report ``` # ```base 1.删除conpoents文件夹 新增pages文件夹,自己写的页面放到pages 2.新建common 新建store,存放vuex 新建static(可直接访问的文件夹),存放mock,在gitignore里面讲此文件添加忽略 3.初始化项目 在assets文件夹新增stayles 本项目使用stylus/iconfont 初始化reset.css 一像素边框解决文件border.css(使用方法,在需要1像素的地方添加类名,如border-bottom) 4.在入口文件main.js里引入初始化的样式 5.解决移动端点透事件npm install fastclick --save 安装依赖后在main.js添加:fastClick.attach(document.body)即可 6.开始写移动端页面,在index.js的meta添加移动端写法 --host 0.0.0.0真机调试可以用IP地址访问页面 http://localhost:8080/#/ ```