3.18医生

This commit is contained in:
zoujiandong
2024-03-18 18:50:29 +08:00
parent d37fb6b1de
commit a9edbc3489
112 changed files with 4490 additions and 340 deletions
+12
View File
@@ -81,6 +81,7 @@ Component({
license_cert_reason: "",
qualification_cert_reason: "",
work_cert_reason: "",
email_reason:'',
department_custom_name_reason: '',
zhuanchang_note: '请选择专长',
jianjie_show: false,
@@ -923,6 +924,10 @@ Component({
params.department_custom_name = this.data.custom_keshi;//自定义科室名称
if(!this.data.office_phone){wx.showToast({title: '请输入科室电话',icon: "error"});return}
params.department_custom_mobile = this.data.office_phone;//科室电话
if(!(/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(this.data.email))){
wx.showToast({title: '请输入正确格式的邮箱',icon: "error"});return
}
params.email=this.data.email;
params.doctor_expertise = this.data.zhuanchang_columns.filter(e => e.is_selected == 1 ).map(e => e.expertise_id);//专长
if(params.doctor_expertise.length == 0){wx.showToast({title: '请选择专长',icon: "error"});return}
if(!this.data.select_zhicheng_id){wx.showToast({title: '请选择职称',icon: "error"});return}
@@ -942,6 +947,7 @@ Component({
if(this.data.zhicheng_file_list.length == 0){wx.showToast({title: '请上传职称证',icon: "error"});return}
params.work_cert = this.data.zhicheng_file_list.map(e => e.url);//工作证,职称证
}
params.source=1;
console.log(params);
let _this = this;
@@ -963,6 +969,12 @@ Component({
department_custom_mobile_reason: ""
})
},
onEmailChange(){
this.setData({
email_reason: ""
})
},
doUploadFile(event) {
console.log("index douploadFIle: ", event);
const scene = event.currentTarget.dataset.scene;
+31 -11
View File
@@ -1,11 +1,11 @@
<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">
<van-uploader disabled="{{ (indentity && iden_auth_disabled ) || (!indentity && introduction_status==2)}}" 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" wx:if="{{ !(indentity && iden_auth_disabled) }}">
<view class="icon" wx:if="{{ !(indentity && iden_auth_disabled) || !(!indentity && introduction_status==2)}}">
<t-icon name="chevron-right" size="48rpx" data-name="chevron-right" />
</view>
</view>
@@ -21,7 +21,7 @@
<!-- <t-cell title="头像" hover required arrow note="真人正脸" /> -->
<!-- {{!indentity && introduction_status==3}} -->
<t-cell title="城市" hover required arrow="{{ !((indentity && iden_auth_disabled) || (!indentity && introduction_status==3)) }}" note="{{ city_note }}" bindtap="{{((indentity && iden_auth_disabled) || (!indentity && introduction_status==3))?'':'onCityShow'}}"/>
<t-cell title="城市" hover required arrow="{{ !((indentity && iden_auth_disabled) || (!indentity && introduction_status!=2)) }}" note="{{ city_note }}" bindtap="{{((indentity && iden_auth_disabled) || (!indentity && introduction_status!=2))?'':'onCityShow'}}"/>
<t-cascader
visible="{{ city_show }}"
@@ -34,7 +34,7 @@
bind:close="onCloseCity"
></t-cascader>
<t-cell title="医院" hover required arrow="{{ !((indentity && iden_auth_disabled) || (!indentity && introduction_status==3)) }}" note="{{ yiyuan_note }}" bindtap="{{((indentity && iden_auth_disabled) || (!indentity && introduction_status==3))?'':'onYiYuanShow'}}"/>
<t-cell title="医院" hover required arrow="{{ !((indentity && iden_auth_disabled) || (!indentity && introduction_status!=2)) }}" note="{{ yiyuan_note }}" bindtap="{{((indentity && iden_auth_disabled) || (!indentity && introduction_status!=2))?'':'onYiYuanShow'}}"/>
<van-popup
show="{{ yiyuan_show }}"
position="bottom"
@@ -64,8 +64,8 @@
<van-empty description="暂无医院" wx:if="{{yiyuan_columns.length == 0}}"/>
</van-popup>
<t-cell title="科室" hover required arrow="{{ !((indentity && iden_auth_disabled) || (!indentity && introduction_status==3)) }}" note="{{keshi_note}}"
bindtap="{{((indentity && iden_auth_disabled) || (!indentity && introduction_status==3))?'':'onKeshiShow'}}" bordered="{{ select_keshi_id == '' }}"/>
<t-cell title="科室" hover required arrow="{{ !((indentity && iden_auth_disabled) || (!indentity && introduction_status!=2)) }}" note="{{keshi_note}}"
bindtap="{{((indentity && iden_auth_disabled) || (!indentity && introduction_status!=2))?'':'onKeshiShow'}}" bordered="{{ select_keshi_id == '' }}"/>
<view class="custom_keshi" wx:if="{{ select_keshi_id != ''}}">
<van-field bind:change="onCustomKeshiChange"
@@ -220,8 +220,8 @@
</view>
</t-popup>
<t-cell title="职称" hover required arrow="{{ !((indentity && iden_auth_disabled) || (!indentity && introduction_status==3)) }}" note="{{zhicheng_note}}"
bindtap="{{((indentity && iden_auth_disabled) || (!indentity && introduction_status==3))?'':'onZhiChengShow'}}" />
<t-cell title="职称" hover required arrow="{{ !((indentity && iden_auth_disabled) || (!indentity && introduction_status!=2)) }}" note="{{zhicheng_note}}"
bindtap="{{((indentity && iden_auth_disabled) || (!indentity && introduction_status!=2))?'':'onZhiChengShow'}}" />
<!-- <t-input
label="科室电话"
placeholder="请输入科室电话"
@@ -239,7 +239,7 @@
input-align="right"
type="number"
clearable
disabled="{{(indentity && iden_auth_disabled) || (!indentity && introduction_status==3) }}"
disabled="{{(indentity && iden_auth_disabled) || (!indentity && introduction_status!=2) }}"
border="{{ department_custom_mobile_reason == '' }}"
custom-style="font-size:30rpx;"
>
@@ -252,7 +252,27 @@
<text class="error_msg">{{ department_custom_mobile_reason }}</text>
</view>
</view>
<van-field
model:value="{{ email }}"
bind:change="onEmailChange"
placeholder="请输入个人邮箱"
placeholder-style="font-size:30rpx;letter-spacing: 2rpx;color:rgba(0, 0, 0, 0.4);"
input-align="right"
type="text"
clearable
wx:if="{{indentity}}"
disabled="{{(indentity && iden_auth_disabled)}}"
border="{{ email_reason == '' }}"
custom-style="font-size:30rpx;"
>
<text slot="label">个人邮箱 <text style="color: #e34d59;">*</text> </text>
</van-field>
<view class="has_error" wx:if="{{email_reason != '' }}" >
<view class="error_box">
<t-icon color="red" name="close-circle-filled" size="48rpx" data-name="close-circle-filled" />
<text class="error_msg">{{ email_reason }}</text>
</view>
</view>
<view class="zhuanchang" bindtap="{{(indentity && iden_auth_disabled)?'':'onZhuanChangShow'}}">
<view class="title">专长 <text class="required"> *</text></view>
<view class="content">
@@ -362,7 +382,7 @@
<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="{{!(introduction_status==0 || introduction_status==3)}}" custom-style="border-radius: 20rpx;" type="primary" block bind:click="{{introduction_status==0?'addDoctorAuthIden':'handleUpdateIntroduction'}}">{{iden_auth_status_txt}}</van-button>
<van-button color="#3CC7C0" data-from="myinfo" disabled="{{introduction_status==2}}" custom-style="border-radius: 20rpx;" type="primary" block bind:click="{{introduction_status==0?'addDoctorAuthIden':'handleUpdateIntroduction'}}">{{iden_auth_status_txt}}</van-button>
</view>