haomingming 69df3bf6b3 优化
2023-03-24 15:29:41 +08:00

312 lines
13 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<view class="{{avatar_reason!=''?'photo':'photo_reason'}}">
<view class="title">头像 <text class="required"> *</text></view>
<van-uploader disabled="{{ indentity && iden_auth_disabled }}" bind:after-read="doUploadPhoto" data-scene="1" data-field_name="avatar" data-file_multiple="false">
<view class="right">
<view class="note">真人正脸</view>
<t-avatar image="{{ avatar }}" />
<view class="icon">
<t-icon name="chevron-right" size="48rpx" data-name="chevron-right" />
</view>
</view>
</van-uploader>
</view>
<view class="has_error" wx:if="{{ avatar_reason != '' }}" >
<view class="error_box">
<t-icon color="red" name="close-circle-filled" size="48rpx" data-name="close-circle-filled" />
<text class="error_msg">{{ avatar_reason }}</text>
</view>
</view>
<!-- <t-cell title="头像" hover required arrow note="真人正脸" /> -->
<t-cell title="城市" hover required arrow note="{{ city_note }}" bindtap="{{(indentity && iden_auth_disabled)?'':'onCityShow'}}"/>
<t-cascader
visible="{{ city_show }}"
theme="tab"
value="{{ select_county_id }}"
options="{{ areaList }}"
title="请选择地址"
sub-titles="{{area_sub_titles}}"
bind:change="onChangeCity"
></t-cascader>
<t-cell title="医院" hover required arrow note="{{ yiyuan_note }}" bindtap="{{(indentity && iden_auth_disabled)?'':'onYiYuanShow'}}"/>
<van-popup
show="{{ yiyuan_show }}"
position="bottom"
bind:close="onYiYuanClose"
round
>
<van-picker
show-toolbar
title="请选择医院"
columns="{{ yiyuan_columns }}"
default-index="{{select_yiyuan_index}}"
bind:cancel="onYiYuanCancel"
bind:confirm="onYiYuanConfirm"
bind:change="onYiYuanChange" />
<van-search
value="{{ hospital_search_val }}"
shape="round"
placeholder="搜索医院"
clearable
bind:change="hospitalSearchChange"
bind:search="hospitalSearch"
/>
</van-popup>
<t-cell title="科室" hover required arrow note="{{keshi_note}}"
bindtap="{{(indentity && iden_auth_disabled)?'':'onKeshiShow'}}" bordered="{{ select_keshi_id == '' }}"/>
<view class="custom_keshi" wx:if="{{ select_keshi_id != ''}}">
<van-field bind:change="onCustomKeshiChange"
disabled="{{(indentity && iden_auth_disabled)}}"
type="text" model:value="{{custom_keshi}}" label=""
placeholder="请输入科室" border="{{department_custom_name_reason == ''}}" />
</view>
<view class="has_error" wx:if="{{ department_custom_name_reason != '' }}" >
<view class="error_box">
<t-icon color="red" name="close-circle-filled" size="48rpx" data-name="close-circle-filled" />
<text class="error_msg">{{ department_custom_name_reason }}</text>
</view>
</view>
<van-popup
show="{{ keshi_show }}"
position="bottom"
bind:close="onKeshiClose"
round
>
<van-picker
show-toolbar
title="请选择科室"
columns="{{ keshi_columns }}"
default-index="{{select_keshi_index}}"
bind:cancel="onKeshiCancel"
bind:confirm="onKeshiConfirm"
bind:change="onKeshiChange" />
</van-popup>
<van-popup
show="{{ zhicheng_show }}"
position="bottom"
bind:close="onZhiChengClose"
round
>
<van-picker
show-toolbar
title="请选择职称"
default-index="{{select_zhicheng_index}}"
columns="{{ zhicheng_columns }}"
bind:cancel="onZhiChengCancel"
bind:confirm="onZhiChengConfirm"
bind:change="onZhiChengChange" />
</van-popup>
<van-popup
show="{{ zhiye_show }}"
closeable
round
position="bottom"
bind:close="onZhiYeClose"
>
<view class="zhiye_popup">
<view class="zhiye_popup_title">医师执业证示例</view>
<view class="zhiye_popup_img"></view>
<view class="zhiye_popup_img"></view>
</view>
</van-popup>
<van-popup
show="{{ zige_show }}"
closeable
round
position="bottom"
bind:close="onZiGeClose"
>
<view class="zhiye_popup">
<view class="zhiye_popup_title">医师资格证示例</view>
<view class="zhiye_popup_img"></view>
</view>
</van-popup>
<van-popup
show="{{ zhicheng_img_show }}"
closeable
round
position="bottom"
bind:close="onZhiChengImgClose"
>
<view class="zhiye_popup">
<view class="zhiye_popup_title">职称证示例</view>
<view class="zhiye_popup_img"></view>
</view>
</van-popup>
<t-popup visible="{{zhuanchang_show}}"
prevent-scroll-through
bind:visible-change="onZhuanChangVisibleChange" placement="bottom">
<view class="zhuanchang_block" catchtouchmove="moveZhuanChang">
<view class="zhuanchang_header">
<view class="zhuanchang_btn zhuanchang_btn--cancel" aria-role="button" bindtap="zhuanchangConcle">取消</view>
<view class="zhuanchang_title">选择专长</view>
<view class="zhuanchang_btn zhuanchang_btn--confirm" aria-role="button" bindtap="zhuanchangConfirm">确定</view>
</view>
<view class="zhuanchang_box">
<view class="zhuanchang_box_item {{ data.is_selected==1?'zhuanchang_box_item_checked':'' }}" wx:key="expertise_name" bindtap="select_zhuanchang"
data-expertise_name="{{data.expertise_name}}"
data-expertise_id="{{data.expertise_id}}"
data-is_selected="{{data.is_selected}}"
data-index="{{idx}}"
wx:for="{{zhuanchang_columns}}"
wx:for-index="idx"
wx:for-item="data">
{{data.expertise_name}}
</view>
</view>
<view style="height: 60rpx;">
</view>
</view>
</t-popup>
<t-cell title="职称" hover required arrow note="{{zhicheng_note}}"
bindtap="{{(indentity && iden_auth_disabled)?'':'onZhiChengShow'}}" />
<!-- <t-input
label="科室电话"
placeholder="请输入科室电话"
placeholder-style="font-size: 25rpx !important; letter-spacing: 2rpx;color:rgba(0, 0, 0, 0.4);"
align="right"
suffixIcon="{{ { name: 'chevron-right', ariaLabel: '右' } }}" /> -->
<!-- <t-cell title="专长" hover required arrow note="请选择专长"/> -->
<van-field
model:value="{{ office_phone }}"
bind:change="onOfficePhoneChange"
placeholder="请输入科室电话"
placeholder-style="font-size:25rpx;letter-spacing: 2rpx;color:rgba(0, 0, 0, 0.4);"
input-align="right"
type="number"
clearable
disabled="{{(indentity && iden_auth_disabled)}}"
border="{{ department_custom_mobile_reason == '' }}"
custom-style="font-size:30rpx;"
>
<text slot="label">科室电话 <text style="color: #e34d59;">*</text> </text>
</van-field>
<view class="has_error" wx:if="{{ department_custom_mobile_reason != '' }}" >
<view class="error_box">
<t-icon color="red" name="close-circle-filled" size="48rpx" data-name="close-circle-filled" />
<text class="error_msg">{{ department_custom_mobile_reason }}</text>
</view>
</view>
<view class="zhuanchang" bindtap="{{(indentity && iden_auth_disabled)?'':'onZhuanChangShow'}}">
<view class="title">专长 <text class="required"> *</text></view>
<view class="content">
<view class="content_item" wx:key="expertise_name" wx:if="{{data.is_selected == 1}}" wx:for="{{ zhuanchang_columns }}" wx:for-item="data">
{{data.expertise_name}}
</view>
</view>
<view class="right">
<view class="note">{{zhuanchang_note}}</view>
<view class="icon">
<t-icon name="chevron-right" size="48rpx" data-name="chevron-right" />
</view>
</view>
</view>
<m-textarea-cell
textarea_cell_name="个人简介"
t_icon_name="view-module"
bind:showNote="onshowJianJieNote"
textarea_cell_content_placeholder="您的从业经历职称所获荣誉等信息10~1000字"
textarea_val="{{textarea_jianjie}}"
disabled="{{(indentity && iden_auth_disabled)}}"
has_error_content="{{ brief_introduction_reason }}"
data-textarea_name="textarea_jianjie" bindTextAreaBlur="getTextAreaVal" />
<m-textarea-cell
textarea_cell_name="擅长领域"
t_icon_name="view-module"
bind:showNote="onshowShanChangNote"
disabled="{{(indentity && iden_auth_disabled)}}"
textarea_val="{{textarea_shanchang}}"
has_error_content="{{ be_good_at_reason }}"
textarea_cell_content_placeholder="您的专业领域、擅长疾病、研究方法等信息10~1000字"
textarea_cell_note="查看示例" data-textarea_name="textarea_shanchang" bindTextAreaBlur="getTextAreaVal" />
<m-upload-cell
upload_cell_name="医师执业证"
t_icon_name="view-module"
fileList="{{ zhiye_file_list }}"
max_count="3"
data-scene="2"
data-field_name="zhiye_file_list"
data-file_multiple="true"
bind:showNote="onshowZhiYeNote"
bindUploadFile="doUploadFile"
bindDeleteFile="doDeleteFile"
upload_cell_desc="请提供清晰的职业证书原件照片需包含证书编码、加盖钢印的证书照片、姓名、执业范围、最新执业医院最少上传2张。"
upload_cell_note="查看示例"
has_error_content="{{ license_cert_reason }}"
wx:if="{{indentity}}"
disabled="{{(indentity && iden_auth_disabled)}}"
is_multiple="true"
/>
<m-upload-cell
upload_cell_name="医师资格证"
t_icon_name="view-module"
fileList="{{ zige_file_list }}"
max_count="3"
data-scene="2"
data-field_name="zige_file_list"
data-file_multiple="true"
bindUploadFile="doUploadFile"
bindDeleteFile="doDeleteFile"
bind:showNote="onshowZiGeNote"
upload_cell_desc="请提供清晰的资格证书原件照片需包含证书编码、加盖钢印的证书照片、姓名、职称等最少上传1张。"
upload_cell_note="查看示例"
has_error_content="{{ qualification_cert_reason }}"
wx:if="{{indentity}}"
disabled="{{(indentity && iden_auth_disabled)}}"
is_multiple="true"
/>
<m-upload-cell
upload_cell_name="职称证"
t_icon_name="view-module"
fileList="{{ zhicheng_file_list }}"
max_count="3"
data-scene="2"
data-field_name="zhicheng_file_list"
data-file_multiple="true"
bind:showNote="onshowZhiChengImgNote"
bindUploadFile="doUploadFile"
bindDeleteFile="doDeleteFile"
upload_cell_desc="请提供清晰的职称证书原件照片需包含证书编码、加盖钢印的证书照片、姓名等最少上传1张。"
upload_cell_note="查看示例"
has_error_content="{{ work_cert_reason }}"
wx:if="{{indentity}}"
disabled="{{(indentity && iden_auth_disabled)}}"
is_multiple="true"
/>
<view class="sub_button" wx:if="{{indentity}}">
<van-button data-from="doctorauthiden" disabled="{{iden_auth_disabled}}" color="#3CC7C0" custom-style="border-radius: 20rpx;" type="primary" block bind:click="addDoctorAuthIden">{{iden_auth_status_txt}}</van-button>
</view>
<view class="sub_button" wx:else>
<van-button color="#3CC7C0" data-from="myinfo" disabled="{{iden_auth_status == 2}}" custom-style="border-radius: 20rpx;" type="primary" block bind:click="addDoctorAuthIden">{{iden_auth_status_txt}}</van-button>
</view>
<van-toast id="van-toast" />