|
@@ -8,7 +8,7 @@
|
|
|
|
|
|
|
|
<!-- 书籍列表 -->
|
|
<!-- 书籍列表 -->
|
|
|
<view class="content-wrapper">
|
|
<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">
|
|
:params="searchParams" @updateList="handleUpdateList">
|
|
|
<view class="book-list">
|
|
<view class="book-list">
|
|
|
<view class="book-item" v-for="(item, index) in bookList" :key="index">
|
|
<view class="book-item" v-for="(item, index) in bookList" :key="index">
|
|
@@ -74,14 +74,6 @@ export default {
|
|
|
methods: {
|
|
methods: {
|
|
|
// 处理搜索
|
|
// 处理搜索
|
|
|
handleSearch() {
|
|
handleSearch() {
|
|
|
- if (!this.searchKeyword.trim()) {
|
|
|
|
|
- uni.showToast({
|
|
|
|
|
- title: '请输入搜索关键词',
|
|
|
|
|
- icon: 'none'
|
|
|
|
|
- });
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
this.searchParams = {
|
|
this.searchParams = {
|
|
|
searchContent: this.searchKeyword.trim()
|
|
searchContent: this.searchKeyword.trim()
|
|
|
};
|
|
};
|
|
@@ -126,11 +118,11 @@ export default {
|
|
|
z-index: 999;
|
|
z-index: 999;
|
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
|
padding: 20rpx 30rpx;
|
|
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 {
|
|
.content-wrapper {
|
|
|
- margin-top: 120rpx; /* 为固定搜索框留出空间 */
|
|
|
|
|
|
|
+ margin-top: 130rpx; /* 为固定搜索框留出空间 */
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.book-list {
|
|
.book-list {
|