diff --git a/src/pages/coupon/order.vue b/src/pages/coupon/order.vue index 55992c2..b330725 100644 --- a/src/pages/coupon/order.vue +++ b/src/pages/coupon/order.vue @@ -10,7 +10,7 @@ - + { - query.value = getUrlPathName() const params = { activity_code: query.value || '', } @@ -145,10 +144,11 @@ const initContent = async () => { onLoad(() => { // activity_id 方式 - if (!useStore.userInfo.srcList.url) { + query.value = getUrlPathName() + if (!useStore.userInfo.srcList.url || useStore.userInfo.query !== query.value) { initContent() } else { - query.value = useStore.userInfo.query + // query.value = useStore.userInfo.query Object.assign(srcList, useStore.userInfo.srcList) Object.assign(contentData, useStore.userInfo.contentData) uni.setNavigationBarTitle({