Commit 0efb2735 by 冷斌

fix bug

parent f8ef1d5a
...@@ -100,13 +100,13 @@ ...@@ -100,13 +100,13 @@
onMinus: function() { onMinus: function() {
if(this.count - 1 > 0) { if(this.count - 1 > 0) {
this.count -= 1; this.count -= 1;
this.totalPrice -= this.info.price; this.totalPrice -= parseFloat(this.info.price);
} }
}, },
onPlus: function() { onPlus: function() {
this.count += 1 this.count += 1
this.totalPrice += this.info.price; this.totalPrice += parseFloat(this.info.price);
}, },
onBuy: function() { onBuy: function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment