From 0555dd7dc2edc553030b7a6d03d6a1cda4b1e336 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期三, 20 三月 2024 15:41:58 +0800
Subject: [PATCH] 111

---
 packageDomain/pages/teacherCertification/index.wxml |   57 +++++++++++++++++++++++++++++++++++++--------------------
 1 files changed, 37 insertions(+), 20 deletions(-)

diff --git a/packageDomain/pages/teacherCertification/index.wxml b/packageDomain/pages/teacherCertification/index.wxml
index ef9addf..da571aa 100644
--- a/packageDomain/pages/teacherCertification/index.wxml
+++ b/packageDomain/pages/teacherCertification/index.wxml
@@ -9,57 +9,61 @@
           <text class="yes" wx:if="{{teacherInfo.state == 'Normal'}}">宸茶璇�</text>
           <text class="no" wx:if="{{teacherInfo.state == 'Reject'}}">宸查┏鍥�</text>
           <text class="wait" wx:if="{{teacherInfo.state == ''}}">寰呰璇�</text>
+          <view class="reasonTxt" bindtap="previewReason" wx:if="{{teacherInfo.state == 'Reject'}}">鏌ョ湅鍘熷洜</view>
         </view>
       </view>
       <view class="from-item">
         <view class="label"> 瀛︽牎锛� </view>
         <view class="item-content">
-          <t-input placeholder="璇疯緭鍏ュ鏍�" borderless value="{{teacherInfo.schoolName}}" disabled="{{!editState}}" />
+          <t-input placeholder="璇疯緭鍏ュ鏍�" borderless value="{{teacherInfo.schoolName}}" disabled="{{!editState}}" bindchange="onSchoolNameInput" />
         </view>
       </view>
       <view class="from-item">
         <view class="label"> 鐪熷疄濮撳悕锛� </view>
         <view class="item-content">
-          <t-input placeholder="璇疯緭鍏ョ湡瀹炲鍚�" borderless value="{{teacherInfo.fullName}}" disabled="{{!editState}}" />
+          <t-input placeholder="璇疯緭鍏ョ湡瀹炲鍚�" borderless value="{{teacherInfo.fullName}}" disabled="{{!editState}}" bindchange="onFullNameInput" />
         </view>
       </view>
       <view class="from-item">
         <view class="label"> 鑱岀О锛� </view>
-        <view class="item-content">
+        <view class="item-content state" wx:if="{{editState}}">
           <t-cell arrow note="{{teachText}}" bind:click="onTeachPicker" />
-          <t-picker visible="{{teachVisible}}" default-value="{{teacherInfo.positionalTitle}}" title="閫夋嫨鑱岀О" cancelBtn="鍙栨秷" confirmBtn="纭" bindchange="onPickerChange" bindcancel="onPickerCancel">
+          <t-picker visible="{{teachVisible}}" value="{{teacherInfo.positionalTitle}}" title="閫夋嫨鑱岀О" cancelBtn="鍙栨秷" confirmBtn="纭" bindchange="onPickerChange" bindcancel="onPickerCancel">
             <t-picker-item options="{{teachPosts}}" />
           </t-picker>
+        </view>
+        <view class="item-content" wx:if="{{!editState}}">
+          <t-cell arrow note="{{teachText}}" />
         </view>
       </view>
       <view class="from-item">
         <view class="label"> 浠绘暀璇剧▼锛� </view>
         <view class="item-content">
-          <t-input placeholder="璇疯緭鍏ヤ换鏁欒绋�" borderless value="{{teacherInfo.courseName}}" />
+          <t-input placeholder="璇疯緭鍏ヤ换鏁欒绋�" borderless value="{{teacherInfo.courseName}}" bindchange="onCourseNameInput" disabled="{{!editState}}" />
         </view>
       </view>
       <view class="from-item">
         <view class="label"> 鎵嬫満鍙凤細 </view>
         <view class="item-content">
-          <t-input placeholder="杈撳叆鎵嬫満鍙风爜" borderless value="{{teacherInfo.phone}}" type="number" tips="{{phoneError ? '鎵嬫満鍙疯緭鍏ヤ笉姝g‘' : ''}}" bindchange="onPhoneInput" />
+          <t-input placeholder="杈撳叆鎵嬫満鍙风爜" borderless value="{{teacherInfo.phone}}" type="number" tips="{{phoneError ? '鎵嬫満鍙疯緭鍏ヤ笉姝g‘' : ''}}" bindchange="onPhoneInput" disabled="{{!editState}}" />
         </view>
       </view>
       <view class="from-item">
         <view class="label"> 搴ф満锛� </view>
         <view class="item-content">
-          <t-input placeholder="杈撳叆搴ф満鍙�" borderless value="{{teacherInfo.telphone}}" type="number" tips="{{telphoneError ? '搴ф満鍙疯緭鍏ヤ笉姝g‘' : ''}}" bindchange="onTelphoneInput" />
+          <t-input placeholder="杈撳叆搴ф満鍙�" borderless value="{{teacherInfo.telphone}}" type="number" tips="{{telphoneError ? '搴ф満鍙疯緭鍏ヤ笉姝g‘' : ''}}" bindchange="onTelphoneInput" disabled="{{!editState}}" />
         </view>
       </view>
       <view class="from-item">
         <view class="label"> 閭锛� </view>
         <view class="item-content">
-          <t-input placeholder="杈撳叆閭" borderless value="{{teacherInfo.email}}" type="number" tips="{{emailError ? '閭杈撳叆涓嶆纭�' : ''}}" bindchange="onEmailInput" />
+          <t-input placeholder="杈撳叆閭" borderless value="{{teacherInfo.email}}" type="number" tips="{{emailError ? '閭杈撳叆涓嶆纭�' : ''}}" bindchange="onEmailInput" disabled="{{!editState}}" />
         </view>
       </view>
       <view class="from-item">
         <view class="label"> 璇︾粏鍦板潃锛� </view>
         <view class="item-content">
-          <t-input placeholder="璇疯緭鍏ヨ缁嗗湴鍧�" borderless value="{{teacherInfo.detailedAddress}}" />
+          <t-input placeholder="璇疯緭鍏ヨ缁嗗湴鍧�" borderless value="{{teacherInfo.detailedAddress}}" bindchange="onAddressInput" disabled="{{!editState}}" />
         </view>
       </view>
     </view>
@@ -67,9 +71,15 @@
       <view class="from-item">
         <view class="label"> 鍦ㄨ亴鏁欏笀宸ヤ綔璇侊細 </view>
         <view class="imageBox">
-          <view class="wrapper">
-            <t-upload mediaType="{{['image']}}" files="{{fileList}}" bind:add="handleAdd" bind:remove="handleRemove">
-            </t-upload>
+          <view class="weui-uploader">
+            <view class='pics' wx:for="{{imgPics}}" wx:for-item="item" wx:key="*this">
+              <image class='weui-uploader__img' src="{{item.url}}" data-index="{{index}}" mode="aspectFill" bindtap="previewImg">
+                <icon type='cancel' class="delete-btn" data-index="{{index}}" catchtap="deleteImg"></icon>
+              </image>
+            </view>
+            <view class="tp_cont {{tj_ycang?'':'hide'}}" bindtap="chooseImg" wx:if="{{editState}}">
+              <view class="tp_add">+</view>
+            </view>
           </view>
         </view>
         <view class="fileTip">
@@ -78,16 +88,23 @@
       </view>
     </view>
     <view class="protocolBox">
-      <t-checkbox label="" icon="rectangle" default-checked="{{teacherInfo.agree}}" bind:change="onChange" />
+      <t-checkbox label="" icon="rectangle" checked="{{teacherInfo.agree}}" bind:change="onChange" disabled="{{!editState}}" />
       <text class="wait" bind:tap="viewContent">銆婃暀甯堣璇佹湇鍔℃潯娆俱��</text>
     </view>
-    <view class="btn-area">
-      <button class="submit" formType="submit">鎻愪氦</button>
+    <view class="btn-area" wx:if="{{editState}}">
+      <button class="submit" bindtap="submit">鎻愪氦</button>
     </view>
   </view>
-  <t-popup visible="{{protocolShow}}" bind:visible-change="onVisibleChange" placement="center" close-btn>
-    <view class="block">
-      <rich-text space="emsp" nodes="{{protocolTxt}}" class="content" />
-    </view>
-  </t-popup>
+  <view class="popupBox">
+    <t-popup visible="{{protocolShow}}" bind:visible-change="onVisibleChange" placement="center" close-btn>
+      <view class="block">
+        <rich-text space="emsp" nodes="{{protocolTxt}}" class="content" />
+      </view>
+    </t-popup>
+    <t-popup visible="{{reasonTxtShow}}" bind:visible-change="onVisibleChange" placement="center" close-btn>
+      <view class="reasonBlock">
+        {{reasonTxt}}
+      </view>
+    </t-popup>
+  </view>
 </view>
\ No newline at end of file

--
Gitblit v1.9.1