From bbba5d26e9e26c910ed337dcb65f462752ee6dce Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期四, 12 九月 2024 09:11:47 +0800
Subject: [PATCH] fenxiang

---
 pages/digitalCourses/digitalCoursesDetails/index.js |   46 ++++++++++++++++++++++++++--------------------
 1 files changed, 26 insertions(+), 20 deletions(-)

diff --git a/pages/digitalCourses/digitalCoursesDetails/index.js b/pages/digitalCourses/digitalCoursesDetails/index.js
index 8b78e3a..ffd34c1 100644
--- a/pages/digitalCourses/digitalCoursesDetails/index.js
+++ b/pages/digitalCourses/digitalCoursesDetails/index.js
@@ -224,9 +224,8 @@
   /**
    * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜�
    */
-  onShareAppMessage() {
-
-  },
+  onShareAppMessage() {},
+  onShareTimeline() {},
   //鑾峰彇瑙嗛瀛︿範
   getPlayerList() {
     app.MG.identity
@@ -1056,22 +1055,22 @@
 
 
   onCertificate() {
-    if (!this.data.isBuy) {
-      wx.showToast({
-        title: "璇峰厛璐拱锛屼綋楠屽畬鏁存湇鍔�",
-        icon: "none",
-        duration: 1000,
-      });
-      return false
-    }
-    if (!this.data.isLearn) {
-      wx.showToast({
-        title: "鎮ㄧ殑瀛︿範浠诲姟杩樻湭瀹屾垚锛屾殏涓嶈兘鐢宠璇佷功锛屽姞娌瑰摝锛�",
-        icon: "none",
-        duration: 1000,
-      });
-      return false
-    }
+    // if (!this.data.isBuy) {
+    //   wx.showToast({
+    //     title: "璇峰厛璐拱锛屼綋楠屽畬鏁存湇鍔�",
+    //     icon: "none",
+    //     duration: 1000,
+    //   });
+    //   return false
+    // }
+    // if (!this.data.isLearn) {
+    //   wx.showToast({
+    //     title: "鎮ㄧ殑瀛︿範浠诲姟杩樻湭瀹屾垚锛屾殏涓嶈兘鐢宠璇佷功锛屽姞娌瑰摝锛�",
+    //     icon: "none",
+    //     duration: 1000,
+    //   });
+    //   return false
+    // }
     if (this.data.isCertificate && this.data.isCertificate.state == 'WaitAudit') {
       wx.showToast({
         title: "鎮ㄧ敵璇风殑璇佷功姝e湪瀹℃牳涓�",
@@ -1163,6 +1162,10 @@
   },
 
   confirmM() {
+    let currentDate = new Date()
+    let year = currentDate.getFullYear()
+    let month = currentDate.getMonth() + 1
+    let today = currentDate.getDate()
     if (this.data.userInfo.fullName) {
       if (this.data.pictureMd5 == '') {
         wx.showToast({
@@ -1180,12 +1183,15 @@
         name: this.data.digitalsData.name,
         ISBN: this.data.digitalsData.isbn,
         affiliatedUnit: this.data.digitalsData.affiliatedUnit,
+        publishingUnit: this.data.publishingUnit,
         publicationDate: this.data.digitalsData.publicationDate,
         classHours: this.data.digitalsData.classHours,
         lecturerList: this.data.lecturerList.length > 0 ?
           this.data.lecturerList[0].name : this.data.digitalsData.courseLeader,
+        userName: this.data.userInfo.fullName,
         userPicture: this.data.pictureMd5,
-        certificate: this.data.rzzsImg
+        studyTime: this.data.digitalsData.beginDate + '-' + year + '-' + month + '-' + today,
+        website: this.data.website
       }
       data = {
         topicIdOrRefCode: 'applyCourseCertificate',

--
Gitblit v1.9.1