소스 검색

reportClientFn

xujing 5 년 전
부모
커밋
a97477f988

+ 2
- 1
src/pages/activity/detail/assemble.js 파일 보기

@@ -346,7 +346,8 @@ export default class Detail extends Component {
346 346
 
347 347
   // 报备客户
348 348
   reportClientFn() {
349
-    const consultant = this.$router.params.consultant || ""
349
+    const { qrcodeParams } = this.state
350
+    const consultant = this.$router.params.consultant || qrcodeParams.consultant || ""
350 351
     const { userInfo: { person } } = this.props
351 352
 
352 353
     if (!this.state.reportedCustomer) {

+ 2
- 1
src/pages/activity/detail/assistance.js 파일 보기

@@ -350,7 +350,8 @@ export default class Detail extends Component {
350 350
   // 报备客户
351 351
   reportClientFn() {
352 352
 
353
-    const consultant = this.$router.params.consultant || ""
353
+    const { qrcodeParams } = this.state
354
+    const consultant = this.$router.params.consultant || qrcodeParams.consultant || ""
354 355
     const { userInfo: { person } } = this.props
355 356
 
356 357
     if (!this.state.reportedCustomer) {

+ 4
- 3
src/pages/activity/detail/index.js 파일 보기

@@ -150,15 +150,16 @@ export default class Detail extends Component {
150 150
         })
151 151
       })
152 152
     }
153
-
153
+    debugger
154 154
     this.reportClientFn()
155 155
   }
156 156
 
157 157
   // 报备客户
158 158
   reportClientFn() {
159
-    const consultant = this.$router.params.consultant || ""
159
+    const { qrcodeParams } = this.state
160
+    const consultant = this.$router.params.consultant || qrcodeParams.consultant || ""
160 161
     const { userInfo: { person } } = this.props
161
-
162
+    debugger
162 163
     if (!this.state.reportedCustomer) {
163 164
       reportCustomer(person, consultant).then(() => {
164 165
         this.setState({ reportedCustomer: true })

+ 2
- 1
src/pages/news/detail/index.js 파일 보기

@@ -120,7 +120,8 @@ export default class NewsDetail extends Component {
120 120
 
121 121
   // 报备客户
122 122
   reportClientFn() {
123
-    const consultant = this.$router.params.consultant || ""
123
+    const { qrcodeParams } = this.state
124
+    const consultant = this.$router.params.consultant || qrcodeParams.consultant || ""
124 125
     const { userInfo: { person } } = this.props
125 126
 
126 127
     if (!this.state.reportedCustomer) {

+ 2
- 1
src/pages/project/detail/index.js 파일 보기

@@ -129,7 +129,8 @@ export default class Index extends Component {
129 129
 
130 130
   // 报备客户
131 131
   reportClientFn() {
132
-    const consultant = this.$router.params.consultant || ""
132
+    const { qrcodeParams } = this.state
133
+    const consultant = this.$router.params.consultant || qrcodeParams.consultant || ""
133 134
     const { userInfo: { person } } = this.props
134 135
 
135 136
     if (!this.state.reportedCustomer) {