From ccda9ec2fe70d8f51ef184eafc04b78d22dfbabd Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期三, 26 六月 2024 15:02:28 +0800
Subject: [PATCH] 小程序,教材,课程

---
 packageBookService/pages/bookServices/detail/components/teachResource/index.js |   46 +++++++++++++++++++++++++++++++---------------
 1 files changed, 31 insertions(+), 15 deletions(-)

diff --git a/packageBookService/pages/bookServices/detail/components/teachResource/index.js b/packageBookService/pages/bookServices/detail/components/teachResource/index.js
index 2d69877..a515c77 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,47 @@
     },
     deadline: {
       type: String,
-      value: ''
-    }
+      value: "",
+    },
   },
   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,
+      });
+    },
+  },
+});
\ No newline at end of file

--
Gitblit v1.9.1