From 230c0da617bed5093b3b2832d9b53962bb5c6781 Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期五, 22 三月 2024 10:46:39 +0800
Subject: [PATCH] 上拉刷新下拉加载

---
 pages/home/home.wxml |   21 +++++++++++++--------
 1 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/pages/home/home.wxml b/pages/home/home.wxml
index d96f714..ec9da0d 100644
--- a/pages/home/home.wxml
+++ b/pages/home/home.wxml
@@ -1,15 +1,21 @@
+
+     
+
+
+
 <view style="text-align: center; color: #b9b9b9" wx:if="{{pageLoading}}">
   <t-loading theme="circular" size="40rpx" text="鍔犺浇涓�..." inherit-color />
 </view>
-<view class="background {{ isWhite ? 'white':''}}">
+
+<view class="background {{ isWhite ? 'white':''}}" style="padding-top: {{barHeight}}px">
   <text class="text">浜笀E璇�</text>
 </view>
 <view class="home-page-header">
   <view class="bg">
-    <image src="/static/images/home/home-bg@2x.png" mode="heightFix" class="image" />
+    <image src="/static/images/home/home-bg.png" mode="heightFix" class="image" />
   </view>
   <view class="search">
-    <t-search t-class-input="t-search__input" t-class-input-container="t-search__input-container" placeholder="璇疯緭鍏ュ叧閿瘝/涔﹀悕/ISBN/浣滆��" leftIcon="">
+    <t-search t-class-input="t-search__input" t-class-input-container="t-search__input-container" placeholder="璇疯緭鍏ュ叧閿瘝/涔﹀悕/ISBN/浣滆��" leftIcon="" bind:submit="onRetrievalPage" model:value="{{searchVal}}">
       <t-icon slot="left-icon" prefix="wr" name="search" size="40rpx" color="#bbb" bind:tap="navToSearchPage" />
     </t-search>
   </view>
@@ -63,7 +69,7 @@
       </view>
     </view>
     <view class="home-page-tabs">
-      <t-tabs t-class="t-tabs" t-class-active="tabs-external__active" t-class-item="tabs-external__item" defaultValue="{{activeItem}}" space-evenly="{{false}}" bind:change="tabChangeHandle">
+      <t-tabs t-class="t-tabs" split="{{false}}" defaultValue="{{activeItem}}" bind:change="tabChangeHandle">
         <t-tab-panel wx:for="{{courseTypeList}}" wx:for-index="index" wx:key="index" label="{{item.name}}" value="{{index}}" />
       </t-tabs>
     </view>
@@ -103,7 +109,7 @@
       </view>
     </view>
     <view class="home-page-tabs">
-      <t-tabs t-class="t-tabs" t-class-active="tabs-external__active" t-class-item="tabs-external__item" defaultValue="{{activeItem1}}" space-evenly="{{false}}" bind:change="tabBookClick">
+      <t-tabs t-class="t-tabs" split="{{false}}" defaultValue="{{activeItem1}}" bind:change="tabBookClick">
         <t-tab-panel wx:for="{{bookTypeList}}" wx:for-index="index" wx:key="index" label="{{item.name}}" value="{{index}}" />
       </t-tabs>
     </view>
@@ -157,7 +163,7 @@
       </view>
     </view>
     <view class="listBox3">
-      <view wx:if="{{textbookList.length > 0}}" class="listBox3">
+      <view wx:if="{{textbookList.length > 0}}">
         <view wx:for="{{textbookList}}" wx:for-item="item" wx:for-index="index" wx:key="index" class="textbooksItemBox">
           <view class="listItem flex">
             <view class="specialSubject-img">
@@ -195,13 +201,12 @@
             </view>
             <view class="body-info">
               <view class="name">{{item.name}}</view>
-              <view class="author">{{item.author}}</view>
+              <!-- <view class="author">{{item.author}}</view> -->
             </view>
           </view>
         </view>
       </scroll-view>
     </view>
   </view>
-  <load-more list-is-empty="{{!goodsList.length}}" status="{{goodsListLoadStatus}}" bind:retry="onReTry" />
   <t-toast id="t-toast" />
 </view>
\ No newline at end of file

--
Gitblit v1.9.1