Compare commits

...

8 Commits

Author SHA1 Message Date
zoujiandong
b35893fd9c 首页添加字段 2024-04-25 13:31:07 +08:00
zoujiandong
3d2599717f 正则身份 2024-04-25 09:59:05 +08:00
zoujiandong
a3262a5bc0 提交bug简介 2024-04-02 16:57:23 +08:00
zoujiandong
bc94e1dafe 修改输入框 2024-03-29 18:44:30 +08:00
zoujiandong
8c0ed211dd 修改后提交 2024-03-28 15:28:20 +08:00
zoujiandong
7d3bd2e823 限制错误字符 2024-03-28 09:44:04 +08:00
zoujiandong
44642c8f58 理由换行 2024-03-28 08:56:01 +08:00
zoujiandong
b938adef70 专长 2024-03-27 17:56:05 +08:00
7 changed files with 103 additions and 31 deletions

View File

@ -266,8 +266,45 @@ Page({
let iden_auth_status = response.data.info.iden_auth_status;
//多点执业认证
let multi_point_status = response.data.info.multi_point_status;
console.log(multi_point_status);
//绑定结算银行卡
let is_bind_bank = response.data.info.is_bind_bank;
api.getDoctorService(response.data.info.doctor_id).then(res=>{
if(res.code==200){
let result=res.data;
for (let i = 0; i < result.length; i++) {
if(result[i].inquiry_type=1 && result[i].inquiry_mode==1 && result[i].is_enable==1){
this.setData({
'info.is_img_expert_reception':1
})
}else{
this.setData({
'info.is_img_expert_reception':0
})
};
if(result[i].inquiry_type=2 && result[i].is_enable==1){
this.setData({
'info.is_img_quick_reception':1
})
}else{
this.setData({
'info.is_img_quick_reception':0
})
};
if(result[i].inquiry_type=3 && result[i].is_enable==1){
this.setData({
'info.is_img_welfare_reception':1
})
}else{
this.setData({
'info.is_img_welfare_reception':0
})
};
}
}
})
// //是否参加专家图文接诊0:否 1:是)
// let is_img_expert_reception = response.data.info.is_img_expert_reception;
// //是否参加专家快速接诊0:否 1:是)
@ -674,6 +711,7 @@ Page({
let is_bind_bank = this.data.info.is_bind_bank;
//是否参加专家图文接诊0:否 1:是)
let is_img_expert_reception = this.data.info.is_img_expert_reception;
console.log(is_img_expert_reception)
//是否参加专家快速接诊0:否 1:是)
let is_img_quick_reception = this.data.info.is_img_quick_reception;
//是否参加专家公益接诊0:否 1:是)
@ -708,11 +746,12 @@ Page({
}
let retult = true;
console.log(statusArr);
statusArr.forEach(status => {
let now_case = this.data.mycase.find(item => {
return item.case_status == status;
});
// console.log("now_case: ", now_case);
console.log("now_case: ", now_case);
//所属模块
let moudle = e.currentTarget.dataset.moudle;
// console.log("moudle: ", moudle);
@ -732,7 +771,7 @@ Page({
}
}
})
console.log(retult);
return retult;
},
onClickHideOverlay(){

View File

@ -82,6 +82,7 @@ Component({
qualification_cert_reason: "",
work_cert_reason: "",
email_reason:'',
expertise_reason:'',
department_custom_name_reason: '',
zhuanchang_note: '请选择专长',
jianjie_show: false,
@ -90,6 +91,10 @@ Component({
img_cropper_src: '',
img_cropper_width: 250, //宽度
img_cropper_height: 250, //高度
old_be_good_at:'',
old_avatar:'',
old_doctor_expertise:'',
old_brief_introduction:''
},
options: {
addGlobalClass: true,
@ -106,7 +111,9 @@ Component({
this.setData({
doctorauthiden_data_ready: true,
textarea_jianjie: response.data.brief_introduction,
old_brief_introduction: response.data.brief_introduction,
textarea_shanchang: response.data.be_good_at,
old_be_good_at:response.data.be_good_at,
custom_keshi: response.data.department_custom_name,
office_phone: response.data.department_custom_mobile,
select_keshi_id: response.data.department_custom_id,
@ -174,6 +181,7 @@ Component({
if(avatar){
this.setData({
"avatar": avatar,
old_avatar:avatar,
is_avatar: true,
})
}
@ -184,6 +192,7 @@ Component({
this.setData({
avatar_reason: response.data.avatar,
brief_introduction_reason: response.data.brief_introduction,
expertise_reason:response.data.doctor_expertise,
be_good_at_reason: response.data.be_good_at,
})
@ -323,13 +332,18 @@ Component({
//加载专长列表
api.getDoctorExpertise().then(response => {
console.log(response);
let arr=response.data.filter(e => e.is_selected == 1 ).map(e => e.expertise_id);
let old_doctor_expertise=JSON.stringify(arr);
_this.setData({
zhuanchang_columns: response.data
zhuanchang_columns: response.data,
old_doctor_expertise:old_doctor_expertise
})
}).then(()=>{
let index = this.data.zhuanchang_columns.findIndex(item => {
return item.is_selected == 1;
})
if(index != undefined) {
this.setData({
zhuanchang_note: ""
@ -875,7 +889,10 @@ Component({
}
},
zhuanchangConfirm(e){
this.setData({ zhuanchang_show: false });
this.setData({
zhuanchang_show: false,
expertise_reason:''
});
this.triggerEvent('hidePageMeta');
},
zhuanchangConcle(e){
@ -883,28 +900,32 @@ Component({
this.triggerEvent('hidePageMeta');
},
handleUpdateIntroduction(){
let {avatar,textarea_jianjie,textarea_shanchang}=this.data;
let {avatar,textarea_jianjie,textarea_shanchang,old_avatar,old_brief_introduction,old_be_good_at,old_doctor_expertise}=this.data;
let doctor_expertise= this.data.zhuanchang_columns.filter(e => e.is_selected == 1 ).map(e => e.expertise_id);
if(!avatar){wx.showToast({title: '请上传头像',icon: "error"});return}
if(doctor_expertise.length == 0){wx.showToast({title: '请选择专长',icon: "error"});return}
if(!textarea_jianjie){wx.showToast({title: '请输入简介',icon: "error"});return}
if(!textarea_shanchang){wx.showToast({title: '请输入擅长',icon: "error"});return}
api.updateIntroduction({
avatar,
brief_introduction:textarea_jianjie,
be_good_at:textarea_shanchang,
doctor_expertise
}).then(response=>{
wx.showToast({
title: '提交成功',
icon: "success"
})
this.setData({
introduction_status:2,
iden_auth_status_txt: "资料已提交,审核中"
})
})
if(!textarea_shanchang){wx.showToast({title: '请输入擅长',icon: "error"});return};
console.log(textarea_jianjie,old_brief_introduction)
console.log(textarea_shanchang, old_be_good_at )
if(avatar==old_avatar && textarea_jianjie==old_brief_introduction &&textarea_shanchang== old_be_good_at && JSON.stringify(doctor_expertise)==old_doctor_expertise){
wx.showToast({title: '请修改数据后再提交',icon: "none"});return
}
// api.updateIntroduction({
// avatar,
// brief_introduction:textarea_jianjie,
// be_good_at:textarea_shanchang,
// doctor_expertise
// }).then(response=>{
// wx.showToast({
// title: '提交成功',
// icon: "success"
// })
// this.setData({
// introduction_status:2,
// iden_auth_status_txt: "资料已提交,审核中"
// })
// })
},
addDoctorAuthIden(e){
console.log("addDoctorAuthIden addDoctorAuthIden")

View File

@ -342,7 +342,7 @@
</view>
</view>
<view wx:if="{{indentity}}">
<view class="zhuanchang" bindtap="{{iden_auth_disabled?'':'onZhuanChangShow'}}">
<view class="zhuanchang {{expertise_reason?'hasnoborder':''}}" 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">
@ -359,7 +359,7 @@
</view>
</view>
<view wx:else>
<view class="zhuanchang" bindtap="{{introduction_status==2?'':'onZhuanChangShow'}}">
<view class="zhuanchang {{expertise_reason?'hasnoborder':''}}" 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">
@ -375,7 +375,12 @@
</view>
</view>
</view>
<view class="has_error" wx:if="{{expertise_reason != '' }}" >
<view class="error_box">
<t-icon color="red" name="close-circle-filled" size="48rpx" data-name="close-circle-filled" />
<text class="error_msg">{{ expertise_reason }}</text>
</view>
</view>
<m-textarea-cell
textarea_cell_name="个人简介"
t_icon_name="view-module"
@ -386,8 +391,10 @@
disabled="{{(indentity && iden_auth_disabled) || (!indentity && introduction_status==2)}}"
has_error_content="{{ brief_introduction_reason }}"
data-textarea_name="textarea_jianjie"
bindTextAreaBlur="getTextAreaVal" />
bind:TextAreaBlur="getTextAreaVal" />
<view class="has_error" wx:if="{{brief_introduction_reason != '' }}" >
</view>
<m-textarea-cell
textarea_cell_name="擅长领域"
t_icon_name="view-module"
@ -397,7 +404,7 @@
textarea_val="{{textarea_shanchang}}"
has_error_content="{{ be_good_at_reason }}"
textarea_cell_content_placeholder="描述您所擅长治疗的疾病或者研究方向10~1000字"
data-textarea_name="textarea_shanchang" bindTextAreaBlur="getTextAreaVal" />
data-textarea_name="textarea_shanchang" bind:TextAreaBlur="getTextAreaVal" />
<m-upload-cell
upload_cell_name="医师执业证"

View File

@ -74,6 +74,9 @@
transform: scaleY(0.5);
left: 32rpx;
}
.zhuanchang.hasnoborder::after{
border-bottom: none;
}
.zhuanchang .content{
flex: 1;
display: flex;
@ -263,4 +266,5 @@
color: #FF0000;
letter-spacing: 3rpx;
font-weight: 600;
word-break: break-all;
}

View File

@ -7,7 +7,7 @@
</view>
</view>
<view class="textarea-cell-content">
<textarea disabled="{{disabled}}" bindblur="bindTextAreaBlur" maxlength="1000" style="margin: 20rpx 20rpx 0 20rpx; width: 100%; height: 90%; background-color: #FAFAFA;" name="" id="" placeholder="{{ textarea_cell_content_placeholder }}" value="{{textarea_val}}"></textarea>
<textarea disabled="{{disabled}}" bindinput="bindTextAreaBlur" maxlength="1000" style="margin: 20rpx 20rpx 0 20rpx; width: 100%; height: 90%; background-color: #FAFAFA;" name="" id="" placeholder="{{ textarea_cell_content_placeholder }}" value="{{textarea_val}}"></textarea>
</view>
<view class="error_box" wx:if="{{ has_error_content != '' }}" >
<t-icon color="red" name="close-circle-filled" size="48rpx" data-name="close-circle-filled" />

View File

@ -74,4 +74,5 @@
color: #FF0000;
letter-spacing: 3rpx;
font-weight: 600;
word-break: break-all;
}

View File

@ -354,7 +354,7 @@ Page({
console.log("idcard: ", idcard);
realname = realname.replace(/•/g,"·");
var realname_reg= /^(([a-zA-Z+\.?\·?a-zA-Z+]{2,30}$)|([\u4e00-\u9fa5+\·?\u4e00-\u9fa5+]{2,30}$))/;
var idcard_reg=/^(^[1-9]\d{5}[1-9]\d{3}(((0[2])([0|1|2][0-8])|(([0-1][1|4|6|9])([0|1|2][0-9]|[3][0]))|(((0[1|3|5|7|8])|(1[0|2]))(([0|1|2]\d)|3[0-1]))))((\d{4})|\d{3}[Xx])$)$/;
var idcard_reg=/^(?:1[1-5]|2[1-3]|3[1-7]|4[1-6]|5[0-4]|6[1-5])\d{4}(?:1[89]|20)\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])\d{3}[\dxX]$/;
//判断用户输入的真实姓名是否为空
if(realname.length == 0){