Skip to content
基于有赞 vant 组件库的移动商城
Branch: dev
Clone or download
Latest commit 8ff472b Apr 17, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
mock add infinity-scroll Dec 8, 2018
public init Oct 12, 2018
src 先去掉表单验证 Dec 14, 2018
.eslintrc.js eslint fix Oct 14, 2018
.gitignore init Oct 12, 2018
.postcssrc.js lint Oct 14, 2018
.prettierrc.js eslint fix Oct 14, 2018
LICENSE add LICENSE Apr 17, 2019
README.md update readme Dec 14, 2018
babel.config.js upgrade vue-cli 3.0 Oct 18, 2018
package-lock.json bug fix Dec 8, 2018
package.json bug fix Dec 8, 2018
vue.config.js bug fix Dec 8, 2018

README.md

移动商城

使用有赞移动端 Vue 组件库 — Vant

本项目可能使用的某些 API 过于老旧, 切勿盲目使用。请以 vant 官网文档为主。

预览Gif图(gif加载较慢,请稍后。。。)

gif

gif

gif

Vue相关库与插件

  • Vue + Vue-router + Vant + Sass
  • axios
  • vee-validate
  • fastclick
  • babel-polyfill
  • @xkeshi/vue-countdown

未使用Vuex, 因为各个页面有较高的独立性. 可以省下Vuex, 少部分组件通信使用 event bus 即可.

店铺信息: sessionStorage

用户信息及token: localStorage

mock数据

#先全局安装 json-server, 如果已经装过可忽略这步
npm install -g json-server

npm run mock

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run serve

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build -- --report
You can’t perform that action at this time.