<!--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>
|