修改跳转链接

This commit is contained in:
xiaogang 2024-07-16 10:14:40 +08:00
parent efdfc91833
commit 9e7b8dc84d
2 changed files with 27 additions and 7 deletions

View File

@ -109,15 +109,26 @@ const istrue = ref<boolean>(false)
const isShow = ref<boolean>(false)
const list = reactive<any>([])
const query = reactive<any>({
// 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) => {

View File

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