|
@@ -7,6 +7,7 @@ import ready from '@utils/ready'
|
7
|
7
|
import { reportClient } from '@services/report'
|
8
|
8
|
import { connect } from '@tarojs/redux'
|
9
|
9
|
import { ROLE_CODE } from '@constants/user'
|
|
10
|
+import { getQrCodeParams } from '@utils/qrcode'
|
10
|
11
|
import { getMiniQrcode, savePoint, updatePoint } from '@services/common'
|
11
|
12
|
const bgImg = require('@assets/helpgroup/bg.png')
|
12
|
13
|
|
|
@@ -289,9 +290,11 @@ export default class Index extends Component {
|
289
|
290
|
render() {
|
290
|
291
|
const { pageInfo, webViewVisible, codeParams } = this.state
|
291
|
292
|
const { userInfo: { person } } = this.props
|
|
293
|
+ const consultant = person.personType == ROLE_CODE['CONSULTANT'] ? person.userId : ""
|
292
|
294
|
const webUrlParams = [
|
293
|
295
|
`personId=${person.personId}`,
|
294
|
296
|
`h5id=${this.$router.params.id}`,
|
|
297
|
+ `consultant=${consultant}`,
|
295
|
298
|
`codeParams=${encodeURIComponent(codeParams)}`,
|
296
|
299
|
].join('&')
|
297
|
300
|
|