From c3086cda662e2b908cf96b6b3ff599713eb924d6 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期一, 02 九月 2024 16:59:16 +0800
Subject: [PATCH] gongneng

---
 pages/digitalTextbooks/digitalTextbooksDetails/index.js |   32 ++++++++++++++++----------------
 1 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/pages/digitalTextbooks/digitalTextbooksDetails/index.js b/pages/digitalTextbooks/digitalTextbooksDetails/index.js
index 7bef3b4..01c7c66 100644
--- a/pages/digitalTextbooks/digitalTextbooksDetails/index.js
+++ b/pages/digitalTextbooks/digitalTextbooksDetails/index.js
@@ -720,14 +720,14 @@
   },
 
   onCertificate() {
-    // if (!this.data.isBuy) {
-    //   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: "鎮ㄧ殑瀛︿範浠诲姟杩樻湭瀹屾垚锛屾殏涓嶈兘鐢宠璇佷功锛屽姞娌瑰摝锛�",
@@ -736,14 +736,14 @@
     //   });
     //   return false
     // }
-    // if (this.data.isCertificate && this.data.isCertificate.state == 'WaitAudit') {
-    //   wx.showToast({
-    //     title: "鎮ㄧ敵璇风殑璇佷功姝e湪瀹℃牳涓�",
-    //     icon: "none",
-    //     duration: 1000,
-    //   });
-    //   return false
-    // }
+    if (this.data.isCertificate && this.data.isCertificate.state == 'WaitAudit') {
+      wx.showToast({
+        title: this.data.isCertificate.state == 'WaitAudit' ? "鎮ㄧ敵璇风殑璇佷功姝e湪瀹℃牳涓�" : this.data.isCertificate.state == 'Normal' ? '鎮ㄥ凡鐢宠璇佷功' : '',
+        icon: "none",
+        duration: 1000,
+      });
+      return false
+    }
 
     var page = getCurrentPages().pop(); // 鑾峰彇褰撳墠椤甸潰瀹炰緥
     page.setData({

--
Gitblit v1.9.1