优化
This commit is contained in:
parent
cfa69efd15
commit
12e4984a95
@ -1,6 +1,6 @@
|
|||||||
<view class="container">
|
<view class="container">
|
||||||
<view class="tui-navigatorbar">
|
<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 class="conversation-title">{{ navbarData.title }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="box">
|
<view class="box">
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
top: 0;
|
top: 0;
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
height: 170rpx;
|
height: 170rpx;
|
||||||
background-color: #69d85f;
|
background-color: #ffffff;
|
||||||
z-index: 99;
|
z-index: 99;
|
||||||
}
|
}
|
||||||
.tui-navigatorbar-back{
|
.tui-navigatorbar-back{
|
||||||
|
|||||||
@ -7,12 +7,14 @@
|
|||||||
model:value="{{ phone }}"
|
model:value="{{ phone }}"
|
||||||
label="+86"
|
label="+86"
|
||||||
placeholder="请输入手机号"
|
placeholder="请输入手机号"
|
||||||
|
type="number"
|
||||||
input-align="left"
|
input-align="left"
|
||||||
/>
|
/>
|
||||||
<van-field
|
<van-field
|
||||||
model:value="{{ sms }}"
|
model:value="{{ sms }}"
|
||||||
center
|
center
|
||||||
clearable
|
clearable
|
||||||
|
type="number"
|
||||||
label="短信验证码"
|
label="短信验证码"
|
||||||
placeholder="请输入短信验证码"
|
placeholder="请输入短信验证码"
|
||||||
use-button-slot
|
use-button-slot
|
||||||
|
|||||||
@ -81,6 +81,13 @@ Page({
|
|||||||
},
|
},
|
||||||
onBankShow(e) {
|
onBankShow(e) {
|
||||||
console.log("onBankShow");
|
console.log("onBankShow");
|
||||||
|
if(this.data.select_county_id == ""){
|
||||||
|
wx.showToast({
|
||||||
|
title: '请选择城市',
|
||||||
|
icon: "error"
|
||||||
|
})
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.setData({ bank_show: true });
|
this.setData({ bank_show: true });
|
||||||
},
|
},
|
||||||
onBankClose(e) {
|
onBankClose(e) {
|
||||||
@ -200,6 +207,8 @@ Page({
|
|||||||
},
|
},
|
||||||
addBank(e){
|
addBank(e){
|
||||||
console.log("addbank, ", e);
|
console.log("addbank, ", e);
|
||||||
|
|
||||||
|
|
||||||
//绑定医生银行卡
|
//绑定医生银行卡
|
||||||
let params = {};
|
let params = {};
|
||||||
params.county_id = this.data.select_county_id;
|
params.county_id = this.data.select_county_id;
|
||||||
@ -207,6 +216,14 @@ Page({
|
|||||||
params.province_id = this.data.select_province_id;
|
params.province_id = this.data.select_province_id;
|
||||||
params.bank_card_code = this.data.bankcard;
|
params.bank_card_code = this.data.bankcard;
|
||||||
params.bank_id = this.data.select_bank_id;
|
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);
|
console.log(params);
|
||||||
let bank_card_id = this.data.bank_card_id;
|
let bank_card_id = this.data.bank_card_id;
|
||||||
if(bank_card_id){
|
if(bank_card_id){
|
||||||
|
|||||||
@ -9,6 +9,7 @@
|
|||||||
"van-popup": "@vant/weapp/popup/index",
|
"van-popup": "@vant/weapp/popup/index",
|
||||||
"van-picker": "@vant/weapp/picker/index",
|
"van-picker": "@vant/weapp/picker/index",
|
||||||
"van-toast": "@vant/weapp/toast/index",
|
"van-toast": "@vant/weapp/toast/index",
|
||||||
|
"van-image": "@vant/weapp/image/index",
|
||||||
"t-cascader": "tdesign-miniprogram/cascader/cascader"
|
"t-cascader": "tdesign-miniprogram/cascader/cascader"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2,7 +2,8 @@
|
|||||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||||
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
||||||
<view class="top_note">
|
<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>
|
||||||
<view class="info">
|
<view class="info">
|
||||||
<van-cell-group>
|
<van-cell-group>
|
||||||
@ -19,6 +20,8 @@
|
|||||||
placeholder="请输入卡号"
|
placeholder="请输入卡号"
|
||||||
model:value="{{ bankcard }}"
|
model:value="{{ bankcard }}"
|
||||||
input-align="right"
|
input-align="right"
|
||||||
|
type="number"
|
||||||
|
clearable
|
||||||
placeholder-style="font-size: 16px;"
|
placeholder-style="font-size: 16px;"
|
||||||
>
|
>
|
||||||
<text slot="label" style="font-size: 30rpx;">银行卡号</text>
|
<text slot="label" style="font-size: 30rpx;">银行卡号</text>
|
||||||
|
|||||||
@ -10,6 +10,8 @@
|
|||||||
color: #3CC7C0;
|
color: #3CC7C0;
|
||||||
background-color: #F0FFFB;
|
background-color: #F0FFFB;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
.bankcard{
|
.bankcard{
|
||||||
margin-top: 20rpx;
|
margin-top: 20rpx;
|
||||||
@ -21,3 +23,15 @@
|
|||||||
margin: 50rpx auto;
|
margin: 50rpx auto;
|
||||||
line-height: 50rpx;
|
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;
|
||||||
|
}
|
||||||
@ -15,7 +15,7 @@ Page({
|
|||||||
height: app.globalData.height,
|
height: app.globalData.height,
|
||||||
//选项卡
|
//选项卡
|
||||||
stickyProps: {
|
stickyProps: {
|
||||||
zIndex: 999999,
|
zIndex: 9,
|
||||||
offsetTop: (app.globalData.height * 2)
|
offsetTop: (app.globalData.height * 2)
|
||||||
},
|
},
|
||||||
selected_tab: 0,
|
selected_tab: 0,
|
||||||
|
|||||||
@ -26,6 +26,7 @@
|
|||||||
placeholder-style="font-size:28rpx; color: #C5C8CB;"
|
placeholder-style="font-size:28rpx; color: #C5C8CB;"
|
||||||
input-align="right"
|
input-align="right"
|
||||||
clearable
|
clearable
|
||||||
|
type="text"
|
||||||
custom-style="font-size:30rpx;"
|
custom-style="font-size:30rpx;"
|
||||||
disabled="{{next_btn_disabled}}"
|
disabled="{{next_btn_disabled}}"
|
||||||
>
|
>
|
||||||
|
|||||||
@ -61,7 +61,10 @@
|
|||||||
color: #49B9AD !important;
|
color: #49B9AD !important;
|
||||||
}
|
}
|
||||||
.t-tabs__track{
|
.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 {
|
.t-cell__note {
|
||||||
font-size: 25rpx !important;
|
font-size: 25rpx !important;
|
||||||
@ -172,3 +175,6 @@
|
|||||||
top: -270px !important;
|
top: -270px !important;
|
||||||
position: relative !important;
|
position: relative !important;
|
||||||
}
|
}
|
||||||
|
.van-picker__confirm{
|
||||||
|
color: #3cc7c0 !important;
|
||||||
|
}
|
||||||
@ -8,7 +8,7 @@ Page({
|
|||||||
navHeight: 0,
|
navHeight: 0,
|
||||||
stateHeight: 0,
|
stateHeight: 0,
|
||||||
info:{
|
info:{
|
||||||
user_name: "xxx",
|
user_name: "医师姓名",
|
||||||
not_accepted_inquiry_num: 0,
|
not_accepted_inquiry_num: 0,
|
||||||
accepting_inquiry_num: 0,
|
accepting_inquiry_num: 0,
|
||||||
info_shiming_status_txt: "未认证",
|
info_shiming_status_txt: "未认证",
|
||||||
@ -76,16 +76,23 @@ Page({
|
|||||||
{
|
{
|
||||||
case_status: 4,
|
case_status: 4,
|
||||||
case_module: [7],
|
case_module: [7],
|
||||||
case_text: "请您先进行多点执业认证证"
|
case_text: "请您先多点执业认证"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
case_status: 5,
|
case_status: 5,
|
||||||
case_module: [],
|
case_module: [],
|
||||||
case_text: "已全部通过"
|
case_text: "已全部通过"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
case_status: 6,
|
||||||
|
case_module: [7],
|
||||||
|
case_text: "请您先多点执业认证"
|
||||||
|
},
|
||||||
],
|
],
|
||||||
skeleton_loading: true,
|
skeleton_loading: true,
|
||||||
contactKeFu: false
|
contactKeFu: false,
|
||||||
|
jiesuan_dialog_show: false,
|
||||||
|
jiesuan_dialog_visible: false
|
||||||
},
|
},
|
||||||
// 获取状态栏信息
|
// 获取状态栏信息
|
||||||
getMenuButtonBound() {
|
getMenuButtonBound() {
|
||||||
@ -106,7 +113,16 @@ Page({
|
|||||||
stateHeight: stateHeight + top, // 状态栏高度
|
stateHeight: stateHeight + top, // 状态栏高度
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
confirmJieSuanDialog(){
|
||||||
|
this.setData({
|
||||||
|
jiesuan_dialog_visible: false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
cancelJieSuanDialog(){
|
||||||
|
this.setData({
|
||||||
|
jiesuan_dialog_visible: false
|
||||||
|
})
|
||||||
|
},
|
||||||
onLoad(){
|
onLoad(){
|
||||||
|
|
||||||
},
|
},
|
||||||
@ -229,6 +245,7 @@ Page({
|
|||||||
},
|
},
|
||||||
go(e){
|
go(e){
|
||||||
let checkDialog = this.checkDialog(e);
|
let checkDialog = this.checkDialog(e);
|
||||||
|
console.log("checkDialog: ", checkDialog);
|
||||||
if(checkDialog){
|
if(checkDialog){
|
||||||
let url = e.currentTarget.dataset.url;
|
let url = e.currentTarget.dataset.url;
|
||||||
console.log(url);
|
console.log(url);
|
||||||
@ -343,7 +360,7 @@ Page({
|
|||||||
"info.info_shiming_status_txt": "审核中",
|
"info.info_shiming_status_txt": "审核中",
|
||||||
"info.info_shiming_status": "info_shiming_status_yes",
|
"info.info_shiming_status": "info_shiming_status_yes",
|
||||||
shiming_status_url: "/Pages/yishi/identity/index?selected_tab=1",
|
shiming_status_url: "/Pages/yishi/identity/index?selected_tab=1",
|
||||||
dialog_content: "您的医师身份认证正在审核中",
|
// dialog_content: "您的医师身份认证正在审核中",
|
||||||
// default_dialog_show: true
|
// default_dialog_show: true
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
@ -385,7 +402,7 @@ Page({
|
|||||||
if(multi_point_status == 0){
|
if(multi_point_status == 0){
|
||||||
if(!this.data.default_dialog_show){
|
if(!this.data.default_dialog_show){
|
||||||
this.setData({
|
this.setData({
|
||||||
dialog_visible: true,
|
// dialog_visible: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.setData({
|
this.setData({
|
||||||
@ -400,7 +417,7 @@ Page({
|
|||||||
if(multi_point_status == 2){
|
if(multi_point_status == 2){
|
||||||
if(!this.data.default_dialog_show){
|
if(!this.data.default_dialog_show){
|
||||||
this.setData({
|
this.setData({
|
||||||
dialog_visible: true,
|
// dialog_visible: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.setData({
|
this.setData({
|
||||||
@ -415,7 +432,7 @@ Page({
|
|||||||
if(multi_point_status == 3){
|
if(multi_point_status == 3){
|
||||||
if(!this.data.default_dialog_show){
|
if(!this.data.default_dialog_show){
|
||||||
this.setData({
|
this.setData({
|
||||||
dialog_visible: true,
|
// dialog_visible: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.setData({
|
this.setData({
|
||||||
@ -445,6 +462,14 @@ Page({
|
|||||||
})
|
})
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!app.globalData.jiesuan_dialog_show){
|
||||||
|
this.setData({
|
||||||
|
jiesuan_dialog_visible: true,
|
||||||
|
});
|
||||||
|
app.globalData.jiesuan_dialog_show = true
|
||||||
|
}
|
||||||
|
|
||||||
this.setData({
|
this.setData({
|
||||||
"info.info_shiming_status_txt": "去接诊",
|
"info.info_shiming_status_txt": "去接诊",
|
||||||
shiming_status_url: "/Pages/yishi/wenzhen_v2/wenzhen",
|
shiming_status_url: "/Pages/yishi/wenzhen_v2/wenzhen",
|
||||||
@ -482,7 +507,7 @@ Page({
|
|||||||
let is_bind_bank = this.data.info.is_bind_bank;
|
let is_bind_bank = this.data.info.is_bind_bank;
|
||||||
//是否参加专家图文接诊(0:否 1:是)
|
//是否参加专家图文接诊(0:否 1:是)
|
||||||
let is_img_expert_reception = this.data.info.is_img_expert_reception;
|
let is_img_expert_reception = this.data.info.is_img_expert_reception;
|
||||||
let status = 0;
|
let statusArr = [];
|
||||||
|
|
||||||
// 未实名认证和医师身份认证 0
|
// 未实名认证和医师身份认证 0
|
||||||
// 已实名认证,未医师身份认证 1
|
// 已实名认证,未医师身份认证 1
|
||||||
@ -491,41 +516,52 @@ Page({
|
|||||||
// 已实名认证和医师身份认证且绑定结算银行卡,开通了在线问诊,未开通多点执业认证 4
|
// 已实名认证和医师身份认证且绑定结算银行卡,开通了在线问诊,未开通多点执业认证 4
|
||||||
// 已实名认证和医师身份认证且绑定结算银行卡,开通了在线问诊,已开通多点执业认证 5
|
// 已实名认证和医师身份认证且绑定结算银行卡,开通了在线问诊,已开通多点执业认证 5
|
||||||
if(idcard_status == 0 && iden_auth_status == 0){
|
if(idcard_status == 0 && iden_auth_status == 0){
|
||||||
status = 0;
|
statusArr.push(0);
|
||||||
}else if(idcard_status == 1 && iden_auth_status != 1){
|
}
|
||||||
status = 1;
|
if(idcard_status == 1 && iden_auth_status != 1){
|
||||||
}else if(idcard_status == 1 && iden_auth_status == 1 && is_bind_bank != 1){
|
statusArr.push(1);
|
||||||
status = 2;
|
}
|
||||||
}else if(idcard_status == 1 && iden_auth_status == 1 && is_bind_bank == 1 && is_img_expert_reception != 1){
|
if(idcard_status == 1 && iden_auth_status == 1 && is_bind_bank != 1){
|
||||||
status = 3;
|
statusArr.push(2);
|
||||||
}else if(idcard_status == 1 && iden_auth_status == 1 && is_bind_bank == 1 && is_img_expert_reception == 1 && multi_point_status != 1){
|
}
|
||||||
status = 4;
|
if(idcard_status == 1 && iden_auth_status == 1 && is_bind_bank == 1 && is_img_expert_reception != 1){
|
||||||
}else{
|
statusArr.push(3);
|
||||||
status = 5;
|
}
|
||||||
|
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 => {
|
let retult = true;
|
||||||
return item.case_status == status;
|
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);
|
let moudle = e.currentTarget.dataset.moudle;
|
||||||
if(now_case){
|
console.log("moudle: ", moudle);
|
||||||
let now_moudle = now_case.case_module.find(item => {
|
if(now_case){
|
||||||
return item == moudle;
|
let now_moudle = now_case.case_module.find(item => {
|
||||||
})
|
return item == moudle;
|
||||||
console.log("now_moudle: ", now_moudle);
|
})
|
||||||
if(now_moudle != undefined){
|
console.log("now_moudle: ", now_moudle);
|
||||||
this.setData({
|
if(now_moudle != undefined){
|
||||||
dialog_content: now_case.case_text,
|
this.setData({
|
||||||
dialog_visible: true
|
dialog_content: now_case.case_text,
|
||||||
});
|
dialog_visible: true
|
||||||
return false;
|
});
|
||||||
|
retult = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
|
|
||||||
return true;
|
return retult;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -6,6 +6,7 @@
|
|||||||
"van-dialog": "@vant/weapp/dialog/index",
|
"van-dialog": "@vant/weapp/dialog/index",
|
||||||
"t-swiper": "tdesign-miniprogram/swiper/swiper",
|
"t-swiper": "tdesign-miniprogram/swiper/swiper",
|
||||||
"t-badge": "tdesign-miniprogram/badge/badge",
|
"t-badge": "tdesign-miniprogram/badge/badge",
|
||||||
"t-dialog": "tdesign-miniprogram/dialog/dialog"
|
"t-dialog": "tdesign-miniprogram/dialog/dialog",
|
||||||
|
"van-image": "@vant/weapp/image/index"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -22,8 +22,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="info_wenzhen">
|
<view class="info_wenzhen">
|
||||||
<view class="info_wenzhen_new" bindtap="go" data-moudle="0">新问诊:{{info.not_accepted_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-moudle="1">接诊中:{{info.accepting_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>
|
</view>
|
||||||
<view class="info_note" wx:if="{{info.show_info_note}}">
|
<view class="info_note" wx:if="{{info.show_info_note}}">
|
||||||
@ -50,8 +50,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="renzheng_content_right">
|
<view class="renzheng_content_right">
|
||||||
<image class="renzheng_content_right_img"
|
<van-image class="renzheng_content_right_img" width="100%"
|
||||||
mode="widthFix"
|
fit="widthFix"
|
||||||
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/yishirenzheng.png"
|
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/yishirenzheng.png"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
@ -67,8 +67,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="renzheng_content_right">
|
<view class="renzheng_content_right">
|
||||||
<image class="renzheng_content_right_img"
|
<van-image class="renzheng_content_right_img" width="100%"
|
||||||
mode="widthFix"
|
fit="widthFix"
|
||||||
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/zhiyerenzheng.png"
|
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/zhiyerenzheng.png"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
@ -91,38 +91,41 @@
|
|||||||
<!-- 功能模块 -->
|
<!-- 功能模块 -->
|
||||||
<view class="fun_box">
|
<view class="fun_box">
|
||||||
<view bindtap="go" data-moudle="3" data-url="/Pages/yishi/myprofile/index" class="fun_box_item">
|
<view bindtap="go" data-moudle="3" data-url="/Pages/yishi/myprofile/index" class="fun_box_item">
|
||||||
<image class="fun_box_item_img"
|
<van-image class="fun_box_item_img"
|
||||||
mode="widthFix"
|
fit="heightFix"
|
||||||
width="70rpx"
|
height="70rpx"
|
||||||
custom-style="width: 70rpx;"
|
|
||||||
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/jianjie.png"
|
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/jianjie.png"
|
||||||
/>
|
/>
|
||||||
<text class="fun_box_item_txt">简介管理</text>
|
<text class="fun_box_item_txt">简介管理</text>
|
||||||
</view>
|
</view>
|
||||||
<view bindtap="go" data-moudle="4" data-url="/Pages/yishi/onlinesetup/index" class="fun_box_item">
|
<view bindtap="go" data-moudle="4" data-url="/Pages/yishi/onlinesetup/index" class="fun_box_item">
|
||||||
<image class="fun_box_item_img"
|
<van-image class="fun_box_item_img"
|
||||||
mode="widthFix"
|
fit="widthFix"
|
||||||
|
width="70rpx"
|
||||||
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/zaixian.png"
|
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/zaixian.png"
|
||||||
/>
|
/>
|
||||||
<text class="fun_box_item_txt">在线问诊管理</text>
|
<text class="fun_box_item_txt">在线问诊管理</text>
|
||||||
</view>
|
</view>
|
||||||
<view bindtap="go" data-moudle="5" data-url="/Pages/yishi/kuaisusetup/index" class="fun_box_item">
|
<view bindtap="go" data-moudle="5" data-url="/Pages/yishi/kuaisusetup/index" class="fun_box_item">
|
||||||
<image class="fun_box_item_img"
|
<van-image class="fun_box_item_img"
|
||||||
mode="widthFix"
|
fit="widthFix"
|
||||||
|
width="70rpx"
|
||||||
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/kuaisu.png"
|
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/kuaisu.png"
|
||||||
/>
|
/>
|
||||||
<text class="fun_box_item_txt">快速问诊管理</text>
|
<text class="fun_box_item_txt">快速问诊管理</text>
|
||||||
</view>
|
</view>
|
||||||
<view bindtap="go" data-moudle="6" data-url="/Pages/yishi/yizhensetup/index" class="fun_box_item">
|
<view bindtap="go" data-moudle="6" data-url="/Pages/yishi/yizhensetup/index" class="fun_box_item">
|
||||||
<image class="fun_box_item_img"
|
<van-image class="fun_box_item_img"
|
||||||
mode="widthFix"
|
fit="widthFix"
|
||||||
|
width="70rpx"
|
||||||
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/yizhen.png"
|
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/yizhen.png"
|
||||||
/>
|
/>
|
||||||
<text class="fun_box_item_txt">公益问诊管理</text>
|
<text class="fun_box_item_txt">公益问诊管理</text>
|
||||||
</view>
|
</view>
|
||||||
<view bindtap="go" data-moudle="7" data-url="/Pages/yishi/chufangsetup/index" class="fun_box_item">
|
<view bindtap="go" data-moudle="7" data-url="/Pages/yishi/chufangsetup/index" class="fun_box_item">
|
||||||
<image class="fun_box_item_img"
|
<van-image class="fun_box_item_img"
|
||||||
mode="widthFix"
|
fit="widthFix"
|
||||||
|
width="70rpx"
|
||||||
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/chufang.png"
|
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/chufang.png"
|
||||||
/>
|
/>
|
||||||
<view class="fun_box_item_txt">
|
<view class="fun_box_item_txt">
|
||||||
@ -130,8 +133,9 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="fun_box_item" data-moudle="8" bindtap="contactKeFu">
|
<view class="fun_box_item" data-moudle="8" bindtap="contactKeFu">
|
||||||
<image class="fun_box_item_img"
|
<van-image class="fun_box_item_img"
|
||||||
mode="widthFix"
|
fit="widthFix"
|
||||||
|
width="70rpx"
|
||||||
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/kefu.png"
|
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/kefu.png"
|
||||||
/>
|
/>
|
||||||
<text class="fun_box_item_txt">联系客服</text>
|
<text class="fun_box_item_txt">联系客服</text>
|
||||||
@ -140,6 +144,7 @@
|
|||||||
<view style="width: 100%;height: 55px;">
|
<view style="width: 100%;height: 55px;">
|
||||||
<!-- 处理底部tabbar遮挡 50px -->
|
<!-- 处理底部tabbar遮挡 50px -->
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<t-dialog
|
<t-dialog
|
||||||
visible="{{ dialog_visible }}"
|
visible="{{ dialog_visible }}"
|
||||||
title="温馨提示"
|
title="温馨提示"
|
||||||
@ -152,6 +157,21 @@
|
|||||||
确定
|
确定
|
||||||
</view>
|
</view>
|
||||||
</t-dialog>
|
</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
|
<van-dialog
|
||||||
title="立即联系客服"
|
title="立即联系客服"
|
||||||
show="{{ contactKeFu }}"
|
show="{{ contactKeFu }}"
|
||||||
|
|||||||
@ -190,11 +190,15 @@
|
|||||||
}
|
}
|
||||||
.fun_box_item_img{
|
.fun_box_item_img{
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
.fun_box_item_txt{
|
.fun_box_item_txt{
|
||||||
flex: 2;
|
flex: 2;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
|
height: 70rpx;
|
||||||
|
line-height: 70rpx;
|
||||||
}
|
}
|
||||||
.t-class-cancel{
|
.t-class-cancel{
|
||||||
color: #3CC7C0 !important;
|
color: #3CC7C0 !important;
|
||||||
|
|||||||
@ -36,7 +36,7 @@ Page({
|
|||||||
},
|
},
|
||||||
|
|
||||||
onLoad(){
|
onLoad(){
|
||||||
this.setData({ note: this.data.open_note });
|
|
||||||
},
|
},
|
||||||
onShow(){
|
onShow(){
|
||||||
let params = {};
|
let params = {};
|
||||||
@ -49,6 +49,15 @@ Page({
|
|||||||
info: response.data.info,
|
info: response.data.info,
|
||||||
config: response.data.config,
|
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);})
|
}).catch(errors => {console.error(errors);})
|
||||||
},
|
},
|
||||||
onChange({ detail }) {
|
onChange({ detail }) {
|
||||||
@ -67,6 +76,15 @@ Page({
|
|||||||
params.is_open = detail?1:0;
|
params.is_open = detail?1:0;
|
||||||
api.putDoctorInquiryOpen(params).then(response => {
|
api.putDoctorInquiryOpen(params).then(response => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
}).then(()=>{
|
||||||
|
if(detail){
|
||||||
|
wx.requestSubscribeMessage({
|
||||||
|
tmplIds: ['G1RIs0RYqsTQ2CuPQWalIGVet9sd_d371YtDVhfBsFg'],
|
||||||
|
success (res) {
|
||||||
|
console.log(res);//同意授权
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
}).catch(errors => {console.error(errors);})
|
}).catch(errors => {console.error(errors);})
|
||||||
|
|
||||||
},
|
},
|
||||||
@ -75,29 +93,6 @@ Page({
|
|||||||
url: "/Pages/yishi/wenzhen_v2/wenzhen"
|
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
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
})
|
})
|
||||||
@ -6,13 +6,13 @@ Page({
|
|||||||
title: "个人中心",
|
title: "个人中心",
|
||||||
navHeight: 0,
|
navHeight: 0,
|
||||||
stateHeight: 0,
|
stateHeight: 0,
|
||||||
user_name: "",
|
user_name: "医师姓名",
|
||||||
iden_auth_status: "",
|
iden_auth_status: "0",
|
||||||
idcard_status: "",
|
idcard_status: "0",
|
||||||
multi_point_status: "",
|
multi_point_status: "0",
|
||||||
avatar: "https://img.applets.igandanyiyuan.com/applet/doctor/static/images/default_photo.png",
|
avatar: "https://img.applets.igandanyiyuan.com/applet/doctor/static/images/default_photo.png",
|
||||||
balance_account: "",
|
balance_account: "0",
|
||||||
estimate_income: "",
|
estimate_income: "0",
|
||||||
doctor_id: ""
|
doctor_id: ""
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -1,19 +1,19 @@
|
|||||||
<view class="container">
|
<view class="container">
|
||||||
<view class="top"></view>
|
<view class="top"></view>
|
||||||
<view class="title" style="top: {{stateHeight}}px;height: {{navHeight}}px;line-height: {{navHeight}}px;">{{ title }}</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}}" />
|
<t-avatar class="avatar" size="large" image="{{avatar}}" />
|
||||||
</view>
|
</view>
|
||||||
<view class="info">
|
<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="renzheng">
|
||||||
<view class="yishi">{{iden_auth_status==1?'已医师认证':'未医师认证'}}></view>
|
<view class="yishi" bindtap="go" data-url="/Pages/yishi/identity/index">{{iden_auth_status==1?'已医师认证':'未医师认证'}}></view>
|
||||||
<view class="zhiye">{{multi_point_status==1?'已多点执业认证':'未多点执业认证'}}></view>
|
<view class="zhiye" bindtap="go" data-url="/Pages/yishi/zhiye_identity/index">{{multi_point_status==1?'已多点执业认证':'未多点执业认证'}}></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="icon">
|
<view class="icon" bindtap="go" data-url="/Pages/yishi/myinfo/index">
|
||||||
<van-icon name="arrow" />
|
<van-icon name="arrow" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@ -108,7 +108,9 @@
|
|||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
padding: 20rpx 0;
|
padding: 20rpx 0;
|
||||||
}
|
}
|
||||||
|
.t-badge__content-text {
|
||||||
|
line-height: 70rpx !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -13,8 +13,9 @@ Page({
|
|||||||
doctor_id: "",
|
doctor_id: "",
|
||||||
idcard_status: 0,
|
idcard_status: 0,
|
||||||
iden_auth_status: 0,
|
iden_auth_status: 0,
|
||||||
|
is_bind_bank: 0,
|
||||||
user_name: "",
|
user_name: "",
|
||||||
brief_introduction: "我的简介",
|
brief_introduction: "点击编辑",
|
||||||
v_show: false,
|
v_show: false,
|
||||||
v_message: "",
|
v_message: "",
|
||||||
next_url: "/Pages/yishi/identity/index"
|
next_url: "/Pages/yishi/identity/index"
|
||||||
@ -33,6 +34,13 @@ Page({
|
|||||||
})
|
})
|
||||||
}).catch(errors => {console.error(errors);})
|
}).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(){
|
logOut(){
|
||||||
console.log("退出登录");
|
console.log("退出登录");
|
||||||
let usertype = wx.getStorageSync('usertype');
|
let usertype = wx.getStorageSync('usertype');
|
||||||
@ -69,6 +77,14 @@ Page({
|
|||||||
})
|
})
|
||||||
return;
|
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)
|
app.go(e.currentTarget.dataset.url)
|
||||||
},
|
},
|
||||||
go1(e){
|
go1(e){
|
||||||
@ -83,6 +99,14 @@ Page({
|
|||||||
app.go(e.currentTarget.dataset.url)
|
app.go(e.currentTarget.dataset.url)
|
||||||
},
|
},
|
||||||
go2(e){
|
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){
|
if(this.data.iden_auth_status != 1){
|
||||||
this.setData({
|
this.setData({
|
||||||
v_show: true,
|
v_show: true,
|
||||||
@ -94,7 +118,15 @@ Page({
|
|||||||
app.go(e.currentTarget.dataset.url)
|
app.go(e.currentTarget.dataset.url)
|
||||||
},
|
},
|
||||||
goIn(){
|
goIn(){
|
||||||
|
this.setData({
|
||||||
|
v_show: false
|
||||||
|
})
|
||||||
app.go(this.data.next_url)
|
app.go(this.data.next_url)
|
||||||
|
},
|
||||||
|
cancelDialog(){
|
||||||
|
this.setData({
|
||||||
|
v_show: false
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
@ -5,6 +5,6 @@
|
|||||||
"van-cell": "@vant/weapp/cell/index",
|
"van-cell": "@vant/weapp/cell/index",
|
||||||
"van-cell-group": "@vant/weapp/cell-group/index",
|
"van-cell-group": "@vant/weapp/cell-group/index",
|
||||||
"van-button": "@vant/weapp/button/index",
|
"van-button": "@vant/weapp/button/index",
|
||||||
"van-dialog": "@vant/weapp/dialog/index"
|
"t-dialog": "tdesign-miniprogram/dialog/dialog"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2,21 +2,35 @@
|
|||||||
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
||||||
<van-cell-group>
|
<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/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="实名认证"
|
<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 />
|
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 />
|
value="{{iden_auth_status==0?'未认证':iden_auth_status==1?'已认证':iden_auth_status==2?'审核中':'认证失败'}}" is-link />
|
||||||
</van-cell-group>
|
</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-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="温馨提示"
|
title="温馨提示"
|
||||||
message="{{v_message}}"
|
message="{{v_message}}"
|
||||||
show="{{ v_show }}"
|
show="{{ v_show }}"
|
||||||
show-cancel-button
|
show-cancel-button
|
||||||
confirm-button-color="#3CC7C0"
|
confirm-button-color="#3CC7C0"
|
||||||
bind:confirm="goIn"
|
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>
|
||||||
@ -3,3 +3,17 @@
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
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;
|
||||||
|
}
|
||||||
@ -2,7 +2,7 @@ const app = getApp()
|
|||||||
Page({
|
Page({
|
||||||
data: {
|
data: {
|
||||||
navbarData: {
|
navbarData: {
|
||||||
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
showCapsule: 2, //是否显示左上角图标 1表示显示 0表示不显示
|
||||||
title: '我的简介', //导航栏 中间的标题
|
title: '我的简介', //导航栏 中间的标题
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -47,3 +47,18 @@
|
|||||||
.van-cell--required::before {
|
.van-cell--required::before {
|
||||||
left: 4.7rem !important;
|
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;
|
||||||
|
}
|
||||||
@ -116,6 +116,7 @@
|
|||||||
<van-cell-group wx:if="{{ drug_content_show }}">
|
<van-cell-group wx:if="{{ drug_content_show }}">
|
||||||
<van-field
|
<van-field
|
||||||
label="用法"
|
label="用法"
|
||||||
|
type="text"
|
||||||
model:value="{{save_durg_single_use}}"
|
model:value="{{save_durg_single_use}}"
|
||||||
input-align="left"
|
input-align="left"
|
||||||
placeholder="请输入用法(口服)"
|
placeholder="请输入用法(口服)"
|
||||||
@ -124,6 +125,7 @@
|
|||||||
/>
|
/>
|
||||||
<van-field
|
<van-field
|
||||||
label="用次"
|
label="用次"
|
||||||
|
type="text"
|
||||||
model:value="{{save_durg_frequency_use}}"
|
model:value="{{save_durg_frequency_use}}"
|
||||||
input-align="left"
|
input-align="left"
|
||||||
placeholder="请输入服用次(一日1次)"
|
placeholder="请输入服用次(一日1次)"
|
||||||
@ -132,6 +134,7 @@
|
|||||||
/>
|
/>
|
||||||
<van-field
|
<van-field
|
||||||
label="用量"
|
label="用量"
|
||||||
|
type="text"
|
||||||
model:value="{{save_durg_single_unit}}"
|
model:value="{{save_durg_single_unit}}"
|
||||||
input-align="left"
|
input-align="left"
|
||||||
placeholder="请输入用量(一次3粒)"
|
placeholder="请输入用量(一次3粒)"
|
||||||
@ -140,6 +143,7 @@
|
|||||||
/>
|
/>
|
||||||
<van-field
|
<van-field
|
||||||
label="用药天数"
|
label="用药天数"
|
||||||
|
type="text"
|
||||||
model:value="{{save_durg_available_days}}"
|
model:value="{{save_durg_available_days}}"
|
||||||
input-align="left"
|
input-align="left"
|
||||||
placeholder="请输入时长"
|
placeholder="请输入时长"
|
||||||
@ -148,6 +152,7 @@
|
|||||||
/>
|
/>
|
||||||
<van-field
|
<van-field
|
||||||
label="药品数量"
|
label="药品数量"
|
||||||
|
type="text"
|
||||||
model:value="{{save_durg_prescription_product_num}}"
|
model:value="{{save_durg_prescription_product_num}}"
|
||||||
input-align="left"
|
input-align="left"
|
||||||
placeholder="请输入数量"
|
placeholder="请输入数量"
|
||||||
@ -156,6 +161,7 @@
|
|||||||
/>
|
/>
|
||||||
<van-field
|
<van-field
|
||||||
label="单位"
|
label="单位"
|
||||||
|
type="text"
|
||||||
model:value="{{save_durg_packaging_unit}}"
|
model:value="{{save_durg_packaging_unit}}"
|
||||||
input-align="left"
|
input-align="left"
|
||||||
placeholder="盒/袋"
|
placeholder="盒/袋"
|
||||||
|
|||||||
@ -54,6 +54,8 @@ Page({
|
|||||||
onChange({ detail }) {
|
onChange({ detail }) {
|
||||||
console.log("onChange: ", detail);
|
console.log("onChange: ", detail);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(detail){
|
if(detail){
|
||||||
let inquiry_price = this.data.info.inquiry_price;
|
let inquiry_price = this.data.info.inquiry_price;
|
||||||
let check = this.checkPrice(inquiry_price);
|
let check = this.checkPrice(inquiry_price);
|
||||||
@ -71,35 +73,63 @@ Page({
|
|||||||
params.is_open = detail?1:0;
|
params.is_open = detail?1:0;
|
||||||
api.putDoctorInquiryOpen(params).then(response => {
|
api.putDoctorInquiryOpen(params).then(response => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
}).then(()=>{
|
||||||
|
if(detail){
|
||||||
|
wx.requestSubscribeMessage({
|
||||||
|
tmplIds: ['G1RIs0RYqsTQ2CuPQWalIGVet9sd_d371YtDVhfBsFg'],
|
||||||
|
success (res) {
|
||||||
|
console.log(res);//同意授权
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
}).catch(errors => {console.error(errors);})
|
}).catch(errors => {console.error(errors);})
|
||||||
|
|
||||||
},
|
},
|
||||||
putDoctorInquiryConfig(){
|
putDoctorInquiryConfig(){
|
||||||
//修改医生问诊配置
|
//修改医生问诊配置
|
||||||
let params = {};
|
// let params = {};
|
||||||
params.inquiry_type = this.data.inquiry_type;//接诊类型(1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药)
|
// 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_mode = this.data.inquiry_mode;//接诊方式(1:图文 2:视频 3:语音 4:电话 5:会员)
|
||||||
params.inquiry_price = this.data.info.inquiry_price;
|
// params.inquiry_price = this.data.info.inquiry_price;
|
||||||
params.work_num_day = this.data.info.work_num_day;
|
// params.work_num_day = this.data.info.work_num_day;
|
||||||
api.putDoctorInquiryConfig(params).then(response => {
|
// api.putDoctorInquiryConfig(params).then(response => {
|
||||||
console.log(response);
|
// console.log(response);
|
||||||
Toast.success("修改成功");
|
// Toast.success("修改成功");
|
||||||
wx.switchTab({
|
// wx.switchTab({
|
||||||
url: "/Pages/yishi/wenzhen_v2/wenzhen"
|
// url: "/Pages/yishi/wenzhen_v2/wenzhen"
|
||||||
})
|
// })
|
||||||
}).catch(errors => {console.error(errors);})
|
// }).catch(errors => {console.error(errors);})
|
||||||
|
|
||||||
|
wx.switchTab({
|
||||||
|
url: "/Pages/yishi/wenzhen_v2/wenzhen"
|
||||||
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
onStepperChange(event) {
|
onStepperChange(event) {
|
||||||
console.log(event.detail);
|
console.log(event.detail);
|
||||||
this.setData({
|
this.setData({
|
||||||
"info.work_num_day": event.detail
|
"info.work_num_day": event.detail
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.updateConfig();
|
||||||
|
|
||||||
},
|
},
|
||||||
onPriceChange(e){
|
onPriceChange(e){
|
||||||
console.log(e.detail);
|
console.log(e.detail);
|
||||||
this.checkPrice(e.detail.value)
|
let price = e.detail.value;
|
||||||
this.setData({
|
let check = this.checkPrice(price);
|
||||||
"info.inquiry_price": e.detail.value
|
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){
|
myToast(message){
|
||||||
@ -107,7 +137,7 @@ Page({
|
|||||||
context: this,
|
context: this,
|
||||||
selector: '#t-toast',
|
selector: '#t-toast',
|
||||||
message: message,
|
message: message,
|
||||||
theme: 'warning',
|
theme: 'success',
|
||||||
direction: 'column',
|
direction: 'column',
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -128,5 +158,24 @@ Page({
|
|||||||
this.myToast(message);
|
this.myToast(message);
|
||||||
return false;
|
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;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -26,13 +26,13 @@
|
|||||||
<view class="price_steup_box_top">
|
<view class="price_steup_box_top">
|
||||||
<view class="price_steup_box_top_title">每日接诊数量</view>
|
<view class="price_steup_box_top_title">每日接诊数量</view>
|
||||||
<view class="price_steup_box_top_stepper">
|
<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>
|
</view>
|
||||||
<view class="price_steup_box_bottom">
|
<view class="price_steup_box_bottom">
|
||||||
<view class="price_steup_box_bottom_title">问诊单价(元)</view>
|
<view class="price_steup_box_bottom_title">问诊单价(元)</view>
|
||||||
<view class="price_steup_box_bottom_num">
|
<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>
|
<text class="price">元</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@ -1,11 +1,12 @@
|
|||||||
import { API } from './../../../utils/network/api'
|
import { API } from './../../../utils/network/api'
|
||||||
|
import Toast from 'tdesign-miniprogram/toast/index';
|
||||||
const api = new API()
|
const api = new API()
|
||||||
const app = getApp()
|
const app = getApp()
|
||||||
Page({
|
Page({
|
||||||
|
|
||||||
data: {
|
data: {
|
||||||
navbarData: {
|
navbarData: {
|
||||||
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
showCapsule: 2, //是否显示左上角图标 1表示显示 0表示不显示
|
||||||
title: '常用语', //导航栏 中间的标题
|
title: '常用语', //导航栏 中间的标题
|
||||||
},
|
},
|
||||||
height: app.globalData.height,
|
height: app.globalData.height,
|
||||||
@ -18,7 +19,17 @@ Page({
|
|||||||
show: false,
|
show: false,
|
||||||
add_message: "",
|
add_message: "",
|
||||||
current_words_type: 1,
|
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){
|
onTabChange(e){
|
||||||
this.setData({
|
this.setData({
|
||||||
@ -45,17 +56,33 @@ Page({
|
|||||||
|
|
||||||
api.postDoctorWords({words_type: words_type, words: words}).then(response => {
|
api.postDoctorWords({words_type: words_type, words: words}).then(response => {
|
||||||
console.log(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({
|
this.setData({
|
||||||
[list_name]: list,
|
|
||||||
add_message: "",
|
add_message: "",
|
||||||
show: false
|
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);})
|
}).catch(errors => {console.error(errors);})
|
||||||
},
|
},
|
||||||
showAdd(){
|
showAdd(){
|
||||||
@ -63,7 +90,6 @@ Page({
|
|||||||
show: true,
|
show: true,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
onClose() {
|
onClose() {
|
||||||
this.setData({
|
this.setData({
|
||||||
show: false,
|
show: false,
|
||||||
@ -73,5 +99,38 @@ Page({
|
|||||||
this.setData({
|
this.setData({
|
||||||
focus: true
|
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()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -7,6 +7,8 @@
|
|||||||
"t-tab-panel": "tdesign-miniprogram/tab-panel/tab-panel",
|
"t-tab-panel": "tdesign-miniprogram/tab-panel/tab-panel",
|
||||||
"van-button": "@vant/weapp/button/index",
|
"van-button": "@vant/weapp/button/index",
|
||||||
"van-popup": "@vant/weapp/popup/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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -4,6 +4,7 @@
|
|||||||
<t-tabs
|
<t-tabs
|
||||||
defaultValue="{{ current_words_type }}"
|
defaultValue="{{ current_words_type }}"
|
||||||
sticky
|
sticky
|
||||||
|
swipeable="{{false}}"
|
||||||
stickyProps="{{stickyProps}}"
|
stickyProps="{{stickyProps}}"
|
||||||
t-class="custom-tabs"
|
t-class="custom-tabs"
|
||||||
bind:change="onTabChange"
|
bind:change="onTabChange"
|
||||||
@ -12,18 +13,35 @@
|
|||||||
>
|
>
|
||||||
<t-tab-panel label="问诊" value="1">
|
<t-tab-panel label="问诊" value="1">
|
||||||
<view class="item_list">
|
<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>
|
||||||
<view class="btn">
|
<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>
|
<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>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</t-tab-panel>
|
</t-tab-panel>
|
||||||
<t-tab-panel label="处方" value="2">
|
<t-tab-panel label="处方" value="2">
|
||||||
<view class="item_list">
|
<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>
|
||||||
<view class="btn">
|
<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>
|
<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>
|
||||||
@ -60,3 +78,4 @@
|
|||||||
<van-cell url="/Pages/yishi/quickreply_data/index?title=义诊快捷回复" custom-style="border-radius: 20rpx;margin-bottom: 20rpx;" title="3、设置处方的快捷回复" 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>
|
</view>
|
||||||
|
<t-toast id="t-toast" />
|
||||||
@ -56,3 +56,12 @@ page{
|
|||||||
.popup_box_content{
|
.popup_box_content{
|
||||||
flex: 5;
|
flex: 5;
|
||||||
}
|
}
|
||||||
|
.delWords{
|
||||||
|
background-color: red;
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
width: 65px;
|
||||||
|
justify-content: center;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
@ -227,10 +227,12 @@ Page({
|
|||||||
let session_data_list_2 = [];
|
let session_data_list_2 = [];
|
||||||
let session_data_list_3 = [];
|
let session_data_list_3 = [];
|
||||||
let session_data_list_4 = [];
|
let session_data_list_4 = [];
|
||||||
|
let session_data_list_5 = [];
|
||||||
session_list.push(session_data_list_1);
|
session_list.push(session_data_list_1);
|
||||||
session_list.push(session_data_list_2);
|
session_list.push(session_data_list_2);
|
||||||
session_list.push(session_data_list_3);
|
session_list.push(session_data_list_3);
|
||||||
session_list.push(session_data_list_4);
|
session_list.push(session_data_list_4);
|
||||||
|
session_list.push(session_data_list_5);
|
||||||
|
|
||||||
this.data.conversationList.forEach(item => {
|
this.data.conversationList.forEach(item => {
|
||||||
let conversationID = item.conversationID;
|
let conversationID = item.conversationID;
|
||||||
@ -274,7 +276,7 @@ Page({
|
|||||||
data_list_4: session_data_list_4,
|
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})
|
this.setData({has_data: false})
|
||||||
}else{
|
}else{
|
||||||
this.setData({has_data: true})
|
this.setData({has_data: true})
|
||||||
|
|||||||
@ -39,7 +39,7 @@ Page({
|
|||||||
},
|
},
|
||||||
|
|
||||||
onLoad(){
|
onLoad(){
|
||||||
this.setData({ note: this.data.open_note });
|
|
||||||
},
|
},
|
||||||
onShow(){
|
onShow(){
|
||||||
let params = {};
|
let params = {};
|
||||||
@ -54,6 +54,14 @@ Page({
|
|||||||
})
|
})
|
||||||
this.formatAmounts();
|
this.formatAmounts();
|
||||||
this.formatAmountValue();
|
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);})
|
}).catch(errors => {console.error(errors);})
|
||||||
},
|
},
|
||||||
formatAmounts(){
|
formatAmounts(){
|
||||||
@ -91,6 +99,15 @@ Page({
|
|||||||
params.is_open = detail?1:0;
|
params.is_open = detail?1:0;
|
||||||
api.putDoctorInquiryOpen(params).then(response => {
|
api.putDoctorInquiryOpen(params).then(response => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
}).then(()=>{
|
||||||
|
if(detail){
|
||||||
|
wx.requestSubscribeMessage({
|
||||||
|
tmplIds: ['G1RIs0RYqsTQ2CuPQWalIGVet9sd_d371YtDVhfBsFg'],
|
||||||
|
success (res) {
|
||||||
|
console.log(res);//同意授权
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
}).catch(errors => {console.error(errors);})
|
}).catch(errors => {console.error(errors);})
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -104,9 +121,6 @@ Page({
|
|||||||
api.putDoctorInquiryConfig(params).then(response => {
|
api.putDoctorInquiryConfig(params).then(response => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
Toast.success("修改成功");
|
Toast.success("修改成功");
|
||||||
wx.switchTab({
|
|
||||||
url: "/Pages/yishi/wenzhen_v2/wenzhen"
|
|
||||||
})
|
|
||||||
}).catch(errors => {console.error(errors);})
|
}).catch(errors => {console.error(errors);})
|
||||||
},
|
},
|
||||||
onStepperChange(event) {
|
onStepperChange(event) {
|
||||||
@ -114,6 +128,7 @@ Page({
|
|||||||
this.setData({
|
this.setData({
|
||||||
"info.work_num_day": event.detail
|
"info.work_num_day": event.detail
|
||||||
});
|
});
|
||||||
|
this.putDoctorInquiryConfig()
|
||||||
},
|
},
|
||||||
|
|
||||||
onAmountPicker() {
|
onAmountPicker() {
|
||||||
@ -135,6 +150,8 @@ Page({
|
|||||||
[`${key}Text`]: value+' 元',
|
[`${key}Text`]: value+' 元',
|
||||||
"info.inquiry_price": value[0]
|
"info.inquiry_price": value[0]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.putDoctorInquiryConfig()
|
||||||
},
|
},
|
||||||
|
|
||||||
onPickerCancel(e) {
|
onPickerCancel(e) {
|
||||||
@ -145,5 +162,10 @@ Page({
|
|||||||
[`${key}Visible`]: false,
|
[`${key}Visible`]: false,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
go(e){
|
||||||
|
let url = e.currentTarget.dataset.url;
|
||||||
|
wx.switchTab({
|
||||||
|
url: url
|
||||||
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
@ -49,7 +49,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="go">
|
<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>
|
</view>
|
||||||
|
|
||||||
<t-picker
|
<t-picker
|
||||||
|
|||||||
@ -112,3 +112,7 @@ page{
|
|||||||
bottom: 100rpx;
|
bottom: 100rpx;
|
||||||
width: 90vw;
|
width: 90vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.t-picker__confirm,.t-class-confirm{
|
||||||
|
color: #49B9AD !important;
|
||||||
|
}
|
||||||
|
|||||||
@ -43,7 +43,7 @@
|
|||||||
<van-divider customStyle="color: #999; width:95vw; margin: 20rpx auto;" />
|
<van-divider customStyle="color: #999; width:95vw; margin: 20rpx auto;" />
|
||||||
|
|
||||||
<view class="sign_box">
|
<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">
|
<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>
|
<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>
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
.text-message {
|
.text-message {
|
||||||
max-width: 60vw;
|
max-width: 60vw;
|
||||||
min-height: 80rpx;
|
min-height: 50rpx;
|
||||||
line-height: 80rpx;
|
line-height: 50rpx;
|
||||||
padding: 10rpx 24rpx;
|
padding: 10rpx 24rpx;
|
||||||
background: #F8F8F8;
|
background: #F8F8F8;
|
||||||
border: 1rpx solid #D9D9D9;
|
border: 1rpx solid #D9D9D9;
|
||||||
@ -20,7 +20,7 @@
|
|||||||
.my-text::after{
|
.my-text::after{
|
||||||
content:'';
|
content:'';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 45rpx;
|
top: 35rpx;
|
||||||
right: -19rpx;
|
right: -19rpx;
|
||||||
transform: translate(-50%,-50%) rotate(-135deg);
|
transform: translate(-50%,-50%) rotate(-135deg);
|
||||||
width: 16rpx;
|
width: 16rpx;
|
||||||
@ -38,7 +38,7 @@
|
|||||||
.your-text::after{
|
.your-text::after{
|
||||||
content:'';
|
content:'';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 45rpx;
|
top: 35rpx;
|
||||||
left: 0;
|
left: 0;
|
||||||
transform: translate(-50%,-50%) rotate(45deg);
|
transform: translate(-50%,-50%) rotate(45deg);
|
||||||
width: 16rpx;
|
width: 16rpx;
|
||||||
|
|||||||
@ -75,6 +75,8 @@ Component({
|
|||||||
isEmoji: false,
|
isEmoji: false,
|
||||||
fileList: [],
|
fileList: [],
|
||||||
hasCallKit: false,
|
hasCallKit: false,
|
||||||
|
showChangYongYu: false,
|
||||||
|
ChangYongYu: []
|
||||||
},
|
},
|
||||||
|
|
||||||
lifetimes: {
|
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,
|
displayServiceEvaluation: true,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
showChangYongYu(){
|
||||||
|
app.go("/Pages/yishi/quickreply/index?from=chat")
|
||||||
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@ -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" />
|
<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 class="TUI-Extension-slot-name MY-TUI-Extension-slot-name">照片</view>
|
||||||
</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" />
|
<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 class="TUI-Extension-slot-name MY-TUI-Extension-slot-name">常用语</view>
|
||||||
</view>
|
</view>
|
||||||
@ -101,3 +101,4 @@
|
|||||||
{{title}}
|
{{title}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|||||||
12
TUIKit/static/assets/ic_back_black.svg
Normal file
12
TUIKit/static/assets/ic_back_black.svg
Normal 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
7
app.js
@ -46,7 +46,11 @@ App({
|
|||||||
this.aegisInit()
|
this.aegisInit()
|
||||||
console.warn("app.js wx.aegis: ", wx.aegis);
|
console.warn("app.js wx.aegis: ", wx.aegis);
|
||||||
|
|
||||||
|
//监听网络状态变化事件
|
||||||
|
wx.onNetworkStatusChange(function (res) {
|
||||||
|
console.log(res.isConnected)
|
||||||
|
console.log(res.networkType)
|
||||||
|
})
|
||||||
},
|
},
|
||||||
onShow(){
|
onShow(){
|
||||||
this.imInit();
|
this.imInit();
|
||||||
@ -152,6 +156,7 @@ App({
|
|||||||
height: 0,
|
height: 0,
|
||||||
login_url: "/Pages/login/index",
|
login_url: "/Pages/login/index",
|
||||||
chat_sdk_ready: false,
|
chat_sdk_ready: false,
|
||||||
|
jiesuan_dialog_show: false,
|
||||||
config: {
|
config: {
|
||||||
userID: "",
|
userID: "",
|
||||||
SDKAPPID: 1400796919, // Your SDKAppID
|
SDKAPPID: 1400796919, // Your SDKAppID
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<view class="container">
|
<view class="container">
|
||||||
<view class="tui-navigatorbar">
|
<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 class="conversation-title">{{ navbarData.title }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="box">
|
<view class="box">
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
top: 0;
|
top: 0;
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
height: 170rpx;
|
height: 170rpx;
|
||||||
background-color: #e94d4d;
|
background-color: #ffffff;
|
||||||
z-index: 99;
|
z-index: 99;
|
||||||
}
|
}
|
||||||
.tui-navigatorbar-back{
|
.tui-navigatorbar-back{
|
||||||
|
|||||||
@ -96,7 +96,8 @@ Component({
|
|||||||
license_cert_reason: "",
|
license_cert_reason: "",
|
||||||
qualification_cert_reason: "",
|
qualification_cert_reason: "",
|
||||||
work_cert_reason: "",
|
work_cert_reason: "",
|
||||||
department_custom_name_reason: ''
|
department_custom_name_reason: '',
|
||||||
|
zhuanchang_note: '请选择专长',
|
||||||
},
|
},
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
@ -108,15 +109,11 @@ Component({
|
|||||||
|
|
||||||
console.log("myprofile attached")
|
console.log("myprofile attached")
|
||||||
let _this = this;
|
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 => {
|
api.getDoctorAuthIden({source: this.data.indentity?1:2}).then(response => {
|
||||||
console.log("getDoctorAuthIden: ",response);
|
console.log("getDoctorAuthIden: ",response);
|
||||||
this.setData({
|
this.setData({
|
||||||
|
|
||||||
doctorauthiden_data_ready: true,
|
doctorauthiden_data_ready: true,
|
||||||
textarea_jianjie: response.data.brief_introduction,
|
textarea_jianjie: response.data.brief_introduction,
|
||||||
textarea_shanchang: response.data.be_good_at,
|
textarea_shanchang: response.data.be_good_at,
|
||||||
@ -217,6 +214,15 @@ Component({
|
|||||||
_this.setData({
|
_this.setData({
|
||||||
zhuanchang_columns: response.data
|
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); })
|
}).catch(errors => {console.error(errors); })
|
||||||
|
|
||||||
let keshi_huixian = false;
|
let keshi_huixian = false;
|
||||||
@ -235,10 +241,13 @@ Component({
|
|||||||
console.log("select_keshi_id: ", _this.data.select_keshi_id);
|
console.log("select_keshi_id: ", _this.data.select_keshi_id);
|
||||||
return item.value == _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({
|
_this.setData({
|
||||||
select_keshi_index: index,
|
select_keshi_index: index,
|
||||||
keshi_note: _this.data.keshi_columns[index].text
|
keshi_note: keshi_note
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
keshi_huixian = true;
|
keshi_huixian = true;
|
||||||
@ -479,7 +488,7 @@ Component({
|
|||||||
this.setData({ yiyuan_show: true });
|
this.setData({ yiyuan_show: true });
|
||||||
}else{
|
}else{
|
||||||
wx.showToast({
|
wx.showToast({
|
||||||
title: '请先选择省市',
|
title: '请先选择城市',
|
||||||
icon: "error"
|
icon: "error"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -650,6 +659,7 @@ Component({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
console.log("countcountcountcount: ",count)
|
||||||
if(count >= 10 && e.currentTarget.dataset.is_selected==0){
|
if(count >= 10 && e.currentTarget.dataset.is_selected==0){
|
||||||
wx.showToast({
|
wx.showToast({
|
||||||
title: '最多10个专长',
|
title: '最多10个专长',
|
||||||
@ -661,6 +671,27 @@ Component({
|
|||||||
let data = "zhuanchang_columns["+index+"].is_selected";
|
let data = "zhuanchang_columns["+index+"].is_selected";
|
||||||
this.setData({[data]: is_selected==1?0:1})
|
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){
|
zhuanchangConfirm(e){
|
||||||
this.setData({ zhuanchang_show: false });
|
this.setData({ zhuanchang_show: false });
|
||||||
@ -881,5 +912,8 @@ Component({
|
|||||||
[file_name]: img_list
|
[file_name]: img_list
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
moveZhuanChang(){
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@ -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="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>
|
<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="right">
|
||||||
<view class="note">真人正脸</view>
|
<view class="note">真人正脸</view>
|
||||||
<t-avatar image="{{ avatar }}" />
|
<t-avatar image="{{ avatar }}" />
|
||||||
@ -19,7 +19,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- <t-cell title="头像" hover required arrow note="真人正脸" /> -->
|
<!-- <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
|
<t-cascader
|
||||||
visible="{{ city_show }}"
|
visible="{{ city_show }}"
|
||||||
@ -31,7 +31,7 @@
|
|||||||
bind:change="onChangeCity"
|
bind:change="onChangeCity"
|
||||||
></t-cascader>
|
></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
|
<van-popup
|
||||||
show="{{ yiyuan_show }}"
|
show="{{ yiyuan_show }}"
|
||||||
position="bottom"
|
position="bottom"
|
||||||
@ -57,10 +57,14 @@
|
|||||||
bind:search="hospitalSearch"
|
bind:search="hospitalSearch"
|
||||||
/>
|
/>
|
||||||
</van-popup>
|
</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 != ''}}">
|
<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>
|
||||||
|
|
||||||
<view class="has_error" wx:if="{{ department_custom_name_reason != '' }}" >
|
<view class="has_error" wx:if="{{ department_custom_name_reason != '' }}" >
|
||||||
@ -142,8 +146,10 @@
|
|||||||
</view>
|
</view>
|
||||||
</van-popup>
|
</van-popup>
|
||||||
|
|
||||||
<t-popup visible="{{zhuanchang_show}}" bind:visible-change="onZhuanChangVisibleChange" placement="bottom">
|
<t-popup visible="{{zhuanchang_show}}"
|
||||||
<view class="zhuanchang_block">
|
prevent-scroll-through
|
||||||
|
bind:visible-change="onZhuanChangVisibleChange" placement="bottom">
|
||||||
|
<view class="zhuanchang_block" catchtouchmove="moveZhuanChang">
|
||||||
<view class="zhuanchang_header">
|
<view class="zhuanchang_header">
|
||||||
<view class="zhuanchang_btn zhuanchang_btn--cancel" aria-role="button" bindtap="zhuanchangConcle">取消</view>
|
<view class="zhuanchang_btn zhuanchang_btn--cancel" aria-role="button" bindtap="zhuanchangConcle">取消</view>
|
||||||
<view class="zhuanchang_title">选择专长</view>
|
<view class="zhuanchang_title">选择专长</view>
|
||||||
@ -169,7 +175,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</t-popup>
|
</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
|
<!-- <t-input
|
||||||
label="科室电话"
|
label="科室电话"
|
||||||
placeholder="请输入科室电话"
|
placeholder="请输入科室电话"
|
||||||
@ -185,7 +192,9 @@
|
|||||||
placeholder="请输入科室电话"
|
placeholder="请输入科室电话"
|
||||||
placeholder-style="font-size:25rpx;letter-spacing: 2rpx;color:rgba(0, 0, 0, 0.4);"
|
placeholder-style="font-size:25rpx;letter-spacing: 2rpx;color:rgba(0, 0, 0, 0.4);"
|
||||||
input-align="right"
|
input-align="right"
|
||||||
|
type="number"
|
||||||
clearable
|
clearable
|
||||||
|
disabled="{{(indentity && iden_auth_disabled)}}"
|
||||||
border="{{ department_custom_mobile_reason == '' }}"
|
border="{{ department_custom_mobile_reason == '' }}"
|
||||||
custom-style="font-size:30rpx;"
|
custom-style="font-size:30rpx;"
|
||||||
>
|
>
|
||||||
@ -199,7 +208,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</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="title">专长 <text class="required"> *</text></view>
|
||||||
<view class="content">
|
<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">
|
<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>
|
||||||
|
|
||||||
<view class="right">
|
<view class="right">
|
||||||
<view class="note">请选择专长</view>
|
<view class="note">{{zhuanchang_note}}</view>
|
||||||
<view class="icon">
|
<view class="icon">
|
||||||
<t-icon name="chevron-right" size="48rpx" data-name="chevron-right" />
|
<t-icon name="chevron-right" size="48rpx" data-name="chevron-right" />
|
||||||
</view>
|
</view>
|
||||||
@ -221,6 +230,7 @@
|
|||||||
bind:showNote="onshowJianJieNote"
|
bind:showNote="onshowJianJieNote"
|
||||||
textarea_cell_content_placeholder="您的从业经历,职称,所获荣誉等信息(10~1000字)"
|
textarea_cell_content_placeholder="您的从业经历,职称,所获荣誉等信息(10~1000字)"
|
||||||
textarea_val="{{textarea_jianjie}}"
|
textarea_val="{{textarea_jianjie}}"
|
||||||
|
disabled="{{(indentity && iden_auth_disabled)}}"
|
||||||
has_error_content="{{ brief_introduction_reason }}"
|
has_error_content="{{ brief_introduction_reason }}"
|
||||||
data-textarea_name="textarea_jianjie" bindTextAreaBlur="getTextAreaVal" />
|
data-textarea_name="textarea_jianjie" bindTextAreaBlur="getTextAreaVal" />
|
||||||
|
|
||||||
@ -228,6 +238,7 @@
|
|||||||
textarea_cell_name="擅长领域"
|
textarea_cell_name="擅长领域"
|
||||||
t_icon_name="view-module"
|
t_icon_name="view-module"
|
||||||
bind:showNote="onshowShanChangNote"
|
bind:showNote="onshowShanChangNote"
|
||||||
|
disabled="{{(indentity && iden_auth_disabled)}}"
|
||||||
textarea_val="{{textarea_shanchang}}"
|
textarea_val="{{textarea_shanchang}}"
|
||||||
has_error_content="{{ be_good_at_reason }}"
|
has_error_content="{{ be_good_at_reason }}"
|
||||||
textarea_cell_content_placeholder="您的专业领域、擅长疾病、研究方法等信息(10~1000字)"
|
textarea_cell_content_placeholder="您的专业领域、擅长疾病、研究方法等信息(10~1000字)"
|
||||||
@ -248,6 +259,7 @@
|
|||||||
upload_cell_note="查看示例"
|
upload_cell_note="查看示例"
|
||||||
has_error_content="{{ license_cert_reason }}"
|
has_error_content="{{ license_cert_reason }}"
|
||||||
wx:if="{{indentity}}"
|
wx:if="{{indentity}}"
|
||||||
|
disabled="{{(indentity && iden_auth_disabled)}}"
|
||||||
is_multiple="true"
|
is_multiple="true"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@ -266,6 +278,7 @@
|
|||||||
upload_cell_note="查看示例"
|
upload_cell_note="查看示例"
|
||||||
has_error_content="{{ qualification_cert_reason }}"
|
has_error_content="{{ qualification_cert_reason }}"
|
||||||
wx:if="{{indentity}}"
|
wx:if="{{indentity}}"
|
||||||
|
disabled="{{(indentity && iden_auth_disabled)}}"
|
||||||
is_multiple="true"
|
is_multiple="true"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@ -284,6 +297,7 @@
|
|||||||
upload_cell_note="查看示例"
|
upload_cell_note="查看示例"
|
||||||
has_error_content="{{ work_cert_reason }}"
|
has_error_content="{{ work_cert_reason }}"
|
||||||
wx:if="{{indentity}}"
|
wx:if="{{indentity}}"
|
||||||
|
disabled="{{(indentity && iden_auth_disabled)}}"
|
||||||
is_multiple="true"
|
is_multiple="true"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
@ -24,9 +24,18 @@
|
|||||||
<t-navbar class="block" title="{{navbarData.title}}" left-arrow bind:go-back="onBack" />
|
<t-navbar class="block" title="{{navbarData.title}}" left-arrow bind:go-back="onBack" />
|
||||||
</view>
|
</view>
|
||||||
<!-- 仅显示home -->
|
<!-- 仅显示home -->
|
||||||
<view class="block" wx:if="{{navbarData.showCapsule == 3}}">
|
<t-navbar title="{{navbarData.title}}" wx:if="{{navbarData.showCapsule == 3}}">
|
||||||
<t-navbar class="block" title="{{navbarData.title}}" home bind:go-back="onGoHome" />
|
<view slot="left" class="custom-capsule-home">
|
||||||
</view>
|
<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}}">
|
<view class="block" wx:if="{{navbarData.showCapsule == 0}}">
|
||||||
<t-navbar class="block" title="{{navbarData.title}}" />
|
<t-navbar class="block" title="{{navbarData.title}}" />
|
||||||
|
|||||||
@ -21,3 +21,6 @@
|
|||||||
height: 36rpx;
|
height: 36rpx;
|
||||||
background: #e7e7e7;
|
background: #e7e7e7;
|
||||||
}
|
}
|
||||||
|
.custom-capsule-home{
|
||||||
|
margin-left: 36rpx;
|
||||||
|
}
|
||||||
@ -12,6 +12,10 @@ Component({
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
value: true,
|
value: true,
|
||||||
},
|
},
|
||||||
|
disabled: {
|
||||||
|
type: Boolean,
|
||||||
|
value: false,
|
||||||
|
},
|
||||||
textarea_cell_note: {
|
textarea_cell_note: {
|
||||||
type: String,
|
type: String,
|
||||||
value: '示例备注',
|
value: '示例备注',
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="textarea-cell-content">
|
<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>
|
||||||
<view class="error_box" wx:if="{{ has_error_content != '' }}" >
|
<view class="error_box" wx:if="{{ has_error_content != '' }}" >
|
||||||
<t-icon color="red" name="close-circle-filled" size="48rpx" data-name="close-circle-filled" />
|
<t-icon color="red" name="close-circle-filled" size="48rpx" data-name="close-circle-filled" />
|
||||||
|
|||||||
@ -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 slot="confirm-btn" class="dialog dialog_confirm_btn" bindtap="confirmDialog">
|
||||||
确定
|
确定
|
||||||
</view>
|
</view>
|
||||||
</t-dialog>
|
</t-dialog>
|
||||||
|
|||||||
@ -436,6 +436,18 @@ class API extends HTTP {
|
|||||||
...params
|
...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) {
|
getBasicDiseaseSearch(params) {
|
||||||
|
|||||||
@ -46,16 +46,16 @@ class HTTP {
|
|||||||
url: app.globalData.login_url
|
url: app.globalData.login_url
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
reject(res.data.message)
|
reject(res.data.message);//向后传递错误信息,catch会拿到
|
||||||
this._show_error(showLoading, res.data.message)
|
this._show_error(showLoading, res.data.message)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
reject(res.data)
|
reject(res.data)//向后传递错误信息,catch会拿到
|
||||||
this._show_error(showLoading, err.data.message)
|
this._show_error(showLoading, err.data.message)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
reject()
|
reject(err)//向后传递错误信息,catch会拿到
|
||||||
this._show_error(showLoading, err.data.message)
|
this._show_error(showLoading, err.data.message)
|
||||||
},
|
},
|
||||||
complete: (res) => {
|
complete: (res) => {
|
||||||
@ -70,6 +70,9 @@ class HTTP {
|
|||||||
|
|
||||||
_show_error(showLoading, _message) {
|
_show_error(showLoading, _message) {
|
||||||
if(showLoading) wx.hideLoading();
|
if(showLoading) wx.hideLoading();
|
||||||
|
if(_message == undefined){
|
||||||
|
_message = "网络错误";
|
||||||
|
}
|
||||||
wx.showToast({
|
wx.showToast({
|
||||||
title: `${_message}`,
|
title: `${_message}`,
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user