From 0bbc91dbf3a58da857ef098b34f9d2f86361c766 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期四, 11 四月 2024 17:56:46 +0800 Subject: [PATCH] 答题器图标替换,图书分类页骨架屏样式修改 --- pages/bibliographyList/index.wxml | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/pages/bibliographyList/index.wxml b/pages/bibliographyList/index.wxml index a02fde7..c87ddf3 100644 --- a/pages/bibliographyList/index.wxml +++ b/pages/bibliographyList/index.wxml @@ -42,7 +42,8 @@ <view class="higherBox" wx:for="{{higherList}}" wx:key="index" wx:for-item="item" wx:for-index="index"> <view class="outsideHigherImageBox"> <view class="higherImageBox"> - <image data-item="{{item}}" bind:tap="downloadData" src="{{item.icon}}" mode="aspectFill" /> + <image wx:if="{{item.icon}}" data-item="{{item}}" bind:tap="downloadData" src="{{item.icon}}" mode="aspectFill" /> + <image wx:if="{{!item.icon}}" src="/static/images/default-book-img.png" mode="aspectFill" /> <view class="downloadIcon" data-item="{{item}}" data-key="showWithInput" bind:tap="mailbox"> <image wx:if="{{determine}}" class="download" src="/static/images/bibliographyList/email-click.png" mode="aspectFit" /> <image wx:else="" class="downloadshiftin" src="/static/images/bibliographyList/email.png" mode="aspectFit" /> @@ -70,6 +71,7 @@ <view class="outsideHigherImageBox"> <view class="higherImageBox"> <image data-item="{{item}}" bind:tap="downloadData" src="{{item.icon}}" mode="aspectFill" /> + <image wx:if="{{!item.icon}}" src="/static/images/default-book-img.png" mode="aspectFill" /> <view class="downloadIcon" data-item="{{item}}" data-key="showWithInput" bind:tap="mailbox"> <image wx:if="{{determine}}" class="download" src="/static/images/bibliographyList/email-click.png" mode="aspectFit" /> <image wx:else="" class="downloadshiftin" src="/static/images/bibliographyList/email.png" mode="aspectFit" /> @@ -97,6 +99,7 @@ <view class="outsideHigherImageBox"> <view class="higherImageBox"> <image data-item="{{item}}" bind:tap="downloadData" src="{{item.icon}}" mode="aspectFill" /> + <image wx:if="{{!item.icon}}" src="/static/images/default-book-img.png" mode="aspectFill" /> <view class="downloadIcon" data-item="{{item}}" data-key="showWithInput" bind:tap="mailbox"> <image wx:if="{{determine}}" class="download" src="/static/images/bibliographyList/email-click.png" mode="aspectFit" /> <image wx:else="" class="downloadshiftin" src="/static/images/bibliographyList/email.png" mode="aspectFit" /> -- Gitblit v1.9.1