ソースを参照

去掉组件滚动条禁止事件

谢杰标 2 年 前
コミット
15b565ce8a
1 ファイル変更13 行追加6 行削除
  1. 13 6
      pages/course/index.vue

+ 13 - 6
pages/course/index.vue

@@ -25,6 +25,7 @@
                 :current="current"
                 @change="change"
                 :scrollable="false"
+                font-size="32"
               ></u-tabs>
             </view>
           </view>
@@ -33,18 +34,19 @@
               <view class="u-line-1"
                 >{{ selObj.eName }}:{{ selObj.aliasName }}</view
               >
-              <u-icon name="arrow-down-fill" color="#000000" size="20"> </u-icon
+              <u-icon name="arrow-down-fill" color="#333333" size="20"> </u-icon
             ></view>
             <view class="line">|</view>
             <view class="check_search_input u-flex">
-              <img src="../../static/icon/icon-search.png" />
+              <!-- <img src="../../static/icon/icon-search.png" /> -->
+              <u-icon name="search" color="#333333" size="28"> </u-icon>
               <u-input
                 style="padding-left: 10rpx"
                 v-model="goodsName"
                 type="text"
                 :border="border"
                 placeholder="搜索"
-                @blur="initList"
+                @blur="blurSearch"
                 :auto-blur="true"
                 confirm-type="search"
                 :clearable="false"
@@ -351,7 +353,7 @@
         </view>
       </view>
     </view>
-    <u-popup v-model="show" mode="bottom" border-radius="32">
+    <u-popup v-model="show" mode="bottom" border-radius="32" :mask-close-able="false">
       <view class="popuBox">
         <view class="popuBox-title">选择分类</view>
         <view class="flex-d">
@@ -439,6 +441,7 @@ export default {
         },
       ],
       goodsName: "",
+      preGoodsName: "",
       list1: [],
       list2: [],
       list3: [],
@@ -478,6 +481,9 @@ export default {
     this.initList();
   },
   methods: {
+    blurSearch() {
+      this.preGoodsName != this.goodsName && this.initList();
+    },
     mergeBusiness() {
       this.paramList[0].educationTypeId = this.selObj.eId;
       this.paramList[0].businessId = this.selObj.bId;
@@ -562,6 +568,7 @@ export default {
       this.list1 = [];
       this.list2 = [];
       this.list3 = [];
+      this.preGoodsName = this.goodsName;
       this.courseList();
       this.bankList();
       this.liveList();
@@ -775,7 +782,7 @@ page {
   .lzs {
     width: 208rpx;
     height: 100%;
-    overflow-y: scroll;
+    overflow-x: auto;
     border-right: 2rpx solid #e8e8e8;
   }
 
@@ -783,7 +790,7 @@ page {
     margin-left: 32rpx;
     flex: 1;
     height: 100%;
-    overflow-y: scroll;
+    overflow-x: auto;
   }
 }
 .contentZ::-webkit-scrollbar {