From e5f45ec9c2eabaa3e4241caad2d49c3629eaf0c8 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期一, 30 九月 2024 14:18:40 +0800 Subject: [PATCH] loading --- packageDomain/pages/teacherCertification/index.wxml | 349 +++++++++++++++++++++++++++++++++++++++------------------ 1 files changed, 237 insertions(+), 112 deletions(-) diff --git a/packageDomain/pages/teacherCertification/index.wxml b/packageDomain/pages/teacherCertification/index.wxml index 011e198..2155fea 100644 --- a/packageDomain/pages/teacherCertification/index.wxml +++ b/packageDomain/pages/teacherCertification/index.wxml @@ -1,121 +1,246 @@ -<view class="container"> - <view class="content"> - <view class="tips"> 浠呴檺瀛︽牎鏈绋嬩换璇炬暀甯堢敵璇凤紱璇蜂笂浼犳湁鏁堝湪鑱屾暀甯堝伐浣滆瘉灏嗘湁鍔╀簬瀹℃牳銆� </view> - <view class="page-body"> - <view class="baseInfoBox"> - <view class="from-item"> - <view class="label"> 褰撳墠鐘舵�侊細 </view> - <view class="stateBox"> - <text class="wait" wx:if="{{teacherInfo.state == 'WaitAudit'}}">绛夊緟瀹℃牳</text> - <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}}" 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}}" bindchange="onFullNameInput" /> - </view> - </view> - <view class="from-item"> - <view class="label"> 鑱岀О锛� </view> - <view class="item-content state" wx:if="{{editState}}"> - <t-cell arrow note="{{teachText}}" bind:click="onTeachPicker" /> - <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}}" 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" disabled="{{!editState}}" /> - </view> - </view> - <view class="from-item"> - <view class="label"> 搴ф満锛� </view> - <view class="item-content"> - <t-input placeholder="杈撳叆搴ф満鍙�" borderless value="{{teacherInfo.telphone}}" 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}}" 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}}" bindchange="onAddressInput" disabled="{{!editState}}" /> - </view> - </view> +<view class="tips" wx:if="{{!skeletonLoding}}"> + 浠呴檺瀛︽牎鏈绋嬩换璇炬暀甯堢敵璇凤紱璇蜂笂浼犳湁鏁堝湪鑱屾暀甯堝伐浣滆瘉灏嗘湁鍔╀簬瀹℃牳銆� +</view> +<view class="page-body" wx:if="{{!skeletonLoding}}"> + <view class="baseInfoBox"> + <view class="from-item"> + <view class="label"> <text class="empty"></text>褰撳墠鐘舵�侊細 </view> + <view class="stateBox"> + <text class="wait" wx:if="{{teacherInfo.state == 'WaitAudit'}}" + >绛夊緟瀹℃牳</text + > + <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 class="fileInfoBox"> - <view class="from-item"> - <view class="label"> 鍦ㄨ亴鏁欏笀宸ヤ綔璇侊細 </view> - <view class="imageBox"> - <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" wx:if="{{editState}}"></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"> - 鏁欏姟澶勭洊绔犳枃浠躲�佹牎宸ュ崱鐨嗗彲 - </view> - </view> + </view> + <view class="from-item"> + <view class="label"> <text class="icon">*</text>瀛︽牎锛� </view> + <view class="item-content"> + <t-input + placeholder="璇疯緭鍏ュ鏍�" + borderless + value="{{teacherInfo.schoolName}}" + disabled="{{!editState}}" + bindchange="onSchoolNameInput" + adjust-position="{{false}}" + /> </view> - <view class="protocolBox"> - <t-checkbox label="" icon="rectangle" checked="{{teacherInfo.agree}}" bind:change="onChange" disabled="{{!editState}}" /> - <text class="wait" bind:tap="viewContent">銆婃暀甯堣璇佹湇鍔℃潯娆俱��</text> + </view> + <view class="from-item"> + <view class="label"> <text class="icon">*</text>鐪熷疄濮撳悕锛� </view> + <view class="item-content"> + <t-input + placeholder="璇疯緭鍏ョ湡瀹炲鍚�" + borderless + value="{{teacherInfo.fullName}}" + disabled="{{!editState}}" + bindchange="onFullNameInput" + adjust-position="{{false}}" + /> </view> - <view class="btn-area" wx:if="{{editState}}"> - <button class="submit" bindtap="submit">鎻愪氦</button> + </view> + <view class="from-item"> + <view class="label"> <text class="empty"></text>鑱岀О锛� </view> + <view class="item-content state" wx:if="{{editState}}"> + <t-cell arrow note="{{teachText}}" bind:click="onTeachPicker" /> + <t-picker + visible="{{teachVisible}}" + value="{{teacherInfo.positionalTitle}}" + title="閫夋嫨鑱岀О" + cancelBtn="鍙栨秷" + confirmBtn="纭" + bindchange="onPickerChange" + bindcancel="onPickerCancel" + adjust-position="{{false}}" + > + <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"> <text class="icon">*</text>浠绘暀璇剧▼锛� </view> + <view class="item-content"> + <t-input + placeholder="璇疯緭鍏ヤ换鏁欒绋�" + borderless + value="{{teacherInfo.courseName}}" + bindchange="onCourseNameInput" + disabled="{{!editState}}" + adjust-position="{{false}}" + /> + </view> + </view> + <view class="from-item"> + <view class="label"> <text class="icon">*</text>鎵嬫満鍙凤細 </view> + <view class="item-content"> + <t-input + placeholder="杈撳叆鎵嬫満鍙风爜" + borderless + value="{{teacherInfo.phone}}" + type="number" + tips="{{phoneError ? '鎵嬫満鍙疯緭鍏ヤ笉姝g‘' : ''}}" + bindchange="onPhoneInput" + disabled="{{!editState}}" + adjust-position="{{false}}" + /> + </view> + </view> + <view class="from-item form-input-6"> + <view class="label"> <text class="empty"></text>搴ф満锛� </view> + <view class="item-content"> + <t-input + placeholder="杈撳叆搴ф満鍙�" + borderless + value="{{teacherInfo.telphone}}" + tips="{{telphoneError ? '搴ф満鍙疯緭鍏ヤ笉姝g‘' : ''}}" + bindchange="onTelphoneInput" + disabled="{{!editState}}" + bindkeyboardheightchange="bindkeyboardheightchange" + bindblur="changeParam" + data-class="form-input-7" + adjust-position="{{false}}" + /> + </view> + </view> + <view class="from-item form-input-7"> + <view class="label"> <text class="icon">*</text>閭锛� </view> + <view class="item-content"> + <t-input + placeholder="杈撳叆閭" + borderless + value="{{teacherInfo.email}}" + tips="{{emailError ? '閭杈撳叆涓嶆纭�' : ''}}" + bindchange="onEmailInput" + disabled="{{!editState}}" + bindkeyboardheightchange="bindkeyboardheightchange" + bindblur="changeParam" + data-class="form-input-7" + adjust-position="{{false}}" + /> + </view> + </view> + <view class="from-item form-input-8"> + <view class="label"> <text class="icon">*</text>璇︾粏鍦板潃锛� </view> + <view class="item-content"> + <t-input + placeholder="璇疯緭鍏ヨ缁嗗湴鍧�" + borderless + value="{{teacherInfo.detailedAddress}}" + bindchange="onAddressInput" + disabled="{{!editState}}" + adjust-position="{{false}}" + bindkeyboardheightchange="bindkeyboardheightchange" + bindblur="changeParam" + data-class="form-input-8" + /> </view> </view> </view> - <view class="popupBox"> - <t-popup visible="{{protocolShow}}" bind:visible-change="onVisibleChange" placement="center"> - <view class="block"> - <view class="protocol"> - <rich-text space="emsp" nodes="{{protocolTxt}}" class="content" /> + <view class="fileInfoBox"> + <view class="from-item"> + <view class="label"> <text class="icon">*</text>鍦ㄨ亴鏁欏笀宸ヤ綔璇侊細 </view> + <view class="imageBox"> + <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" + wx:if="{{editState}}" + ></icon> + </image> + </view> + <view + class="tp_cont {{tj_ycang?'':'hide'}}" + bindtap="chooseImg" + wx:if="{{editState}}" + > + <view class="tp_add">+</view> + </view> </view> - <t-icon t-class="close-btn" name="close-circle" size="32" color="#fff" bind:tap="onCloseProtocol" /> </view> - </t-popup> - <t-popup visible="{{reasonTxtShow}}" bind:visible-change="onVisibleChange" placement="center"> - <view class="reasonBlock"> - <view class="blick-header"> - 椹冲洖鍘熷洜 - </view> - <view class="reasonBox"> - {{reasonTxt}} - </view> - <t-icon t-class="close-btn" name="close-circle" size="32" color="#fff" bind:tap="onCloseReasonTxt" /> - </view> - </t-popup> + <view class="fileTip"> 鏁欏姟澶勭洊绔犳枃浠躲�佹牎宸ュ崱鐨嗗彲(涓嶈秴杩�5涓枃浠�) </view> + </view> </view> -</view> \ No newline at end of file + <view class="protocolBox"> + <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" + wx:if="{{editState}}" + style="padding-bottom: {{keyboardHeight ? keyboardHeight + 'rpx' : '20rpx'}}" + > + <button class="submit" bindtap="submit">鎻愪氦</button> + </view> +</view> +<view class="popupBox"> + <t-popup + visible="{{protocolShow}}" + bind:visible-change="onVisibleChange" + placement="center" + > + <view class="block"> + <view class="protocol"> + <rich-text space="emsp" nodes="{{protocolTxt}}" class="content" /> + </view> + <t-icon + t-class="close-btn" + name="close-circle" + size="32" + color="#fff" + bind:tap="onCloseProtocol" + /> + </view> + </t-popup> + <t-popup + visible="{{reasonTxtShow}}" + bind:visible-change="onVisibleChange" + placement="center" + > + <view class="reasonBlock"> + <view class="blick-header"> 椹冲洖鍘熷洜 </view> + <view class="reasonBox"> {{reasonTxt}} </view> + <t-icon + t-class="close-btn" + name="close-circle" + size="32" + color="#fff" + bind:tap="onCloseReasonTxt" + /> + </view> + </t-popup> +</view> +<import src="index.skeleton.wxml" /> +<template is="skeleton" wx:if="{{skeletonLoding}}" /> -- Gitblit v1.9.1