diff --git a/common/js/util.js b/common/js/util.js index eed9cd6..3e12220 100644 --- a/common/js/util.js +++ b/common/js/util.js @@ -1322,13 +1322,18 @@ export default { // 外部链接 if (link.wap_url && link.wap_url.indexOf('http') != -1) { - // 公共参数 - const params = { - title: link?.title ?? '', - enable_set_title: link?.enable_set_title ? 1 : 0 - } + // 公共参数 + 透传 page_params(resolveLinkUrl 已把 wap_url 中的 query 合并到 page_params) + const pageParams = (link.page_params && typeof link.page_params === 'object') ? link.page_params : {}; + const params = Object.assign( + {}, + pageParams, + { + title: link?.title ?? '', + enable_set_title: link?.enable_set_title ? 1 : 0 + } + ); let url = this.normalizeUrl(decodeEntity(link.wap_url)); - url = this.appendQueryParams(url, params); + url = this.appendQueryParams(url, params); // #ifdef H5 // console.log(`url ---->`, url, link)