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 | 49 ++++++++++++++++++++++++++++++++++--------------- 1 files changed, 34 insertions(+), 15 deletions(-) diff --git a/packageBookService/pages/bookServices/detail/components/teachResource/index.js b/packageBookService/pages/bookServices/detail/components/teachResource/index.js index 6085f13..a515c77 100644 --- a/packageBookService/pages/bookServices/detail/components/teachResource/index.js +++ b/packageBookService/pages/bookServices/detail/components/teachResource/index.js @@ -2,40 +2,59 @@ properties: { applyState: { type: String, - value: 'none' + value: "none", }, rejectCause: { type: String, - value: '' + value: "", }, applyResourceLoading: { type: Boolean, value: false, - } + }, + deadline: { + type: String, + 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() { - debugger - var myEventDetail = {} // detail瀵硅薄锛屾彁渚涚粰浜嬩欢鐩戝惉鍑芥暟 + 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