|
@@ -27,7 +27,7 @@ export default class Index extends Component {
|
27
|
27
|
webViewVisible: false,
|
28
|
28
|
// pageHide: true,
|
29
|
29
|
pageInfo: {},
|
30
|
|
- codeParams: '', // 解析二维码参数
|
|
30
|
+ codeParams: {}, // 解析二维码参数
|
31
|
31
|
h5Id: undefined,
|
32
|
32
|
reportedCustomer: false,
|
33
|
33
|
}
|
|
@@ -39,7 +39,7 @@ export default class Index extends Component {
|
39
|
39
|
getQrCodeParams(this.$router.params.scene).then((res) => {
|
40
|
40
|
console.log(res, "解析二维码返回值")
|
41
|
41
|
this.setState({
|
42
|
|
- codeParams: res || '',
|
|
42
|
+ codeParams: res || {},
|
43
|
43
|
h5Id: res.id
|
44
|
44
|
}, () => {
|
45
|
45
|
if (isEmpty(res.id)) {
|
|
@@ -392,7 +392,7 @@ export default class Index extends Component {
|
392
|
392
|
`h5id=${h5Id}`,
|
393
|
393
|
`consultant=${consultant}`,
|
394
|
394
|
`firstShare=${firstShare}`,
|
395
|
|
- `codeParams=${encodeURIComponent(codeParams)}`,
|
|
395
|
+ `codeParams=${encodeURIComponent(codeParams['__raw'])}`,
|
396
|
396
|
].join('&')
|
397
|
397
|
|
398
|
398
|
const showH5 = !isEmpty(h5Id) && pageInfo.h5Address && pageInfo.h5Address !== 'about' && pageInfo.h5Address !== 'http://about' && pageInfo.h5Address !== 'https://about'
|