1
杨磊
2024-06-07 a75de95cd5481bc782caee3b3a3cdd52f991f944
src/components/advancedSearch/advancedSearch.vue
@@ -19,7 +19,7 @@
          margin-left: 0.31rem;
          cursor: pointer;
        "
        >高级搜索 ﹀</view
        >高级搜索 ∨</view
      >
    </view>
    <!-- 高级搜索 -->
@@ -28,7 +28,7 @@
      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>
@@ -45,6 +45,9 @@
      default() {
        return true;
      }
    },
    advancedSearchBack: {
      type: Function
    },
    isSearchTrue: {
      type: Boolean,
@@ -141,13 +144,16 @@
  },
  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';
      //       }
@@ -158,7 +164,6 @@
    },
    onSubmit(val) {
      this.$emit("onSubmit", val);
      // console.log(val);
    }
  }
};