xujing 5 vuotta sitten
vanhempi
commit
4b74007902
1 muutettua tiedostoa jossa 6 lisäystä ja 4 poistoa
  1. 6
    4
      src/pages/project/h5Page.js

+ 6
- 4
src/pages/project/h5Page.js Näytä tiedosto

@@ -123,9 +123,10 @@ export default class Index extends Component {
123 123
 
124 124
   // 埋点
125 125
   success() {
126
-    const firstShare = this.$router.params.firstShare || ""
127
-    const consultant = this.$router.params.consultant || ""
128
-    const sharePersonId = this.$router.params.sharePersonId || ""
126
+    const { codeParams } = this.state
127
+    const firstShare = this.$router.params.firstShare || codeParams.firstShare || ""
128
+    const consultant = this.$router.params.consultant || codeParams.consultant || ""
129
+    const sharePersonId = this.$router.params.sharePersonId || codeParams.sharePersonId || ""
129 130
     const h5Id = this.state.h5Id || this.$router.params.id
130 131
 
131 132
     savePoint({
@@ -318,7 +319,8 @@ export default class Index extends Component {
318 319
 
319 320
   // 报备客户
320 321
   reportClient() {
321
-    const consultant = this.$router.params.consultant || ""
322
+    const { codeParams } = this.state
323
+    const consultant = this.$router.params.consultant || codeParams.consultant || ""
322 324
     const { userInfo: { person: { phone, tel, personId, userId, personType } } } = this.props
323 325
     const isConsultant = personType == ROLE_CODE['CONSULTANT']
324 326