| | |
| | | margin-left: 0.31rem; |
| | | cursor: pointer; |
| | | " |
| | | >高级搜索 ﹀</view |
| | | >高级搜索 ∨</view |
| | | > |
| | | </view> |
| | | <!-- 高级搜索 --> |
| | |
| | | v-if="isAdvancedSearch" |
| | | style="padding: 0 1.24rem; margin-bottom: 0.18rem" |
| | | > |
| | | <view style="background-color: #fff; padding: 0.29rem" class=""> |
| | | <view style="background-color: #fff; padding: 0.29rem" > |
| | | <h3>高级搜索</h3> |
| | | <MyForm @submit="onSubmit" :from="from" /> |
| | | </view> |
| | |
| | | default() { |
| | | return true; |
| | | } |
| | | }, |
| | | advancedSearchBack: { |
| | | type: Function |
| | | }, |
| | | isSearchTrue: { |
| | | type: Boolean, |
| | |
| | | }, |
| | | methods: { |
| | | isAvancedClick() { |
| | | this.isAdvancedSearch = !this.isAdvancedSearch; |
| | | if (this.advancedSearchBack) { |
| | | this.advancedSearchBack(); |
| | | } else { |
| | | this.isAdvancedSearch = !this.isAdvancedSearch; |
| | | } |
| | | // this.$nextTick(() => { |
| | | |
| | | // var box1Height = document.querySelector('.fbox').offsetHeight; |
| | | // // let box2Height= document.querySelector('.fbox1').style.height = box1Height + 'px'; |
| | | // let box2Height = document.querySelector('.fbox1').offsetHeight |
| | | // console.log(box1Height, box2Height); |
| | | // if (box1Height <= box2Height) { |
| | | // document.querySelector('.fbox1').style.height = box1Height + 'px'; |
| | | // } |
| | |
| | | }, |
| | | onSubmit(val) { |
| | | this.$emit("onSubmit", val); |
| | | // console.log(val); |
| | | } |
| | | } |
| | | }; |