Commit 6f60fde0 by 冷斌

fix bug

parent 6cdd3211
...@@ -70,7 +70,8 @@ ...@@ -70,7 +70,8 @@
count: 1, count: 1,
agree: false, agree: false,
info: "", info: "",
address: "" address: "",
totalPrice: 0,
} }
}, },
...@@ -79,17 +80,16 @@ ...@@ -79,17 +80,16 @@
let ad = {:json_encode($address)}; let ad = {:json_encode($address)};
this.info = d this.info = d
this.address = ad this.address = ad
console.log(d) this.totalPrice = d.lastPrice
console.log(ad)
}, },
computed: { computed: {
hasAddress: function() { hasAddress: function() {
return this.address != "" && this.address != undefined return this.address != "" && this.address != undefined
}, },
totalPrice: function() { // totalPrice: function() {
return this.info.lastPrice // return this.info.lastPrice
}, // },
discount: function() { discount: function() {
return "(运费:¥" + this.info.fare + ")" return "(运费:¥" + this.info.fare + ")"
} }
......
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