3.22医生

This commit is contained in:
zoujiandong
2024-03-22 16:10:50 +08:00
parent 2454bafd78
commit bdc8abf326
34 changed files with 437 additions and 137 deletions
+7 -3
View File
@@ -211,6 +211,7 @@ Component({
avatar_reason: response.data.avatar_reason,
department_custom_mobile_reason: response.data.department_custom_mobile_reason,
brief_introduction_reason: response.data.brief_introduction_reason,
email:response.data.email,
be_good_at_reason: response.data.be_good_at_reason,
license_cert_reason: response.data.license_cert_reason,
qualification_cert_reason: response.data.qualification_cert_reason,
@@ -924,10 +925,13 @@ 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
if(this.data.indentity){
if(!(/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(this.data.email))){
wx.showToast({title: '请输入正确格式的邮箱',icon: "error"});return
}
params.email=this.data.email;
}
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}
+104 -17
View File
@@ -5,9 +5,15 @@
<view class="right">
<view class="note">真人正脸</view>
<t-avatar image="{{ avatar }}" />
<view class="icon" wx:if="{{ !(indentity && iden_auth_disabled) || !(!indentity && introduction_status==2)}}">
<view class="icon" wx:if="{{indentity}}">
<t-icon name="chevron-right" size="48rpx" data-name="chevron-right" wx:if="{{!iden_auth_disabled}}" />
</view>
<view class="icon" wx:else>
<t-icon name="chevron-right" size="48rpx" data-name="chevron-right" wx:if="{{introduction_status!=2}}" />
</view>
<!-- <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> -->
</view>
</van-uploader>
</view>
@@ -21,8 +27,16 @@
<!-- <t-cell title="头像" hover required arrow note="真人正脸" /> -->
<!-- {{!indentity && introduction_status==3}} -->
<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'}}"/>
<view wx:if="{{indentity}}">
<t-cell title="城市" hover required arrow="{{ ! iden_auth_disabled }}" note="{{ city_note }}" bindtap="{{iden_auth_disabled?'':'onCityShow'}}"/>
</view>
<view wx:else>
<t-cell title="城市" hover required arrow="{{false}}" note="{{ city_note }}" bindtap="{{true?'':'onCityShow'}}"/>
</view>
<!-- <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'}}"/> -->
<view>
<t-cascader
visible="{{ city_show }}"
theme="tab"
@@ -33,8 +47,15 @@
bind:change="onChangeCity"
bind:close="onCloseCity"
></t-cascader>
</view>
<view wx:if="{{indentity}}">
<t-cell title="医院" hover required arrow="{{ !iden_auth_disabled}}" note="{{ yiyuan_note }}" bindtap="{{iden_auth_disabled?'':'onYiYuanShow'}}"/>
</view>
<view wx:else>
<t-cell title="医院" hover required arrow="{{ false}}" note="{{ yiyuan_note }}" bindtap="{{true?'':'onYiYuanShow'}}"/>
</view>
<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'}}"/>
<!-- <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,12 +85,20 @@
<van-empty description="暂无医院" wx:if="{{yiyuan_columns.length == 0}}"/>
</van-popup>
<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 wx:if="{{indentity}}">
<t-cell title="科室" hover required arrow="{{ !iden_auth_disabled}}" note="{{keshi_note}}"
bindtap="{{iden_auth_disabled?'':'onKeshiShow'}}" bordered="{{ select_keshi_id == '' }}"/>
</view>
<view wx:else>
<t-cell title="科室" hover required arrow="{{ false}}" note="{{keshi_note}}"
bindtap="{{true?'':'onKeshiShow'}}" bordered="{{ select_keshi_id == '' }}"/>
</view>
<!-- <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"
disabled="{{(indentity && iden_auth_disabled)}}"
disabled="{{(indentity && iden_auth_disabled) || (!indentity && introduction_status==2)}}"
type="text" model:value="{{custom_keshi}}" label=""
placeholder="请输入您所在科室实际名称" border="{{department_custom_name_reason == ''}}" />
</view>
@@ -220,8 +249,16 @@
</view>
</t-popup>
<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'}}" />
<view wx:if="{{indentity}}">
<t-cell title="职称" hover required arrow="{{ !iden_auth_disabled}}" note="{{zhicheng_note}}"
bindtap="{{iden_auth_disabled ?'':'onZhiChengShow'}}" />
</view>
<view wx:else>
<t-cell title="职称" hover required arrow="{{false}}" note="{{zhicheng_note}}"
bindtap="{{true ?'':'onZhiChengShow'}}" />
</view>
<!-- <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="请输入科室电话"
@@ -230,8 +267,39 @@
suffixIcon="{{ { name: 'chevron-right', ariaLabel: '右' } }}" /> -->
<!-- <t-cell title="专长" hover required arrow note="请选择专长"/> -->
<van-field
<view wx:if="{{indentity}}">
<van-field
model:value="{{ office_phone }}"
bind:change="onOfficePhoneChange"
placeholder="请输入科室电话"
placeholder-style="font-size:30rpx;letter-spacing: 2rpx;color:rgba(0, 0, 0, 0.4);"
input-align="right"
type="number"
clearable
disabled="{{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>
<view wx:else>
<van-field
model:value="{{ office_phone }}"
bind:change="onOfficePhoneChange"
placeholder="请输入科室电话"
placeholder-style="font-size:30rpx;letter-spacing: 2rpx;color:rgba(0, 0, 0, 0.4);"
input-align="right"
type="number"
clearable
disabled="{{true}}"
border="{{ department_custom_mobile_reason == '' }}"
custom-style="font-size:30rpx;"
>
<text slot="label">科室电话 <text style="color: #e34d59;">*</text> </text>
</van-field>
</view>
<!-- <van-field
model:value="{{ office_phone }}"
bind:change="onOfficePhoneChange"
placeholder="请输入科室电话"
@@ -244,7 +312,7 @@
custom-style="font-size:30rpx;"
>
<text slot="label">科室电话 <text style="color: #e34d59;">*</text> </text>
</van-field>
</van-field> -->
<view class="has_error" wx:if="{{ department_custom_mobile_reason != '' }}" >
<view class="error_box">
@@ -273,7 +341,8 @@
<text class="error_msg">{{ email_reason }}</text>
</view>
</view>
<view class="zhuanchang" bindtap="{{(indentity && iden_auth_disabled)?'':'onZhuanChangShow'}}">
<view wx:if="{{indentity}}">
<view class="zhuanchang" bindtap="{{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">
@@ -283,11 +352,29 @@
<view class="right">
<view class="note">{{zhuanchang_note}}</view>
<view class="icon" wx:if="{{ !(indentity && iden_auth_disabled) }}">
<view class="icon" wx:if="{{ !iden_auth_disabled}}">
<t-icon name="chevron-right" size="48rpx" data-name="chevron-right" />
</view>
</view>
</view>
</view>
<view wx:else>
<view class="zhuanchang" bindtap="{{introduction_status==2?'':'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" wx:if="{{ introduction_status!=2}}">
<t-icon name="chevron-right" size="48rpx" data-name="chevron-right" />
</view>
</view>
</view>
</view>
<m-textarea-cell
textarea_cell_name="个人简介"
@@ -296,7 +383,7 @@
textarea_cell_note_show="{{!(indentity && iden_auth_disabled)}}"
textarea_cell_content_placeholder="您目前就职医院与科室、社会兼职、所获荣誉、参与科研课题及发表论文等信息(10~1000字)"
textarea_val="{{textarea_jianjie}}"
disabled="{{(indentity && iden_auth_disabled)}}"
disabled="{{(indentity && iden_auth_disabled) || (!indentity && introduction_status==2)}}"
has_error_content="{{ brief_introduction_reason }}"
data-textarea_name="textarea_jianjie"
bindTextAreaBlur="getTextAreaVal" />
@@ -306,7 +393,7 @@
t_icon_name="view-module"
bind:showNote="onshowShanChangNote"
textarea_cell_note_show="{{!(indentity && iden_auth_disabled)}}"
disabled="{{(indentity && iden_auth_disabled)}}"
disabled="{{(indentity && iden_auth_disabled) || (!indentity && introduction_status==2)}}"
textarea_val="{{textarea_shanchang}}"
has_error_content="{{ be_good_at_reason }}"
textarea_cell_content_placeholder="描述您所擅长治疗的疾病或者研究方向(10~1000字)"
@@ -382,7 +469,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==2}}" 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="handleUpdateIntroduction">{{iden_auth_status_txt}}</van-button>
</view>
+10 -1
View File
@@ -28,6 +28,8 @@ Component({
console.log("onBackonBackonBack");
let back_url = this.data.navbarData.back_url;
let back_url_type = this.data.navbarData.back_url_type;
console.log("--------");
console.log(back_url);
if(back_url){
if(back_url_type == 0){
app.go(back_url);
@@ -37,7 +39,14 @@ Component({
});
}
}else{
wx.navigateBack();
wx.navigateBack({
fail:function(){
wx.reLaunch({
delta:1,
url: '/Pages/yishi/index/index',
})
}
});
}
},
onGoHome() {