diff --git a/src/components/AiAreaPicker/AiAreaPicker.vue b/src/components/AiAreaPicker/AiAreaPicker.vue index bf0533e..8c19156 100644 --- a/src/components/AiAreaPicker/AiAreaPicker.vue +++ b/src/components/AiAreaPicker/AiAreaPicker.vue @@ -96,7 +96,6 @@ export default { areaId(v) { v && this.getFullArea() }, - fullArea: { handler(v) { this.$nextTick(() => { @@ -112,14 +111,14 @@ export default { this.handleInit() this.$refs.areaSelector.showPopup() }, - scrollHeight () { + scrollHeight() { var obj = this.createSelectorQuery() obj.select('#areaSelector').boundingClientRect() obj.exec(rect => { if (rect.length) { this.height = `calc(100% - ${rect[0].height}px)` } - }) + }) }, getFullArea() { let areaId = this.areaId || (this.all ? '' : this.$areaId) @@ -147,15 +146,15 @@ export default { }).then((res) => { if (res.data.length) { this.list = res.data - let self = this.fullArea.find((e) => e.id == this.areaId) - if (self.id && !this.isHideTown) { + let self = this.fullArea.find((e) => e.id == this.areaId) + if (!!self?.id && !this.isHideTown) { this.list.unshift(self) } } }) }, - isVillage (areaId) { + isVillage(areaId) { return areaId.substr(areaId.length - 3, 3) != '000' }, @@ -230,7 +229,7 @@ export default { color: #333; font-weight: bold; line-height: 112px; - margin-right: 72px; + margin-right: 72px !important; position: relative; &:last-of-type { @@ -286,7 +285,6 @@ export default { } .fixedTop { - // position: fixed; top: 0; width: 100%; left: 0;