From 1a5e46e6955225675d21fe04962e82b37e7890ed Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期二, 15 十月 2024 16:02:26 +0800
Subject: [PATCH] ziyuan

---
 packageBookService/pages/bookServices/detail/components/teachResource/index.js |   50 ++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 36 insertions(+), 14 deletions(-)

diff --git a/packageBookService/pages/bookServices/detail/components/teachResource/index.js b/packageBookService/pages/bookServices/detail/components/teachResource/index.js
index 2d69877..2f38a73 100644
--- a/packageBookService/pages/bookServices/detail/components/teachResource/index.js
+++ b/packageBookService/pages/bookServices/detail/components/teachResource/index.js
@@ -2,11 +2,11 @@
   properties: {
     applyState: {
       type: String,
-      value: 'none'
+      value: "none",
     },
     rejectCause: {
       type: String,
-      value: ''
+      value: "",
     },
     applyResourceLoading: {
       type: Boolean,
@@ -14,31 +14,53 @@
     },
     deadline: {
       type: String,
-      value: ''
+      value: "",
+    },
+    treeList: {
+      type: Array,
     }
   },
   data: {
     showRejectDialog: false,
-    confirmBtn: { content: '鐭ラ亾浜�', variant: 'base' },
+    confirmBtn: {
+      content: "鐭ラ亾浜�",
+      variant: "base"
+    },
   },
   methods: {
+    copy() {
+      wx.setClipboardData({
+        data: "https://jsek.bnuic.com/home/#/home/index",
+        success: function (res) {
+          wx.showToast({
+            title: "澶嶅埗鎴愬姛"
+          });
+        },
+        fail: function (res) {
+          console.log(res);
+        },
+      });
+    },
     applyResource() {
-      var myEventDetail = {}
+      var myEventDetail = {};
       var myEventOption = {
         bubbles: true,
         composed: true,
-      } // 瑙﹀彂浜嬩欢鐨勯�夐」
-      this.triggerEvent('applyResource', myEventDetail, myEventOption)
+      }; // 瑙﹀彂浜嬩欢鐨勯�夐」
+      this.triggerEvent("applyResource", myEventDetail, myEventOption);
     },
     showDialog() {
       this.setData({
-        showRejectDialog: true
-      })
+        showRejectDialog: true,
+      });
     },
     closeDialog() {
       this.setData({
-        showRejectDialog: false
-      })
-    }
-  }
-})
\ No newline at end of file
+        showRejectDialog: false,
+      });
+    },
+    uploadBtn() {
+      this.triggerEvent("uploadFile", true);
+    },
+  },
+});
\ No newline at end of file

--
Gitblit v1.9.1