| | |
| | | |
| | | _fetchData(page) { |
| | | const { area, onlineValue, sceneValue } = this.data; |
| | | if (!onlineValue || !sceneValue) return; |
| | | area.scensetypeid = sceneValue[0]; |
| | | area.online = onlineValue; |
| | | area.online = onlineValue[0]; |
| | | return searchScene(area, page).then(res => { |
| | | if (res.success) { |
| | | this.setData({ |
| | |
| | | |
| | | onLocationChange(e) { |
| | | const { area } = this.data; |
| | | area.provinceName = e.detail.provinceText; |
| | | area.cityName = e.detail.cityText; |
| | | area.districtName = e.detail.districtText; |
| | | area.townName = e.detail.townText; |
| | | area.provinceCode = e.detail.provinceValue; |
| | | area.cityCode = e.detail.cityValue; |
| | | area.districtCode = e.detail.districtValue; |
| | | area.townCode = e.detail.townValue; |
| | | area.provincename = e.detail.provinceText; |
| | | area.cityname = e.detail.cityText; |
| | | area.districtname = e.detail.districtText; |
| | | area.townname = e.detail.townText; |
| | | area.provincecode = e.detail.provinceValue; |
| | | area.citycode = e.detail.cityValue; |
| | | area.districtcode = e.detail.districtValue; |
| | | area.towncode = e.detail.townValue; |
| | | area.locationValue = e.detail.locationValue; |
| | | this.setData({ area }); |
| | | this._startLoad(); |