coupon goods 8.13

This commit is contained in:
2020-08-13 17:05:02 +08:00
parent f1fbeb65a1
commit e224cffc1c
7 changed files with 245 additions and 12 deletions

View File

@@ -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();