Commit 6f60fde0 by 冷斌

fix bug

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