├── .gitattributes ├── .gitignore ├── README.md ├── babel.config.js ├── dist ├── css │ ├── app.067151cb.css │ └── chunk-vendors.1d96ec67.css ├── favicon.ico ├── fonts │ ├── fontawesome-webfont.674f50d2.eot │ ├── fontawesome-webfont.af7ae505.woff2 │ ├── fontawesome-webfont.b06871f2.ttf │ └── fontawesome-webfont.fee66e71.woff ├── img │ ├── fontawesome-webfont.912ec66d.svg │ └── right.560c4f47.png ├── index.html └── js │ ├── app.5a8487fd.js │ ├── app.5a8487fd.js.map │ ├── chunk-vendors.08e1b7b1.js │ └── chunk-vendors.08e1b7b1.js.map ├── docs └── images │ └── public_1.png ├── package-lock.json ├── package.json ├── postcss.config.js ├── public ├── favicon.ico └── index.html ├── src ├── App.vue ├── assets │ ├── css │ │ ├── font.css │ │ └── style.css │ └── image │ │ ├── flash.jpg │ │ ├── home-logo.png │ │ ├── icon-slides.png │ │ ├── logo-footer.png │ │ ├── mi-home.png │ │ ├── mi-logo.png │ │ ├── right.png │ │ └── slogan2016.png ├── bus.js ├── components │ ├── FlashSale.vue │ ├── GoodsSale.vue │ ├── MenuBanner.vue │ ├── SiteFooter.vue │ ├── SiteInfo.vue │ ├── SubChannel.vue │ ├── ToolBar.vue │ ├── TopBar.vue │ ├── TopHeader.vue │ └── VideoBox.vue ├── main.js ├── parts │ ├── Banner.vue │ ├── GoodsBox.vue │ ├── LocationWindow.vue │ ├── Poster.vue │ ├── Slide.vue │ ├── VideoWindow.vue │ └── WeChatWindow.vue ├── router.js └── views │ └── mi.vue └── vue.config.js /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | .DS_Store 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 小米商城首页-使用Vue仿写 2 | ![avatar](docs/images/public_1.png) 3 | > ### 简介 4 | 5 | * 基于Vue的小米商城首页仿写,这是我学习Vue路上的一个大型项目(DEMO),原版代码发布于``MyProject-Contents``仓库,现在迁移到这里。 6 | 7 | * 项目没有用到API,图片等静态资源都是直接引用官网的,如果图片原地址更改,那么部分图片可能存在**无法加载**的情况。所有的动画效果都是纯手写的。 8 | 9 | * 项目预览地址:[请点这里](https://starlightunion.github.io/Xiaomi-Vue/dist/index.html#/) 10 | 11 | > ### 学习到的内容 12 | 13 | * 1.Vue的一次深入了解,对整个框架有了完整的印象;学习了Vue的**组件化思想**,项目组件化复用;熟悉了项目开发时的配置和结构等。 14 | 15 | * 2.Vue的**通信**方式。 16 | > * ``props``父->子组件通信 17 | > 18 | > ``` 19 | > // 父组件 20 | >
21 | > 22 | > 23 | > import 'Child' from '../components/Child' 24 | > export default { 25 | > name: 'father', 26 | > data () { 27 | > a: [1, 2, 3] 28 | > }, 29 | > methods: { 30 | > clickEvt: function () { 31 | > this.$refs.children.stop();// 父组件调用子组件方法 32 | > } 33 | > }, 34 | > components: { 35 | > 'Child': Child 36 | > } 37 | > } 38 | > 39 | > // 子组件 40 | > ... 41 | > 42 | > export default { 43 | > name: 'child', 44 | > data () {}, 45 | > methods: { 46 | > stop: function () {console.log('stop');} 47 | > }, 48 | > props: [a] 49 | > } 50 | > ``` 51 | > 52 | > * ``$emit``子->父组件通信 53 | > 54 | > ``` 55 | > // 父组件 56 | >
57 | > 58 | > import 'Child' from '../components/Child' 59 | > export default { 60 | > name: 'father', 61 | > data () { 62 | > a: [1, 2, 3] 63 | > }, 64 | > methods: { 65 | > listenEvt: function (mess) { 66 | > console.log(mess); 67 | > } 68 | > } 69 | > components: { 70 | > 'Child': Child 71 | > } 72 | > } 73 | > 74 | > // 子组件 75 | >
76 | > 77 | > export default { 78 | > name: 'child', 79 | > data () {}, 80 | > methods: { 81 | > clickEvt: function () { 82 | > this.$emit('listen', 'this is a message from child'); 83 | > } 84 | > } 85 | > } 86 | > ``` 87 | > 88 | > * 中央事件总线通信 89 | > 90 | > ``` 91 | > // main.js 92 | > new Vue({ 93 | > router, 94 | > render: h => h(App), 95 | > data: { 96 | > bus: new Vue(),// 暴露 97 | > ... 98 | > } 99 | >}).$mount('#app') 100 | > 101 | > // 发送方 102 | > bus.$emit('transInfo', [1, 2, 3]);// 需定义好名称 103 | > 104 | > // 接收方 105 | > bus.$on('transInfo', (data) => { 106 | > console.log(datas) 107 | > }) 108 | > ``` 109 | 110 | * 3.````和````的使用以及动画的设计。 111 | 112 | * 4.Vue操作DOM。 113 | 114 | * 5.钩子函数的使用。 115 | 116 | * 6.等... 117 | 118 | > ### 安装与使用 119 | 120 | ``` 121 | > npm install #安装依赖 122 | > npm run serve #开发环境编译 123 | > npm run build #生产环境编译 124 | ``` 125 | 126 | 127 | 128 | -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/app' 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /dist/css/chunk-vendors.1d96ec67.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome 3 | * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) 4 | */@font-face{font-family:FontAwesome;src:url(../fonts/fontawesome-webfont.674f50d2.eot);src:url(../fonts/fontawesome-webfont.674f50d2.eot?#iefix&v=4.7.0) format("embedded-opentype"),url(../fonts/fontawesome-webfont.af7ae505.woff2) format("woff2"),url(../fonts/fontawesome-webfont.fee66e71.woff) format("woff"),url(../fonts/fontawesome-webfont.b06871f2.ttf) format("truetype"),url(../img/fontawesome-webfont.912ec66d.svg#fontawesomeregular) format("svg");font-weight:400;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:.08em solid #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scaleY(-1);transform:scaleY(-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{-webkit-filter:none;filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\F000"}.fa-music:before{content:"\F001"}.fa-search:before{content:"\F002"}.fa-envelope-o:before{content:"\F003"}.fa-heart:before{content:"\F004"}.fa-star:before{content:"\F005"}.fa-star-o:before{content:"\F006"}.fa-user:before{content:"\F007"}.fa-film:before{content:"\F008"}.fa-th-large:before{content:"\F009"}.fa-th:before{content:"\F00A"}.fa-th-list:before{content:"\F00B"}.fa-check:before{content:"\F00C"}.fa-close:before,.fa-remove:before,.fa-times:before{content:"\F00D"}.fa-search-plus:before{content:"\F00E"}.fa-search-minus:before{content:"\F010"}.fa-power-off:before{content:"\F011"}.fa-signal:before{content:"\F012"}.fa-cog:before,.fa-gear:before{content:"\F013"}.fa-trash-o:before{content:"\F014"}.fa-home:before{content:"\F015"}.fa-file-o:before{content:"\F016"}.fa-clock-o:before{content:"\F017"}.fa-road:before{content:"\F018"}.fa-download:before{content:"\F019"}.fa-arrow-circle-o-down:before{content:"\F01A"}.fa-arrow-circle-o-up:before{content:"\F01B"}.fa-inbox:before{content:"\F01C"}.fa-play-circle-o:before{content:"\F01D"}.fa-repeat:before,.fa-rotate-right:before{content:"\F01E"}.fa-refresh:before{content:"\F021"}.fa-list-alt:before{content:"\F022"}.fa-lock:before{content:"\F023"}.fa-flag:before{content:"\F024"}.fa-headphones:before{content:"\F025"}.fa-volume-off:before{content:"\F026"}.fa-volume-down:before{content:"\F027"}.fa-volume-up:before{content:"\F028"}.fa-qrcode:before{content:"\F029"}.fa-barcode:before{content:"\F02A"}.fa-tag:before{content:"\F02B"}.fa-tags:before{content:"\F02C"}.fa-book:before{content:"\F02D"}.fa-bookmark:before{content:"\F02E"}.fa-print:before{content:"\F02F"}.fa-camera:before{content:"\F030"}.fa-font:before{content:"\F031"}.fa-bold:before{content:"\F032"}.fa-italic:before{content:"\F033"}.fa-text-height:before{content:"\F034"}.fa-text-width:before{content:"\F035"}.fa-align-left:before{content:"\F036"}.fa-align-center:before{content:"\F037"}.fa-align-right:before{content:"\F038"}.fa-align-justify:before{content:"\F039"}.fa-list:before{content:"\F03A"}.fa-dedent:before,.fa-outdent:before{content:"\F03B"}.fa-indent:before{content:"\F03C"}.fa-video-camera:before{content:"\F03D"}.fa-image:before,.fa-photo:before,.fa-picture-o:before{content:"\F03E"}.fa-pencil:before{content:"\F040"}.fa-map-marker:before{content:"\F041"}.fa-adjust:before{content:"\F042"}.fa-tint:before{content:"\F043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\F044"}.fa-share-square-o:before{content:"\F045"}.fa-check-square-o:before{content:"\F046"}.fa-arrows:before{content:"\F047"}.fa-step-backward:before{content:"\F048"}.fa-fast-backward:before{content:"\F049"}.fa-backward:before{content:"\F04A"}.fa-play:before{content:"\F04B"}.fa-pause:before{content:"\F04C"}.fa-stop:before{content:"\F04D"}.fa-forward:before{content:"\F04E"}.fa-fast-forward:before{content:"\F050"}.fa-step-forward:before{content:"\F051"}.fa-eject:before{content:"\F052"}.fa-chevron-left:before{content:"\F053"}.fa-chevron-right:before{content:"\F054"}.fa-plus-circle:before{content:"\F055"}.fa-minus-circle:before{content:"\F056"}.fa-times-circle:before{content:"\F057"}.fa-check-circle:before{content:"\F058"}.fa-question-circle:before{content:"\F059"}.fa-info-circle:before{content:"\F05A"}.fa-crosshairs:before{content:"\F05B"}.fa-times-circle-o:before{content:"\F05C"}.fa-check-circle-o:before{content:"\F05D"}.fa-ban:before{content:"\F05E"}.fa-arrow-left:before{content:"\F060"}.fa-arrow-right:before{content:"\F061"}.fa-arrow-up:before{content:"\F062"}.fa-arrow-down:before{content:"\F063"}.fa-mail-forward:before,.fa-share:before{content:"\F064"}.fa-expand:before{content:"\F065"}.fa-compress:before{content:"\F066"}.fa-plus:before{content:"\F067"}.fa-minus:before{content:"\F068"}.fa-asterisk:before{content:"\F069"}.fa-exclamation-circle:before{content:"\F06A"}.fa-gift:before{content:"\F06B"}.fa-leaf:before{content:"\F06C"}.fa-fire:before{content:"\F06D"}.fa-eye:before{content:"\F06E"}.fa-eye-slash:before{content:"\F070"}.fa-exclamation-triangle:before,.fa-warning:before{content:"\F071"}.fa-plane:before{content:"\F072"}.fa-calendar:before{content:"\F073"}.fa-random:before{content:"\F074"}.fa-comment:before{content:"\F075"}.fa-magnet:before{content:"\F076"}.fa-chevron-up:before{content:"\F077"}.fa-chevron-down:before{content:"\F078"}.fa-retweet:before{content:"\F079"}.fa-shopping-cart:before{content:"\F07A"}.fa-folder:before{content:"\F07B"}.fa-folder-open:before{content:"\F07C"}.fa-arrows-v:before{content:"\F07D"}.fa-arrows-h:before{content:"\F07E"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\F080"}.fa-twitter-square:before{content:"\F081"}.fa-facebook-square:before{content:"\F082"}.fa-camera-retro:before{content:"\F083"}.fa-key:before{content:"\F084"}.fa-cogs:before,.fa-gears:before{content:"\F085"}.fa-comments:before{content:"\F086"}.fa-thumbs-o-up:before{content:"\F087"}.fa-thumbs-o-down:before{content:"\F088"}.fa-star-half:before{content:"\F089"}.fa-heart-o:before{content:"\F08A"}.fa-sign-out:before{content:"\F08B"}.fa-linkedin-square:before{content:"\F08C"}.fa-thumb-tack:before{content:"\F08D"}.fa-external-link:before{content:"\F08E"}.fa-sign-in:before{content:"\F090"}.fa-trophy:before{content:"\F091"}.fa-github-square:before{content:"\F092"}.fa-upload:before{content:"\F093"}.fa-lemon-o:before{content:"\F094"}.fa-phone:before{content:"\F095"}.fa-square-o:before{content:"\F096"}.fa-bookmark-o:before{content:"\F097"}.fa-phone-square:before{content:"\F098"}.fa-twitter:before{content:"\F099"}.fa-facebook-f:before,.fa-facebook:before{content:"\F09A"}.fa-github:before{content:"\F09B"}.fa-unlock:before{content:"\F09C"}.fa-credit-card:before{content:"\F09D"}.fa-feed:before,.fa-rss:before{content:"\F09E"}.fa-hdd-o:before{content:"\F0A0"}.fa-bullhorn:before{content:"\F0A1"}.fa-bell:before{content:"\F0F3"}.fa-certificate:before{content:"\F0A3"}.fa-hand-o-right:before{content:"\F0A4"}.fa-hand-o-left:before{content:"\F0A5"}.fa-hand-o-up:before{content:"\F0A6"}.fa-hand-o-down:before{content:"\F0A7"}.fa-arrow-circle-left:before{content:"\F0A8"}.fa-arrow-circle-right:before{content:"\F0A9"}.fa-arrow-circle-up:before{content:"\F0AA"}.fa-arrow-circle-down:before{content:"\F0AB"}.fa-globe:before{content:"\F0AC"}.fa-wrench:before{content:"\F0AD"}.fa-tasks:before{content:"\F0AE"}.fa-filter:before{content:"\F0B0"}.fa-briefcase:before{content:"\F0B1"}.fa-arrows-alt:before{content:"\F0B2"}.fa-group:before,.fa-users:before{content:"\F0C0"}.fa-chain:before,.fa-link:before{content:"\F0C1"}.fa-cloud:before{content:"\F0C2"}.fa-flask:before{content:"\F0C3"}.fa-cut:before,.fa-scissors:before{content:"\F0C4"}.fa-copy:before,.fa-files-o:before{content:"\F0C5"}.fa-paperclip:before{content:"\F0C6"}.fa-floppy-o:before,.fa-save:before{content:"\F0C7"}.fa-square:before{content:"\F0C8"}.fa-bars:before,.fa-navicon:before,.fa-reorder:before{content:"\F0C9"}.fa-list-ul:before{content:"\F0CA"}.fa-list-ol:before{content:"\F0CB"}.fa-strikethrough:before{content:"\F0CC"}.fa-underline:before{content:"\F0CD"}.fa-table:before{content:"\F0CE"}.fa-magic:before{content:"\F0D0"}.fa-truck:before{content:"\F0D1"}.fa-pinterest:before{content:"\F0D2"}.fa-pinterest-square:before{content:"\F0D3"}.fa-google-plus-square:before{content:"\F0D4"}.fa-google-plus:before{content:"\F0D5"}.fa-money:before{content:"\F0D6"}.fa-caret-down:before{content:"\F0D7"}.fa-caret-up:before{content:"\F0D8"}.fa-caret-left:before{content:"\F0D9"}.fa-caret-right:before{content:"\F0DA"}.fa-columns:before{content:"\F0DB"}.fa-sort:before,.fa-unsorted:before{content:"\F0DC"}.fa-sort-desc:before,.fa-sort-down:before{content:"\F0DD"}.fa-sort-asc:before,.fa-sort-up:before{content:"\F0DE"}.fa-envelope:before{content:"\F0E0"}.fa-linkedin:before{content:"\F0E1"}.fa-rotate-left:before,.fa-undo:before{content:"\F0E2"}.fa-gavel:before,.fa-legal:before{content:"\F0E3"}.fa-dashboard:before,.fa-tachometer:before{content:"\F0E4"}.fa-comment-o:before{content:"\F0E5"}.fa-comments-o:before{content:"\F0E6"}.fa-bolt:before,.fa-flash:before{content:"\F0E7"}.fa-sitemap:before{content:"\F0E8"}.fa-umbrella:before{content:"\F0E9"}.fa-clipboard:before,.fa-paste:before{content:"\F0EA"}.fa-lightbulb-o:before{content:"\F0EB"}.fa-exchange:before{content:"\F0EC"}.fa-cloud-download:before{content:"\F0ED"}.fa-cloud-upload:before{content:"\F0EE"}.fa-user-md:before{content:"\F0F0"}.fa-stethoscope:before{content:"\F0F1"}.fa-suitcase:before{content:"\F0F2"}.fa-bell-o:before{content:"\F0A2"}.fa-coffee:before{content:"\F0F4"}.fa-cutlery:before{content:"\F0F5"}.fa-file-text-o:before{content:"\F0F6"}.fa-building-o:before{content:"\F0F7"}.fa-hospital-o:before{content:"\F0F8"}.fa-ambulance:before{content:"\F0F9"}.fa-medkit:before{content:"\F0FA"}.fa-fighter-jet:before{content:"\F0FB"}.fa-beer:before{content:"\F0FC"}.fa-h-square:before{content:"\F0FD"}.fa-plus-square:before{content:"\F0FE"}.fa-angle-double-left:before{content:"\F100"}.fa-angle-double-right:before{content:"\F101"}.fa-angle-double-up:before{content:"\F102"}.fa-angle-double-down:before{content:"\F103"}.fa-angle-left:before{content:"\F104"}.fa-angle-right:before{content:"\F105"}.fa-angle-up:before{content:"\F106"}.fa-angle-down:before{content:"\F107"}.fa-desktop:before{content:"\F108"}.fa-laptop:before{content:"\F109"}.fa-tablet:before{content:"\F10A"}.fa-mobile-phone:before,.fa-mobile:before{content:"\F10B"}.fa-circle-o:before{content:"\F10C"}.fa-quote-left:before{content:"\F10D"}.fa-quote-right:before{content:"\F10E"}.fa-spinner:before{content:"\F110"}.fa-circle:before{content:"\F111"}.fa-mail-reply:before,.fa-reply:before{content:"\F112"}.fa-github-alt:before{content:"\F113"}.fa-folder-o:before{content:"\F114"}.fa-folder-open-o:before{content:"\F115"}.fa-smile-o:before{content:"\F118"}.fa-frown-o:before{content:"\F119"}.fa-meh-o:before{content:"\F11A"}.fa-gamepad:before{content:"\F11B"}.fa-keyboard-o:before{content:"\F11C"}.fa-flag-o:before{content:"\F11D"}.fa-flag-checkered:before{content:"\F11E"}.fa-terminal:before{content:"\F120"}.fa-code:before{content:"\F121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\F122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\F123"}.fa-location-arrow:before{content:"\F124"}.fa-crop:before{content:"\F125"}.fa-code-fork:before{content:"\F126"}.fa-chain-broken:before,.fa-unlink:before{content:"\F127"}.fa-question:before{content:"\F128"}.fa-info:before{content:"\F129"}.fa-exclamation:before{content:"\F12A"}.fa-superscript:before{content:"\F12B"}.fa-subscript:before{content:"\F12C"}.fa-eraser:before{content:"\F12D"}.fa-puzzle-piece:before{content:"\F12E"}.fa-microphone:before{content:"\F130"}.fa-microphone-slash:before{content:"\F131"}.fa-shield:before{content:"\F132"}.fa-calendar-o:before{content:"\F133"}.fa-fire-extinguisher:before{content:"\F134"}.fa-rocket:before{content:"\F135"}.fa-maxcdn:before{content:"\F136"}.fa-chevron-circle-left:before{content:"\F137"}.fa-chevron-circle-right:before{content:"\F138"}.fa-chevron-circle-up:before{content:"\F139"}.fa-chevron-circle-down:before{content:"\F13A"}.fa-html5:before{content:"\F13B"}.fa-css3:before{content:"\F13C"}.fa-anchor:before{content:"\F13D"}.fa-unlock-alt:before{content:"\F13E"}.fa-bullseye:before{content:"\F140"}.fa-ellipsis-h:before{content:"\F141"}.fa-ellipsis-v:before{content:"\F142"}.fa-rss-square:before{content:"\F143"}.fa-play-circle:before{content:"\F144"}.fa-ticket:before{content:"\F145"}.fa-minus-square:before{content:"\F146"}.fa-minus-square-o:before{content:"\F147"}.fa-level-up:before{content:"\F148"}.fa-level-down:before{content:"\F149"}.fa-check-square:before{content:"\F14A"}.fa-pencil-square:before{content:"\F14B"}.fa-external-link-square:before{content:"\F14C"}.fa-share-square:before{content:"\F14D"}.fa-compass:before{content:"\F14E"}.fa-caret-square-o-down:before,.fa-toggle-down:before{content:"\F150"}.fa-caret-square-o-up:before,.fa-toggle-up:before{content:"\F151"}.fa-caret-square-o-right:before,.fa-toggle-right:before{content:"\F152"}.fa-eur:before,.fa-euro:before{content:"\F153"}.fa-gbp:before{content:"\F154"}.fa-dollar:before,.fa-usd:before{content:"\F155"}.fa-inr:before,.fa-rupee:before{content:"\F156"}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen:before{content:"\F157"}.fa-rouble:before,.fa-rub:before,.fa-ruble:before{content:"\F158"}.fa-krw:before,.fa-won:before{content:"\F159"}.fa-bitcoin:before,.fa-btc:before{content:"\F15A"}.fa-file:before{content:"\F15B"}.fa-file-text:before{content:"\F15C"}.fa-sort-alpha-asc:before{content:"\F15D"}.fa-sort-alpha-desc:before{content:"\F15E"}.fa-sort-amount-asc:before{content:"\F160"}.fa-sort-amount-desc:before{content:"\F161"}.fa-sort-numeric-asc:before{content:"\F162"}.fa-sort-numeric-desc:before{content:"\F163"}.fa-thumbs-up:before{content:"\F164"}.fa-thumbs-down:before{content:"\F165"}.fa-youtube-square:before{content:"\F166"}.fa-youtube:before{content:"\F167"}.fa-xing:before{content:"\F168"}.fa-xing-square:before{content:"\F169"}.fa-youtube-play:before{content:"\F16A"}.fa-dropbox:before{content:"\F16B"}.fa-stack-overflow:before{content:"\F16C"}.fa-instagram:before{content:"\F16D"}.fa-flickr:before{content:"\F16E"}.fa-adn:before{content:"\F170"}.fa-bitbucket:before{content:"\F171"}.fa-bitbucket-square:before{content:"\F172"}.fa-tumblr:before{content:"\F173"}.fa-tumblr-square:before{content:"\F174"}.fa-long-arrow-down:before{content:"\F175"}.fa-long-arrow-up:before{content:"\F176"}.fa-long-arrow-left:before{content:"\F177"}.fa-long-arrow-right:before{content:"\F178"}.fa-apple:before{content:"\F179"}.fa-windows:before{content:"\F17A"}.fa-android:before{content:"\F17B"}.fa-linux:before{content:"\F17C"}.fa-dribbble:before{content:"\F17D"}.fa-skype:before{content:"\F17E"}.fa-foursquare:before{content:"\F180"}.fa-trello:before{content:"\F181"}.fa-female:before{content:"\F182"}.fa-male:before{content:"\F183"}.fa-gittip:before,.fa-gratipay:before{content:"\F184"}.fa-sun-o:before{content:"\F185"}.fa-moon-o:before{content:"\F186"}.fa-archive:before{content:"\F187"}.fa-bug:before{content:"\F188"}.fa-vk:before{content:"\F189"}.fa-weibo:before{content:"\F18A"}.fa-renren:before{content:"\F18B"}.fa-pagelines:before{content:"\F18C"}.fa-stack-exchange:before{content:"\F18D"}.fa-arrow-circle-o-right:before{content:"\F18E"}.fa-arrow-circle-o-left:before{content:"\F190"}.fa-caret-square-o-left:before,.fa-toggle-left:before{content:"\F191"}.fa-dot-circle-o:before{content:"\F192"}.fa-wheelchair:before{content:"\F193"}.fa-vimeo-square:before{content:"\F194"}.fa-try:before,.fa-turkish-lira:before{content:"\F195"}.fa-plus-square-o:before{content:"\F196"}.fa-space-shuttle:before{content:"\F197"}.fa-slack:before{content:"\F198"}.fa-envelope-square:before{content:"\F199"}.fa-wordpress:before{content:"\F19A"}.fa-openid:before{content:"\F19B"}.fa-bank:before,.fa-institution:before,.fa-university:before{content:"\F19C"}.fa-graduation-cap:before,.fa-mortar-board:before{content:"\F19D"}.fa-yahoo:before{content:"\F19E"}.fa-google:before{content:"\F1A0"}.fa-reddit:before{content:"\F1A1"}.fa-reddit-square:before{content:"\F1A2"}.fa-stumbleupon-circle:before{content:"\F1A3"}.fa-stumbleupon:before{content:"\F1A4"}.fa-delicious:before{content:"\F1A5"}.fa-digg:before{content:"\F1A6"}.fa-pied-piper-pp:before{content:"\F1A7"}.fa-pied-piper-alt:before{content:"\F1A8"}.fa-drupal:before{content:"\F1A9"}.fa-joomla:before{content:"\F1AA"}.fa-language:before{content:"\F1AB"}.fa-fax:before{content:"\F1AC"}.fa-building:before{content:"\F1AD"}.fa-child:before{content:"\F1AE"}.fa-paw:before{content:"\F1B0"}.fa-spoon:before{content:"\F1B1"}.fa-cube:before{content:"\F1B2"}.fa-cubes:before{content:"\F1B3"}.fa-behance:before{content:"\F1B4"}.fa-behance-square:before{content:"\F1B5"}.fa-steam:before{content:"\F1B6"}.fa-steam-square:before{content:"\F1B7"}.fa-recycle:before{content:"\F1B8"}.fa-automobile:before,.fa-car:before{content:"\F1B9"}.fa-cab:before,.fa-taxi:before{content:"\F1BA"}.fa-tree:before{content:"\F1BB"}.fa-spotify:before{content:"\F1BC"}.fa-deviantart:before{content:"\F1BD"}.fa-soundcloud:before{content:"\F1BE"}.fa-database:before{content:"\F1C0"}.fa-file-pdf-o:before{content:"\F1C1"}.fa-file-word-o:before{content:"\F1C2"}.fa-file-excel-o:before{content:"\F1C3"}.fa-file-powerpoint-o:before{content:"\F1C4"}.fa-file-image-o:before,.fa-file-photo-o:before,.fa-file-picture-o:before{content:"\F1C5"}.fa-file-archive-o:before,.fa-file-zip-o:before{content:"\F1C6"}.fa-file-audio-o:before,.fa-file-sound-o:before{content:"\F1C7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\F1C8"}.fa-file-code-o:before{content:"\F1C9"}.fa-vine:before{content:"\F1CA"}.fa-codepen:before{content:"\F1CB"}.fa-jsfiddle:before{content:"\F1CC"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-ring:before,.fa-life-saver:before,.fa-support:before{content:"\F1CD"}.fa-circle-o-notch:before{content:"\F1CE"}.fa-ra:before,.fa-rebel:before,.fa-resistance:before{content:"\F1D0"}.fa-empire:before,.fa-ge:before{content:"\F1D1"}.fa-git-square:before{content:"\F1D2"}.fa-git:before{content:"\F1D3"}.fa-hacker-news:before,.fa-y-combinator-square:before,.fa-yc-square:before{content:"\F1D4"}.fa-tencent-weibo:before{content:"\F1D5"}.fa-qq:before{content:"\F1D6"}.fa-wechat:before,.fa-weixin:before{content:"\F1D7"}.fa-paper-plane:before,.fa-send:before{content:"\F1D8"}.fa-paper-plane-o:before,.fa-send-o:before{content:"\F1D9"}.fa-history:before{content:"\F1DA"}.fa-circle-thin:before{content:"\F1DB"}.fa-header:before{content:"\F1DC"}.fa-paragraph:before{content:"\F1DD"}.fa-sliders:before{content:"\F1DE"}.fa-share-alt:before{content:"\F1E0"}.fa-share-alt-square:before{content:"\F1E1"}.fa-bomb:before{content:"\F1E2"}.fa-futbol-o:before,.fa-soccer-ball-o:before{content:"\F1E3"}.fa-tty:before{content:"\F1E4"}.fa-binoculars:before{content:"\F1E5"}.fa-plug:before{content:"\F1E6"}.fa-slideshare:before{content:"\F1E7"}.fa-twitch:before{content:"\F1E8"}.fa-yelp:before{content:"\F1E9"}.fa-newspaper-o:before{content:"\F1EA"}.fa-wifi:before{content:"\F1EB"}.fa-calculator:before{content:"\F1EC"}.fa-paypal:before{content:"\F1ED"}.fa-google-wallet:before{content:"\F1EE"}.fa-cc-visa:before{content:"\F1F0"}.fa-cc-mastercard:before{content:"\F1F1"}.fa-cc-discover:before{content:"\F1F2"}.fa-cc-amex:before{content:"\F1F3"}.fa-cc-paypal:before{content:"\F1F4"}.fa-cc-stripe:before{content:"\F1F5"}.fa-bell-slash:before{content:"\F1F6"}.fa-bell-slash-o:before{content:"\F1F7"}.fa-trash:before{content:"\F1F8"}.fa-copyright:before{content:"\F1F9"}.fa-at:before{content:"\F1FA"}.fa-eyedropper:before{content:"\F1FB"}.fa-paint-brush:before{content:"\F1FC"}.fa-birthday-cake:before{content:"\F1FD"}.fa-area-chart:before{content:"\F1FE"}.fa-pie-chart:before{content:"\F200"}.fa-line-chart:before{content:"\F201"}.fa-lastfm:before{content:"\F202"}.fa-lastfm-square:before{content:"\F203"}.fa-toggle-off:before{content:"\F204"}.fa-toggle-on:before{content:"\F205"}.fa-bicycle:before{content:"\F206"}.fa-bus:before{content:"\F207"}.fa-ioxhost:before{content:"\F208"}.fa-angellist:before{content:"\F209"}.fa-cc:before{content:"\F20A"}.fa-ils:before,.fa-shekel:before,.fa-sheqel:before{content:"\F20B"}.fa-meanpath:before{content:"\F20C"}.fa-buysellads:before{content:"\F20D"}.fa-connectdevelop:before{content:"\F20E"}.fa-dashcube:before{content:"\F210"}.fa-forumbee:before{content:"\F211"}.fa-leanpub:before{content:"\F212"}.fa-sellsy:before{content:"\F213"}.fa-shirtsinbulk:before{content:"\F214"}.fa-simplybuilt:before{content:"\F215"}.fa-skyatlas:before{content:"\F216"}.fa-cart-plus:before{content:"\F217"}.fa-cart-arrow-down:before{content:"\F218"}.fa-diamond:before{content:"\F219"}.fa-ship:before{content:"\F21A"}.fa-user-secret:before{content:"\F21B"}.fa-motorcycle:before{content:"\F21C"}.fa-street-view:before{content:"\F21D"}.fa-heartbeat:before{content:"\F21E"}.fa-venus:before{content:"\F221"}.fa-mars:before{content:"\F222"}.fa-mercury:before{content:"\F223"}.fa-intersex:before,.fa-transgender:before{content:"\F224"}.fa-transgender-alt:before{content:"\F225"}.fa-venus-double:before{content:"\F226"}.fa-mars-double:before{content:"\F227"}.fa-venus-mars:before{content:"\F228"}.fa-mars-stroke:before{content:"\F229"}.fa-mars-stroke-v:before{content:"\F22A"}.fa-mars-stroke-h:before{content:"\F22B"}.fa-neuter:before{content:"\F22C"}.fa-genderless:before{content:"\F22D"}.fa-facebook-official:before{content:"\F230"}.fa-pinterest-p:before{content:"\F231"}.fa-whatsapp:before{content:"\F232"}.fa-server:before{content:"\F233"}.fa-user-plus:before{content:"\F234"}.fa-user-times:before{content:"\F235"}.fa-bed:before,.fa-hotel:before{content:"\F236"}.fa-viacoin:before{content:"\F237"}.fa-train:before{content:"\F238"}.fa-subway:before{content:"\F239"}.fa-medium:before{content:"\F23A"}.fa-y-combinator:before,.fa-yc:before{content:"\F23B"}.fa-optin-monster:before{content:"\F23C"}.fa-opencart:before{content:"\F23D"}.fa-expeditedssl:before{content:"\F23E"}.fa-battery-4:before,.fa-battery-full:before,.fa-battery:before{content:"\F240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\F241"}.fa-battery-2:before,.fa-battery-half:before{content:"\F242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\F243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\F244"}.fa-mouse-pointer:before{content:"\F245"}.fa-i-cursor:before{content:"\F246"}.fa-object-group:before{content:"\F247"}.fa-object-ungroup:before{content:"\F248"}.fa-sticky-note:before{content:"\F249"}.fa-sticky-note-o:before{content:"\F24A"}.fa-cc-jcb:before{content:"\F24B"}.fa-cc-diners-club:before{content:"\F24C"}.fa-clone:before{content:"\F24D"}.fa-balance-scale:before{content:"\F24E"}.fa-hourglass-o:before{content:"\F250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\F251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\F252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\F253"}.fa-hourglass:before{content:"\F254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\F255"}.fa-hand-paper-o:before,.fa-hand-stop-o:before{content:"\F256"}.fa-hand-scissors-o:before{content:"\F257"}.fa-hand-lizard-o:before{content:"\F258"}.fa-hand-spock-o:before{content:"\F259"}.fa-hand-pointer-o:before{content:"\F25A"}.fa-hand-peace-o:before{content:"\F25B"}.fa-trademark:before{content:"\F25C"}.fa-registered:before{content:"\F25D"}.fa-creative-commons:before{content:"\F25E"}.fa-gg:before{content:"\F260"}.fa-gg-circle:before{content:"\F261"}.fa-tripadvisor:before{content:"\F262"}.fa-odnoklassniki:before{content:"\F263"}.fa-odnoklassniki-square:before{content:"\F264"}.fa-get-pocket:before{content:"\F265"}.fa-wikipedia-w:before{content:"\F266"}.fa-safari:before{content:"\F267"}.fa-chrome:before{content:"\F268"}.fa-firefox:before{content:"\F269"}.fa-opera:before{content:"\F26A"}.fa-internet-explorer:before{content:"\F26B"}.fa-television:before,.fa-tv:before{content:"\F26C"}.fa-contao:before{content:"\F26D"}.fa-500px:before{content:"\F26E"}.fa-amazon:before{content:"\F270"}.fa-calendar-plus-o:before{content:"\F271"}.fa-calendar-minus-o:before{content:"\F272"}.fa-calendar-times-o:before{content:"\F273"}.fa-calendar-check-o:before{content:"\F274"}.fa-industry:before{content:"\F275"}.fa-map-pin:before{content:"\F276"}.fa-map-signs:before{content:"\F277"}.fa-map-o:before{content:"\F278"}.fa-map:before{content:"\F279"}.fa-commenting:before{content:"\F27A"}.fa-commenting-o:before{content:"\F27B"}.fa-houzz:before{content:"\F27C"}.fa-vimeo:before{content:"\F27D"}.fa-black-tie:before{content:"\F27E"}.fa-fonticons:before{content:"\F280"}.fa-reddit-alien:before{content:"\F281"}.fa-edge:before{content:"\F282"}.fa-credit-card-alt:before{content:"\F283"}.fa-codiepie:before{content:"\F284"}.fa-modx:before{content:"\F285"}.fa-fort-awesome:before{content:"\F286"}.fa-usb:before{content:"\F287"}.fa-product-hunt:before{content:"\F288"}.fa-mixcloud:before{content:"\F289"}.fa-scribd:before{content:"\F28A"}.fa-pause-circle:before{content:"\F28B"}.fa-pause-circle-o:before{content:"\F28C"}.fa-stop-circle:before{content:"\F28D"}.fa-stop-circle-o:before{content:"\F28E"}.fa-shopping-bag:before{content:"\F290"}.fa-shopping-basket:before{content:"\F291"}.fa-hashtag:before{content:"\F292"}.fa-bluetooth:before{content:"\F293"}.fa-bluetooth-b:before{content:"\F294"}.fa-percent:before{content:"\F295"}.fa-gitlab:before{content:"\F296"}.fa-wpbeginner:before{content:"\F297"}.fa-wpforms:before{content:"\F298"}.fa-envira:before{content:"\F299"}.fa-universal-access:before{content:"\F29A"}.fa-wheelchair-alt:before{content:"\F29B"}.fa-question-circle-o:before{content:"\F29C"}.fa-blind:before{content:"\F29D"}.fa-audio-description:before{content:"\F29E"}.fa-volume-control-phone:before{content:"\F2A0"}.fa-braille:before{content:"\F2A1"}.fa-assistive-listening-systems:before{content:"\F2A2"}.fa-american-sign-language-interpreting:before,.fa-asl-interpreting:before{content:"\F2A3"}.fa-deaf:before,.fa-deafness:before,.fa-hard-of-hearing:before{content:"\F2A4"}.fa-glide:before{content:"\F2A5"}.fa-glide-g:before{content:"\F2A6"}.fa-sign-language:before,.fa-signing:before{content:"\F2A7"}.fa-low-vision:before{content:"\F2A8"}.fa-viadeo:before{content:"\F2A9"}.fa-viadeo-square:before{content:"\F2AA"}.fa-snapchat:before{content:"\F2AB"}.fa-snapchat-ghost:before{content:"\F2AC"}.fa-snapchat-square:before{content:"\F2AD"}.fa-pied-piper:before{content:"\F2AE"}.fa-first-order:before{content:"\F2B0"}.fa-yoast:before{content:"\F2B1"}.fa-themeisle:before{content:"\F2B2"}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:"\F2B3"}.fa-fa:before,.fa-font-awesome:before{content:"\F2B4"}.fa-handshake-o:before{content:"\F2B5"}.fa-envelope-open:before{content:"\F2B6"}.fa-envelope-open-o:before{content:"\F2B7"}.fa-linode:before{content:"\F2B8"}.fa-address-book:before{content:"\F2B9"}.fa-address-book-o:before{content:"\F2BA"}.fa-address-card:before,.fa-vcard:before{content:"\F2BB"}.fa-address-card-o:before,.fa-vcard-o:before{content:"\F2BC"}.fa-user-circle:before{content:"\F2BD"}.fa-user-circle-o:before{content:"\F2BE"}.fa-user-o:before{content:"\F2C0"}.fa-id-badge:before{content:"\F2C1"}.fa-drivers-license:before,.fa-id-card:before{content:"\F2C2"}.fa-drivers-license-o:before,.fa-id-card-o:before{content:"\F2C3"}.fa-quora:before{content:"\F2C4"}.fa-free-code-camp:before{content:"\F2C5"}.fa-telegram:before{content:"\F2C6"}.fa-thermometer-4:before,.fa-thermometer-full:before,.fa-thermometer:before{content:"\F2C7"}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:"\F2C8"}.fa-thermometer-2:before,.fa-thermometer-half:before{content:"\F2C9"}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:"\F2CA"}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:"\F2CB"}.fa-shower:before{content:"\F2CC"}.fa-bath:before,.fa-bathtub:before,.fa-s15:before{content:"\F2CD"}.fa-podcast:before{content:"\F2CE"}.fa-window-maximize:before{content:"\F2D0"}.fa-window-minimize:before{content:"\F2D1"}.fa-window-restore:before{content:"\F2D2"}.fa-times-rectangle:before,.fa-window-close:before{content:"\F2D3"}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:"\F2D4"}.fa-bandcamp:before{content:"\F2D5"}.fa-grav:before{content:"\F2D6"}.fa-etsy:before{content:"\F2D7"}.fa-imdb:before{content:"\F2D8"}.fa-ravelry:before{content:"\F2D9"}.fa-eercast:before{content:"\F2DA"}.fa-microchip:before{content:"\F2DB"}.fa-snowflake-o:before{content:"\F2DC"}.fa-superpowers:before{content:"\F2DD"}.fa-wpexplorer:before{content:"\F2DE"}.fa-meetup:before{content:"\F2E0"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto} -------------------------------------------------------------------------------- /dist/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StarlightUnion/Xiaomi-Vue/995665e80f131889cf8bd629d2b7ac870e7fd7c1/dist/favicon.ico -------------------------------------------------------------------------------- /dist/fonts/fontawesome-webfont.674f50d2.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StarlightUnion/Xiaomi-Vue/995665e80f131889cf8bd629d2b7ac870e7fd7c1/dist/fonts/fontawesome-webfont.674f50d2.eot -------------------------------------------------------------------------------- /dist/fonts/fontawesome-webfont.af7ae505.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StarlightUnion/Xiaomi-Vue/995665e80f131889cf8bd629d2b7ac870e7fd7c1/dist/fonts/fontawesome-webfont.af7ae505.woff2 -------------------------------------------------------------------------------- /dist/fonts/fontawesome-webfont.b06871f2.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StarlightUnion/Xiaomi-Vue/995665e80f131889cf8bd629d2b7ac870e7fd7c1/dist/fonts/fontawesome-webfont.b06871f2.ttf -------------------------------------------------------------------------------- /dist/fonts/fontawesome-webfont.fee66e71.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StarlightUnion/Xiaomi-Vue/995665e80f131889cf8bd629d2b7ac870e7fd7c1/dist/fonts/fontawesome-webfont.fee66e71.woff -------------------------------------------------------------------------------- /dist/img/right.560c4f47.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StarlightUnion/Xiaomi-Vue/995665e80f131889cf8bd629d2b7ac870e7fd7c1/dist/img/right.560c4f47.png -------------------------------------------------------------------------------- /dist/index.html: -------------------------------------------------------------------------------- 1 | 小米商城
-------------------------------------------------------------------------------- /docs/images/public_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StarlightUnion/Xiaomi-Vue/995665e80f131889cf8bd629d2b7ac870e7fd7c1/docs/images/public_1.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mi", 3 | "version": "0.1.0", 4 | "private": true, 5 | "scripts": { 6 | "serve": "vue-cli-service serve", 7 | "build": "vue-cli-service build" 8 | }, 9 | "dependencies": { 10 | "core-js": "^2.6.5", 11 | "font-awesome": "^4.7.0", 12 | "terser": "^4.0.0", 13 | "vue": "^2.6.10", 14 | "vue-router": "^3.0.3" 15 | }, 16 | "devDependencies": { 17 | "@vue/cli-plugin-babel": "^3.8.0", 18 | "@vue/cli-service": "^3.8.0", 19 | "less": "^3.0.4", 20 | "less-loader": "^4.1.0", 21 | "vue-cli-plugin-fontawesome": "^0.2.0", 22 | "vue-template-compiler": "^2.6.10" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | autoprefixer: {} 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StarlightUnion/Xiaomi-Vue/995665e80f131889cf8bd629d2b7ac870e7fd7c1/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 小米商城 10 | 11 | 12 |
13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/App.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 16 | -------------------------------------------------------------------------------- /src/assets/css/font.css: -------------------------------------------------------------------------------- 1 | @font-face {font-family: "iconfont"; 2 | src: url('//at.alicdn.com/t/font_1431387_f4npbvnboyw.eot?t=1569251627961'); /* IE9 */ 3 | src: url('//at.alicdn.com/t/font_1431387_f4npbvnboyw.eot?t=1569251627961#iefix') format('embedded-opentype'), /* IE6-IE8 */ 4 | url('data:application/x-font-woff2;charset=utf-8;base64,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') format('woff2'), 5 | url('//at.alicdn.com/t/font_1431387_f4npbvnboyw.woff?t=1569251627961') format('woff'), 6 | url('//at.alicdn.com/t/font_1431387_f4npbvnboyw.ttf?t=1569251627961') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */ 7 | url('//at.alicdn.com/t/font_1431387_f4npbvnboyw.svg?t=1569251627961#iconfont') format('svg'); /* iOS 4.1- */ 8 | } 9 | 10 | .iconfont { 11 | font-family: "iconfont" !important; 12 | font-size: 16px; 13 | font-style: normal; 14 | -webkit-font-smoothing: antialiased; 15 | -moz-osx-font-smoothing: grayscale; 16 | } 17 | 18 | .icon-15tianwuliyoutuihuo:before { 19 | content: "\e606"; 20 | } 21 | 22 | .icon-7tianwuliyoutuihuo:before { 23 | content: "\e60e"; 24 | } 25 | 26 | .icon-buoumaotubiao46:before { 27 | content: "\e629"; 28 | } 29 | 30 | .icon-liwu:before { 31 | content: "\e62b"; 32 | } 33 | 34 | .icon-icon-test:before { 35 | content: "\e61b"; 36 | } 37 | 38 | .icon-icon-test1:before { 39 | content: "\e635"; 40 | } -------------------------------------------------------------------------------- /src/assets/css/style.css: -------------------------------------------------------------------------------- 1 | *{ 2 | margin: 0px; 3 | padding: 0px; 4 | box-sizing: border-box; 5 | /* font-family: Helvetica, Arial, "Microsoft Yahei", "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", sans-serif; */ 6 | font-family: Helvetica, Arial, "Microsoft Yahei", "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", sans-serif; 7 | } 8 | li{ 9 | list-style: none; 10 | } 11 | a{ 12 | text-decoration: none; 13 | color: #000; 14 | -webkit-tap-highlight-color: rgba(255, 255, 255, 0); 15 | -webkit-user-select: none; 16 | -moz-user-focus: none; 17 | -moz-user-select: none; 18 | } 19 | html{ 20 | height: 100%; 21 | width: 100%; 22 | } 23 | body{ 24 | height: 100%; 25 | width: 100%; 26 | } 27 | 28 | html,body{ 29 | -webkit-tap-highlight-color: rgba(0, 0, 0, 0); 30 | } 31 | input{ 32 | border:none; 33 | outline: none; 34 | } 35 | i{ 36 | font-style: normal; 37 | } 38 | button{ 39 | border:none; 40 | outline: none; 41 | } 42 | .clearfix:after{ 43 | content:""; 44 | height:0; 45 | line-height:0; 46 | visibility:hidden; 47 | display:block; 48 | clear:both 49 | } 50 | .clearfix{ 51 | zoom: 1; 52 | } -------------------------------------------------------------------------------- /src/assets/image/flash.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StarlightUnion/Xiaomi-Vue/995665e80f131889cf8bd629d2b7ac870e7fd7c1/src/assets/image/flash.jpg -------------------------------------------------------------------------------- /src/assets/image/home-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StarlightUnion/Xiaomi-Vue/995665e80f131889cf8bd629d2b7ac870e7fd7c1/src/assets/image/home-logo.png -------------------------------------------------------------------------------- /src/assets/image/icon-slides.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StarlightUnion/Xiaomi-Vue/995665e80f131889cf8bd629d2b7ac870e7fd7c1/src/assets/image/icon-slides.png -------------------------------------------------------------------------------- /src/assets/image/logo-footer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StarlightUnion/Xiaomi-Vue/995665e80f131889cf8bd629d2b7ac870e7fd7c1/src/assets/image/logo-footer.png -------------------------------------------------------------------------------- /src/assets/image/mi-home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StarlightUnion/Xiaomi-Vue/995665e80f131889cf8bd629d2b7ac870e7fd7c1/src/assets/image/mi-home.png -------------------------------------------------------------------------------- /src/assets/image/mi-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StarlightUnion/Xiaomi-Vue/995665e80f131889cf8bd629d2b7ac870e7fd7c1/src/assets/image/mi-logo.png -------------------------------------------------------------------------------- /src/assets/image/right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StarlightUnion/Xiaomi-Vue/995665e80f131889cf8bd629d2b7ac870e7fd7c1/src/assets/image/right.png -------------------------------------------------------------------------------- /src/assets/image/slogan2016.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StarlightUnion/Xiaomi-Vue/995665e80f131889cf8bd629d2b7ac870e7fd7c1/src/assets/image/slogan2016.png -------------------------------------------------------------------------------- /src/bus.js: -------------------------------------------------------------------------------- 1 | // 中央事件总线 一 2 | import Vue from 'vue' 3 | 4 | const bus = new Vue(); 5 | export default bus; -------------------------------------------------------------------------------- /src/components/FlashSale.vue: -------------------------------------------------------------------------------- 1 | 32 | 33 | 115 | 116 | -------------------------------------------------------------------------------- /src/components/GoodsSale.vue: -------------------------------------------------------------------------------- 1 | 18 | 19 | 234 | 235 | -------------------------------------------------------------------------------- /src/components/MenuBanner.vue: -------------------------------------------------------------------------------- 1 | 36 | 37 | 285 | 286 | -------------------------------------------------------------------------------- /src/components/SiteFooter.vue: -------------------------------------------------------------------------------- 1 | 44 | 45 | 99 | 100 | -------------------------------------------------------------------------------- /src/components/SiteInfo.vue: -------------------------------------------------------------------------------- 1 | 43 | 44 | 103 | 104 | -------------------------------------------------------------------------------- /src/components/SubChannel.vue: -------------------------------------------------------------------------------- 1 | 24 | 25 | 46 | 47 | -------------------------------------------------------------------------------- /src/components/ToolBar.vue: -------------------------------------------------------------------------------- 1 | 43 | 44 | 114 | 115 | -------------------------------------------------------------------------------- /src/components/TopBar.vue: -------------------------------------------------------------------------------- 1 | 81 | 82 | 143 | 144 | -------------------------------------------------------------------------------- /src/components/TopHeader.vue: -------------------------------------------------------------------------------- 1 | 59 | 60 | 167 | 168 | -------------------------------------------------------------------------------- /src/components/VideoBox.vue: -------------------------------------------------------------------------------- 1 | 28 | 29 | 51 | 52 | -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './App.vue' 3 | import router from './router' 4 | 5 | import './assets/css/style.css' 6 | import './assets/css/font.css' 7 | // npm install --save font-awesome 8 | import 'font-awesome/css/font-awesome.min.css' 9 | 10 | Vue.config.productionTip = false 11 | 12 | new Vue({ 13 | router, 14 | render: h => h(App), 15 | data: { 16 | // 中央事件总线 二 17 | // bus: new Vue(), 18 | } 19 | }).$mount('#app') 20 | -------------------------------------------------------------------------------- /src/parts/Banner.vue: -------------------------------------------------------------------------------- 1 | 20 | 21 | 62 | 63 | -------------------------------------------------------------------------------- /src/parts/GoodsBox.vue: -------------------------------------------------------------------------------- 1 | 112 | 113 | 142 | 143 | -------------------------------------------------------------------------------- /src/parts/LocationWindow.vue: -------------------------------------------------------------------------------- 1 | 24 | 25 | 91 | 92 | -------------------------------------------------------------------------------- /src/parts/Poster.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 17 | 18 | -------------------------------------------------------------------------------- /src/parts/Slide.vue: -------------------------------------------------------------------------------- 1 | 22 | 23 | 78 | 79 | -------------------------------------------------------------------------------- /src/parts/VideoWindow.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 56 | 57 | -------------------------------------------------------------------------------- /src/parts/WeChatWindow.vue: -------------------------------------------------------------------------------- 1 | 18 | 19 | 54 | 55 | -------------------------------------------------------------------------------- /src/router.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import Router from 'vue-router' 3 | import Mi from './views/mi.vue' 4 | 5 | Vue.use(Router) 6 | 7 | export default new Router({ 8 | routes: [ 9 | { 10 | path: '/', 11 | name: 'mi', 12 | component: Mi 13 | } 14 | ] 15 | }) 16 | -------------------------------------------------------------------------------- /src/views/mi.vue: -------------------------------------------------------------------------------- 1 | 23 | 24 | 62 | 63 | -------------------------------------------------------------------------------- /vue.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | // 基本路径 3 | publicPath: './', 4 | // 输出文件目录 5 | outputDir: 'dist', 6 | devServer: { 7 | port: 8081, //端口 8 | }, 9 | lintOnSave: false //取消eslint验证 10 | } --------------------------------------------------------------------------------