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 |   45 ++++++++++++++++++++++++++-------------------
 1 files changed, 26 insertions(+), 19 deletions(-)

diff --git a/pages/bibliographyList/index.wxml b/pages/bibliographyList/index.wxml
index e55f940..a02fde7 100644
--- a/pages/bibliographyList/index.wxml
+++ b/pages/bibliographyList/index.wxml
@@ -39,20 +39,18 @@
       </view>
 
       <view wx:else class="outsideHigherBox">
-        <view class="higherBox" wx:for="{{higherList}}" wx:key="index" wx:for-item="item" wx:for-index="index" bind:tap="downloadData" data-item="{{item}}">
+        <view class="higherBox" wx:for="{{higherList}}" wx:key="index" wx:for-item="item" wx:for-index="index">
           <view class="outsideHigherImageBox">
-            <image class="higherImageBox" src="{{item.icon}}" mode="" />
-            <view class="downloadIcon" data-item="{{item}}">
-
-              <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}}" />
@@ -70,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>
 
@@ -95,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>
 
@@ -112,6 +113,12 @@
         <text wx:if="{{isMore == false}}">娌℃湁鏇村浜�</text>
       </view>
     </t-tab-panel>
-
   </t-tabs>
+</view>
+<view class="dialogBox">
+  <t-dialog visible="{{showWithInput}}" title="璇疯緭鍏ラ偖绠�" confirm-btn="纭畾" cancel-btn="鍙栨秷" bind:confirm="onConfirm" bind:cancel="closeDialog">
+
+    <t-input model:value="{{input}}" borderless class="dialog-input" clearable slot="content" placeholder="璇疯緭鍏ラ偖绠卞彿" placeholder-class="placeholder" bindchange="onEmailInput" />
+
+  </t-dialog>
 </view>
\ No newline at end of file

--
Gitblit v1.9.1