闫增涛
2024-04-12 672575a32ecd7f8e0bcd76152040657e9e57328a
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
30
31
32
33
34
35
36
37
38
39
40
41
42
<!--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}}">
    <!-- relatedBookLoading -->
    <t-skeleton
      rowCol="{{rowCol}}"
      theme="paragraph"
      animation="gradient"
      loading="{{true}}"
    ></t-skeleton>
    <t-skeleton
      rowCol="{{rowCol}}"
      theme="paragraph"
      animation="gradient"
      loading="{{true}}"
    ></t-skeleton>
    <t-skeleton
      rowCol="{{rowCol}}"
      theme="paragraph"
      animation="gradient"
      loading="{{true}}"
    ></t-skeleton>
  </view>
</view>