From c96612e8a63ecef9590be0f8b5199277ec94e5b9 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期三, 18 九月 2024 18:43:12 +0800 Subject: [PATCH] 云学习购买目录,修改bug --- pages/digitalCourses/index.wxml | 73 ++++++++++++++++++++++++++++++------ 1 files changed, 60 insertions(+), 13 deletions(-) diff --git a/pages/digitalCourses/index.wxml b/pages/digitalCourses/index.wxml index 15d4087..940cc90 100644 --- a/pages/digitalCourses/index.wxml +++ b/pages/digitalCourses/index.wxml @@ -5,20 +5,45 @@ <view class="nacigationBar" style="width: 70%; height: {{navBarHeight}}px;"> <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" /> + <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> <view class="heardTab"> <view class="tabBox"> - <t-tabs defaultValue="{{active}}" bind:change="onTabsChange" t-class="custom-tabs"> - <t-tab-panel wx:for="{{tabList}}" wx:key="index" wx:for-item="item" label="{{item.name}}" value="{{index}}"> + <t-tabs + defaultValue="{{active}}" + bind:change="onTabsChange" + t-class="custom-tabs" + > + <t-tab-panel + wx:for="{{tabList}}" + wx:key="index" + wx:for-item="item" + label="{{item.name}}" + value="{{index}}" + > </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-item + options="{{sorter.options}}" + default-value="{{sorter.value}}" + bindchange="onSort" + /> </t-dropdown-menu> </view> </view> @@ -26,17 +51,39 @@ <view class="titleBox"> <view class="frameBox"></view> <view class="titleTextBox"> - <image src="/static/images/digitalCourses/zhuantitaolun@2x.png" mode="aspectFit" /> + <image + src="/static/images/digitalCourses/zhuantitaolun@2x.png" + mode="aspectFit" + /> </view> </view> - </view> - <t-skeleton theme="paragraph" animation="gradient" loading="{{contentLoading}}" class="content-loading" wx:if="{{contentLoading}}"></t-skeleton> - <scroll-view scroll-y="{{true}}" class="outsideContentBox" bindscrolltolower="onScrollToLower" wx:if="{{!contentLoading}}"> + <t-skeleton + theme="paragraph" + animation="gradient" + loading="{{contentLoading}}" + class="content-loading" + wx:if="{{contentLoading}}" + ></t-skeleton> + <scroll-view + scroll-y="{{true}}" + class="outsideContentBox" + bindscrolltolower="onScrollToLower" + wx:if="{{!contentLoading}}" + > <view class="ExternalInformationBox"> - <view class="informationBox" wx:for="{{courseList}}" wx:key="index" wx:for-item="item" data-item="{{item}}"> + <view + class="informationBox" + wx:for="{{courseList}}" + wx:key="index" + wx:for-item="item" + data-item="{{item}}" + > <view class="book-img" bind:tap="courseDetail" data-item="{{item}}"> - <image src="{{item.icon ? item.icon : 'https://jsek.bnuic.com/home/image/courseIcon.png'}}" mode="aspectFit" /> + <image + src="{{item.icon ? item.icon : 'https://jsek.bnuic.com/home/image/courseIcon.png'}}" + mode="aspectFit" + /> </view> <view class="book-Info"> <view class="book-name" bind:tap="courseDetail" data-item="{{item}}"> @@ -57,8 +104,8 @@ </view> </view> </view> - <view wx:if="{{courseList.length <= 0 && !contentLoading}}" class="noDataBox"> + <view wx:if="{{noData}}" class="noDataBox"> <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" font-size="80" /> </view> </scroll-view> -</view> \ No newline at end of file +</view> -- Gitblit v1.9.1