فهرست منبع

fix 修改激活码搜索的问题

ylong 4 ماه پیش
والد
کامیت
2720e0ecfe
1فایلهای تغییر یافته به همراه3 افزوده شده و 11 حذف شده
  1. 3 11
      pages/code/search.vue

+ 3 - 11
pages/code/search.vue

@@ -8,7 +8,7 @@
 
         <!-- 书籍列表 -->
         <view class="content-wrapper">
-            <page-scroll ref="pageScroll" url="/token/activation/infoList" :immediate="false" :slot-empty="true"
+            <page-scroll ref="pageScroll" url="/token/activation/infoList" :immediate="true" :slot-empty="true"
                 :params="searchParams" @updateList="handleUpdateList">
             <view class="book-list">
                 <view class="book-item" v-for="(item, index) in bookList" :key="index">
@@ -74,14 +74,6 @@ export default {
     methods: {
         // 处理搜索
         handleSearch() {
-            if (!this.searchKeyword.trim()) {
-                uni.showToast({
-                    title: '请输入搜索关键词',
-                    icon: 'none'
-                });
-                return;
-            }
-
             this.searchParams = {
                 searchContent: this.searchKeyword.trim()
             };
@@ -126,11 +118,11 @@ export default {
     z-index: 999;
     background-color: #fff;
     padding: 20rpx 30rpx;
-    box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
+    box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.04);
 }
 
 .content-wrapper {
-    margin-top: 120rpx; /* 为固定搜索框留出空间 */
+    margin-top: 130rpx; /* 为固定搜索框留出空间 */
 }
 
 .book-list {