-
4 |
-
5 | 入住日期
6 |
7 | {{info.checkInDate}} 8 | 今天 9 | 10 |
11 | -
12 | 离店日期
13 |
14 | {{info.checkOutDate}} 15 | 16 |
17 |
├── static ├── .gitkeep ├── css │ ├── fonts │ │ └── icons.ttf │ └── reset.css └── js │ └── adjustPage.js ├── README.md ├── .eslintignore ├── config ├── prod.env.js ├── dev.env.js └── index.js ├── img └── calendar.png ├── src ├── assets │ └── logo.png ├── router │ └── index.js ├── main.js ├── App.vue ├── components │ └── page │ │ ├── index.vue │ │ └── calendarpage.vue └── common │ └── vhomed.js ├── .editorconfig ├── .gitignore ├── .postcssrc.js ├── index.html ├── .babelrc ├── .eslintrc.js └── package.json /static/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # calendar 2 | 基于vue的移动端日历组件(酒店预订场景) 3 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | build/*.js 2 | config/*.js 3 | src/common/vhomed.js 4 | -------------------------------------------------------------------------------- /config/prod.env.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | NODE_ENV: '"production"' 3 | } 4 | -------------------------------------------------------------------------------- /img/calendar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tobyjwt/calendar/HEAD/img/calendar.png -------------------------------------------------------------------------------- /src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tobyjwt/calendar/HEAD/src/assets/logo.png -------------------------------------------------------------------------------- /static/css/fonts/icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tobyjwt/calendar/HEAD/static/css/fonts/icons.ttf -------------------------------------------------------------------------------- /config/dev.env.js: -------------------------------------------------------------------------------- 1 | var merge = require('webpack-merge') 2 | var prodEnv = require('./prod.env') 3 | 4 | module.exports = merge(prodEnv, { 5 | NODE_ENV: '"development"' 6 | }) 7 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 4 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | dist/ 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | 8 | # Editor directories and files 9 | .idea 10 | *.suo 11 | *.ntvs* 12 | *.njsproj 13 | *.sln 14 | -------------------------------------------------------------------------------- /.postcssrc.js: -------------------------------------------------------------------------------- 1 | // https://github.com/michael-ciniawsky/postcss-load-config 2 | 3 | module.exports = { 4 | "plugins": { 5 | // to edit target browsers: use "browserslist" field in package.json 6 | "autoprefixer": {} 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/router/index.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue'; 2 | import Router from 'vue-router'; 3 | import calendarpage from '../components/page/calendarpage.vue'; 4 | import index from '../components/page/index.vue'; 5 | Vue.use(Router); 6 | 7 | export default new Router({ 8 | routes: [ 9 | { 10 | path: '/', 11 | component: index 12 | }, 13 | { 14 | path: '/calendarpage', 15 | component: calendarpage 16 | } 17 | ] 18 | }); 19 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |26 | {{day.showDate}}
27 |入住
28 |离店
29 |休
30 |