Showing
1 changed file
with
5 additions
and
10 deletions
@@ -196,25 +196,22 @@ | @@ -196,25 +196,22 @@ | ||
196 | case 2: | 196 | case 2: |
197 | this.province.id = id; | 197 | this.province.id = id; |
198 | this.province.title = caption; | 198 | this.province.title = caption; |
199 | - this.city.showList = true; | 199 | + this.city.showList = this.province.titleActive = true; |
200 | this.province.showList = this.area.showList = this.street.showList = false; | 200 | this.province.showList = this.area.showList = this.street.showList = false; |
201 | - this.province.titleActive = true; | ||
202 | this.city.titleActive = this.area.titleActive = this.street.titleActive = false; | 201 | this.city.titleActive = this.area.titleActive = this.street.titleActive = false; |
203 | break; | 202 | break; |
204 | case 4: | 203 | case 4: |
205 | this.city.id = id; | 204 | this.city.id = id; |
206 | this.city.title = caption; | 205 | this.city.title = caption; |
207 | - this.area.showList = true; | 206 | + this.area.showList = this.city.titleActive = true; |
208 | this.province.showList = this.city.showList = this.street.showList = false; | 207 | this.province.showList = this.city.showList = this.street.showList = false; |
209 | - this.city.titleActive = true; | ||
210 | this.province.titleActive = this.area.titleActive = this.street.titleActive = false; | 208 | this.province.titleActive = this.area.titleActive = this.street.titleActive = false; |
211 | break; | 209 | break; |
212 | case 6: | 210 | case 6: |
213 | this.area.id = id; | 211 | this.area.id = id; |
214 | this.area.title = caption; | 212 | this.area.title = caption; |
215 | - this.street.showList = true; | 213 | + this.street.showList = this.area.titleActive = true; |
216 | this.province.showList = this.city.showList = this.area.showList = false; | 214 | this.province.showList = this.city.showList = this.area.showList = false; |
217 | - this.area.titleActive = true; | ||
218 | this.province.titleActive = this.city.titleActive = this.street.titleActive = false; | 215 | this.province.titleActive = this.city.titleActive = this.street.titleActive = false; |
219 | break; | 216 | break; |
220 | case 9: // 一定要返回结果了 | 217 | case 9: // 一定要返回结果了 |
@@ -224,16 +221,14 @@ | @@ -224,16 +221,14 @@ | ||
224 | } else { | 221 | } else { |
225 | this.street.title = caption; | 222 | this.street.title = caption; |
226 | } | 223 | } |
227 | - this.street.showList = true; | 224 | + this.street.showList =this.street.titleActive = true; |
228 | this.province.showList = this.city.showList = this.area.showList = false; | 225 | this.province.showList = this.city.showList = this.area.showList = false; |
229 | - this.street.titleActive = true; | ||
230 | this.province.titleActive = this.city.titleActive = this.area.titleActive = false; | 226 | this.province.titleActive = this.city.titleActive = this.area.titleActive = false; |
231 | break; | 227 | break; |
232 | default: | 228 | default: |
233 | this.province.title = '请选择'; | 229 | this.province.title = '请选择'; |
234 | - this.province.showList = true; | 230 | + this.province.showList = this.province.titleActive = true; |
235 | this.city.showList = this.area.showList = this.street.showList = false; | 231 | this.city.showList = this.area.showList = this.street.showList = false; |
236 | - this.province.titleActive = true; | ||
237 | this.city.titleActive = this.area.titleActive = this.street.titleActive = false; | 232 | this.city.titleActive = this.area.titleActive = this.street.titleActive = false; |
238 | break; | 233 | break; |
239 | } | 234 | } |
-
Please register or login to post a comment