This commit is contained in:
haomingming
2023-03-28 20:52:22 +08:00
parent 69df3bf6b3
commit 5ba50e4e61
58 changed files with 1122 additions and 347 deletions
+11 -3
View File
@@ -21,11 +21,19 @@ Page({
});
},
phone_change(e){
let phone = this.data.phone;
if(phone != ""){
let phone = e.detail.value;
this.setData({
phone: e.detail.value
})
let phone_reg = /^1[3-9]\d{9}$/;
if(phone_reg.test(phone)){
this.setData({
btn_color: "#3CC7C0"
})
}else{
this.setData({
btn_color: "#ccc"
})
}
},
getCodePhone(e){
@@ -139,7 +147,7 @@ Page({
})
}else{
_this.setData({
btn_msg: "获取验证码",
btn_msg: "重新获取验证码",
btn_disabled: false
})
clearInterval(time_index);
+8 -9
View File
@@ -3,22 +3,21 @@
<van-image height="196rpx" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/logo2.png" fit="heightFix" />
</view>
<view class="fields">
<van-field
model:value="{{ phone }}"
label="+86"
placeholder="请输入手机号"
type="number"
bind:input="phone_change"
input-align="left"
/>
<view class="phone_box">
<view class="country">+86</view>
<view class="phone">
<input placeholder-style="color:#c8c9cc;font-size:34rpx;" type="number" confirm-type="next" bindinput="phone_change" auto-focus placeholder="请输入手机号"/>
</view>
</view>
<van-field
model:value="{{ sms }}"
center
clearable
type="number"
label="短信验证码"
label=""
placeholder="请输入短信验证码"
use-button-slot
placeholder-style="color:#c8c9cc;font-size:30rpx;"
>
<van-button disabled="{{btn_disabled}}" color="{{btn_color}}" slot="button" size="small" round plain type="primary" bind:click="getCodePhone">
{{btn_msg}}
+40
View File
@@ -10,4 +10,44 @@
.btn{
font-size: 28rpx;
color: #666666;
}
.van-cell {
padding: 32rpx !important;
font-size: 34rpx !important;
}
.mylabel{
background-color: red;
width: 100rpx !important;
}
.label-class{
background-color: royalblue !important;
}
.phone_box{
display: flex;
padding: 32rpx;
position: relative;
}
.country{
flex: 1;
height: 24px;
line-height: 24px;
}
.phone{
flex: 7;
height: 24px;
}
.phone_box:after {
border-bottom: 1px solid #ebedf0;
bottom: 0;
box-sizing: border-box;
content: " ";
left: 16px;
pointer-events: none;
position: absolute;
right: 16px;
transform: scaleY(.5);
transform-origin: center;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: rgb(235, 237, 240);
}
+22 -4
View File
@@ -9,20 +9,38 @@ Page({
},
height: app.globalData.height,
order_inquiry_id: "",
case_detail: {}
case_detail: {},
imglist: []
},
onLoad(options){
this.setData({
order_inquiry_id: options.order_inquiry_id
})
},
onShow(){
//获取患者问诊病例
api.getDoctorInquiryCase({order_inquiry_id: this.data.order_inquiry_id}).then(response => {
console.log(response);
this.setData({
case_detail: response.data
})
}).then(res => {
this.formatImgList();
}).catch(errors => {console.error(errors);})
}
},
formatImgList(){
let diagnose_images = this.data.case_detail.diagnose_images;
let img_list = [];
diagnose_images.forEach(item => {
let img = {};
img.isImage = true;
img.url = item;
img_list.push(img);
})
this.setData({
imglist: img_list
})
},
onShow(){
},
})
+1 -1
View File
@@ -2,6 +2,6 @@
"component": true,
"usingComponents": {
"te-nav-bar": "/commpents/te_navbar",
"t-image": "tdesign-miniprogram/image/image"
"van-uploader": "@vant/weapp/uploader/index"
}
}
+12 -11
View File
@@ -48,46 +48,47 @@
</view>
</view>
<view class="disease_box_item">
<view class="title">问诊本人复诊凭证(病例/处方单/检查报告/住院单可任选其一)</view>
<view class="conent">无</view>
<view class="title">复诊凭证(病例/处方单/检查报告/住院单)</view>
<view class="conent" wx:if="{{case_detail.diagnose_images.length == 0}}">无</view>
</view>
<view class="img_box">
<t-image id="loading-img" shape="round" src="{{item.url}}" width="72" height="72" wx:for="{{case_detail.diagnose_images}}"/>
<van-uploader image-fit="aspectFit" file-list="{{ imglist }}" show-upload="{{false}}" deletable="{{false}}" />
</view>
</view>
</view>
<view class="main_title">其他信息</view>
<view class="data_box orther">
<view class="disease_box">
<view class="disease_box_item">
<view class="disease_box_item" wx:if="{{case_detail.is_allergy_history != 0}}">
<view class="title">过敏史:</view>
<view class="conent">{{case_detail.is_allergy_history==0?'否':case_detail.allergy_history}}</view>
</view>
<view class="disease_box_item">
<view class="disease_box_item" wx:if="{{case_detail.is_family_history != 0}}">
<view class="title">家族史:</view>
<view class="conent">{{case_detail.is_family_history==0?'否':case_detail.family_history}}</view>
</view>
<view class="disease_box_item">
<view class="disease_box_item" wx:if="{{case_detail.is_pregnant != 0}}">
<view class="title">是否备孕、妊娠或者哺乳期:</view>
<view class="conent">{{case_detail.is_pregnant==0?'否':case_detail.pregnant}}</view>
</view>
<view class="disease_box_item">
<view class="disease_box_item" wx:if="{{case_detail.drink_wine_status != 0}}">
<view class="title">饮酒史:</view>
<view class="conent">{{case_detail.drink_wine_status==1?'从不':case_detail.drink_wine_status==2?'偶尔':case_detail.drink_wine_status==3?'经常':case_detail.drink_wine_status==4?'每天':case_detail.drink_wine_status==5?'已戒酒':'其他'}}</view>
</view>
<view class="disease_box_item">
<view class="disease_box_item" wx:if="{{case_detail.smoke_status != 0}}">
<view class="title">吸烟史:</view>
<view class="conent">{{case_detail.smoke_status==1?'从不':case_detail.smoke_status==2?'偶尔':case_detail.smoke_status==3?'经常':case_detail.smoke_status==4?'每天':case_detail.smoke_status==5?'已戒烟':'其他'}}</view>
</view>
<view class="disease_box_item">
<view class="disease_box_item" wx:if="{{case_detail.is_operation != 0}}">
<view class="title">手术史:</view>
<view class="conent">{{case_detail.is_operation==0?'否':case_detail.operation}}</view>
</view>
<view class="disease_box_item">
<view class="disease_box_item" wx:if="{{case_detail.chemical_compound_status != 0}}">
<view class="title">接触化学物:</view>
<view class="conent">{{case_detail.chemical_compound_status==1?'从不':case_detail.chemical_compound_status==2?'偶尔':case_detail.chemical_compound_status==3?'经常':case_detail.chemical_compound_status==4?'每天':'其他'}}</view>
</view>
<view class="disease_info" wx:if="{{case_detail.chemical_compound_status > 1}}">
<view class="disease_info" wx:if="{{case_detail.chemical_compound_status != 1}}">
详细描述:{{case_detail.chemical_compound_describe}}
</view>
</view>
+16 -4
View File
@@ -2,7 +2,7 @@ page{
background-color: #F6F6F6;
}
.container{
width: 100vw;
/* width: 100vw; */
padding: 0 4vw;
}
.main_title{
@@ -38,14 +38,14 @@ page{
}
.info_item{
text-align: center;
width: 180rpx;
/* width: 180rpx; */
height: 60rpx;
display: flex;
align-items: center;
margin-left: 20rpx;
}
.info_title{
font-size: 30rpx;
font-size: 28rpx;
color: #333333;
}
.info_val{
@@ -77,7 +77,19 @@ page{
margin-bottom: 20rpx;
}
.img_box{
display: flex;
flex-wrap: wrap;
}
.van-uploader__wrapper{
display: flex !important;
}
.van-uploader__preview{
padding: 20rpx 15rpx !important;
background-color: #E4E4E4 !important;
border-radius: 15rpx;
width: 150rpx;
display: flex;
justify-content: center;
}
.orther{
margin-bottom: 50rpx;
+4 -4
View File
@@ -14,7 +14,7 @@
<van-image custom-style="" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/bankcard/js_icon.png" fit="heightFix" height="50rpx" aria-label="role" />
</view>
<view class="data_item_top_content">
<view class="name">{{item.account_name}}<text style="margin-left:20rpx;font-size: 28rpx;corlor:#999;">(尾号{{item.bank_card_code_four}}</text></view>
<view class="name">{{item.account_name}}<text style="margin-left:20rpx;font-size: 28rpx;color:#999;">(尾号{{item.bank_card_code_four}}</text></view>
<view class="date">{{item.examine_time}}</view>
</view>
<view class="data_item_top_num">
@@ -28,13 +28,13 @@
<view class="data_item_bottom">个人所得税:¥{{item.income_tax}}</view>
</view>
<view class="data_item">
<!-- <view class="data_item">
<view class="data_item_top">
<view class="data_item_top_icon">
<van-image custom-style="" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/bankcard/js_icon.png" fit="heightFix" height="50rpx" aria-label="role" />
</view>
<view class="data_item_top_content">
<view class="name">张三三<text style="margin-left:20rpx;font-size: 28rpx; corlor:#999;">(尾号9900</text></view>
<view class="name">张三三<text style="margin-left:20rpx;font-size: 28rpx;color:#999;">(尾号9900</text></view>
<view class="date">12.09 13:23</view>
</view>
<view class="data_item_top_num">
@@ -45,7 +45,7 @@
</view>
</view>
<view class="data_item_bottom">个人所得税:¥12.00</view>
</view>
</view> -->
<van-empty description="暂无数据" wx:if="{{record_list.length == 0}}" />
+2 -2
View File
@@ -1,8 +1,8 @@
const app = getApp()
Page({
data: {
patient_account: "10000",
title: '患者姓名',
patient_account: "",
title: '',
height: app.globalData.height,
order_inquiry_id: "",
inquiry_type: "",
+2 -1
View File
@@ -2,5 +2,6 @@
"usingComponents": {
"TUIChat": "../../../TUIKit/components/TUIChat/index"
},
"navigationStyle": "custom"
"navigationStyle": "custom",
"disableScroll":true
}
+6 -1
View File
@@ -78,5 +78,10 @@ Page({
})
}
}).catch(errors => {console.error(errors);})
}
},
go(e){
let url = e.currentTarget.dataset.url;
console.log(url);
app.go(url);
},
})
+5 -48
View File
@@ -68,7 +68,7 @@
<view class="item_top_status_box">
<!-- 药师审核状态(0:审核中 1:审核成功 2:审核驳回) -->
<view class="item_top_status item_top_status_no">
{{item.pharmacist_audit_status==0?'审核中':item.pharmacist_audit_status==1?'审核成功':'审核驳回'}}
{{item.pharmacist_audit_status==0?'审核中':item.pharmacist_audit_status==1?'审核成功':'驳回'}}
</view>
</view>
</view>
@@ -92,63 +92,20 @@
</view>
<view class="item_content_li">
<view class="item_content_li_title">驳回原因:</view>
<view class="item_content_li_txt">{{item.platform_fail_reason}}</view>
<view class="item_content_li_txt">{{item.pharmacist_fail_reason}}</view>
</view>
</view>
<!-- 底部按钮 -->
<view class="item_bottom">
<view class="item_bottom_btn">问诊记录</view>
<view class="item_bottom_btn item_bottom_btn_repeat">
<navigator url="/Pages/yishi/onlinechufang/index" open-type="navigate" hover-class="other-navigator-hover">
<view class="item_bottom_btn item_bottom_btn_repeat" bindtap="go" data-url="/Pages/yishi/onlinechufang/index?order_inquiry_id={{item.order_inquiry_id}}&order_prescription_id={{item.order_prescription_id}}">
重开处方
</navigator>
</view>
</view>
</view>
<view class="item">
<!-- 头部 -->
<view class="item_top">
<view class="item_top_name">张三三4</view>
<view class="item_top_sex">男 | 30岁</view>
<view class="item_top_status_box">
<view class="item_top_status item_top_status_no">驳回</view>
</view>
</view>
<!-- 中间内容部分 -->
<view class="item_content">
<view class="item_content_li">
<view class="item_content_li_title">病情诊断:</view>
<view class="item_content_li_txt">4年</view>
</view>
<view class="item_content_li">
<view class="item_content_li_title">病情诊断:</view>
<view class="item_content_li_txt">头疼,腰疼、肩膀酸、等症状已经困</view>
</view>
<view class="item_content_li">
<view class="item_content_li_title">病情诊断:</view>
<view class="item_content_li_txt">新冠病毒</view>
</view>
<view class="item_content_li">
<view class="item_content_li_title">处方时间:</view>
<view class="item_content_li_txt">2022年12月23日 1245</view>
</view>
<view class="item_content_li">
<view class="item_content_li_title">驳回原因:</view>
<view class="item_content_li_txt">图片不清晰</view>
</view>
</view>
<!-- 底部按钮 -->
<view class="item_bottom">
<view class="item_bottom_btn">问诊记录</view>
<view class="item_bottom_btn item_bottom_btn_repeat">
<navigator url="/Pages/yishi/onlinechufang/index" open-type="navigate" hover-class="other-navigator-hover">
重开处方
</navigator>
</view>
</view>
</view>
</view>
<van-empty description="暂无数据" wx:if="{{chufang_list_2.length == 0}}" />
</t-tab-panel>
</t-tabs>
</view>
+15
View File
@@ -167,6 +167,11 @@
.zhuanchang_btn--confirm {
color: #3cc7c0;
}
/* 自定义医院搜索框样式 */
.van-search__field .van-cell{
padding: 10rpx !important;
}
.van-picker__columns {
height: 264px !important;
top: 40px !important;
@@ -175,6 +180,7 @@
top: -270px !important;
position: relative !important;
}
.van-picker__confirm{
color: #3cc7c0 !important;
}
@@ -207,4 +213,13 @@
}
.van-picker__title {
font-size: 34rpx !important;
}
.van-empty{
position: absolute;
width: 100%;
left: 50%;
top: 180rpx;
transform: translateX(-50%);
z-index: 9999999;
background: rgb(255, 255, 255);
}
+25 -7
View File
@@ -1,5 +1,6 @@
// Pages/yishi/index/index.js
import { API } from './../../../utils/network/api'
import { rpxTopx } from './../../../utils/util'
const api = new API()
const app = getApp()
Page({
@@ -92,27 +93,44 @@ Page({
skeleton_loading: true,
contactKeFu: false,
jiesuan_dialog_show: false,
jiesuan_dialog_visible: false
jiesuan_dialog_visible: false,
aa: 0
},
// 获取状态栏信息
getMenuButtonBound() {
let stateHeight = 0; // 接收状态栏高度
const navHeight = wx.getMenuButtonBoundingClientRect().height; // 获取胶囊高度
let top = 0;
wx.getSystemInfo({
success(res) {
stateHeight = res.statusBarHeight;
},
});
top = wx.getMenuButtonBoundingClientRect().top - stateHeight; // 获取top值
console.log('navHeight', navHeight);
console.log('top', top);
this.setData({
// navHeight: navHeight + top * 2, // 导航栏高度
navHeight, // 导航栏高度
stateHeight: stateHeight + top, // 状态栏高度
});
},
getFunboxHeight(){
console.log("109: ", rpxTopx(109))
console.log("113: ", rpxTopx(113))
const { statusBarHeight } = wx.getSystemInfoSync();
console.log("statusBarHeight: ", rpxTopx(statusBarHeight));
let funbox_height = wx.getSystemInfoSync().windowHeight - (this.data.stateHeight + this.data.navHeight + 10) - 55;//减去底部空白
funbox_height = rpxTopx(funbox_height);
// 147 userinfo的高度
// 155 认证部分的高度
// 150 广告部分的高度
// 40 自定义适配
funbox_height = funbox_height - 147 - 20 - 30 - 20 - 155 - 30 - 150 - 20 - 30 - 30 - 30 - 30 - 40;
funbox_height = funbox_height / 3;
if(funbox_height > 150) funbox_height = 150
this.setData({
funbox_height: funbox_height
})
},
confirmJieSuanDialog(){
this.setData({
jiesuan_dialog_visible: false
@@ -145,7 +163,7 @@ Page({
})
}
this.getMenuButtonBound();
this.getFunboxHeight();
api.yiShiIndex().then(response => {
console.log(response);
let avatar = response.data.info.avatar;
+8 -8
View File
@@ -1,6 +1,6 @@
<view class="container">
<view class="container" id="container">
<!-- 顶部背景 -->
<view class="top_bk"></view>
<!-- 顶部标题 -->
@@ -12,7 +12,7 @@
<view class="info_top">
<view class="info_photo" bindtap="go" data-url="/Pages/yishi/myinfo/index">
<!-- 跳转我的信息 -->
<t-avatar alt="头像" class="avatar" size="large" image="{{info.avatar}}" />
<t-avatar alt="头像" class="avatar" size="medium" image="{{info.avatar}}" />
</view>
<view class="info_content">
<view class="info_mobile">{{info.user_name}}</view>
@@ -90,7 +90,7 @@
</view>
<!-- 功能模块 -->
<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" style="height: {{funbox_height}}rpx;">
<van-image class="fun_box_item_img"
fit="heightFix"
height="70rpx"
@@ -98,7 +98,7 @@
/>
<text class="fun_box_item_txt">简介管理</text>
</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" style="height: {{funbox_height}}rpx;">
<van-image class="fun_box_item_img"
fit="widthFix"
width="70rpx"
@@ -106,7 +106,7 @@
/>
<text class="fun_box_item_txt">在线问诊管理</text>
</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" style="height: {{funbox_height}}rpx;">
<van-image class="fun_box_item_img"
fit="widthFix"
width="70rpx"
@@ -114,7 +114,7 @@
/>
<text class="fun_box_item_txt">快速问诊管理</text>
</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" style="height: {{funbox_height}}rpx;">
<van-image class="fun_box_item_img"
fit="widthFix"
width="70rpx"
@@ -122,7 +122,7 @@
/>
<text class="fun_box_item_txt">公益问诊管理</text>
</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" style="height: {{funbox_height}}rpx;">
<van-image class="fun_box_item_img"
fit="widthFix"
width="70rpx"
@@ -132,7 +132,7 @@
<t-badge style="display: flex;align-items: center;" dot="{{info.reject_prescription_number ? true : false}}" offset="{{ ['-14rpx', '10rpx'] }}" class="wrapper" content="处方管理" />
</view>
</view>
<view class="fun_box_item" data-moudle="8" bindtap="contactKeFu">
<view class="fun_box_item" data-moudle="8" bindtap="contactKeFu" style="height: {{funbox_height}}rpx;">
<van-image class="fun_box_item_img"
fit="widthFix"
width="70rpx"
+1 -1
View File
@@ -181,7 +181,7 @@
}
.fun_box_item{
width: 40vw;
height: 150rpx;
height: 110rpx;
background-color: #FAFAFA;
border-radius: 10rpx;
margin: 10rpx 0;
+1 -1
View File
@@ -13,7 +13,7 @@
<view class="monthbox">
<view class="month" bindtap="showPop">{{dateText}}<van-icon name="arrow-down" color="#999" size="40rpx" /></view>
<view class="account">
<view class="account_left">预计收入:¥{{amount_total_month}}</view>
<view class="account_left">当月收益:¥{{amount_total_month}}</view>
<view class="account_right">当月已提取:¥{{withdrawal_amount_month}}</view>
</view>
</view>
+3
View File
@@ -44,10 +44,13 @@ page{
.account_left{
flex: 1;
text-align: center;
text-align: left;
margin-left: 20rpx;
}
.account_right{
flex: 1;
text-align: center;
text-align: left;
}
.txt_title{
font-size: 30rpx;
+22
View File
@@ -25,4 +25,26 @@
}
.van-cell {
padding: 32rpx !important;
}
/* 自定义医院搜索框样式 */
.van-search__field .van-cell{
padding: 10rpx !important;
}
.van-picker__columns {
height: 264px !important;
top: 40px !important;
}
.van-search {
top: -270px !important;
position: relative !important;
}
.van-empty{
position: absolute;
width: 100%;
left: 50%;
top: 180rpx;
transform: translateX(-50%);
z-index: 9999999;
background: rgb(255, 255, 255);
}
+21 -1
View File
@@ -1,3 +1,5 @@
import { API } from './../../../utils/network/api'
const api = new API()
const app = getApp()
Page({
data: {
@@ -5,7 +7,25 @@ Page({
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
title: '公告详情', //导航栏 中间的标题
},
height: app.globalData.height,
height: app.globalData.height,
notice: {}
},
onLoad(options){
let notice_id = options.notice_id;
api.getDoctorMessageSystemDetail({notice_id: notice_id}).then(response => {
console.log(response);
this.setData({
notice: response.data
})
}).catch(errors => {console.error(errors);})
},
go(e){
let link_type = this.data.notice.link_type;
let link_params = this.data.notice.link_params;
wx.showToast({
title: '无数据,不能调试',
icon: "error"
})
}
})
+9 -5
View File
@@ -3,20 +3,24 @@
<view class="data">
<view class="item">
<view class="title">发信人</view><text></text>
<view class="conent">肝胆小秘书</view>
<view class="conent">{{notice.from_name}}</view>
</view>
<view class="item">
<view class="title">标题</view><text></text>
<view class="conent">9月份的服务费结算</view>
<view class="conent">{{notice.notice_title}}</view>
</view>
<view class="item">
<view class="title">时间</view><text></text>
<view class="conent">2022-11-02 12:22:11</view>
<view class="conent">{{notice.notice_send_time}}</view>
</view>
<view class="item">
<view class="title">内容</view><text></text>
<view class="conent">XX医生您好,您9月份的服务费已结算至您的银行卡,请注意查收。</view>
<view class="conent">{{notice.notice_content}}</view>
</view>
<van-button color="#3CC7C0" custom-style="border-radius: 10rpx;margin: 30rpx 0;" block>我的账户</van-button>
<van-button bind:click="go" color="#3CC7C0" custom-style="border-radius: 10rpx;margin: 30rpx 0;" block wx:if="{{notice.button_type == 1}}">我的账户</van-button>
<van-button bind:click="go" color="#3CC7C0" custom-style="border-radius: 10rpx;margin: 30rpx 0;" block wx:if="{{notice.button_type == 2}}">联系客服</van-button>
<van-button bind:click="go" color="#3CC7C0" custom-style="border-radius: 10rpx;margin: 30rpx 0;" block wx:if="{{notice.button_type == 3}}">查看协议</van-button>
<van-button bind:click="go" color="#3CC7C0" custom-style="border-radius: 10rpx;margin: 30rpx 0;" block wx:if="{{notice.button_type == 4}}">订单详情</van-button>
<van-button bind:click="go" color="#3CC7C0" custom-style="border-radius: 10rpx;margin: 30rpx 0;" block wx:if="{{notice.button_type == 5}}">查看处方</van-button>
</view>
</view>
+169 -25
View File
@@ -20,7 +20,7 @@ Page({
drug_content_show: false,
search_drug_list_empty: true,
search_drug_list: [],
select_drug_name: "",
product_name: "",
select_drug_id: "",
save_durg_product_id: "",
save_durg_prescription_product_num: "",
@@ -30,9 +30,11 @@ Page({
save_durg_frequency_use: "",
save_durg_available_days: "",
order_inquiry_id: "",
order_prescription_id: "",
doctor_advice: "",
doctors_advice_focus: false,
case_detail: {}
case_detail: {},
sub_disabled: false,
},
onDoctorsAdviceFocus(){
this.setData({
@@ -41,21 +43,28 @@ Page({
},
onLoad(options){
let order_inquiry_id = options.order_inquiry_id;
let order_prescription_id = options.order_prescription_id ;
//获取患者问诊病例
api.getDoctorInquiryCase({order_inquiry_id: order_inquiry_id}).then(response => {
console.log(response);
this.setData({
case_detail: response.data
})
}).then(res => {
//有处方id,才去请求详情
if(order_prescription_id){
this.getDoctorPrescriptionInfo(order_inquiry_id, order_prescription_id);
}
}).catch(errors => {console.error(errors);})
this.setData({
order_inquiry_id: order_inquiry_id
order_inquiry_id: order_inquiry_id,
order_prescription_id: order_prescription_id,
})
},
select_drug(e){
this.setData({
drug_content_show: true,
select_drug_name: e.currentTarget.dataset.product_name,
product_name: e.currentTarget.dataset.product_name,
select_drug_id: e.currentTarget.dataset.product_id,
save_durg_product_id: e.currentTarget.dataset.product_id
});
@@ -110,7 +119,7 @@ Page({
this.delDrugBox(product_id);
let save_durg = {};
save_durg.select_drug_name = this.data.select_drug_name;
save_durg.product_name = this.data.product_name;
save_durg.product_id = this.data.save_durg_product_id;
save_durg.prescription_product_num = this.data.save_durg_prescription_product_num;
save_durg.single_unit = this.data.save_durg_single_unit;
@@ -123,7 +132,7 @@ Page({
this.setData({
drugs_box_item_list: list,
drugs_popshow: false,
select_drug_name: "",
product_name: "",
drug_content_show: false,
search_drug_list: [],
save_durg_product_id: "",
@@ -154,8 +163,8 @@ Page({
search(){
//搜索诊断
let params = {};
params.disease_class_name = this.data.disease_class_name;
api.getBasicDiseaseSearch(params).then(response => {
params.icd_keyword = this.data.disease_class_name;
api.getBasicIcdSearch(params).then(response => {
console.log(response);
this.setData({
zhenduan_search_list: response.data
@@ -167,7 +176,7 @@ Page({
searchDrug(){
//搜索药品
let params = {};
params.product_keyword = this.data.select_drug_name;
params.product_keyword = this.data.product_name;
api.getBasicProductSearch(params).then(response => {
console.log(response);
if(response.data.length > 0){
@@ -197,17 +206,17 @@ Page({
})
},
addZhenDuan(e){
let disease_class_name = e.currentTarget.dataset.disease_class_name;
let disease_class_id = e.currentTarget.dataset.disease_class_id;
console.log("disease_class_name: ", disease_class_name);
console.log("disease_class_id: ", disease_class_id);
let icd_name = e.currentTarget.dataset.icd_name;
let icd_id = e.currentTarget.dataset.icd_id;
console.log("icd_name: ", icd_name);
console.log("icd_id: ", icd_id);
let disease_obj = {};
disease_obj.disease_class_name = disease_class_name;
disease_obj.disease_class_id = disease_class_id;
disease_obj.icd_name = icd_name;
disease_obj.icd_id = icd_id;
let list = this.data.zhenduan_list;
let find_index = list.findIndex(item => {
return item.disease_class_id == disease_class_id
return item.icd_id == icd_id
});
if(find_index == -1){
list.push(disease_obj);
@@ -245,7 +254,7 @@ Page({
console.log(drug);
this.setData({
drugs_popshow: true,
select_drug_name: drug.select_drug_name,
product_name: drug.product_name,
drug_content_show: true,
save_durg_product_id: drug.product_id,
save_durg_prescription_product_num: drug.prescription_product_num,
@@ -280,37 +289,172 @@ Page({
doctor_advice: e.detail.value
})
},
postDoctorPrescription(){//新增处方
postDoctorPrescription(e){//新增处方
let sub_disabled = this.data.sub_disabled;
if(sub_disabled) return
console.log("postDoctorPrescription postDoctorPrescription");
//先置灰,避免重复提交
this.setData({
sub_disabled: true
})
let params = {};
params.order_inquiry_id = this.data.order_inquiry_id;
params.doctor_advice = this.data.doctor_advice;
let prescription_icd = [];
this.data.zhenduan_list.forEach(item => {
prescription_icd.push(item.disease_class_id);
prescription_icd.push(item.icd_id);
})
params.prescription_icd = prescription_icd;
params.prescription_product = this.data.drugs_box_item_list;
console.log(params);
if(prescription_icd.length == 0){
wx.showToast({
title: '请选择诊断',
icon: "error"
})
this.setData({
sub_disabled: false
})
return;
}
if(params.prescription_product.length == 0){
wx.showToast({
title: '请选择药品',
icon: "error"
})
this.setData({
sub_disabled: false
})
return;
}
if(this.data.doctor_advice == ""){
wx.showToast({
title: '请填写医嘱',
icon: "error"
})
this.setData({
sub_disabled: false
})
return;
}
if(this.data.doctor_advice.length < 5 || this.data.doctor_advice.length > 200){
wx.showToast({
title: '医嘱字数5-20',
icon: "error"
})
this.setData({
sub_disabled: false
})
return;
}
api.postDoctorPrescription(params).then(response => {
console.log(response);
}).catch(errors => {console.error(errors);})
wx.showToast({
title: '提交成功',
icon: "success"
})
}).catch(errors => {
console.error(errors);
this.setData({
sub_disabled: false
})
})
},
putDoctorPrescription(){//修改处方
let sub_disabled = this.data.sub_disabled;
if(sub_disabled) return
console.log("putDoctorPrescription putDoctorPrescription");
//先置灰,避免重复提交
this.setData({
sub_disabled: true
})
let params = {};
params.order_prescription_id = this.data.order_prescription_id;
params.doctor_advice = this.data.doctor_advice;
let prescription_icd = [];
this.data.zhenduan_list.forEach(item => {
prescription_icd.push(item.icd_id);
})
params.prescription_icd = prescription_icd;
params.prescription_product = this.data.drugs_box_item_list;
console.log(params);
if(prescription_icd.length == 0){
wx.showToast({
title: '请选择诊断',
icon: "error"
})
this.setData({
sub_disabled: false
})
return;
}
if(params.prescription_product.length == 0){
wx.showToast({
title: '请选择药品',
icon: "error"
})
this.setData({
sub_disabled: false
})
return;
}
if(this.data.doctor_advice == ""){
wx.showToast({
title: '请填写医嘱',
icon: "error"
})
this.setData({
sub_disabled: false
})
return;
}
if(this.data.doctor_advice.length < 5 || this.data.doctor_advice.length > 200){
wx.showToast({
title: '医嘱字数5-20',
icon: "error"
})
this.setData({
sub_disabled: false
})
return;
}
api.putDoctorPrescription(params).then(response => {
console.log(response);
}).catch(errors => {console.error(errors);})
wx.showToast({
title: '提交成功',
icon: "success"
})
}).catch(errors => {
console.error(errors);
this.setData({
sub_disabled: false
})
})
},
getDoctorPrescriptionInfo(){//获取处方详情
getDoctorPrescriptionInfo(order_inquiry_id, order_prescription_id){//获取处方详情
let params = {};
params.order_inquiry_id = order_inquiry_id;
params.order_prescription_id = order_prescription_id;
api.getDoctorPrescriptionInfo(params).then(response => {
console.log(response);
this.setData({
doctor_advice: response.data.prescription.doctor_advice,
zhenduan_list: response.data.prescription_icd,
drugs_box_item_list: response.data.prescription_product,
})
}).catch(errors => {console.error(errors);})
}
})
+18 -13
View File
@@ -33,7 +33,7 @@
<view class="addzhenduan">+添加诊断</view>
<view slot="label">
<view style="margin-top: 20rpx;" class="label_item" wx:for="{{zhenduan_list}}">
<van-icon name="delete" catchtap="delZhenDuan" color="red" data-disease_class_id="{{item.disease_class_id}}" /><text style="margin-left: 10rpx;">{{item.disease_class_name}}</text>
<van-icon name="delete" catchtap="delZhenDuan" color="red" data-disease_class_id="{{item.icd_id}}" /><text style="margin-left: 10rpx;">{{item.icd_name}}</text>
</view>
</view>
</van-cell>
@@ -45,7 +45,7 @@
<view class="drugs_box">
<view class="drugs_box_item" wx:for="{{ drugs_box_item_list }}" wx:for-item="drugs">
<view class="drugs_name">{{ drugs.select_drug_name }}(数量{{ drugs.prescription_product_num}})</view>
<view class="drugs_name">{{ drugs.product_name }}(数量{{ drugs.prescription_product_num}})</view>
<view class="drugs_guige">用法用量:{{ drugs.single_use }}{{ drugs.frequency_use }}{{ drugs.single_unit }}</view>
<!-- <view class="drugs_dosage">备注:{{ drugs.drugs_dosage }}</view> -->
<view class="btn">
@@ -56,16 +56,18 @@
</view>
<view class="adddrugs_btn">
<van-button bind:click="showPopup" color="rgba(35,209,215,0.28); font-size:30rpx; border-radius: 10rpx;" type="primary" block>+添加药品</van-button>
<van-button bind:click="showPopup" color="rgba(44,241,248,0.28);" custom-style="color:#3CC7C0; font-size:30rpx; border-radius: 10rpx;" type="primary" block>+添加药品</van-button>
</view>
<form bindsubmit="{{ order_prescription_id == ''?'postDoctorPrescription':'putDoctorPrescription' }}">
<view class="txt_title">医嘱</view>
<view class="doctors_advice" bindtap="onDoctorsAdviceFocus">
<textarea auto-height focus="{{doctors_advice_focus}}" maxlength="1000" bindblur="getAdvice" style="width: 100%;" placeholder-style="font-size:24rpx; color:#999" placeholder="请输入医嘱(5-200字)" name="doctors_advice" value="{{doctor_advice}}"></textarea>
</view>
<view class="sub_btn">
<van-button disabled="{{sub_disabled}}" form-type="submit" color="#3CC7C0; font-size:30rpx; border-radius: 10rpx;" type="primary" block>{{ order_prescription_id == ''?'提交审核':'重开处方' }}</van-button>
</view>
<view class="txt_title">医嘱</view>
<view class="doctors_advice" bindtap="onDoctorsAdviceFocus">
<textarea auto-height focus="{{doctors_advice_focus}}" maxlength="1000" bindblur="getAdvice" style="width: 100%;" placeholder-style="font-size:24rpx; color:#999" placeholder="请输入医嘱"></textarea>
</view>
<view class="sub_btn">
<van-button bind:click="postDoctorPrescription" color="#3CC7C0; font-size:30rpx; border-radius: 10rpx;" type="primary" block>提交审核</van-button>
</view>
</form>
<van-popup
@@ -81,7 +83,7 @@
<view class="search_drug">
<view class="search_drug_btn">
<text class="search_drug_btn_title">药品名称</text>
<van-search model:value="{{ select_drug_name }}"
<van-search model:value="{{ product_name }}"
class="search_drug_btn_input"
clearable shape="round"
placeholder="请输入药品名称或拼音码搜索"
@@ -206,10 +208,13 @@
bind:change="onZhenDuanChange"
/>
<view class="zhenduan_data_list">
<view bindtap="addZhenDuan" class="zhenduan_item" data-disease_class_name="{{item.disease_class_name}}" data-disease_class_id="{{item.disease_class_id}}" wx:for="{{zhenduan_search_list}}">
{{item.disease_class_name}}
<view bindtap="addZhenDuan" class="zhenduan_item" data-icd_name="{{item.icd_name}}" data-icd_id="{{item.icd_id}}" wx:for="{{zhenduan_search_list}}">
{{item.icd_name}}
</view>
</view>
</van-popup>
<van-toast id="van-toast" />
</view>
<view style="height: 50rpx;">
</view>
+1 -1
View File
@@ -6,7 +6,7 @@ Page({
data: {
navbarData: {
showCapsule: 2, //是否显示左上角图标 1表示显示 0表示不显示
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
title: '常用语', //导航栏 中间的标题
},
height: app.globalData.height,
+3 -2
View File
@@ -26,7 +26,7 @@
</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>
<van-button bind:click="showAdd" class="addbtn" custom-style="border-radius: 10rpx;margin: 0 auto;width: 92%;position: relative;top: 50%; transform: translateY(-50%);font-size: 34rpx;" type="primary" color="#3CC7C0" block>添加常用语</van-button>
</view>
</t-tab-panel>
<t-tab-panel label="处方" value="2">
@@ -44,7 +44,7 @@
</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>
<van-button bind:click="showAdd" class="addbtn" custom-style="border-radius: 10rpx;margin: 0 auto;width: 92%;position: relative;top: 50%; transform: translateY(-50%);font-size: 34rpx;" type="primary" color="#3CC7C0" block>添加常用语</van-button>
</view>
</t-tab-panel>
</t-tabs>
@@ -62,6 +62,7 @@
model:value="{{ add_message }}"
type="textarea"
placeholder="请输入文字"
placeholder-style="font-size: 32rpx;font-weight: 400;"
autosize
maxlength="500"
custom-style="height: 100%;"
+3 -4
View File
@@ -13,10 +13,10 @@ page{
}
.t-tabs__item--active{
color: #49B9AD !important;
font-size: 32rpx !important;
font-size: 36rpx !important;
}
.t-tabs__item-inner--line{
font-size: 28rpx !important;
font-size: 32rpx !important;
}
.t-tabs__track{
background-color: var(--td-tab-track-color, var(--td-primary-color, #49B9AD)) !important;
@@ -25,7 +25,7 @@ page{
height: 130rpx;
background-color: #fff;
position: fixed;
bottom: 0;
bottom: 50rpx;
width: 100%;
}
.popup_box{
@@ -69,5 +69,4 @@ page{
padding: 32rpx !important;
font-size: 34rpx !important;
color: #333 !important;
font-weight: bolder !important;
}
+40
View File
@@ -1,3 +1,5 @@
import { API } from './../../../utils/network/api'
const api = new API()
const app = getApp()
Page({
data: {
@@ -7,5 +9,43 @@ Page({
},
height: app.globalData.height,
visible: false,
list: [],
current_page: 0,
total: 0,
per_page: 0,
last_page: 0,
},
onShow(){
this.getList();
},
getList(){
let current_page = this.data.current_page;
current_page = current_page + 1;
this.setData({
current_page: current_page
})
let list = this.data.list;
api.getDoctorMessageService({page: current_page}).then(response => {
console.log(response);
this.setData({
list: list.concat(response.data.data),
current_page: response.data.current_page,
total: response.data.total,
per_page: response.data.per_page,
last_page: response.data.last_page,
})
}).catch(errors => {console.error(errors);})
},
onReachBottom() {
console.log('===触底了!!===');
if(this.data.current_page < this.data.last_page){//最后一页时停止分页
this.getList()
}
},
putMessageReadNoticeAll(){
api.putMessageReadNoticeAll({notice_type: 1}).then(response => {
console.log(response);
}).catch(errors => {console.error(errors);})
}
})
+6 -2
View File
@@ -2,6 +2,10 @@
"component": true,
"usingComponents": {
"te-nav-bar": "/commpents/te_navbar",
"van-image": "@vant/weapp/image/index"
}
"van-image": "@vant/weapp/image/index",
"van-divider": "@vant/weapp/divider/index",
"van-empty": "@vant/weapp/empty/index"
},
"enablePullDownRefresh": false,
"onReachBottomDistance": 50
}
+37 -8
View File
@@ -2,7 +2,30 @@
<view class="container">
<view class="list">
<view class="item">
<view class="item" wx:for="{{list}}">
<view class="item_top">
<view class="item_img" wx:if="{{item.inquiry_type == 1}}">
<text style="margin-left: 10rpx;">快速问诊</text>
<van-image class="van_img" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/kuaisu.png" fit="heightFix" height="54rpx" aria-label="qrcode" />
</view>
<view class="item_img" wx:if="{{item.inquiry_type == 2}}">
<text style="margin-left: 10rpx;">快速问诊</text>
<van-image class="van_img" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/kuaisu.png" fit="heightFix" height="54rpx" aria-label="qrcode" />
</view>
<view class="item_img" wx:if="{{item.inquiry_type == 3}}">
<text style="margin-left: 10rpx;">公益问诊</text>
<van-image class="van_img" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/yizhen.png" fit="heightFix" height="54rpx" aria-label="qrcode" />
</view>
<view class="item_img" wx:if="{{item.inquiry_type == 4}}">
<text style="margin-left: 10rpx;">问诊购药</text>
<van-image class="van_img" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/drug.png" fit="heightFix" height="54rpx" aria-label="qrcode" />
</view>
<view class="item_date">{{item.notice_send_time}}</view>
</view>
<view class="item_content">{{item.notice_title}}</view>
</view>
<!-- <view class="item">
<view class="item_top">
<view class="item_img">
<text style="margin-left: 10rpx;">快速问诊</text>
@@ -11,9 +34,9 @@
<view class="item_date">2023-1-02 12:22</view>
</view>
<view class="item_content">您有新的图文问诊咨询,请注意查看。</view>
</view>
</view> -->
<view class="item">
<!-- <view class="item">
<view class="item_top">
<view class="item_img">
<text style="margin-left: 10rpx;">在线问诊</text>
@@ -22,9 +45,9 @@
<view class="item_date">2023-1-02 12:22</view>
</view>
<view class="item_content">您有新的图文问诊咨询,请注意查看。</view>
</view>
</view> -->
<view class="item">
<!-- <view class="item">
<view class="item_top">
<view class="item_img">
<text style="margin-left: 10rpx;">公益问诊</text>
@@ -33,9 +56,9 @@
<view class="item_date">2023-1-02 12:22</view>
</view>
<view class="item_content">您有新的图文问诊咨询,请注意查看。</view>
</view>
</view> -->
<view class="item">
<!-- <view class="item">
<view class="item_top">
<view class="item_img">
<text style="margin-left: 10rpx;">问诊购药</text>
@@ -44,8 +67,14 @@
<view class="item_date">2023-1-02 12:22</view>
</view>
<view class="item_content">您有新的图文问诊咨询,请注意查看。</view>
</view>
</view> -->
</view>
<van-empty description="暂无数据" wx:if="{{list.length == 0}}" />
<van-divider contentPosition="center" wx:if="{{list.length > 0 && current_page == last_page}}">到底了~</van-divider>
<van-image bind:click="putMessageReadNoticeAll" style="position: fixed; right: 0;bottom: 262rpx;" src="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/yishi/service_notice/readall.png" fit="heightFix" height="84rpx" aria-label="role" />
<view style="height: 50rpx;">
</view>
</view>
+71 -15
View File
@@ -1,3 +1,5 @@
import { API } from './../../../utils/network/api'
const api = new API()
const app = getApp()
Page({
data: {
@@ -7,23 +9,77 @@ Page({
},
height: app.globalData.height,
visible: false,
list: [],
current_page: 0,
total: 0,
per_page: 0,
last_page: 0,
},
go(e){
wx.navigateTo({
url: e.currentTarget.dataset.url,
events: {
// 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据
acceptDataFromOpenedPage: function(data) {
console.log(data)
},
someEvent: function(data) {
console.log(data)
}
},
success: function(res) {
// 通过 eventChannel 向被打开页面传送数据
res.eventChannel.emit('acceptDataFromOpenerPage', { data: 'test' })
}
this.putMessageReadNotice(e);
app.go(e.currentTarget.dataset.url);
},
onShow(){
this.setData({
list: [],
current_page: 0,
total: 0,
per_page: 0,
last_page: 0,
})
let ap = this.getList();
ap.then(res => {
this.check()
})
},
check(){
// 不满一页自动加载下一页
wx.createSelectorQuery().select('#list').boundingClientRect(res2 => {
console.log(res2.height)
console.log(wx.getSystemInfoSync().windowHeight)
if (res2.height < wx.getSystemInfoSync().windowHeight) {
this.getList().then(res => {
if(this.data.current_page < this.data.last_page){
this.check()
}
});
}
}).exec()
},
getList(){
let current_page = this.data.current_page;
current_page = current_page + 1;
this.setData({
current_page: current_page
})
let list = this.data.list;
return api.getDoctorMessageSystem({page: current_page}).then(response => {
console.log(response);
this.setData({
list: list.concat(response.data.data),
current_page: response.data.current_page,
total: response.data.total,
per_page: response.data.per_page,
last_page: response.data.last_page,
})
}).catch(errors => {console.error(errors);})
},
onReachBottom() {
console.log('===触底了!!===');
if(this.data.current_page < this.data.last_page){//最后一页时停止分页
this.getList()
}
},
putMessageReadNotice(e){
let notice_id = e.currentTarget.dataset.notice_id;
api.putMessageReadNotice({notice_id: notice_id}).then(response => {
console.log(response);
}).catch(errors => {console.error(errors);})
},
putMessageReadNoticeAll(){
api.putMessageReadNoticeAll({notice_type: 2}).then(response => {
console.log(response);
}).catch(errors => {console.error(errors);})
}
})
+6 -2
View File
@@ -2,6 +2,10 @@
"component": true,
"usingComponents": {
"te-nav-bar": "/commpents/te_navbar",
"van-image": "@vant/weapp/image/index"
}
"van-image": "@vant/weapp/image/index",
"van-divider": "@vant/weapp/divider/index",
"van-empty": "@vant/weapp/empty/index"
},
"enablePullDownRefresh": false,
"onReachBottomDistance": 50
}
+10 -33
View File
@@ -1,45 +1,22 @@
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
<view class="container">
<view class="list">
<view class="item" bindtap="go" data-url="/Pages/yishi/notice_deatil/index">
<view class="list" id="list">
<view class="item" bindtap="go" data-notice_id="{{item.notice_id}}" data-url="/Pages/yishi/notice_deatil/index?notice_id={{item.notice_id}}" wx:for="{{list}}">
<view class="item_top">
<view class="item_img">
<van-image class="van_img" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/kuaisu.png" fit="heightFix" height="54rpx" aria-label="qrcode" />
</view>
<view class="item_content">9月份的服务费结算通知</view>
<view class="item_content">{{item.notice_title}}</view>
</view>
<view class="hongdian">
<view class="hongdian" wx:if="{{item.read_status == 0}}">
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/honhdian.png" fit="heightFix" height="20rpx" aria-label="qrcode" />
</view>
</view>
<view class="item" bindtap="go" data-url="/Pages/yishi/notice_deatil/index">
<view class="item_top">
<view class="item_img">
<van-image class="van_img" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/kuaisu.png" fit="heightFix" height="54rpx" aria-label="qrcode" />
</view>
<view class="item_content">8月份的服务费结算通知</view>
</view>
</view>
<view class="item" bindtap="go" data-url="/Pages/yishi/notice_deatil/index">
<view class="item_top">
<view class="item_img">
<van-image class="van_img" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/kuaisu.png" fit="heightFix" height="54rpx" aria-label="qrcode" />
</view>
<view class="item_content">7月份的服务费结算通知</view>
</view>
</view>
<view class="item" bindtap="go" data-url="/Pages/yishi/notice_deatil/index">
<view class="item_top">
<view class="item_img">
<van-image class="van_img" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/kuaisu.png" fit="heightFix" height="54rpx" aria-label="qrcode" />
</view>
<view class="item_content">6月份的服务费结算通知</view>
</view>
</view>
</view>
<van-empty description="暂无数据" wx:if="{{list.length == 0}}" />
<van-divider contentPosition="center" wx:if="{{list.length > 0 && current_page == last_page}}">到底了~</van-divider>
<van-image bind:click="putMessageReadNoticeAll" style="position: fixed; right: 0;bottom: 262rpx;" src="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/yishi/service_notice/readall.png" fit="heightFix" height="84rpx" aria-label="role" />
<view style="height: 50rpx;">
</view>
</view>
+9 -5
View File
@@ -10,7 +10,7 @@ Page({
title: '问诊消息', //导航栏 中间的标题
},
height: app.globalData.height,
has_data: true,
has_data: false,
data_list_1: [],
data_list_2: [],
data_list_3: [],
@@ -248,6 +248,10 @@ Page({
if(!order_inquiry_id) return;
let inquiry_type = cloudCustomDataJson.inquiry_type;
if(!inquiry_type) return;
if(inquiry_type > 4) return;
let patient_family_data = cloudCustomDataJson.patient_family_data;
if(!patient_family_data) return;
console.log("patient_family_data: ", patient_family_data);
let session_item = {};
session_item.inquiry_status = item.inquiry_status;//订单状态暂无
let txt = {};
@@ -257,10 +261,10 @@ Page({
session_item.message_type = type;
session_item.order_inquiry_id = order_inquiry_id;
session_item.inquiry_type = inquiry_type;
session_item.patient_age = item.patient_age;//暂无
session_item.patient_name = userProfile.nick;
session_item.patient_age = patient_family_data.patient_age;
session_item.patient_name = patient_family_data.patient_name;
session_item.patient_sex = patient_family_data.patient_sex;
session_item.from_account = userProfile.userID;
session_item.patient_sex = item.patient_sex;//暂无
let unreadCount = item.unreadCount;
if(unreadCount > 0){
session_item.message_dot = true;
@@ -276,7 +280,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(this.data.data_list_1.length == 0 && this.data.data_list_2.length == 0 && this.data.data_list_3.length == 0 && this.data.data_list_4.length == 0 && this.data.data_list_5.length == 0){
this.setData({has_data: false})
}else{
this.setData({has_data: true})
+2 -2
View File
@@ -3,7 +3,7 @@
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
<van-checkbox-group value="{{ result }}" bind:change="onChange">
<view class="order_list">
<view class="order_item">
<!-- <view class="order_item">
<view class="order_item_checkbox">
<van-checkbox name="a"></van-checkbox>
</view>
@@ -18,7 +18,7 @@
<view class="order_id">预计收入:<text style="font-size: 30rpx;color: #666666;">¥112.00元</text></view>
</view>
</view>
</view>
</view> -->
<view class="order_item" wx:for="{{order_list}}" wx:for-index="idx">
<view class="order_item_checkbox">
+4
View File
@@ -116,3 +116,7 @@ page{
.t-picker__confirm,.t-class-confirm{
color: #49B9AD !important;
}
.van-cell__value{
font-size: 32rpx !important;
color: red !important;
}