This commit is contained in:
haomingming 2023-03-23 15:52:15 +08:00
parent cfa69efd15
commit 12e4984a95
53 changed files with 661 additions and 193 deletions

View File

@ -1,6 +1,6 @@
<view class="container">
<view class="tui-navigatorbar">
<image wx:if="{{ navbarData.showCapsule==1 }}" class="tui-navigatorbar-back" bindtap="_navback" src="../../TUIKit/static/assets/ic_back_white.svg" />
<image wx:if="{{ navbarData.showCapsule==1 }}" class="tui-navigatorbar-back" bindtap="_navback" src="../../TUIKit/static/assets/ic_back_black.svg" />
<view class="conversation-title">{{ navbarData.title }}</view>
</view>
<view class="box">

View File

@ -7,7 +7,7 @@
top: 0;
width: 750rpx;
height: 170rpx;
background-color: #69d85f;
background-color: #ffffff;
z-index: 99;
}
.tui-navigatorbar-back{

View File

@ -7,12 +7,14 @@
model:value="{{ phone }}"
label="+86"
placeholder="请输入手机号"
type="number"
input-align="left"
/>
<van-field
model:value="{{ sms }}"
center
clearable
type="number"
label="短信验证码"
placeholder="请输入短信验证码"
use-button-slot

View File

@ -81,6 +81,13 @@ Page({
},
onBankShow(e) {
console.log("onBankShow");
if(this.data.select_county_id == ""){
wx.showToast({
title: '请选择城市',
icon: "error"
})
return;
}
this.setData({ bank_show: true });
},
onBankClose(e) {
@ -200,6 +207,8 @@ Page({
},
addBank(e){
console.log("addbank, ", e);
//绑定医生银行卡
let params = {};
params.county_id = this.data.select_county_id;
@ -207,6 +216,14 @@ Page({
params.province_id = this.data.select_province_id;
params.bank_card_code = this.data.bankcard;
params.bank_id = this.data.select_bank_id;
console.log("params.county_id: ", params.county_id)
if(params.county_id == ""){
wx.showToast({
title: '请选择城市',
icon: "error"
})
return;
}
console.log(params);
let bank_card_id = this.data.bank_card_id;
if(bank_card_id){

View File

@ -9,6 +9,7 @@
"van-popup": "@vant/weapp/popup/index",
"van-picker": "@vant/weapp/picker/index",
"van-toast": "@vant/weapp/toast/index",
"van-image": "@vant/weapp/image/index",
"t-cascader": "tdesign-miniprogram/cascader/cascader"
}
}

View File

@ -2,7 +2,8 @@
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
<view class="top_note">
请确定开户人姓名与账户医生的姓名一致
<van-image style="display: flex;align-items: center;margin-right: 10rpx;" src="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/bell.png" fit="widthFix" width="45rpx" aria-label="qrcode" />
<text>请确定开户人姓名与账户医生的姓名一致</text>
</view>
<view class="info">
<van-cell-group>
@ -19,6 +20,8 @@
placeholder="请输入卡号"
model:value="{{ bankcard }}"
input-align="right"
type="number"
clearable
placeholder-style="font-size: 16px;"
>
<text slot="label" style="font-size: 30rpx;">银行卡号</text>

View File

@ -10,6 +10,8 @@
color: #3CC7C0;
background-color: #F0FFFB;
font-size: 30rpx;
display: flex;
align-items: center;
}
.bankcard{
margin-top: 20rpx;
@ -20,4 +22,16 @@
width: 92vw;
margin: 50rpx auto;
line-height: 50rpx;
}
.t-tabs__item--active{
color: #49B9AD !important;
}
.t-tabs__track{
background-color: #49B9AD !important;
}
.t-icon-check{
color: #49B9AD !important;
}
.van-picker__confirm{
color: #3cc7c0 !important;
}

View File

@ -15,7 +15,7 @@ Page({
height: app.globalData.height,
//选项卡
stickyProps: {
zIndex: 999999,
zIndex: 9,
offsetTop: (app.globalData.height * 2)
},
selected_tab: 0,

View File

@ -26,6 +26,7 @@
placeholder-style="font-size:28rpx; color: #C5C8CB;"
input-align="right"
clearable
type="text"
custom-style="font-size:30rpx;"
disabled="{{next_btn_disabled}}"
>

View File

@ -61,7 +61,10 @@
color: #49B9AD !important;
}
.t-tabs__track{
background-color: var(--td-tab-track-color, var(--td-primary-color, #49B9AD)) !important;
background-color: #49B9AD !important;
}
.t-icon-check{
color: #49B9AD !important;
}
.t-cell__note {
font-size: 25rpx !important;
@ -171,4 +174,7 @@
.van-search {
top: -270px !important;
position: relative !important;
}
.van-picker__confirm{
color: #3cc7c0 !important;
}

View File

@ -8,7 +8,7 @@ Page({
navHeight: 0,
stateHeight: 0,
info:{
user_name: "xxx",
user_name: "医师姓名",
not_accepted_inquiry_num: 0,
accepting_inquiry_num: 0,
info_shiming_status_txt: "未认证",
@ -76,16 +76,23 @@ Page({
{
case_status: 4,
case_module: [7],
case_text: "请您先进行多点执业认证"
case_text: "请您先多点执业认证"
},
{
case_status: 5,
case_module: [],
case_text: "已全部通过"
},
{
case_status: 6,
case_module: [7],
case_text: "请您先多点执业认证"
},
],
skeleton_loading: true,
contactKeFu: false
contactKeFu: false,
jiesuan_dialog_show: false,
jiesuan_dialog_visible: false
},
// 获取状态栏信息
getMenuButtonBound() {
@ -106,7 +113,16 @@ Page({
stateHeight: stateHeight + top, // 状态栏高度
});
},
confirmJieSuanDialog(){
this.setData({
jiesuan_dialog_visible: false
})
},
cancelJieSuanDialog(){
this.setData({
jiesuan_dialog_visible: false
})
},
onLoad(){
},
@ -229,6 +245,7 @@ Page({
},
go(e){
let checkDialog = this.checkDialog(e);
console.log("checkDialog: ", checkDialog);
if(checkDialog){
let url = e.currentTarget.dataset.url;
console.log(url);
@ -343,7 +360,7 @@ Page({
"info.info_shiming_status_txt": "审核中",
"info.info_shiming_status": "info_shiming_status_yes",
shiming_status_url: "/Pages/yishi/identity/index?selected_tab=1",
dialog_content: "您的医师身份认证正在审核中",
// dialog_content: "您的医师身份认证正在审核中",
// default_dialog_show: true
});
return false;
@ -385,7 +402,7 @@ Page({
if(multi_point_status == 0){
if(!this.data.default_dialog_show){
this.setData({
dialog_visible: true,
// dialog_visible: true,
});
}
this.setData({
@ -400,7 +417,7 @@ Page({
if(multi_point_status == 2){
if(!this.data.default_dialog_show){
this.setData({
dialog_visible: true,
// dialog_visible: true,
});
}
this.setData({
@ -415,7 +432,7 @@ Page({
if(multi_point_status == 3){
if(!this.data.default_dialog_show){
this.setData({
dialog_visible: true,
// dialog_visible: true,
});
}
this.setData({
@ -445,6 +462,14 @@ Page({
})
return false;
}
if(!app.globalData.jiesuan_dialog_show){
this.setData({
jiesuan_dialog_visible: true,
});
app.globalData.jiesuan_dialog_show = true
}
this.setData({
"info.info_shiming_status_txt": "去接诊",
shiming_status_url: "/Pages/yishi/wenzhen_v2/wenzhen",
@ -482,8 +507,8 @@ 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;
let status = 0;
let statusArr = [];
// 未实名认证和医师身份认证 0
// 已实名认证,未医师身份认证 1
// 已实名认证和医师身份认证,未绑定结算银行卡 2
@ -491,41 +516,52 @@ Page({
// 已实名认证和医师身份认证且绑定结算银行卡,开通了在线问诊,未开通多点执业认证 4
// 已实名认证和医师身份认证且绑定结算银行卡,开通了在线问诊,已开通多点执业认证 5
if(idcard_status == 0 && iden_auth_status == 0){
status = 0;
}else if(idcard_status == 1 && iden_auth_status != 1){
status = 1;
}else if(idcard_status == 1 && iden_auth_status == 1 && is_bind_bank != 1){
status = 2;
}else if(idcard_status == 1 && iden_auth_status == 1 && is_bind_bank == 1 && is_img_expert_reception != 1){
status = 3;
}else if(idcard_status == 1 && iden_auth_status == 1 && is_bind_bank == 1 && is_img_expert_reception == 1 && multi_point_status != 1){
status = 4;
}else{
status = 5;
statusArr.push(0);
}
if(idcard_status == 1 && iden_auth_status != 1){
statusArr.push(1);
}
if(idcard_status == 1 && iden_auth_status == 1 && is_bind_bank != 1){
statusArr.push(2);
}
if(idcard_status == 1 && iden_auth_status == 1 && is_bind_bank == 1 && is_img_expert_reception != 1){
statusArr.push(3);
}
if(idcard_status == 1 && iden_auth_status == 1 && is_bind_bank == 1 && is_img_expert_reception == 1 && multi_point_status != 1){
statusArr.push(4);
}
if(idcard_status == 1 && iden_auth_status == 1 && is_bind_bank == 1 && is_img_expert_reception == 1 && multi_point_status == 1){
statusArr.push(5);
}
if(idcard_status == 1 && iden_auth_status == 1 && multi_point_status != 1){
statusArr.push(6);
}
let now_case = this.data.mycase.find(item => {
return item.case_status == status;
});
console.log("now_case: ", now_case);
//所属模块
let moudle = e.currentTarget.dataset.moudle;
console.log("moudle: ", moudle);
if(now_case){
let now_moudle = now_case.case_module.find(item => {
return item == moudle;
})
console.log("now_moudle: ", now_moudle);
if(now_moudle != undefined){
this.setData({
dialog_content: now_case.case_text,
dialog_visible: true
});
return false;
let retult = true;
statusArr.forEach(status => {
let now_case = this.data.mycase.find(item => {
return item.case_status == status;
});
console.log("now_case: ", now_case);
//所属模块
let moudle = e.currentTarget.dataset.moudle;
console.log("moudle: ", moudle);
if(now_case){
let now_moudle = now_case.case_module.find(item => {
return item == moudle;
})
console.log("now_moudle: ", now_moudle);
if(now_moudle != undefined){
this.setData({
dialog_content: now_case.case_text,
dialog_visible: true
});
retult = false;
return;
}
}
}
})
return true;
return retult;
}
})

View File

@ -6,6 +6,7 @@
"van-dialog": "@vant/weapp/dialog/index",
"t-swiper": "tdesign-miniprogram/swiper/swiper",
"t-badge": "tdesign-miniprogram/badge/badge",
"t-dialog": "tdesign-miniprogram/dialog/dialog"
"t-dialog": "tdesign-miniprogram/dialog/dialog",
"van-image": "@vant/weapp/image/index"
}
}

View File

@ -22,8 +22,8 @@
</view>
</view>
<view class="info_wenzhen">
<view class="info_wenzhen_new" bindtap="go" data-moudle="0">新问诊:{{info.not_accepted_inquiry_num}}</view>
<view class="info_wenzhen_ing" bindtap="go" data-moudle="1">接诊中:{{info.accepting_inquiry_num}}</view>
<view class="info_wenzhen_new" bindtap="go" data-url="/Pages/yishi/wenzhen_v2/wenzhen" data-moudle="0">新问诊:{{info.not_accepted_inquiry_num}}</view>
<view class="info_wenzhen_ing" bindtap="go" data-url="/Pages/yishi/wenzhen_v2/wenzhen" data-moudle="1">接诊中:{{info.accepting_inquiry_num}}</view>
</view>
</view>
<view class="info_note" wx:if="{{info.show_info_note}}">
@ -50,8 +50,8 @@
</view>
</view>
<view class="renzheng_content_right">
<image class="renzheng_content_right_img"
mode="widthFix"
<van-image class="renzheng_content_right_img" width="100%"
fit="widthFix"
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/yishirenzheng.png"
/>
</view>
@ -67,8 +67,8 @@
</view>
</view>
<view class="renzheng_content_right">
<image class="renzheng_content_right_img"
mode="widthFix"
<van-image class="renzheng_content_right_img" width="100%"
fit="widthFix"
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/zhiyerenzheng.png"
/>
</view>
@ -91,38 +91,41 @@
<!-- 功能模块 -->
<view class="fun_box">
<view bindtap="go" data-moudle="3" data-url="/Pages/yishi/myprofile/index" class="fun_box_item">
<image class="fun_box_item_img"
mode="widthFix"
width="70rpx"
custom-style="width: 70rpx;"
<van-image class="fun_box_item_img"
fit="heightFix"
height="70rpx"
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/jianjie.png"
/>
<text class="fun_box_item_txt">简介管理</text>
</view>
<view bindtap="go" data-moudle="4" data-url="/Pages/yishi/onlinesetup/index" class="fun_box_item">
<image class="fun_box_item_img"
mode="widthFix"
<van-image class="fun_box_item_img"
fit="widthFix"
width="70rpx"
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/zaixian.png"
/>
<text class="fun_box_item_txt">在线问诊管理</text>
</view>
<view bindtap="go" data-moudle="5" data-url="/Pages/yishi/kuaisusetup/index" class="fun_box_item">
<image class="fun_box_item_img"
mode="widthFix"
<van-image class="fun_box_item_img"
fit="widthFix"
width="70rpx"
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/kuaisu.png"
/>
<text class="fun_box_item_txt">快速问诊管理</text>
</view>
<view bindtap="go" data-moudle="6" data-url="/Pages/yishi/yizhensetup/index" class="fun_box_item">
<image class="fun_box_item_img"
mode="widthFix"
<van-image class="fun_box_item_img"
fit="widthFix"
width="70rpx"
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/yizhen.png"
/>
<text class="fun_box_item_txt">公益问诊管理</text>
</view>
<view bindtap="go" data-moudle="7" data-url="/Pages/yishi/chufangsetup/index" class="fun_box_item">
<image class="fun_box_item_img"
mode="widthFix"
<van-image class="fun_box_item_img"
fit="widthFix"
width="70rpx"
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/chufang.png"
/>
<view class="fun_box_item_txt">
@ -130,8 +133,9 @@
</view>
</view>
<view class="fun_box_item" data-moudle="8" bindtap="contactKeFu">
<image class="fun_box_item_img"
mode="widthFix"
<van-image class="fun_box_item_img"
fit="widthFix"
width="70rpx"
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/kefu.png"
/>
<text class="fun_box_item_txt">联系客服</text>
@ -140,6 +144,7 @@
<view style="width: 100%;height: 55px;">
<!-- 处理底部tabbar遮挡 50px -->
</view>
<t-dialog
visible="{{ dialog_visible }}"
title="温馨提示"
@ -152,6 +157,21 @@
确定
</view>
</t-dialog>
<t-dialog
visible="{{ jiesuan_dialog_visible }}"
title="温馨提示"
content="您是否了解费用结算规则?"
>
<view slot="cancel-btn" class="dialog dialog_cancel_btn" bindtap="cancelJieSuanDialog">
已了解
</view>
<view slot="confirm-btn" class="dialog dialog_confirm_btn" bindtap="confirmJieSuanDialog">
不了解
</view>
</t-dialog>
<van-dialog
title="立即联系客服"
show="{{ contactKeFu }}"

View File

@ -190,11 +190,15 @@
}
.fun_box_item_img{
flex: 1;
display: flex;
justify-content: center;
}
.fun_box_item_txt{
flex: 2;
font-size: 30rpx;
color: #333333;
height: 70rpx;
line-height: 70rpx;
}
.t-class-cancel{
color: #3CC7C0 !important;

View File

@ -36,7 +36,7 @@ Page({
},
onLoad(){
this.setData({ note: this.data.open_note });
},
onShow(){
let params = {};
@ -49,6 +49,15 @@ Page({
info: response.data.info,
config: response.data.config,
})
}).then(re => {
let is_open = this.data.info.is_open;
let note = this.data.note;
if(is_open == 1) note = this.data.open_note;
if(is_open == 0) note = this.data.close_note;
this.setData({
note: note
})
}).catch(errors => {console.error(errors);})
},
onChange({ detail }) {
@ -67,6 +76,15 @@ Page({
params.is_open = detail?1:0;
api.putDoctorInquiryOpen(params).then(response => {
console.log(response);
}).then(()=>{
if(detail){
wx.requestSubscribeMessage({
tmplIds: ['G1RIs0RYqsTQ2CuPQWalIGVet9sd_d371YtDVhfBsFg'],
success (res) {
console.log(res);//同意授权
}
})
}
}).catch(errors => {console.error(errors);})
},
@ -75,29 +93,6 @@ Page({
url: "/Pages/yishi/wenzhen_v2/wenzhen"
})
},
onStepperChange(event) {
console.log(event.detail);
this.setData({
"info.work_num_day": event.detail
});
},
onPriceChange(e){
console.log(e.detail);
let value = e.detail.value;
let min = this.data.config.min_inquiry_price;
let max = this.data.config.max_inquiry_price;
if(value < min){
value = min;
Toast.fail('价格不能低于' + min + '元');
}else if(value >= min && value <=max ){
value = value;
}else{
value = max;
Toast.fail('价格不能高于' + max + '元');
}
this.setData({
"info.inquiry_price": value
})
}
})

View File

@ -6,13 +6,13 @@ Page({
title: "个人中心",
navHeight: 0,
stateHeight: 0,
user_name: "",
iden_auth_status: "",
idcard_status: "",
multi_point_status: "",
user_name: "医师姓名",
iden_auth_status: "0",
idcard_status: "0",
multi_point_status: "0",
avatar: "https://img.applets.igandanyiyuan.com/applet/doctor/static/images/default_photo.png",
balance_account: "",
estimate_income: "",
balance_account: "0",
estimate_income: "0",
doctor_id: ""
},

View File

@ -1,19 +1,19 @@
<view class="container">
<view class="top"></view>
<view class="title" style="top: {{stateHeight}}px;height: {{navHeight}}px;line-height: {{navHeight}}px;">{{ title }}</view>
<view bindtap="go" data-url="/Pages/yishi/myinfo/index" class="info_box" style="top: {{stateHeight}}px;">
<view class="info_box" style="top: {{stateHeight}}px;">
<!-- 跳转我的信息 -->
<view class="photo">
<view class="photo" bindtap="go" data-url="/Pages/yishi/myinfo/index">
<t-avatar class="avatar" size="large" image="{{avatar}}" />
</view>
<view class="info">
<view class="name">{{user_name}}</view>
<view class="name" bindtap="go" data-url="/Pages/yishi/myinfo/index">{{user_name}}</view>
<view class="renzheng">
<view class="yishi">{{iden_auth_status==1?'已医师认证':'未医师认证'}}></view>
<view class="zhiye">{{multi_point_status==1?'已多点执业认证':'未多点执业认证'}}></view>
<view class="yishi" bindtap="go" data-url="/Pages/yishi/identity/index">{{iden_auth_status==1?'已医师认证':'未医师认证'}}></view>
<view class="zhiye" bindtap="go" data-url="/Pages/yishi/zhiye_identity/index">{{multi_point_status==1?'已多点执业认证':'未多点执业认证'}}></view>
</view>
</view>
<view class="icon">
<view class="icon" bindtap="go" data-url="/Pages/yishi/myinfo/index">
<van-icon name="arrow" />
</view>
</view>

View File

@ -108,7 +108,9 @@
border-radius: 20rpx;
padding: 20rpx 0;
}
.t-badge__content-text {
line-height: 70rpx !important;
}

View File

@ -13,8 +13,9 @@ Page({
doctor_id: "",
idcard_status: 0,
iden_auth_status: 0,
is_bind_bank: 0,
user_name: "",
brief_introduction: "我的简介",
brief_introduction: "点击编辑",
v_show: false,
v_message: "",
next_url: "/Pages/yishi/identity/index"
@ -33,6 +34,13 @@ Page({
})
}).catch(errors => {console.error(errors);})
},
onShow(){
let user_id = wx.getStorageSync("user_id");
let is_bind_bank = wx.getStorageSync(user_id+'_is_bind_bank');
this.setData({
is_bind_bank: is_bind_bank
})
},
logOut(){
console.log("退出登录");
let usertype = wx.getStorageSync('usertype');
@ -69,6 +77,14 @@ Page({
})
return;
}
if(this.data.is_bind_bank != 1){
this.setData({
v_show: true,
v_message: "请您先绑定结算银行卡",
next_url: "/Pages/yishi/bankcard/index",
})
return;
}
app.go(e.currentTarget.dataset.url)
},
go1(e){
@ -83,6 +99,14 @@ Page({
app.go(e.currentTarget.dataset.url)
},
go2(e){
if(this.data.idcard_status != 1){
this.setData({
v_show: true,
v_message: "请先进行实名认证",
next_url: "/Pages/yishi/identity/index"
})
return;
}
if(this.data.iden_auth_status != 1){
this.setData({
v_show: true,
@ -94,7 +118,15 @@ Page({
app.go(e.currentTarget.dataset.url)
},
goIn(){
this.setData({
v_show: false
})
app.go(this.data.next_url)
},
cancelDialog(){
this.setData({
v_show: false
})
}
})

View File

@ -5,6 +5,6 @@
"van-cell": "@vant/weapp/cell/index",
"van-cell-group": "@vant/weapp/cell-group/index",
"van-button": "@vant/weapp/button/index",
"van-dialog": "@vant/weapp/dialog/index"
"t-dialog": "tdesign-miniprogram/dialog/dialog"
}
}

View File

@ -2,21 +2,35 @@
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
<van-cell-group>
<van-cell size="large" bindtap="go" data-url="/Pages/yishi/mycard/index" title="我的名片" value="分享名片" is-link />
<van-cell size="large" bindtap="go" data-url="/Pages/yishi/myprofile/index" title="我的简介" value="{{brief_introduction}}" is-link />
<van-cell size="large" bindtap="go" data-url="/Pages/yishi/myprofile/index" title="我的简介" value="{{brief_introduction == ''?'点击编辑':brief_introduction}}" is-link />
<van-cell size="large" bindtap="go1" data-url="/Pages/yishi/attestation/index?card_name={{card_name}}&card_num_mask={{card_num_mask}}" link-type="navigateTo" title="实名认证"
value="{{idcard_status==0?'未认证':idcard_status==1?'已认证':'认证失败'}}" is-link />
<van-cell size="large" bindtap="go" data-url="/Pages/yishi/practicing/index" link-type="navigateTo" title="医师认证"
<van-cell size="large" bindtap="go2" data-url="/Pages/yishi/practicing/index" link-type="navigateTo" title="医师认证"
value="{{iden_auth_status==0?'未认证':iden_auth_status==1?'已认证':iden_auth_status==2?'审核中':'认证失败'}}" is-link />
</van-cell-group>
<van-button bind:click="logOut" custom-style="width: 92vw;margin: 50rpx auto;border-radius: 10rpx;" type="primary" color="#3CC7C0" block>退出登录</van-button>
<van-dialog
<!-- <van-dialog
title="温馨提示"
message="{{v_message}}"
show="{{ v_show }}"
show-cancel-button
confirm-button-color="#3CC7C0"
bind:confirm="goIn"
/>
/> -->
<t-dialog
visible="{{ v_show }}"
title="温馨提示"
content="{{v_message}}"
>
<view slot="cancel-btn" class="dialog dialog_cancel_btn" bindtap="cancelDialog">
取消
</view>
<view slot="confirm-btn" class="dialog dialog_confirm_btn" bindtap="goIn">
确定
</view>
</t-dialog>
</view>

View File

@ -2,4 +2,18 @@
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.dialog{
width: 50%;
text-align: center;
height: 100rpx;
line-height: 100rpx;
}
.dialog_cancel_btn{
border-top: 1px solid #E9E9E9;
border-right: 1px solid #E9E9E9;
}
.dialog_confirm_btn{
border-top: 1px solid #E9E9E9;
color: #3CC7C0;
}

View File

@ -2,7 +2,7 @@ const app = getApp()
Page({
data: {
navbarData: {
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
showCapsule: 2, //是否显示左上角图标 1表示显示 0表示不显示
title: '我的简介', //导航栏 中间的标题
},
},

View File

@ -46,4 +46,19 @@
}
.van-cell--required::before {
left: 4.7rem !important;
}
.required{
color: #e34d59;
}
.van-picker__confirm{
color: #3cc7c0 !important;
}
.t-tabs__item--active{
color: #49B9AD !important;
}
.t-tabs__track{
background-color: #49B9AD !important;
}
.t-icon-check{
color: #49B9AD !important;
}

View File

@ -116,6 +116,7 @@
<van-cell-group wx:if="{{ drug_content_show }}">
<van-field
label="用法"
type="text"
model:value="{{save_durg_single_use}}"
input-align="left"
placeholder="请输入用法(口服)"
@ -124,6 +125,7 @@
/>
<van-field
label="用次"
type="text"
model:value="{{save_durg_frequency_use}}"
input-align="left"
placeholder="请输入服用次一日1次"
@ -132,6 +134,7 @@
/>
<van-field
label="用量"
type="text"
model:value="{{save_durg_single_unit}}"
input-align="left"
placeholder="请输入用量一次3粒"
@ -140,6 +143,7 @@
/>
<van-field
label="用药天数"
type="text"
model:value="{{save_durg_available_days}}"
input-align="left"
placeholder="请输入时长"
@ -148,6 +152,7 @@
/>
<van-field
label="药品数量"
type="text"
model:value="{{save_durg_prescription_product_num}}"
input-align="left"
placeholder="请输入数量"
@ -156,6 +161,7 @@
/>
<van-field
label="单位"
type="text"
model:value="{{save_durg_packaging_unit}}"
input-align="left"
placeholder="盒/袋"

View File

@ -54,6 +54,8 @@ Page({
onChange({ detail }) {
console.log("onChange: ", detail);
if(detail){
let inquiry_price = this.data.info.inquiry_price;
let check = this.checkPrice(inquiry_price);
@ -71,35 +73,63 @@ Page({
params.is_open = detail?1:0;
api.putDoctorInquiryOpen(params).then(response => {
console.log(response);
}).then(()=>{
if(detail){
wx.requestSubscribeMessage({
tmplIds: ['G1RIs0RYqsTQ2CuPQWalIGVet9sd_d371YtDVhfBsFg'],
success (res) {
console.log(res);//同意授权
}
})
}
}).catch(errors => {console.error(errors);})
},
putDoctorInquiryConfig(){
//修改医生问诊配置
let params = {};
params.inquiry_type = this.data.inquiry_type;//接诊类型1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药)
params.inquiry_mode = this.data.inquiry_mode;//接诊方式1:图文 2:视频 3:语音 4:电话 5:会员)
params.inquiry_price = this.data.info.inquiry_price;
params.work_num_day = this.data.info.work_num_day;
api.putDoctorInquiryConfig(params).then(response => {
console.log(response);
Toast.success("修改成功");
wx.switchTab({
url: "/Pages/yishi/wenzhen_v2/wenzhen"
})
}).catch(errors => {console.error(errors);})
// let params = {};
// params.inquiry_type = this.data.inquiry_type;//接诊类型1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药)
// params.inquiry_mode = this.data.inquiry_mode;//接诊方式1:图文 2:视频 3:语音 4:电话 5:会员)
// params.inquiry_price = this.data.info.inquiry_price;
// params.work_num_day = this.data.info.work_num_day;
// api.putDoctorInquiryConfig(params).then(response => {
// console.log(response);
// Toast.success("修改成功");
// wx.switchTab({
// url: "/Pages/yishi/wenzhen_v2/wenzhen"
// })
// }).catch(errors => {console.error(errors);})
wx.switchTab({
url: "/Pages/yishi/wenzhen_v2/wenzhen"
})
},
onStepperChange(event) {
console.log(event.detail);
this.setData({
"info.work_num_day": event.detail
});
this.updateConfig();
},
onPriceChange(e){
console.log(e.detail);
this.checkPrice(e.detail.value)
this.setData({
"info.inquiry_price": e.detail.value
let price = e.detail.value;
let check = this.checkPrice(price);
if(!check){
price = this.data.info.inquiry_price
return
}
let result = this.updateConfig(price);
console.log("result result result:", result);
result.then((res)=>{
console.log(res)
if(!res) price = this.data.info.inquiry_price
this.setData({
"info.inquiry_price": price
})
})
},
myToast(message){
@ -107,7 +137,7 @@ Page({
context: this,
selector: '#t-toast',
message: message,
theme: 'warning',
theme: 'success',
direction: 'column',
});
},
@ -128,5 +158,24 @@ Page({
this.myToast(message);
return false;
}
},
async updateConfig(price){
//修改医生问诊配置
let params = {};
params.inquiry_type = this.data.inquiry_type;//接诊类型1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药)
params.inquiry_mode = this.data.inquiry_mode;//接诊方式1:图文 2:视频 3:语音 4:电话 5:会员)
params.inquiry_price = price;
params.work_num_day = this.data.info.work_num_day;
const result = await api.putDoctorInquiryConfig(params).then(response => {
console.log(response);
this.myToast("修改成功");
return true;
}).catch(errors => {
console.error(errors);
return false;
})
console.log("updateConfig result result: ", result);
return result;
}
})

View File

@ -26,13 +26,13 @@
<view class="price_steup_box_top">
<view class="price_steup_box_top_title">每日接诊数量</view>
<view class="price_steup_box_top_stepper">
<van-stepper value="{{ info.work_num_day }}" max="{{config.max_work_num_day}}" integer bind:change="onStepperChange" />
<van-stepper value="{{ info.work_num_day }}" min="1" max="{{config.max_work_num_day}}" integer bind:change="onStepperChange" />
</view>
</view>
<view class="price_steup_box_bottom">
<view class="price_steup_box_bottom_title">问诊单价(元)</view>
<view class="price_steup_box_bottom_num">
<input class="weui-input" bindinput="onPriceChange" type="digit" value="{{ info.inquiry_price }}" placeholder="请输入问诊单价" />
<input class="weui-input" bindblur="onPriceChange" type="digit" value="{{ info.inquiry_price }}" placeholder="请输入问诊单价" />
<text class="price">元</text>
</view>
</view>

View File

@ -1,11 +1,12 @@
import { API } from './../../../utils/network/api'
import Toast from 'tdesign-miniprogram/toast/index';
const api = new API()
const app = getApp()
Page({
data: {
navbarData: {
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
showCapsule: 2, //是否显示左上角图标 1表示显示 0表示不显示
title: '常用语', //导航栏 中间的标题
},
height: app.globalData.height,
@ -18,7 +19,17 @@ Page({
show: false,
add_message: "",
current_words_type: 1,
focus: true
focus: true,
words_css: "border-radius: 20rpx;margin-bottom: 20rpx;",
from: ""
},
onLoad(options){
let from = options.from;
if(from) {
this.setData({
from: from
})
}
},
onTabChange(e){
this.setData({
@ -45,17 +56,33 @@ Page({
api.postDoctorWords({words_type: words_type, words: words}).then(response => {
console.log(response);
let list_name = "list_" + words_type;
let list = this.data[list_name];
let obj = {};
obj.words = words;
list.push(obj);
console.log(list_name);
this.setData({
[list_name]: list,
add_message: "",
show: false
})
}).then(()=>{
this.getList(words_type)
}).catch(errors => {console.error(errors);})
},
delWords(e){
console.log(e);
let words_type = this.data.current_words_type;
let doctor_words_id = e.currentTarget.dataset.doctor_words_id;
if(doctor_words_id == ""){
Toast({
context: this,
selector: '#t-toast',
message: '系统常用语,无法删除',
theme: 'warning',
direction: 'column',
});
return
}
api.delDoctorWords({doctor_words_id: doctor_words_id}).then(response => {
console.log(response);
}).then(()=>{
this.getList(words_type)
}).catch(errors => {console.error(errors);})
},
showAdd(){
@ -63,7 +90,6 @@ Page({
show: true,
});
},
onClose() {
this.setData({
show: false,
@ -73,5 +99,38 @@ Page({
this.setData({
focus: true
})
},
wordsClose(e){
console.log(e);
const { position, instance } = e.detail;
console.log(position)
console.log(instance)
switch (position) {
case 'left':
case 'cell':
instance.close();
break;
case 'right':
Dialog.confirm({
message: '确定删除吗?',
}).then(() => {
instance.close();
});
break;
}
},
wordsOpen(e){
console.log("open")
console.log(e);
},
wordsClick(e){
console.log("click")
console.log(e);
let words = e.currentTarget.dataset.words;
let from = this.data.from;
if(from){
wx.setStorageSync('words', words);
wx.navigateBack()
}
}
})

View File

@ -7,6 +7,8 @@
"t-tab-panel": "tdesign-miniprogram/tab-panel/tab-panel",
"van-button": "@vant/weapp/button/index",
"van-popup": "@vant/weapp/popup/index",
"van-field": "@vant/weapp/field/index"
"van-field": "@vant/weapp/field/index",
"van-swipe-cell": "@vant/weapp/swipe-cell/index",
"t-toast": "tdesign-miniprogram/toast/toast"
}
}

View File

@ -4,6 +4,7 @@
<t-tabs
defaultValue="{{ current_words_type }}"
sticky
swipeable="{{false}}"
stickyProps="{{stickyProps}}"
t-class="custom-tabs"
bind:change="onTabChange"
@ -12,18 +13,35 @@
>
<t-tab-panel label="问诊" value="1">
<view class="item_list">
<van-cell size="large" custom-style="border-radius: 20rpx;margin-bottom: 20rpx;" title="{{index + 1}}、{{item.words}}" wx:for="{{list_1}}" />
<van-swipe-cell right-width="{{ 65 }}"
bind:close="wordsClose"
bind:open="wordsOpen"
bind:click="wordsClick"
data-words="{{item.words}}"
wx:for="{{list_1}}">
<van-cell-group>
<van-cell custom-style="{{words_css}}" title="{{index + 1}}、{{item.words}}" />
</van-cell-group>
<view slot="right" class="delWords" bindtap="delWords" data-doctor_words_id="{{item.doctor_words_id}}">删除</view>
</van-swipe-cell>
</view>
<view class="btn">
<van-button bind:click="showAdd" class="addbtn" custom-style="border-radius: 20rpx;margin: 0 auto;width: 92%;position: relative;top: 50%; transform: translateY(-50%);" type="primary" color="#3CC7C0" block>添加常用语</van-button>
</view>
</t-tab-panel>
<t-tab-panel label="处方" value="2">
<view class="item_list">
<van-cell size="large" custom-style="border-radius: 20rpx;margin-bottom: 20rpx;" title="{{index+1}}、{{item.words}}" wx:for="{{list_2}}" />
<van-swipe-cell right-width="{{ 65 }}"
bind:close="wordsClose"
bind:open="wordsOpen"
bind:click="wordsClick"
data-words="{{item.words}}"
wx:for="{{list_2}}">
<van-cell-group>
<van-cell custom-style="{{words_css}}" title="{{index + 1}}、{{item.words}}" />
</van-cell-group>
<view slot="right" class="delWords" bindtap="delWords" data-doctor_words_id="{{item.doctor_words_id}}">删除</view>
</van-swipe-cell>
</view>
<view class="btn">
<van-button bind:click="showAdd" class="addbtn" custom-style="border-radius: 20rpx;margin: 0 auto;width: 92%;position: relative;top: 50%; transform: translateY(-50%);" type="primary" color="#3CC7C0" block>添加常用语</van-button>
@ -59,4 +77,5 @@
<van-cell url="/Pages/yishi/quickreply_data/index?title=快速问诊快捷回复" custom-style="border-radius: 20rpx;margin-bottom: 20rpx;" title="2、设置处方的快捷回复" is-link />
<van-cell url="/Pages/yishi/quickreply_data/index?title=义诊快捷回复" custom-style="border-radius: 20rpx;margin-bottom: 20rpx;" title="3、设置处方的快捷回复" is-link />
</view> -->
</view>
</view>
<t-toast id="t-toast" />

View File

@ -55,4 +55,13 @@ page{
}
.popup_box_content{
flex: 5;
}
.delWords{
background-color: red;
height: 100%;
display: flex;
align-items: center;
width: 65px;
justify-content: center;
color: #fff;
}

View File

@ -227,10 +227,12 @@ Page({
let session_data_list_2 = [];
let session_data_list_3 = [];
let session_data_list_4 = [];
let session_data_list_5 = [];
session_list.push(session_data_list_1);
session_list.push(session_data_list_2);
session_list.push(session_data_list_3);
session_list.push(session_data_list_4);
session_list.push(session_data_list_5);
this.data.conversationList.forEach(item => {
let conversationID = item.conversationID;
@ -274,7 +276,7 @@ Page({
data_list_4: session_data_list_4,
})
if(session_data_list_1.length > 0 && session_data_list_2.length > 0 && session_data_list_3.length > 0 && session_data_list_4.length > 0 && session_data_list_5.length > 0){
if(session_data_list_1.length == 0 && session_data_list_2.length == 0 && session_data_list_3.length == 0 && session_data_list_4.length == 0 && session_data_list_5.length == 0){
this.setData({has_data: false})
}else{
this.setData({has_data: true})

View File

@ -39,7 +39,7 @@ Page({
},
onLoad(){
this.setData({ note: this.data.open_note });
},
onShow(){
let params = {};
@ -54,6 +54,14 @@ Page({
})
this.formatAmounts();
this.formatAmountValue();
}).then(re =>{
let is_open = this.data.info.is_open;
let note = this.data.note;
if(is_open == 1) note = this.data.open_note;
if(is_open == 0) note = this.data.close_note;
this.setData({
note: note
})
}).catch(errors => {console.error(errors);})
},
formatAmounts(){
@ -91,6 +99,15 @@ Page({
params.is_open = detail?1:0;
api.putDoctorInquiryOpen(params).then(response => {
console.log(response);
}).then(()=>{
if(detail){
wx.requestSubscribeMessage({
tmplIds: ['G1RIs0RYqsTQ2CuPQWalIGVet9sd_d371YtDVhfBsFg'],
success (res) {
console.log(res);//同意授权
}
})
}
}).catch(errors => {console.error(errors);})
},
@ -104,9 +121,6 @@ Page({
api.putDoctorInquiryConfig(params).then(response => {
console.log(response);
Toast.success("修改成功");
wx.switchTab({
url: "/Pages/yishi/wenzhen_v2/wenzhen"
})
}).catch(errors => {console.error(errors);})
},
onStepperChange(event) {
@ -114,6 +128,7 @@ Page({
this.setData({
"info.work_num_day": event.detail
});
this.putDoctorInquiryConfig()
},
onAmountPicker() {
@ -135,6 +150,8 @@ Page({
[`${key}Text`]: value+' 元',
"info.inquiry_price": value[0]
});
this.putDoctorInquiryConfig()
},
onPickerCancel(e) {
@ -145,5 +162,10 @@ Page({
[`${key}Visible`]: false,
});
},
go(e){
let url = e.currentTarget.dataset.url;
wx.switchTab({
url: url
})
}
})

View File

@ -49,7 +49,7 @@
</view>
<view class="go">
<van-button bind:click="putDoctorInquiryConfig" color="#3CC7C0" custom-style="border-radius: 20rpx;font-size:30rpx;" type="primary" block>去接诊</van-button>
<van-button color="#3CC7C0" bind:click="go" data-url="/Pages/yishi/wenzhen_v2/wenzhen" custom-style="border-radius: 20rpx;font-size:30rpx;" type="primary" block>去接诊</van-button>
</view>
<t-picker

View File

@ -111,4 +111,8 @@ page{
transform: translateX(-50%);
bottom: 100rpx;
width: 90vw;
}
}
.t-picker__confirm,.t-class-confirm{
color: #49B9AD !important;
}

View File

@ -43,7 +43,7 @@
<van-divider customStyle="color: #999; width:95vw; margin: 20rpx auto;" />
<view class="sign_box">
<view class="sign_title">医生手写签名 *</view>
<view class="sign_title">医生手写签名 <text style="color: #e34d59;">*</text></view>
<view class="sign" wx:if="{{sign_image.length == 0}}" data-url="/Pages/yishi/signcanvas/index" bindtap="go">
<van-button custom-style="height:130rpx;margin-top:20rpx;border-radius: 20rpx;border: 1px dashed #999;width:100%;font-size:30rpx;background-color: #fff;color: #3CC7C0;" icon="edit">点击签名</van-button>
</view>

View File

@ -1,7 +1,7 @@
.text-message {
max-width: 60vw;
min-height: 80rpx;
line-height: 80rpx;
min-height: 50rpx;
line-height: 50rpx;
padding: 10rpx 24rpx;
background: #F8F8F8;
border: 1rpx solid #D9D9D9;
@ -20,7 +20,7 @@
.my-text::after{
content:'';
position: absolute;
top: 45rpx;
top: 35rpx;
right: -19rpx;
transform: translate(-50%,-50%) rotate(-135deg);
width: 16rpx;
@ -38,7 +38,7 @@
.your-text::after{
content:'';
position: absolute;
top: 45rpx;
top: 35rpx;
left: 0;
transform: translate(-50%,-50%) rotate(45deg);
width: 16rpx;

View File

@ -75,6 +75,8 @@ Component({
isEmoji: false,
fileList: [],
hasCallKit: false,
showChangYongYu: false,
ChangYongYu: []
},
lifetimes: {
@ -111,6 +113,21 @@ Component({
});
});
},
},
pageLifetimes:{
show(){
//获得常用语
let words = wx.getStorageSync('words');
console.log("words from chat: ", words);
if(words){
this.setData({
message: words,
sendMessageBtn: true
})
wx.setStorageSync('words', "");
}
}
},
/**
@ -730,5 +747,10 @@ Component({
displayServiceEvaluation: true,
});
},
showChangYongYu(){
app.go("/Pages/yishi/quickreply/index?from=chat")
},
},
});

View File

@ -45,7 +45,7 @@
<image mode="widthFix" class="TUI-Extension-icon MY-TUI-Extension-icon" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/chat/picture.png" />
<view class="TUI-Extension-slot-name MY-TUI-Extension-slot-name">照片</view>
</view>
<view class="TUI-Extension-slot MY-TUI-Extension-slot" bindtap="handleSendImage">
<view class="TUI-Extension-slot MY-TUI-Extension-slot" bindtap="showChangYongYu">
<image mode="widthFix" class="TUI-Extension-icon MY-TUI-Extension-icon" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/chat/wenzi.png" />
<view class="TUI-Extension-slot-name MY-TUI-Extension-slot-name">常用语</view>
</view>
@ -101,3 +101,4 @@
{{title}}
</view>
</view>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 61.2 (89653) - https://sketch.com -->
<title>ic_back_white</title>
<desc>Created with Sketch.</desc>
<g id="ic_back_white" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="ic_back_black">
<rect id="Rectangle" x="0" y="0" width="24" height="24"></rect>
<polygon id="Path-2" fill="#000000" fill-rule="nonzero" points="4.75615536 12 12 19.616973 10.5591221 21 2 12 10.5591221 3 12 4.38302701"></polygon>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 706 B

7
app.js
View File

@ -46,7 +46,11 @@ App({
this.aegisInit()
console.warn("app.js wx.aegis: ", wx.aegis);
//监听网络状态变化事件
wx.onNetworkStatusChange(function (res) {
console.log(res.isConnected)
console.log(res.networkType)
})
},
onShow(){
this.imInit();
@ -152,6 +156,7 @@ App({
height: 0,
login_url: "/Pages/login/index",
chat_sdk_ready: false,
jiesuan_dialog_show: false,
config: {
userID: "",
SDKAPPID: 1400796919, // Your SDKAppID

View File

@ -1,6 +1,6 @@
<view class="container">
<view class="tui-navigatorbar">
<image wx:if="{{ navbarData.showCapsule==1 }}" class="tui-navigatorbar-back" bindtap="_navback" src="/TUIKit/static/assets/ic_back_white.svg" />
<image wx:if="{{ navbarData.showCapsule==1 }}" class="tui-navigatorbar-back" bindtap="_navback" src="/TUIKit/static/assets/ic_back_black.svg" />
<view class="conversation-title">{{ navbarData.title }}</view>
</view>
<view class="box">

View File

@ -7,7 +7,7 @@
top: 0;
width: 750rpx;
height: 170rpx;
background-color: #e94d4d;
background-color: #ffffff;
z-index: 99;
}
.tui-navigatorbar-back{

View File

@ -20,7 +20,7 @@ Component({
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
title: '医师身份认证', //导航栏 中间的标题
},
height: app.globalData.height,
height: app.globalData.height,
//选项卡
stickyProps: {
zIndex: 2,
@ -96,7 +96,8 @@ Component({
license_cert_reason: "",
qualification_cert_reason: "",
work_cert_reason: "",
department_custom_name_reason: ''
department_custom_name_reason: '',
zhuanchang_note: '请选择专长',
},
options: {
@ -108,15 +109,11 @@ Component({
console.log("myprofile attached")
let _this = this;
console.log(_this.data.zhicheng_columns);
console.log(_this.data.zhicheng_columns);
//获得医师身份认证
api.getDoctorAuthIden({source: this.data.indentity?1:2}).then(response => {
console.log("getDoctorAuthIden: ",response);
this.setData({
doctorauthiden_data_ready: true,
textarea_jianjie: response.data.brief_introduction,
textarea_shanchang: response.data.be_good_at,
@ -217,6 +214,15 @@ Component({
_this.setData({
zhuanchang_columns: response.data
})
}).then(()=>{
let index = this.data.zhuanchang_columns.findIndex(item => {
return item.is_selected == 1
})
if(index) {
this.setData({
zhuanchang_note: ""
})
}
}).catch(errors => {console.error(errors); })
let keshi_huixian = false;
@ -235,10 +241,13 @@ Component({
console.log("select_keshi_id: ", _this.data.select_keshi_id);
return item.value == _this.data.select_keshi_id
})
if(index){
console.log("科室:", index)
let keshi_note = _this.data.keshi_columns[index].text;
console.log("科室 keshi_note", keshi_note);
if(index != undefined){
_this.setData({
select_keshi_index: index,
keshi_note: _this.data.keshi_columns[index].text
keshi_note: keshi_note
})
}
keshi_huixian = true;
@ -479,7 +488,7 @@ Component({
this.setData({ yiyuan_show: true });
}else{
wx.showToast({
title: '请先选择市',
title: '请先选择市',
icon: "error"
})
}
@ -650,6 +659,7 @@ Component({
}
})
console.log("countcountcountcount: ",count)
if(count >= 10 && e.currentTarget.dataset.is_selected==0){
wx.showToast({
title: '最多10个专长',
@ -661,6 +671,27 @@ Component({
let data = "zhuanchang_columns["+index+"].is_selected";
this.setData({[data]: is_selected==1?0:1})
}
this.checkZhuanchangNote()
},
checkZhuanchangNote(){
let count = 0
this.data.zhuanchang_columns.forEach(item => {
if(item.is_selected == 1){
count = count + 1;
}
})
if(count > 0){
this.setData({
zhuanchang_note: ""
})
}
if(count == 0){
this.setData({
zhuanchang_note: "请选择专长"
})
}
},
zhuanchangConfirm(e){
this.setData({ zhuanchang_show: false });
@ -881,5 +912,8 @@ Component({
[file_name]: img_list
})
},
moveZhuanChang(){
}
}
})

View File

@ -1,6 +1,6 @@
<view class="photo" style="border-bottom: {{avatar_reason==''?'1px solid var(--td-cell-border-color, var(--td-gray-color-3, #e7e7e7));':'unset'}}">
<view class="title">头像 <text class="required"> *</text></view>
<van-uploader bind:after-read="doUploadPhoto" data-scene="1" data-field_name="avatar" data-file_multiple="false">
<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 }}" />
@ -19,7 +19,7 @@
</view>
<!-- <t-cell title="头像" hover required arrow note="真人正脸" /> -->
<t-cell title="城市" hover required arrow note="{{ city_note }}" bindtap="onCityShow"/>
<t-cell title="城市" hover required arrow note="{{ city_note }}" bindtap="{{(indentity && iden_auth_disabled)?'':'onCityShow'}}"/>
<t-cascader
visible="{{ city_show }}"
@ -31,7 +31,7 @@
bind:change="onChangeCity"
></t-cascader>
<t-cell title="医院" hover required arrow note="{{ yiyuan_note }}" bindtap="onYiYuanShow"/>
<t-cell title="医院" hover required arrow note="{{ yiyuan_note }}" bindtap="{{(indentity && iden_auth_disabled)?'':'onYiYuanShow'}}"/>
<van-popup
show="{{ yiyuan_show }}"
position="bottom"
@ -57,10 +57,14 @@
bind:search="hospitalSearch"
/>
</van-popup>
<t-cell title="科室" hover required arrow note="{{keshi_note}}" bindtap="onKeshiShow" bordered="{{ select_keshi_id == '' }}"/>
<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" model:value="{{custom_keshi}}" label="" placeholder="请输入科室" border="{{department_custom_name_reason == ''}}" />
<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 != '' }}" >
@ -142,8 +146,10 @@
</view>
</van-popup>
<t-popup visible="{{zhuanchang_show}}" bind:visible-change="onZhuanChangVisibleChange" placement="bottom">
<view class="zhuanchang_block">
<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>
@ -169,7 +175,8 @@
</view>
</t-popup>
<t-cell title="职称" hover required arrow note="{{zhicheng_note}}" bindtap="onZhiChengShow" />
<t-cell title="职称" hover required arrow note="{{zhicheng_note}}"
bindtap="{{(indentity && iden_auth_disabled)?'':'onZhiChengShow'}}" />
<!-- <t-input
label="科室电话"
placeholder="请输入科室电话"
@ -185,7 +192,9 @@
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;"
>
@ -199,7 +208,7 @@
</view>
</view>
<view class="zhuanchang" bindtap="onZhuanChangShow">
<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">
@ -208,7 +217,7 @@
</view>
<view class="right">
<view class="note">请选择专长</view>
<view class="note">{{zhuanchang_note}}</view>
<view class="icon">
<t-icon name="chevron-right" size="48rpx" data-name="chevron-right" />
</view>
@ -221,6 +230,7 @@
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" />
@ -228,6 +238,7 @@
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字"
@ -248,6 +259,7 @@
upload_cell_note="查看示例"
has_error_content="{{ license_cert_reason }}"
wx:if="{{indentity}}"
disabled="{{(indentity && iden_auth_disabled)}}"
is_multiple="true"
/>
@ -266,6 +278,7 @@
upload_cell_note="查看示例"
has_error_content="{{ qualification_cert_reason }}"
wx:if="{{indentity}}"
disabled="{{(indentity && iden_auth_disabled)}}"
is_multiple="true"
/>
@ -284,6 +297,7 @@
upload_cell_note="查看示例"
has_error_content="{{ work_cert_reason }}"
wx:if="{{indentity}}"
disabled="{{(indentity && iden_auth_disabled)}}"
is_multiple="true"
/>

View File

@ -219,4 +219,4 @@
}
.custom_keshi_error{
display: none;
}
}

View File

@ -24,9 +24,18 @@
<t-navbar class="block" title="{{navbarData.title}}" left-arrow bind:go-back="onBack" />
</view>
<!-- 仅显示home -->
<view class="block" wx:if="{{navbarData.showCapsule == 3}}">
<t-navbar class="block" title="{{navbarData.title}}" home bind:go-back="onGoHome" />
</view>
<t-navbar title="{{navbarData.title}}" wx:if="{{navbarData.showCapsule == 3}}">
<view slot="left" class="custom-capsule-home">
<t-icon
size="20"
bind:tap="onGoHome"
aria-role="button"
aria-label="首页"
name="home"
class="custom-capsule__icon"
/>
</view>
</t-navbar>
<!-- 都不显示 -->
<view class="block" wx:if="{{navbarData.showCapsule == 0}}">
<t-navbar class="block" title="{{navbarData.title}}" />

View File

@ -20,4 +20,7 @@
width: 1px;
height: 36rpx;
background: #e7e7e7;
}
.custom-capsule-home{
margin-left: 36rpx;
}

View File

@ -12,6 +12,10 @@ Component({
type: Boolean,
value: true,
},
disabled: {
type: Boolean,
value: false,
},
textarea_cell_note: {
type: String,
value: '示例备注',

View File

@ -7,7 +7,7 @@
</view>
</view>
<view class="textarea-cell-content">
<textarea bindblur="bindTextAreaBlur" maxlength="1000" style="margin: 32rpx 32rpx 0 32rpx; width: 100%; height: 90%; background-color: #FAFAFA;" name="" id="" placeholder="{{ textarea_cell_content_placeholder }}" value="{{textarea_val}}"></textarea>
<textarea disabled="{{disabled}}" bindblur="bindTextAreaBlur" maxlength="1000" style="margin: 32rpx 32rpx 0 32rpx; 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

@ -105,4 +105,4 @@ active-color="#74A2FA" inactive-color="#999999" wx:if="{{usertype == 3}}" >
<view slot="confirm-btn" class="dialog dialog_confirm_btn" bindtap="confirmDialog">
确定
</view>
</t-dialog>
</t-dialog>

View File

@ -436,6 +436,18 @@ class API extends HTTP {
...params
}
})
}
//删除常用语列表
delDoctorWords(params) {
let doctor_words_id = params.doctor_words_id;
params = {};
return this.request({
url: `${this.baseUrl}/doctor/words/`+doctor_words_id,
method: 'DELETE',
data: {
...params
}
})
}
//搜索疾病分类-系统
getBasicDiseaseSearch(params) {

View File

@ -46,16 +46,16 @@ class HTTP {
url: app.globalData.login_url
})
} else {
reject(res.data.message)
reject(res.data.message);//向后传递错误信息catch会拿到
this._show_error(showLoading, res.data.message)
}
} else {
reject(res.data)
reject(res.data)//向后传递错误信息catch会拿到
this._show_error(showLoading, err.data.message)
}
},
fail: (err) => {
reject()
reject(err)//向后传递错误信息catch会拿到
this._show_error(showLoading, err.data.message)
},
complete: (res) => {
@ -70,6 +70,9 @@ class HTTP {
_show_error(showLoading, _message) {
if(showLoading) wx.hideLoading();
if(_message == undefined){
_message = "网络错误";
}
wx.showToast({
title: `${_message}`,
icon: 'none',