From f72f8966ba4e1715e8df82d5cf1c7e912b6da719 Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期一, 01 四月 2024 10:21:07 +0800
Subject: [PATCH] 检索的bug

---
 pages/retrievalPage/index.js |   74 +++++++++++++++++++++++++++++++++++++
 1 files changed, 74 insertions(+), 0 deletions(-)

diff --git a/pages/retrievalPage/index.js b/pages/retrievalPage/index.js
index bd94d94..9874ac2 100644
--- a/pages/retrievalPage/index.js
+++ b/pages/retrievalPage/index.js
@@ -11,6 +11,11 @@
    * 椤甸潰鐨勫垵濮嬫暟鎹�
    */
   data: {
+    input: '',
+    dialogKey: '',
+    showWithInput: false,
+    showTextAndTitleWithInput: false,
+    downloadLoadin: false,
     isMore: null,
     tabPanelstyle: 'display:flex;justify-content:center;align-items:center;',
     navBarHeight: '',
@@ -731,8 +736,77 @@
       })
       this.retrievalPageGet()
     }
+  },
+
+  underConstruction() {
+    wx.showToast({
+      title: "寤鸿涓�",
+      icon: 'none',
+      duration: 1000
+    })
+  },
+  // 閭鐐瑰嚮
+  mailbox(e) {
+    console.log(e);
+    const key = e.currentTarget.dataset.key;
+    const item = e.currentTarget.dataset.item;
+
+    this.setData({
+      [key]: true,
+      dialogKey: key,
+      input: '',
+      Md5: item.datas.freeFile.FileList[0].Md5
+    });
+  },
+  //閭鐨勬牎楠�
+  onEmailInput(e) {
+    const isEmailValid = /^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/.test(e.detail.value);
+    this.setData({
+      emailError: !isEmailValid,
+      "input": e.detail.value,
+    });
+  },
+  //寮圭獥纭
+  onConfirm() {
+    if (!this.data.emailError && this.data.input) {
+      const {
+        dialogKey
+      } = this.data;
+      this.setData({
+        [dialogKey]: false
+      });
 
 
+      console.log(this.data.input);
+      console.log(this.data.Md5);
+      if (this.data.input) {
+        let query = {
+          eMail: this.data.input,
+          md5s: [this.data.Md5]
+        }
+        app.MG.file.sendFileWithEmail(query).then(res => {
+          console.log(res);
+        })
+      }
+    } else {
+      // 鏍¢獙涓嶉�氳繃锛岀粰鍑洪敊璇彁绀�
+      wx.showToast({
+        title: '閭鏍煎紡涓嶆纭�',
+        icon: 'none',
+      });
+    }
 
   },
+  // 寮圭獥鍙栨秷
+  closeDialog() {
+    const {
+      dialogKey
+    } = this.data;
+    this.setData({
+      [dialogKey]: false
+    });
+    console.log(111);
+  },
+
+
 })
\ No newline at end of file

--
Gitblit v1.9.1