From 9e7b8dc84dd44293fe0286ca15589a74caa07115 Mon Sep 17 00:00:00 2001 From: xiaogang <825201136@qq.com> Date: Tue, 16 Jul 2024 10:14:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B7=B3=E8=BD=AC=E9=93=BE?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/jlgh/coupon.vue | 19 +++++++++++++++---- src/pages/jlgh/redeem.vue | 15 ++++++++++++--- 2 files changed, 27 insertions(+), 7 deletions(-) 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() {