Git Product home page Git Product logo

mi-shop's Introduction

logo

Build MIT

mi-shop

vue项目-仿小米移动商城开源版。代码可自由更改,转载请注明出处,切勿用于商业用途。

DEMO

Install

  git clone https://github.com/Jon-Millent/mi-shop.git
  cd mi-shop
  npm install & yarn
  npm run serve

Module

  • 首页
    • 推荐
    • 手机
    • 智能
    • 电视
    • 电脑
    • 全面屏
    • 生活周边
    • 盒子
    • 艺术
    • 搜索
      • 搜索商品
  • 分类
    • 搜索
  • 购物车
    • 结算(商品增删)
  • 我的
  • 商品详情
    • 加入购物车

请我喝杯咖啡,支持更多开源

1024.png

LICENSE

MIT

mi-shop's People

Contributors

dependabot[bot] avatar gtn1024 avatar jon-millent avatar zinwalin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mi-shop's Issues

npm run dev 出现错误

`

[email protected] dev /Users/liugrant/Documents/Tsingbegin/VueHealth
webpack-dev-server --inline --progress --config build/webpack.dev.conf.js

14% building modules 39/59 modules 20 active ...th/src/views/classification/index.vue{ parser: "babylon" } is deprecated; we now treat it as { parser: "babel" }.
94% asset optimization n
ERROR Failed to compile with 2 errors 下午1:12:46

error in ./src/views/detail/index.vue

Syntax Error: Unexpected token (110:4)

108 | },
109 | computed: {

110 | ...mapGetters([
| ^
111 | 'getShopCarLength'
112 | ])
113 | },

@ ./src/views/detail/index.vue 8:0-108 9:0-121
@ ./src/router/index.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://0.0.0.0:8080 webpack/hot/dev-server ./src/main.js

error in ./src/App.vue

Syntax Error: Unexpected token (82:4)

80 | },
81 | computed: {

82 | ...mapGetters([
| ^
83 | 'nowStatus',
84 | 'getShopCarLength'
85 | ]),

@ ./src/App.vue 8:0-100 9:0-113
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://0.0.0.0:8080 webpack/hot/dev-server ./src/main.js
`

ERROR Failed to compile with 16 errors

These dependencies were not found:

  • babel-runtime/core-js/json/stringify in ./src/util/shop-car-tool/index.js, ./src/util/vue-db/vue-db.js and 1 other
  • babel-runtime/helpers/classCallCheck in ./src/assets/js/rem.js, ./src/util/shop-car-tool/index.js and 2 others
  • babel-runtime/helpers/createClass in ./src/assets/js/rem.js, ./src/util/shop-car-tool/index.js and 2 others * babel-runtime/helpers/extends in ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/App.vue, ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/detail/index.vue
  • babel-runtime/helpers/typeof in ./src/assets/swiper/swiper-3.4.2.min.js, ./src/util/vue-db/vue-db-long.js and 1 other

$npm install报错

gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (H:\gitLocal\vue\mi-shop\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder. (H:\gitLocal\vue\mi-shop\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at H:\gitLocal\vue\mi-shop\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "H:\procedure\node\install\node.exe" "H:\gitLocal\vue\mi-shop\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd H:\gitLocal\vue\mi-shop\node_modules\node-sass
gyp ERR! node -v v8.10.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN [email protected] requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

建议采用 mockjs的形式,加载数据。

建议采用 mockjs的形式,加载数据。你现在这样写出来的,我们很难改的,以后就只能写小米了。要写其他的,所有的页面都要改一遍。一点小建议。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.