From dcd5065a6ed1b75b0e3c1491d267ab73b4997f11 Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期四, 06 六月 2024 11:38:59 +0800 Subject: [PATCH] 数字教材详情 --- pages/digitalTextbooks/index.wxml | 102 +++++++++++++++++++++++++++----------------------- 1 files changed, 55 insertions(+), 47 deletions(-) diff --git a/pages/digitalTextbooks/index.wxml b/pages/digitalTextbooks/index.wxml index 94baf84..27567e6 100644 --- a/pages/digitalTextbooks/index.wxml +++ b/pages/digitalTextbooks/index.wxml @@ -1,63 +1,71 @@ <!--pages/digitalTextbooks/digitalTextbooks.wxml--> - -<view class="fixed-header"> - <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> - <t-search model:value="{{searchValue}}" shape="round" placeholder="璇疯緭鍏ュ叧閿瘝/涔﹀悕/ISBN/浣滆��" class="navBar-search" style="width: 464rpx" bind:submit="searchBook" /> - </view> +<import src="index.skeleton.wxml" /> +<template is="skeleton" wx:if="{{loading}}" /> +<view wx:if="{{!loading}}"> - <view class="tabBox"> - <view wx:for="{{tabList}}" wx:key="index" wx:for-item="item" wx:for-index="index" class="{{selectedIndex == index? 'nameBox' :''}}" data-index="{{index}}" bind:tap="selectTab"> + + <view class="fixed-header"> + <view style="width: 100%; height: {{barHeight}}px;"></view> + <view class="nacigationBar" style="width: 70%; height: {{navBarHeight}}px;"> <view> - {{item.name}} + <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> </view> - <view style="margin-top: 20rpx; " class="{{selectedIndex == index? 'bottomLineBox' :''}}"></view> + <t-search model:value="{{searchValue}}" shape="round" placeholder="璇疯緭鍏ュ叧閿瘝/涔﹀悕/ISBN/浣滆��" class="navBar-search" style="width: 464rpx" bind:submit="searchBook" /> </view> - </view> - -</view> -<view class="contentBox"> - - <view class="titleBox"> - <view class="frameBox"></view> - <view class="titleTextBox"> - <!-- <image src="/static/images/bookExhibitionList/zhuantitaolun.png" mode="aspectFit" /> --> - - <view>鏁板瓧鏁欐潗鍒楄〃</view> - </view> - </view> - - - - <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>{{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 class="tabBox"> + <view wx:for="{{tabList}}" wx:key="index" wx:for-item="item" wx:for-index="index" class="{{selectedIndex == index? 'nameBox' :''}}" data-index="{{index}}" bind:tap="selectTab"> + <view> + {{item.name}} </view> - <view wx:else>-</view> - <view wx:if="{{item.price == 0}}" class="price"> 鍏嶈垂</view> - <view wx:else class="price">锟{ item.price }}</view> + <view style="margin-top: 20rpx; " class="{{selectedIndex == index? 'bottomLineBox' :''}}"></view> </view> </view> - <view wx:if="{{!digitalTextbooksData.length }}" class="noData"> - <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" /> + + </view> + + + + <view class="contentBox"> + + <view class="titleBox"> + <view class="frameBox"></view> + <view class="titleTextBox"> + <!-- <image src="/static/images/bookExhibitionList/zhuantitaolun.png" mode="aspectFit" /> --> + + <view>鏁板瓧鏁欐潗鍒楄〃</view> + </view> + </view> + + + + <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="鏆傛棤鏁版嵁" /> + </view> </view> </view> + </view> \ No newline at end of file -- Gitblit v1.9.1