|
@@ -51,7 +51,6 @@
|
|
|
},
|
|
|
created () {
|
|
|
this.getUserCoupon()
|
|
|
-// console.log(this.usedCoupons)
|
|
|
},
|
|
|
watch: {
|
|
|
usedCoupons: function (val, oldVal) {
|
|
@@ -61,16 +60,25 @@
|
|
|
},
|
|
|
methods: {
|
|
|
getUserCoupon () {
|
|
|
+ console.log(this.$route.query)
|
|
|
+ /*
|
|
|
+ products: pushData.products, //产品
|
|
|
+ booking_time: pushData.time, //预订时间
|
|
|
+ user_id: user.id, //用户id
|
|
|
+ type: pushData.type, //资源
|
|
|
+ extra: pushData.extraJson
|
|
|
+ * */
|
|
|
axios.get('o2o/order/usableCoupon&get_all=1&user_id=' + config.userId).then(res => {
|
|
|
if (res.data.success) {
|
|
|
-// console.log(res.data.data)
|
|
|
this.usedCoupons = res.data.data.used_coupons
|
|
|
+ console.log(this.usedCoupons)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
selectCoupon (coupon) {
|
|
|
config.orderInfo.coupons = coupon
|
|
|
- this.$router.go(-1)
|
|
|
+// this.$router.go(-1)
|
|
|
+ this.$router.push({path: '/placeOrder'})
|
|
|
},
|
|
|
flush () {
|
|
|
this.showScrollBox = false
|