xujing před 5 roky
rodič
revize
39878fa9fc
1 změnil soubory, kde provedl 14 přidání a 3 odebrání
  1. 14
    3
      src/onlineSelling/pages/houseList/index.js

+ 14
- 3
src/onlineSelling/pages/houseList/index.js Zobrazit soubor

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