闫增涛
2024-04-12 e68118a722857e52b9c83e08ac213621aac58c01
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!--packageBookService/pages/bookServices/detail/components/relatedBooks/index.wxml-->
<view class="reletedBooks fl ">
  <view
    wx:for="{{relatedBookData}}"
    wx:key="id"
    class="book-box"
    wx:if="{{relatedBookData.length && !relatedBookLoading}}"
    bind:tap="goBookDetails"
    data-item="{{item}}"
  >
    <view class="book-image"
      ><image
        src="{{item.icon ? item.icon : '/static/images/default-book-img.png'}}"
        mode="aspectFit"
    /></view>
    <text class="book-name">{{item.name}}</text>
  </view>
  <view class="noData" wx:if="{{noRelatedBookData}}">
    <t-empty icon="folder-open" description="暂无数据" />
  </view>
  <view class="loading-box" wx:if="{{relatedBookLoading}}">
    <t-skeleton
    row-col="{{[1,1,1,1,1,1]}}"
    theme="paragraph"
    animation="gradient"
    loading="{{relatedBookLoading}}"
  ></t-skeleton>
  </view>
</view>