xujing 5 years ago
parent
commit
4b74007902
1 changed files with 6 additions and 4 deletions
  1. 6
    4
      src/pages/project/h5Page.js

+ 6
- 4
src/pages/project/h5Page.js View File

123
 
123
 
124
   // 埋点
124
   // 埋点
125
   success() {
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
     const h5Id = this.state.h5Id || this.$router.params.id
130
     const h5Id = this.state.h5Id || this.$router.params.id
130
 
131
 
131
     savePoint({
132
     savePoint({
318
 
319
 
319
   // 报备客户
320
   // 报备客户
320
   reportClient() {
321
   reportClient() {
321
-    const consultant = this.$router.params.consultant || ""
322
+    const { codeParams } = this.state
323
+    const consultant = this.$router.params.consultant || codeParams.consultant || ""
322
     const { userInfo: { person: { phone, tel, personId, userId, personType } } } = this.props
324
     const { userInfo: { person: { phone, tel, personId, userId, personType } } } = this.props
323
     const isConsultant = personType == ROLE_CODE['CONSULTANT']
325
     const isConsultant = personType == ROLE_CODE['CONSULTANT']
324
 
326