From 4bc1c36faeec2f90e5acfa836732e49fe0b245e9 Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期五, 12 四月 2024 20:47:03 +0800
Subject: [PATCH] 云学习11

---
 packageBookService/pages/bookServices/detail/components/teachResource/index.js |   41 ++++++++++++++++++++++++++---------------
 1 files changed, 26 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..ec299ce 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,42 @@
     },
     deadline: {
       type: String,
-      value: ''
-    }
+      value: "",
+    },
   },
   data: {
     showRejectDialog: false,
-    confirmBtn: { content: '鐭ラ亾浜�', variant: 'base' },
+    confirmBtn: { content: "鐭ラ亾浜�", variant: "base" },
   },
   methods: {
+    copy() {
+      wx.setClipboardData({
+        data: "http://182.92.203.7:3007/jsek/website/#/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,
+      });
+    },
+  },
+});

--
Gitblit v1.9.1