Coder Social home page Coder Social logo

shoppingcart's Issues

解决遇到购物车没有商品,

      cartView: function() {
        var _this = this;
        this.$http.get("data/cartData.json", {"id": 123}).then(res=> {
          _this.productList = JSON.parse(res.body).result.list;
          _this.totalMoney =  JSON.parse(res.body).result.totalMoney;
        });
      }

只要转换成json对象即可

不能解压包

下载完成后不能解压对应的包。提示无此文件或目录~

advice

node_module别提交上来呀

谢谢手打的资源,但是希望好好检查一下......

1.json文件的图片路径加了static目录,但是实际项目目录没有static目录,
"productImage":"static/img/goods-1.jpg",
"imgSrc":"static/img/part-1.jpg"

  1.   <style type="text/css">
     .quantity input {
         width: 40px;
         padding: 5px 10px;
         text-align: center;
     }
    
    </style>

cart.html自定义样式quantity 类拼写错了,这很明显,打开网页一看就发现了...商品数量旁边没有加减号。

谢谢你

谢谢你的整理 对我很有帮助 希望大家共同努力

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.