From f52c21331fa71bd3ae6be41117f35cb54b076119 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期三, 03 四月 2024 19:34:01 +0800 Subject: [PATCH] 添加复制功能 --- pages/bibliographyList/index.wxml | 39 ++++++++++++++++++--------------------- 1 files changed, 18 insertions(+), 21 deletions(-) diff --git a/pages/bibliographyList/index.wxml b/pages/bibliographyList/index.wxml index 94cf918..a02fde7 100644 --- a/pages/bibliographyList/index.wxml +++ b/pages/bibliographyList/index.wxml @@ -41,22 +41,16 @@ <view wx:else class="outsideHigherBox"> <view class="higherBox" wx:for="{{higherList}}" wx:key="index" wx:for-item="item" wx:for-index="index"> <view class="outsideHigherImageBox"> - <view bind:tap="downloadData" data-item="{{item}}"> - - <image class="higherImageBox" src="{{item.icon}}" mode="" /> - </view> - - <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="" /> - <image wx:else="" class="downloadshiftin" src="/static/images/bibliographyList/email.png" mode="" /> + <view class="higherImageBox"> + <image data-item="{{item}}" bind:tap="downloadData" src="{{item.icon}}" 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" /> + </view> </view> </view> - <view class="higherTextBox">{{item.name}}</view> </view> - - </view> <view wx:if="{{higherList.length > 0}}" class="bottom-box"> <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" /> @@ -74,10 +68,12 @@ <view wx:else class="outsideHigherBox"> <view class="higherBox" wx:for="{{vocationalList}}" wx:key="index" wx:for-item="item" wx:for-index="index" bind:tap="downloadData" data-item="{{item}}"> <view class="outsideHigherImageBox"> - <image class="higherImageBox" src="{{item.icon}}" mode="" /> - <view class="downloadIcon"> - <image wx:if="{{determine}}" class="download" src="/static/images/bibliographyList/email-click.png" mode="" /> - <image wx:else="" class="downloadshiftin" src="/static/images/bibliographyList/email.png" mode="" /> + <view class="higherImageBox"> + <image data-item="{{item}}" bind:tap="downloadData" src="{{item.icon}}" 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" /> + </view> </view> </view> @@ -99,13 +95,14 @@ <view wx:else class="outsideHigherBox"> <view class="higherBox" wx:for="{{teacherList}}" wx:key="index" wx:for-item="item" wx:for-index="index" data-item="{{item}}" bind:tap="downloadData"> <view class="outsideHigherImageBox"> - <image class="higherImageBox" src="{{item.icon}}" mode="" /> - <view class="downloadIcon"> - <image wx:if="{{determine}}" class="download" src="/static/images/bibliographyList/email-click.png" mode="" /> - <image wx:else="" class="downloadshiftin" src="/static/images/bibliographyList/email.png" mode="" /> + <view class="higherImageBox"> + <image data-item="{{item}}" bind:tap="downloadData" src="{{item.icon}}" 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" /> + </view> </view> </view> - <view class="higherTextBox">{{item.name}}</view> </view> -- Gitblit v1.9.1