├── .browserslistrc ├── babel.config.js ├── dist ├── favicon.ico ├── img │ └── avatar.7179cfd6.png ├── index.html ├── css │ ├── app.03b98d8b.css │ └── chunk-vendors.a7e1f294.css └── js │ └── app.94578dad.js ├── postcss.config.js ├── public ├── favicon.ico └── index.html ├── src ├── assets │ ├── images │ │ ├── bg.jpg │ │ ├── avatar.png │ │ └── default.jpg │ └── css │ │ └── cssreset.css ├── store.js ├── App.vue ├── components │ ├── me │ │ ├── account.vue │ │ ├── addressList.vue │ │ ├── pwdReset.vue │ │ ├── list.vue │ │ ├── login.vue │ │ ├── addressAdd.vue │ │ ├── addressEdit.vue │ │ └── register.vue │ ├── comment.vue │ └── common │ │ └── scroll.vue ├── views │ ├── Me.vue │ ├── newsInfo.vue │ ├── Category.vue │ ├── Home.vue │ ├── news.vue │ ├── Shopcar.vue │ ├── GoodsInfo.vue │ └── GoodsList.vue ├── main.js └── router.js ├── README.md ├── .gitignore └── package.json /.browserslistrc: -------------------------------------------------------------------------------- 1 | > 1% 2 | last 2 versions 3 | not ie <= 8 4 | -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/app' 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /dist/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TianchengLee/vue-shop/master/dist/favicon.ico -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | autoprefixer: {} 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TianchengLee/vue-shop/master/public/favicon.ico -------------------------------------------------------------------------------- /src/assets/images/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TianchengLee/vue-shop/master/src/assets/images/bg.jpg -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # vue-shop 2 | 3 | vue电商项目 4 | 5 | ## 技术栈 6 | 7 | vue2.0 + vue-router + vuex + axios + ES6 + less 8 | -------------------------------------------------------------------------------- /dist/img/avatar.7179cfd6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TianchengLee/vue-shop/master/dist/img/avatar.7179cfd6.png -------------------------------------------------------------------------------- /src/assets/images/avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TianchengLee/vue-shop/master/src/assets/images/avatar.png -------------------------------------------------------------------------------- /src/assets/images/default.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TianchengLee/vue-shop/master/src/assets/images/default.jpg -------------------------------------------------------------------------------- /src/store.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import Vuex from 'vuex' 3 | Vue.use(Vuex) 4 | 5 | 6 | export default new Vuex.Store({ 7 | state: { 8 | }, 9 | getters:{ 10 | }, 11 | mutations: { 12 | }, 13 | actions: { 14 | } 15 | }) 16 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | # /dist 4 | 5 | # local env files 6 | .env.local 7 | .env.*.local 8 | 9 | # Log files 10 | npm-debug.log* 11 | yarn-debug.log* 12 | yarn-error.log* 13 | 14 | # Editor directories and files 15 | .idea 16 | .vscode 17 | *.suo 18 | *.ntvs* 19 | *.njsproj 20 | *.sln 21 | *.sw* 22 | -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 |{{item.name}}
13 |
14 | {{item.sale_price}}
15 |
16 |
20 |
商品详情:
22 | 23 |
22 | 商品名称:
23 | {{item.name}}
24 |
市场价:
25 | {{item.sale_price}}
26 |