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

---
 pages/personalCenter/certificate/index.wxml |   34 ++++++++++++++++++++++++++++++----
 1 files changed, 30 insertions(+), 4 deletions(-)

diff --git a/pages/personalCenter/certificate/index.wxml b/pages/personalCenter/certificate/index.wxml
index bb4d8ca..7dc57db 100644
--- a/pages/personalCenter/certificate/index.wxml
+++ b/pages/personalCenter/certificate/index.wxml
@@ -13,9 +13,11 @@
         <view class="listBox">
           <view class="content-item" wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index">
             <view class="icon" data-book="{{item}}" bindtap="goBookDetails">
-              <image src="{{item.productList.certificate}}" mode="aspectFit" class="img" wx:if="{{item.productList.certificate}}" />
-              <image src="https://jsek.bnuic.com/home/certificate/szkc.jpg" mode="aspectFit" class="img" wx:if="{{!item.productList.certificate && active == 0}}" />
-              <image src="https://jsek.bnuic.com/home/certificate/jczs.jpg" mode="aspectFit" class="img" wx:if="{{!item.productList.certificate && active == 1}}" />
+              <image src="https://jsek.bnuic.com/home/certificate/kczs.jpg" mode="aspectFit" class="img" wx:if="{{active == 0}}" />
+              <image src="https://jsek.bnuic.com/home/certificate/jczs.jpg" mode="aspectFit" class="img" wx:if="{{active == 1}}" />
+              <view class="currentBtn hover">
+                <text class="{{item.state == 'Normal' ? 'yes' : item.state == 'WaitAudit' ? 'wait' : item.state == 'Reject' ? 'no' : '-' }} ">{{item.state == 'Normal' ? '宸查�氳繃' : item.state == 'WaitAudit' ? '瀹℃牳涓�' : item.state == 'Reject' ? '鏈�氳繃' : '-' }}</text>
+              </view>
             </view>
             <view class="body-info">
               <view class="name">{{item.productList.name}}</view>
@@ -37,4 +39,28 @@
   </view>
   <t-back-top theme="round" wx:if="{{isBackTop}}" text="椤堕儴" bind:to-top="onToTop"></t-back-top>
   <t-image-viewer deleteBtn="{{deleteBtn}}" closeBtn="{{closeBtn}}" showIndex="{{showIndex}}" visible="{{visible}}" images="{{images}}" bind:close="onClose"></t-image-viewer>
-</view>
\ No newline at end of file
+</view>
+<canvas canvas-id="myCanvas1" style="height:845px;width:595px" wx:if="{{pubCertificateHide && contentData}}"></canvas>
+  <view id="textCertificate" class="my_canvas1" wx:if="{{pubCertificateHide && contentData}}">
+    <image data-type="image" data-url="https://jsek.bnuic.com/home/certificate/kczs.jpg" src="https://jsek.bnuic.com/home/certificate/kczs.jpg" mode="" class="bgImg my_draw_canvas1" wx:if="{{active == 0}}"/>
+    <image data-type="image" data-url="https://jsek.bnuic.com/home/certificate/jczs.jpg" src="https://jsek.bnuic.com/home/certificate/jczs.jpg" mode="" class="bgImg my_draw_canvas1" wx:if="{{active == 1}}"/>
+    <view class="certificateInfo my_draw_canvas1">
+      <view class="userIcon my_draw_canvas1">
+        <view class="hexagon my_draw_canvas1">
+          <image src="{{contentData.userPicture}}" class="img my_draw_canvas1" />
+        </view>
+      </view>
+      <view class="userName my_draw_canvas1" data-type="text" data-text="{{contentData.userName}}">{{contentData.userName}}</view>
+      <view class="bookName my_draw_canvas1" data-type="text" data-text="{{contentData.name}}">{{contentData.name}}</view>
+      <view class="textAuthor my_draw_canvas1" data-type="text" data-text="{{contentData.author}}" wx:if="{{active == 1}}">{{contentData.author || '-' }}</view>
+      <view class="author my_draw_canvas1" data-type="text" data-text="{{contentData.courseLeader}}" wx:if="{{active == 0}}">{{contentData.courseLeader || '-' }}</view>
+      <view class="classHours my_draw_canvas1" data-type="text" data-text="{{contentData.classHours}}" wx:if="{{active == 0}}">{{contentData.classHours || '-' }}</view>
+      <view class="{{active == 0 ? 'affiliatedUnit my_draw_canvas1' : 'publishingUnit my_draw_canvas1'}}" data-type="text" data-text="{{contentData.publishingUnit}}">{{contentData.publishingUnit || '-'}}</view>
+      <view class="studyTime my_draw_canvas1" data-type="text" data-text="{{contentData.studyTime}}">{{contentData.studyTime}}</view>
+      <view class="website my_draw_canvas1" data-type="text" data-text="{{contentData.website}}">{{contentData.website}}</view>
+      <view class="codeBox my_draw_canvas1"></view>
+      <view class="updateDate my_draw_canvas1">
+        {{ contentData.updateDate }}
+      </view>
+    </view>
+  </view>
\ No newline at end of file

--
Gitblit v1.9.1