|
@@ -9,7 +9,7 @@ import { connect } from '@tarojs/redux'
|
9
|
9
|
import { ROLE_CODE } from '@/constants/user'
|
10
|
10
|
import { getQrCodeParams } from '@/utils/qrcode'
|
11
|
11
|
import { getMiniQrcode, savePoint, updatePoint } from '@/services/common'
|
12
|
|
-import { isEmpty } from '@/utils/tools'
|
|
12
|
+import { isEmpty, parseURL } from '@/utils/tools'
|
13
|
13
|
import { rule as ruleToast } from '@/utils/ruleToast'
|
14
|
14
|
import { share as shareSavePoint } from '@/utils/shareSavePoint'
|
15
|
15
|
import { report as reportCustomer } from '@/utils/customer'
|
|
@@ -381,12 +381,14 @@ export default class Index extends Component {
|
381
|
381
|
|
382
|
382
|
const showH5 = !isEmpty(h5Id) && pageInfo.h5Address && pageInfo.h5Address !== 'about' && pageInfo.h5Address !== 'http://about' && pageInfo.h5Address !== 'https://about'
|
383
|
383
|
|
384
|
|
- // console.log('----web-h5------>', showH5, `${pageInfo.h5Address}?${webUrlParams}`)
|
|
384
|
+ const originURL = parseURL(pageInfo.h5Address) || {}
|
|
385
|
+ const queryString = [webUrlParams, originURL.query].join('&')
|
|
386
|
+ const webURL = [`${originURL.origin}${originURL.host}?${queryString}`, originURL.hash].join('#')
|
385
|
387
|
|
386
|
388
|
return (
|
387
|
389
|
<Block>
|
388
|
390
|
{this.renderMaskBanner()}
|
389
|
|
- {webViewVisible && showH5 && <WebView src={`${pageInfo.h5Address}?${webUrlParams}`} />}
|
|
391
|
+ {webViewVisible && showH5 && <WebView src={webURL} />}
|
390
|
392
|
</Block>
|
391
|
393
|
)
|
392
|
394
|
}
|