xujing před 5 roky
rodič
revize
1baa73af9f
2 změnil soubory, kde provedl 3 přidání a 8 odebrání
  1. 3
    0
      src/pages/project/h5Page.js
  2. 0
    8
      src/utils/request.js

+ 3
- 0
src/pages/project/h5Page.js Zobrazit soubor

@@ -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
 

+ 0
- 8
src/utils/request.js Zobrazit soubor

@@ -92,13 +92,6 @@ export const fetch = async (options) => {
92 92
     if (err.message) {
93 93
       errMessage = err.message
94 94
     }
95
-<<<<<<< HEAD
96
-    
97
-    Taro.showToast({
98
-      title: errMessage,
99
-      icon: 'none'
100
-    })
101
-=======
102 95
     if (showMessage) {
103 96
 
104 97
       Taro.showToast({
@@ -106,7 +99,6 @@ export const fetch = async (options) => {
106 99
         icon: 'none'
107 100
       })
108 101
     }
109
->>>>>>> cbe91908d12d4a713e5490b4702108ce3186a31e
110 102
 
111 103
     throw new Error(errMessage)
112 104
   })