coupon goods 8.13
This commit is contained in:
@@ -69,17 +69,20 @@ export default {
|
||||
})
|
||||
},
|
||||
useCoupon(coupon) {
|
||||
// console.log(coupon);
|
||||
if(coupon.type == 1) {
|
||||
this.$u.route({
|
||||
type: 'switchTab',
|
||||
url: 'pages/shop/index',
|
||||
})
|
||||
} else if(coupon.type == 2) {
|
||||
this.$u.route('pageC/merchant/index', {
|
||||
id: coupon.voucher_store_id,
|
||||
});
|
||||
}
|
||||
console.log(coupon);
|
||||
// if(coupon.type == 1) {
|
||||
// this.$u.route({
|
||||
// type: 'switchTab',
|
||||
// url: 'pages/shop/index',
|
||||
// })
|
||||
// } else if(coupon.type == 2) {
|
||||
// this.$u.route('pageC/merchant/index', {
|
||||
// id: coupon.voucher_store_id,
|
||||
// });
|
||||
// }
|
||||
this.$u.route('pageE/useCoupon/index', {
|
||||
cid: coupon.voucher_id,
|
||||
});
|
||||
},
|
||||
setViewHeight() {
|
||||
const res = uni.getSystemInfoSync();
|
||||
|
||||
Reference in New Issue
Block a user