feat: 分类接口替换为api 接口
This commit is contained in:
@@ -55,9 +55,7 @@
|
||||
wx:for="{{displayItems}}"
|
||||
wx:key="id"
|
||||
class="cat-card {{item.skeleton ? 'cat-card--skeleton' : ''}}"
|
||||
data-path="{{item.path}}"
|
||||
data-title="{{item.title}}"
|
||||
data-available="{{item.available}}"
|
||||
data-id="{{item.id}}"
|
||||
bindtap="{{item.skeleton ? '' : 'onTapItem'}}">
|
||||
<view class="cat-card__thumb">
|
||||
<image
|
||||
@@ -117,7 +115,17 @@
|
||||
</view>
|
||||
|
||||
<view
|
||||
wx:if="{{displayItems.length === 0 && !loading}}"
|
||||
wx:if="{{errorMessage && !loading}}"
|
||||
class="cat-empty">
|
||||
<text class="cat-empty__icon">📡</text>
|
||||
<text class="cat-empty__text">{{errorMessage}}</text>
|
||||
<button class="cat-empty__retry" bindtap="onRetry">
|
||||
重新加载
|
||||
</button>
|
||||
</view>
|
||||
|
||||
<view
|
||||
wx:if="{{displayItems.length === 0 && !loading && !errorMessage}}"
|
||||
class="cat-empty">
|
||||
<text class="cat-empty__icon">🔍</text>
|
||||
<text class="cat-empty__text">没有找到匹配的内容</text>
|
||||
|
||||
Reference in New Issue
Block a user