获取activity_code问题
This commit is contained in:
parent
a5fc245a3f
commit
d315bb2ab8
|
@ -50,7 +50,7 @@ const exchange = () => {
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
// uni.stopPullDownRefresh();
|
// uni.stopPullDownRefresh();
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/coupon/index',
|
url: '/pages/coupon/index?activity_code=' + route.activity_code,
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
|
@ -76,9 +76,13 @@ const getUrlParm = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const getUrlPathName = () => {
|
const getUrlPathName = () => {
|
||||||
const url = window.location.pathname.length > 1 ? window.location.pathname : window.location.href
|
const url = window.location.href
|
||||||
const str = url.split('/')
|
const str = url.split('#/')[1]
|
||||||
return str[str.length - 1] || ''
|
if (str.indexOf('/') === -1) {
|
||||||
|
return str || ''
|
||||||
|
} else {
|
||||||
|
return str.split('/')[0]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
window.parent.addEventListener('message', function (event) {
|
window.parent.addEventListener('message', function (event) {
|
||||||
|
|
Loading…
Reference in New Issue