From 8b79283a72251d10649d0627a1b27aa5620a5232 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期五, 27 九月 2024 16:21:57 +0800
Subject: [PATCH] rwd

---
 packageBookService/pages/bookServices/detail/components/learnTask/index.js   |   22 ++++++++++------------
 packageBookService/pages/bookServices/detail/components/learnTask/index.wxml |    5 ++++-
 2 files changed, 14 insertions(+), 13 deletions(-)

diff --git a/packageBookService/pages/bookServices/detail/components/learnTask/index.js b/packageBookService/pages/bookServices/detail/components/learnTask/index.js
index 76bbb34..623da29 100644
--- a/packageBookService/pages/bookServices/detail/components/learnTask/index.js
+++ b/packageBookService/pages/bookServices/detail/components/learnTask/index.js
@@ -593,18 +593,16 @@
   },
 
   confirmBtn() {
-    if (this.data.invitee == 'teacher' && this.data.teacherEvaluated) {
-      wx.showToast({
-        title: "鏁欏笀宸茬粡璇勪环锛屼笉鑳藉啀閭�璇锋暀甯堣瘎浠凤紒",
-        icon: 'none',
-        duration: 1000
-      })
-    } else {
-      wx.showShareMenu({
-        withShareTicket: true
-      });
-    }
-
+    wx.showShareMenu({
+      withShareTicket: true
+    });
+  },
+  confirmBtn1() {
+    wx.showToast({
+      title: "鏁欏笀宸茬粡璇勪环锛屼笉鑳藉啀閭�璇锋暀甯堣瘎浠凤紒",
+      icon: 'none',
+      duration: 1000
+    })
   },
   submitComment() {
     let mateEvaluationList = []
diff --git a/packageBookService/pages/bookServices/detail/components/learnTask/index.wxml b/packageBookService/pages/bookServices/detail/components/learnTask/index.wxml
index 6c3f0c1..d611c2d 100644
--- a/packageBookService/pages/bookServices/detail/components/learnTask/index.wxml
+++ b/packageBookService/pages/bookServices/detail/components/learnTask/index.wxml
@@ -166,7 +166,10 @@
       <t-button class="btn" theme="primary" bind:tap="handleClose">
         <view slot="content" class="btn-content">鍙栨秷</view>
       </t-button>
-      <t-button class="btn" theme="primary" bind:tap="confirmBtn" open-type="share">
+      <t-button class="btn" theme="primary" bind:tap="confirmBtn1" wx:if="{{invitee == 'teacher' &&teacherEvaluated}}">
+        <view slot="content" class="btn-content">纭畾</view>
+      </t-button>
+      <t-button class="btn" theme="primary" bind:tap="confirmBtn" open-type="share" wx:else>
         <view slot="content" class="btn-content">纭畾</view>
       </t-button>
     </view>

--
Gitblit v1.9.1