diff --git a/src/pages/coupon/product.vue b/src/pages/coupon/product.vue index 228736d..ecba4da 100644 --- a/src/pages/coupon/product.vue +++ b/src/pages/coupon/product.vue @@ -58,7 +58,7 @@ const exchange = () => { }) } function getlist() { - const params = { id: route.product_id, activity_code: route.activity_code } + const params = { product_id: route.product_id, activity_code: route.activity_code } Api.getProductDetail(params).then((res: any) => { if (res.code === 200) { uni.hideLoading() diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 1e46215..97fc93a 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -90,7 +90,7 @@ window.parent.addEventListener('message', function (event) { } } else if (event.data.data.type === 'coupon') { srcData = { - url: contentData.user_content_templates.source, + url: contentData.user_content_templates.source + `?activity_code=${query.value}`, title: contentData.user_content_templates.moduledesc, } } else if (event.data.data.type === 'product') {