From 892efc9976feb68ce1a3a4d759317e2585d67ebe Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期六, 07 九月 2024 18:16:18 +0800 Subject: [PATCH] bug修改 --- pages/digitalTextbooks/index.wxml | 160 ++++++++++++++++++++++++++++++++--------------------- 1 files changed, 96 insertions(+), 64 deletions(-) diff --git a/pages/digitalTextbooks/index.wxml b/pages/digitalTextbooks/index.wxml index 5d0f106..4ae678c 100644 --- a/pages/digitalTextbooks/index.wxml +++ b/pages/digitalTextbooks/index.wxml @@ -4,73 +4,105 @@ <view wx:if="{{!loading}}"> <view style="width: 100%; height: {{barHeight}}px;"></view> <view class="nacigationBar" style="width: 70%; height: {{navBarHeight}}px;"> - <view> - <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> + <view class="back-icon"> + <!-- <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> --> + <image + src="/static/images/digitalTextbooks/chevron-left.png" + bind:tap="goBack" + mode="aspectFit" + /> </view> - <t-search model:value="{{searchValue}}" shape="round" placeholder="璇疯緭鍏ュ叧閿瘝/涔﹀悕/ISBN/浣滆��" class="navBar-search" style="width: 464rpx" bind:submit="searchBook" /> + <t-search + model:value="{{searchValue}}" + shape="round" + placeholder="璇疯緭鍏ユ暀鏉愬悕绉�/ISBN/浣滆��" + class="navBar-search" + style="width: 464rpx" + bind:submit="searchBook" + /> </view> - <t-tabs defaultValue="{{0}}" bind:change="selectTab" t-class="custom-tabs" t-class-content="custom-panel"> - <t-tab-panel wx:for="{{tabList}}" wx:key="index" wx:for-item="item" wx:for-index="index" label="{{item.name}}" value="{{index}}" style="{{tabPanelstyle}}"> - - <view class="contentBox"> - - <view class="titleBox"> - <view class="frameBox"></view> - <view class="titleTextBox"> - <!-- <image src="/static/images/digitalCourses/zhuantitaolun@2x.png" mode="aspectFit" /> --> - <view>鏁板瓧鏁欐潗鍒楄〃</view> + <view class="heardTab"> + <view class="tabBox"> + <t-tabs + defaultValue="{{0}}" + bind:change="selectTab" + t-class="custom-tabs" + > + <t-tab-panel + wx:for="{{tabList}}" + wx:key="index" + wx:for-item="item" + label="{{item.name}}" + value="{{index}}" + style="{{tabPanelstyle}}" + > + </t-tab-panel> + </t-tabs> + </view> + <view class="dropdown"> + <t-dropdown-menu> + <t-dropdown-item + options="{{sorter.options}}" + default-value="{{sorter.value}}" + bindchange="onSort" + /> + </t-dropdown-menu> + </view> + </view> + <view class="contentBox"> + <view class="titleBox"> + <view class="frameBox"></view> + <view class="titleTextBox"> + <!-- <image src="/static/images/digitalCourses/zhuantitaolun@2x.png" mode="aspectFit" /> --> + <view>鏁板瓧鏁欐潗鍒楄〃</view> + </view> + </view> + <scroll-view + scroll-y="{{true}}" + class="outsideContentBox" + bindscrolltolower="onScrollToLower" + > + <view class="bookContentBox"> + <view + class="external" + wx:for="{{digitalTextbooksData}}" + wx:key="index" + wx:for-item="item" + wx:for-index="index" + data-item="{{item}}" + bind:tap="jumpDetails" + > + <view class="amountClick"> + <t-icon + name="browse" + size="15" + data-name="{{item}}" + bind:click="goBack" + /> + <view style="margin-left: 5rpx">{{item.viewCount}}</view> + </view> + <view class="imageBox"> + <image + src="{{item.icon ? item.icon : '/static/images/default-book-img.png'}}" + mode="" + /> + </view> + <view class="bookName">{{item.name}}</view> + <view class="information"> + <view wx:if="{{item.author}}" class="book-author"> + {{ item.author }} + </view> + <view wx:else>-</view> + <view wx:if="{{item.price == 0}}" class="price"> 鍏嶈垂</view> + <view wx:else class="price">锟{ item.price }}</view> </view> </view> - - - - <scroll-view scroll-y="{{true}}" class="outsideContentBox" bindscrolltolower="onScrollToLower"> - - - <view class="bookContentBox"> - <view class="external" wx:for="{{digitalTextbooksData}}" wx:key="index" wx:for-item="item" wx:for-index="index" data-item="{{item}}" bind:tap="jumpDetails"> - <view class="amountClick"> - <t-icon name="browse" size="15" data-name="{{item}}" bind:click="goBack" /> - <view style="margin-left: 5rpx;">{{item.viewCount}}</view> - </view> - <view class="imageBox"> - <image src="{{item.icon ? item.icon : '/static/images/default-book-img.png'}}" mode="" /> - </view> - <view class="bookName">{{item.name}}</view> - <view class="information"> - <view wx:if="{{item.author}}" class="book-author"> - {{ item.author }} - </view> - <view wx:else>-</view> - <view wx:if="{{item.price == 0}}" class="price"> 鍏嶈垂</view> - <view wx:else class="price">锟{ item.price }}</view> - </view> - </view> - - <view wx:if="{{!digitalTextbooksData.length }}" class="noData"> - <!-- <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" /> --> - <empty /> - </view> - </view> - - - </scroll-view> - - - - - - - - + <view wx:if="{{!digitalTextbooksData.length }}" class="noData"> + <!-- <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" /> --> + <empty /> + </view> </view> - - </t-tab-panel> - - </t-tabs> - - - - -</view> \ No newline at end of file + </scroll-view> + </view> +</view> -- Gitblit v1.9.1