Commit b567fefb by 冷斌

fix bug

parent 73797d81
......@@ -62,7 +62,7 @@
</div>
<script>
new Vue({
el: "#app",
data: function() {
......@@ -73,7 +73,7 @@
address: ""
}
},
created:function(){
let d = {:json_encode($data)};
let ad = {:json_encode($address)};
......@@ -82,7 +82,7 @@
console.log(d)
console.log(ad)
},
computed: {
hasAddress: function() {
return this.address != "" && this.address != undefined
......@@ -94,19 +94,20 @@
return "(运费:¥" + this.info.fare + ")"
}
},
methods: {
onMinus: function() {
if(this.count - 1 > 1) {
this.count += 1
this.count -= 1
}
this.totalPrice = 1;
},
onPlus: function() {
this.count += 1
},
onBuy: function() {
if(MID <= 0) {
ui.confirm('请先登录', {
......@@ -139,14 +140,14 @@
success: function(res) {
console.log(res)
if(res.status == 1) {
} else {
ui.error(res.info ? res.info : res.data)
}
}
})
},
checkPayStatus: function(num) {
let that = this
$.ajax({
......@@ -170,15 +171,15 @@
}
})
},
onAddress: function() {
let url = "{:U('home/User/address',['param'=>$_GET['vst']])}"
window.location.href = url
}
}
})
</script>
<include file="__THEME__/public_footer_w3g" />
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