diff --git a/src/pages/jlgh/coupon.vue b/src/pages/jlgh/coupon.vue index 793ccfc..00ba3b4 100644 --- a/src/pages/jlgh/coupon.vue +++ b/src/pages/jlgh/coupon.vue @@ -109,15 +109,26 @@ const istrue = ref(false) const isShow = ref(false) const list = reactive([]) const query = reactive({ - // activity_code: 'TT123copycopy', activity_code: '', }) const dui = (item) => { item.activity_code = query.activity_code - uni.navigateTo({ - url: '/pages/jlgh/redeem?item=' + JSON.stringify(item), - }) + window.parent.postMessage( + { + data: { + message: 'success', + type: 'detail', + query: { + item: JSON.stringify(item), + }, + }, + }, + '*', + ) + // uni.navigateTo({ + // url: '/pages/jlgh/redeem?item=' + JSON.stringify(item), + // }) } const gomypre = (idx) => { diff --git a/src/pages/jlgh/redeem.vue b/src/pages/jlgh/redeem.vue index abcd85e..807b027 100644 --- a/src/pages/jlgh/redeem.vue +++ b/src/pages/jlgh/redeem.vue @@ -122,9 +122,18 @@ onLoad((options) => { function gomy() { ismask.value = false - uni.navigateTo({ - url: `/pages/jlgh/index?activity_code=${info.activity_code}`, - }) + // uni.navigateTo({ + // url: `/pages/jlgh/index?activity_code=${info.activity_code}`, + // }) + window.parent.postMessage( + { + data: { + message: 'success', + type: 'coupon', + }, + }, + '*', + ) } function dui() {