From 04acf6421dded7b6f6eef9d2cf41d0b4a0e8dd0d Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期日, 28 四月 2024 09:23:10 +0800
Subject: [PATCH] 设置表单的bug

---
 pages/bibliographyList/index.js |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 57 insertions(+), 2 deletions(-)

diff --git a/pages/bibliographyList/index.js b/pages/bibliographyList/index.js
index 2432d98..ee3e3b0 100644
--- a/pages/bibliographyList/index.js
+++ b/pages/bibliographyList/index.js
@@ -8,6 +8,9 @@
      * 椤甸潰鐨勫垵濮嬫暟鎹�
      */
     data: {
+      hiddenmodalput: false,
+      name: "",
+      phoneNum: '',
       input: '',
       dialogKey: '',
       showWithInput: false,
@@ -36,6 +39,10 @@
      * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇
      */
     onLoad(options) {
+
+
+
+
       this.higherGet()
       this.vocationalGet()
       this.teacherGet()
@@ -437,10 +444,12 @@
 
 
       this.setData({
-        [key]: true,
-        dialogKey: key,
+        // [key]: true,
+        // dialogKey: key,
+        hiddenmodalput: true,
         input: '',
         Md5: item.datas.freeFile.FileList[0].Md5
+
       });
 
 
@@ -495,7 +504,53 @@
       });
       console.log(111);
     },
+    //鍙栨秷寮规
+    cancelM: function (e) {
+      this.setData({
+        hiddenmodalput: false,
+      })
+    },
+    //鎻愪氦
+    confirmM: function (e) {
+      console.log("濮撳悕锛�" + this.data.name + "  鐢佃瘽锛�" + this.data.phoneNum);
+      if (!this.data.emailError && this.data.name) {
 
 
 
+
+        if (this.data.name) {
+          let query = {
+            eMail: this.data.name,
+            md5s: [this.data.Md5]
+          }
+          app.MG.file.sendFileWithEmail(query).then(res => {
+            console.log(res);
+            this.setData({
+              hiddenmodalput: false,
+            })
+          })
+        }
+      } else {
+        // 鏍¢獙涓嶉�氳繃锛岀粰鍑洪敊璇彁绀�
+        wx.showToast({
+          title: '閭鏍煎紡涓嶆纭�',
+          icon: 'none',
+        });
+      }
+
+    },
+
+    iName: function (e) {
+      this.setData({
+        name: e.detail.value
+      })
+      // console.log(this.data.name);
+    },
+    iPhoneNum: function (e) {
+      this.setData({
+        phoneNum: e.detail.value
+      })
+    },
+
+
   })
\ No newline at end of file

--
Gitblit v1.9.1