xujing 5 vuotta sitten
vanhempi
commit
39878fa9fc
1 muutettua tiedostoa jossa 14 lisäystä ja 3 poistoa
  1. 14
    3
      src/onlineSelling/pages/houseList/index.js

+ 14
- 3
src/onlineSelling/pages/houseList/index.js Näytä tiedosto

63
     loading: true,
63
     loading: true,
64
     dataType: 1,
64
     dataType: 1,
65
     recordId: undefined, // 埋点ID
65
     recordId: undefined, // 埋点ID
66
+    queryInfo: {}
66
   }
67
   }
67
 
68
 
68
 
69
 
115
 
116
 
116
     if (this.$router.params.scene) {
117
     if (this.$router.params.scene) {
117
       getQrCodeParams(this.$router.params.scene).then((res) => {
118
       getQrCodeParams(this.$router.params.scene).then((res) => {
118
-        this.setState({ id: res.id, qrcodeParams: res }, () => {
119
+        this.setState({
120
+          id: res.id,
121
+          qrcodeParams: res,
122
+          queryInfo: {
123
+            channelId: res.channelId || '',
124
+            qrCodeId: res.qrCodeId || '',
125
+            scene: this.$router.params.scene,
126
+          }
127
+        }, () => {
119
           this.getInfo(res.id)
128
           this.getInfo(res.id)
120
           this.anotherInfo(res.id)
129
           this.anotherInfo(res.id)
121
         })
130
         })
128
   }
137
   }
129
 
138
 
130
   getInfo(id) {
139
   getInfo(id) {
131
-    const { startPrice, endPrice, apartmentId } = this.state
140
+    const { startPrice, endPrice, apartmentId, queryInfo } = this.state
132
     const params = {
141
     const params = {
133
       salesBatchId: id,
142
       salesBatchId: id,
134
       startPrice,
143
       startPrice,
137
       pageNum: 1,
146
       pageNum: 1,
138
       pageSize: 9999,
147
       pageSize: 9999,
139
       showToast: false,
148
       showToast: false,
149
+      ...queryInfo
140
     }
150
     }
141
     queryHouseList(params).then(res => {
151
     queryHouseList(params).then(res => {
142
       this.setState({
152
       this.setState({
175
       })
185
       })
176
     })
186
     })
177
     // this.reportClientFn()
187
     // this.reportClientFn()
178
-    let { qrcodeParams } = this.state
188
+    let { qrcodeParams, queryInfo } = this.state
179
     const consultant = this.$router.params.consultant || qrcodeParams.consultant
189
     const consultant = this.$router.params.consultant || qrcodeParams.consultant
180
     const consultantId = this.$router.params.consultantId || qrcodeParams.consultantId || ""
190
     const consultantId = this.$router.params.consultantId || qrcodeParams.consultantId || ""
181
     const recommender = this.$router.params.recommender || qrcodeParams.recommender || ""
191
     const recommender = this.$router.params.recommender || qrcodeParams.recommender || ""
204
         consultantId: consultantId,
214
         consultantId: consultantId,
205
         sharePersonId: recommender,
215
         sharePersonId: recommender,
206
         data: '{}',
216
         data: '{}',
217
+        ...queryInfo
207
 
218
 
208
       }).then(res => {
219
       }).then(res => {
209
         this.setState({
220
         this.setState({