修改跳转链接
This commit is contained in:
parent
efdfc91833
commit
9e7b8dc84d
|
@ -109,15 +109,26 @@ const istrue = ref<boolean>(false)
|
||||||
const isShow = ref<boolean>(false)
|
const isShow = ref<boolean>(false)
|
||||||
const list = reactive<any>([])
|
const list = reactive<any>([])
|
||||||
const query = reactive<any>({
|
const query = reactive<any>({
|
||||||
// activity_code: 'TT123copycopy',
|
|
||||||
activity_code: '',
|
activity_code: '',
|
||||||
})
|
})
|
||||||
|
|
||||||
const dui = (item) => {
|
const dui = (item) => {
|
||||||
item.activity_code = query.activity_code
|
item.activity_code = query.activity_code
|
||||||
uni.navigateTo({
|
window.parent.postMessage(
|
||||||
url: '/pages/jlgh/redeem?item=' + JSON.stringify(item),
|
{
|
||||||
})
|
data: {
|
||||||
|
message: 'success',
|
||||||
|
type: 'detail',
|
||||||
|
query: {
|
||||||
|
item: JSON.stringify(item),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
'*',
|
||||||
|
)
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url: '/pages/jlgh/redeem?item=' + JSON.stringify(item),
|
||||||
|
// })
|
||||||
}
|
}
|
||||||
|
|
||||||
const gomypre = (idx) => {
|
const gomypre = (idx) => {
|
||||||
|
|
|
@ -122,9 +122,18 @@ onLoad((options) => {
|
||||||
|
|
||||||
function gomy() {
|
function gomy() {
|
||||||
ismask.value = false
|
ismask.value = false
|
||||||
uni.navigateTo({
|
// uni.navigateTo({
|
||||||
url: `/pages/jlgh/index?activity_code=${info.activity_code}`,
|
// url: `/pages/jlgh/index?activity_code=${info.activity_code}`,
|
||||||
})
|
// })
|
||||||
|
window.parent.postMessage(
|
||||||
|
{
|
||||||
|
data: {
|
||||||
|
message: 'success',
|
||||||
|
type: 'coupon',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
'*',
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
function dui() {
|
function dui() {
|
||||||
|
|
Loading…
Reference in New Issue