diff --git a/Pages/login/index.js b/Pages/login/index.js
index 225520f..fd4ed00 100644
--- a/Pages/login/index.js
+++ b/Pages/login/index.js
@@ -134,11 +134,14 @@ Page({
wx.setStorageSync('client_user_id_'+usertype, response.data.client_user_id);
app.globalData.config.userID = response.data.user_id;
app.globalData.isLogin=true;
- app.imInit();
+ let handleGo=function(){
+ wx.switchTab({
+ url: next_url
+ })
+ }
+ app.imInit({path:'Pages/login/index'},1,handleGo);
//跳转页面
- wx.switchTab({
- url: next_url
- })
+
}).catch(errors => {
console.error(errors);
})
diff --git a/Pages/mobile_login/index.js b/Pages/mobile_login/index.js
index 28d5687..8837194 100644
--- a/Pages/mobile_login/index.js
+++ b/Pages/mobile_login/index.js
@@ -135,10 +135,13 @@ Page({
wx.setStorageSync('user_id_'+usertype, response.data.user_id);
wx.setStorageSync('client_user_id_'+usertype, response.data.client_user_id);
app.globalData.config.userID = response.data.user_id;
- app.imInit();
- wx.switchTab({
- url: wx.getStorageSync('next_url')
- })
+ let handleGo=function(){
+ wx.switchTab({
+ url: wx.getStorageSync('next_url')
+ })
+ }
+ app.imInit({path:'Pages/mobile_login/index'},1,handleGo);
+
}).catch(errors => {console.error(errors);})
} else {
wx.showToast({
diff --git a/Pages/yishi/case copy/index.js b/Pages/yishi/case copy/index.js
new file mode 100644
index 0000000..a456036
--- /dev/null
+++ b/Pages/yishi/case copy/index.js
@@ -0,0 +1,88 @@
+import { API } from './../../../utils/network/api'
+import debounce from './../../../utils/debounce'
+let api = new API()
+const app = getApp()
+Page({
+ data: {
+ navbarData: {
+ showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
+ title: '病历信息', //导航栏 中间的标题
+ },
+ height: app.globalData.height,
+ order_inquiry_id: "",
+ case_detail: {},
+ imglist: []
+ },
+ onLoad(options){
+ console.log("onLoad", options)
+ this.setData({
+ order_inquiry_id: options.order_inquiry_id
+ })
+
+ },
+ goReport:debounce(function(event){
+ wx.showLoading({
+ mask:true,
+ title: '正在打开文件...',
+ })
+ const url=event.currentTarget.dataset.url;
+ const randfile = new Date().getTime() + '检测报告';
+ const newPath = `${wx.env.USER_DATA_PATH}/${randfile}`;
+ wx.downloadFile({
+ // 示例 url,并非真实存在
+ url:url,
+ filePath: newPath,
+ success: function (res) {
+ //const filePath = res.tempFilePath
+ wx.openDocument({
+ fileType:"pdf",
+ showMenu:true,
+ filePath: newPath,
+ success: function (res) {
+ console.log('打开文档成功');
+ wx.hideLoading()
+ },
+ fail:function(error){
+ wx.hideLoading()
+ wx.showToast({
+ title:res,
+ icon:"none"
+ })
+ }
+ })
+ },
+ fail:function(error){
+ wx.showToast({
+ title:error,
+ icon:"none"
+ })
+ }
+
+ })
+ }),
+ formatImgList(){
+ let diagnose_images = this.data.case_detail.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(){
+ //获取患者问诊病例
+ api.getInquiryDetail({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);})
+ },
+
+})
\ No newline at end of file
diff --git a/Pages/yishi/case copy/index.json b/Pages/yishi/case copy/index.json
new file mode 100644
index 0000000..a00e82d
--- /dev/null
+++ b/Pages/yishi/case copy/index.json
@@ -0,0 +1,8 @@
+{
+ "component": true,
+ "usingComponents": {
+ "te-nav-bar": "/commpents/te_navbar",
+ "van-icon": "@vant/weapp/icon/index",
+ "van-uploader": "@vant/weapp/uploader/index"
+ }
+}
\ No newline at end of file
diff --git a/Pages/yishi/case copy/index.wxml b/Pages/yishi/case copy/index.wxml
new file mode 100644
index 0000000..be3cbc5
--- /dev/null
+++ b/Pages/yishi/case copy/index.wxml
@@ -0,0 +1,114 @@
+
+
+
+ 基础信息
+
+
+ {{case_detail.name}}
+ {{case_detail.sex==1?'男':case_detail.sex==2?'女':'未知'}}|{{case_detail.age}}岁
+
+
+ 身高:{{case_detail.height==null?'未知':case_detail.height + 'CM'}}
+ 体重:{{case_detail.weight==null?'未知':case_detail.weight + 'KG'}}
+ 民族:{{case_detail.nation_name==''?'未知':case_detail.nation_name}}
+ 职业:{{case_detail.job_name==''?'未知':case_detail.job_name}}
+ 婚姻:{{case_detail.marital_status==0?'未婚':case_detail.marital_status==1?'已婚':case_detail.marital_status==2?'离异':'未知'}}
+
+
+
+ 所患疾病:
+ {{case_detail.disease_class_name}}
+
+
+ 确诊日期:
+ {{dateSubstr.substring(case_detail.diagnosis_date,0,10)}}
+
+
+
+ 确诊医院:
+ {{case_detail.diagnosis_hospital}}
+
+
+ 正在服用的药品信息:
+ {{case_detail.drugs_name==''?'无':''}}
+
+
+ 详细描述:{{case_detail.drugs_name}}
+
+
+ 病情描述:
+ {{case_detail.disease_desc}}
+
+
+ 用药意向:
+
+ {{item}};
+
+
+
+ 复诊凭证(病例/处方单/检查报告/住院单):
+ 无
+
+
+
+
+
+
+
+
+ {{case_detail.detection_project_name}}
+
+
+ 糖组检测
+ {{case_detail.detection_project.detection_time}}
+
+
+
+
+ 其他信息
+
+
+
+ 是否服用过您想购买的药品且无相关禁忌:
+ {{case_detail.is_taboo==0?'否':'是'}}
+
+
+ 过敏史:
+ {{case_detail.is_allergy_history==0?'否':case_detail.allergy_history}}
+
+
+ 家族史:
+ {{case_detail.is_family_history==0?'否':case_detail.family_history}}
+
+
+ 是否备孕、妊娠或者哺乳期:
+ {{case_detail.is_pregnant==0?'否':case_detail.pregnant}}
+
+
+ 饮酒史:
+ {{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?'已戒酒':'其他'}}
+
+
+ 吸烟史:
+ {{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?'已戒烟':'其他'}}
+
+
+ 手术史:
+ {{case_detail.is_operation==0?'否':case_detail.operation}}
+
+
+ 接触化学物:
+ {{case_detail.chemical_compound_status==1?'从不':case_detail.chemical_compound_status==2?'偶尔':case_detail.chemical_compound_status==3?'经常':case_detail.chemical_compound_status==4?'每天':'其他'}}
+
+
+ 详细描述:{{case_detail.chemical_compound_describe}}
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Pages/yishi/case copy/index.wxss b/Pages/yishi/case copy/index.wxss
new file mode 100644
index 0000000..992f24c
--- /dev/null
+++ b/Pages/yishi/case copy/index.wxss
@@ -0,0 +1,127 @@
+page{
+ background-color: #F6F6F6;
+}
+.container{
+ /* width: 100vw; */
+ padding: 0 4vw;
+}
+.main_title{
+ font-size: 16px;
+ color: #000000;
+ margin: 30rpx 0;
+}
+.data_box{
+ margin-top: 20rpx;
+ width: calc(92vw - 40rpx);
+ background-color: #fff;
+ border-radius: 20rpx;
+ padding: 20rpx;
+}
+.data_box_top{
+ display: flex;
+}
+.name{
+ font-size: 34rpx;
+ color: #3CC7C0;
+ margin-right: 20rpx;
+}
+.sex{
+ font-size: 34rpx;
+ color: #666666;
+}
+.info{
+ background: #FAFAFA;
+ border-radius: 10rpx;
+ padding-top: 10rpx;
+ display: flex;
+ flex-wrap: wrap;
+ margin: 20rpx 0 0;
+ padding-bottom: 20rpx;
+}
+.info_item{
+ text-align: left;
+ /* width: 190rpx; */
+ /* height: 60rpx; */
+ margin-top: 10rpx;
+ display: flex;
+ align-items: center;
+ margin-left: 20rpx;
+ align-items: flex-start;
+}
+.info_title{
+ font-size: 28rpx;
+ color: #333333;
+}
+.info_val{
+ font-size: 28rpx;
+ flex: 1;
+ color: #666666;
+}
+.disease_box{
+
+}
+.disease_box_item{
+ margin-bottom: 30rpx;
+ display: flex;
+}
+.data_box .disease_box_item:first-child{
+ margin-top: 20rpx;
+}
+.orther .disease_box_item:first-child{
+ margin-top: 0rpx;
+}
+.title{
+ font-size: 30rpx;
+ color: #333333;
+}
+.conent{
+ flex: 1;
+ font-size: 28rpx;
+ color: #666666;
+ word-wrap:break-word;
+ word-break:break-all;
+}
+.disease_info{
+ background: #FAFAFA;
+ border-radius: 10rpx;
+ padding: 10rpx;
+ font-size: 26rpx;
+ color: #999999;
+ 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;
+}
+
+.sugar{
+ display: flex;
+ align-items: center;
+ justify-content:space-between ;
+}
+.sugar .name{
+ color:#333;
+
+ font-size: 30rpx;
+}
+.sugar .date{
+ margin-top: 12rpx;
+ font-size: 24rpx;
+ font-weight: 400;
+ color: rgba(0,0,0,0.45);
+
+}
\ No newline at end of file
diff --git a/Pages/yishi/case/index.js b/Pages/yishi/case/index.js
index 05f5261..0883819 100644
--- a/Pages/yishi/case/index.js
+++ b/Pages/yishi/case/index.js
@@ -1,5 +1,5 @@
-import { API } from './../../../utils/network/api'
-import debounce from './../../../utils/debounce'
+import { API } from '../../../utils/network/api'
+import debounce from '../../../utils/debounce'
let api = new API()
const app = getApp()
Page({
@@ -8,16 +8,44 @@ Page({
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
title: '病历信息', //导航栏 中间的标题
},
+ pathography_id:'',
height: app.globalData.height,
- order_inquiry_id: "",
+ order_inquiry_id:"",
case_detail: {},
imglist: []
},
onLoad(options){
console.log("onLoad", options)
- this.setData({
- order_inquiry_id: options.order_inquiry_id
- })
+
+ if(options.order_inquiry_id){
+ this.setData({
+ order_inquiry_id: options.order_inquiry_id
+ })
+
+ //获取患者问诊病例
+ api.getInquiryDetail({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);})
+ }
+ if(options.pathography_id){
+ this.setData({
+ pathography_id: options.pathography_id
+ })
+ //获取患者问诊病例
+ api.getPathographyDetail(options.pathography_id).then(response => {
+ this.setData({
+ case_detail: response.data
+ })
+ }).then(res => {
+ this.formatImgList();
+ }).catch(errors => {console.error(errors);})
+ }
+
},
goReport:debounce(function(event){
@@ -74,15 +102,7 @@ Page({
})
},
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);})
+
},
})
\ No newline at end of file
diff --git a/Pages/yishi/case/index.wxml b/Pages/yishi/case/index.wxml
index be3cbc5..a0380bc 100644
--- a/Pages/yishi/case/index.wxml
+++ b/Pages/yishi/case/index.wxml
@@ -1,6 +1,7 @@
+
基础信息
@@ -10,8 +11,8 @@
身高:{{case_detail.height==null?'未知':case_detail.height + 'CM'}}
体重:{{case_detail.weight==null?'未知':case_detail.weight + 'KG'}}
- 民族:{{case_detail.nation_name==''?'未知':case_detail.nation_name}}
- 职业:{{case_detail.job_name==''?'未知':case_detail.job_name}}
+ 民族:{{case_detail.nation_name?case_detail.nation_name:'未知'}}
+ 职业:{{case_detail.job_name?case_detail.job_name:'未知'}}
婚姻:{{case_detail.marital_status==0?'未婚':case_detail.marital_status==1?'已婚':case_detail.marital_status==2?'离异':'未知'}}
@@ -108,7 +109,31 @@
-
-
+
+
+ 处方信息
+
+
+
+ 诊断:
+ {{case_detail.order_prescription.icd_name}}
+
+
+ 时间:
+ {{case_detail.order_prescription.doctor_created_time}}
+
+
+ 药品:
+
+ {{itemName}};
+
+
+
+ 用法:
+ {{case_detail.order_prescription.single_use}}
+
+
+
+
\ No newline at end of file
diff --git a/Pages/yishi/case/index.wxss b/Pages/yishi/case/index.wxss
index 992f24c..9535db7 100644
--- a/Pages/yishi/case/index.wxss
+++ b/Pages/yishi/case/index.wxss
@@ -30,24 +30,30 @@ page{
color: #666666;
}
.info{
+
background: #FAFAFA;
border-radius: 10rpx;
- padding-top: 10rpx;
+
+
display: flex;
flex-wrap: wrap;
margin: 20rpx 0 0;
- padding-bottom: 20rpx;
+ padding:10rpx 20rpx 20rpx;
}
.info_item{
text-align: left;
- /* width: 190rpx; */
+ width: 203rpx;
/* height: 60rpx; */
margin-top: 10rpx;
+
display: flex;
align-items: center;
- margin-left: 20rpx;
+
align-items: flex-start;
}
+.info_item:nth-child(3n){
+ text-indent: 20rpx;
+}
.info_title{
font-size: 28rpx;
color: #333333;
diff --git a/Pages/yishi/patient_sick/index.js b/Pages/yishi/patient_sick/index.js
new file mode 100644
index 0000000..e60e9bc
--- /dev/null
+++ b/Pages/yishi/patient_sick/index.js
@@ -0,0 +1,173 @@
+// Pages/yishi/medince_list/index.js
+import { API } from './../../../utils/network/api'
+import debounce from "./../../../utils/debounce"
+let api = new API()
+const app = getApp()
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ navbarData: {
+
+ showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
+ title: '患者病例', //导航栏 中间的标题
+ },
+ page:1,
+ family_id:'',
+ currentSick:null,
+ isLoding:false,
+ list:[],
+ isLock:false,
+ per_page:10,
+ keyword:'',
+ },
+ goDetail:debounce(function(event){
+ console.log(event)
+ let id=event.currentTarget.dataset.id;
+ console.log(id);
+ app.go("/Pages/yishi/case/index?order_inquiry_id="+id);
+ }),
+ goDetailbefore:debounce(function(event){
+ let id=event.currentTarget.dataset.id;
+ app.go("/Pages/yishi/case/index?pathography_id="+id);
+ },600),
+ changeInput:debounce(function(event){
+ const { value }= event.detail;
+ this.setData({
+ isLock:false,
+ page:1,
+ list:[],
+ keyword:value
+ })
+ this.handleGetList();
+ },600),
+ goSearch(){
+ this.setData({
+ isLock:false,
+ list:[],
+ page:1
+ })
+ this.handleGetList();
+ },
+ confirmSearch(event){
+ const { value }= event.detail;
+ this.setData({
+ isLock:false,
+ list:[],
+ page:1,
+ keyword:value
+ })
+ this.handleGetList();
+ },
+ lower(){
+ console.log('===触底了!!===');
+ let {page,isLock}=this.data;
+ if(!isLock){
+ page++;
+ this.setData({
+ page:page
+ });
+ this.handleGetList();
+ }
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ handleGetCurrent(){
+ const {order_inquiry_id}=this.data;
+ api.getSimpleInquiry({
+ order_inquiry_id
+ }).then(data=>{
+ this.setData({
+ currentSick:data.data
+ })
+ console.log(data);
+ })
+ },
+ handleGetList(){
+ const {page,per_page,family_id,isLoding}=this.data;
+ if(isLoding)return false;
+ this.setData({
+ isLoding:true
+ })
+ api.getPathography({
+ page,
+ per_page,
+ family_id,
+
+ }).then(data=>{
+ this.setData({
+ isLoding:false
+ })
+ let result=data.data.data;
+ if(result.length==0){
+ this.setData({
+ isLock:true
+ });
+ return false;
+ }
+ this.setData({
+ list:this.data.list.concat(result)
+ });
+ }).catch(errors => {console.error(errors);})
+ },
+ onLoad(options) {
+ this.setData({
+ family_id:options.family_id,
+ order_inquiry_id:options.order_inquiry_id
+ })
+ this.handleGetCurrent();
+ this.handleGetList();
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/Pages/yishi/patient_sick/index.json b/Pages/yishi/patient_sick/index.json
new file mode 100644
index 0000000..7c7df28
--- /dev/null
+++ b/Pages/yishi/patient_sick/index.json
@@ -0,0 +1,9 @@
+{
+ "component": true,
+ "usingComponents": {
+ "te-nav-bar": "/commpents/te_navbar",
+ "van-empty": "@vant/weapp/empty/index",
+ "van-icon": "@vant/weapp/icon/index",
+ "van-divider": "@vant/weapp/divider/index"
+ }
+}
\ No newline at end of file
diff --git a/Pages/yishi/patient_sick/index.wxml b/Pages/yishi/patient_sick/index.wxml
new file mode 100644
index 0000000..9bfae37
--- /dev/null
+++ b/Pages/yishi/patient_sick/index.wxml
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+
+
+
+
+ {{currentSick.patient_name}}
+ {{currentSick.patient_sex==1?'男':'女'}}|{{currentSick.patient_age}}岁
+
+
+
+
+ 病情描述:
+ {{currentSick.disease_desc}}
+
+ 您于{{currentSick.reception_time}}接诊
+ 本次问诊
+
+
+
+
+
+ {{item.name}}
+ {{item.sex==1?'男':'女'}}|{{item.age}}岁
+
+
+
+
+ 病情描述:
+ {{item.disease_desc}}
+
+ 您与{{item.reception_time}}接诊
+
+
+
+ 到底了~
+
+
+
+
diff --git a/Pages/yishi/patient_sick/index.wxss b/Pages/yishi/patient_sick/index.wxss
new file mode 100644
index 0000000..a1846a5
--- /dev/null
+++ b/Pages/yishi/patient_sick/index.wxss
@@ -0,0 +1,160 @@
+/* Pages/yishi/patient_sick/index.wxss *//* Pages/yishi/medince_list/index.wxss */
+page{
+ height:100vh;
+ background-color: #F6F6F6;
+}
+.page{
+ height:100vh;
+ display: flex;
+ flex-direction: column;
+}
+ .container{
+ /* height:calc(100vh - 135rpx); */
+ display: flex;
+ overflow: hidden;
+ /* overflow-y: scroll; */
+ /* -webkit-overflow-scrolling: touch; */
+ flex-direction: column;
+}
+.searchCon{
+ width:100%;
+
+ background:#fff;
+}
+.searchbox{
+ display: flex;
+ margin:32rpx;
+ align-items: center;
+ height: 80rpx;
+background: #FFFFFF;
+border-radius: 40rpx;
+border: 2rpx solid #3CC7C0;
+
+}
+.searchIpt{
+ flex:1;
+ margin-left: 32px;
+}
+.searchImg{
+ width: 40rpx;
+ height:40rpx;
+ padding:30rpx;
+}
+.tips{
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ position: absolute;
+ width: 200rpx;
+ height:200rpx;
+ font-size: 22rpx;
+font-weight: 400;
+color: #666666;
+}
+.desc{
+ text-align: center;
+}
+.medimgbox{
+ position: relative;
+ width: 200rpx;
+ height:200rpx;
+ margin-left: 30rpx;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ border-radius:5rpx;
+}
+.medImg{
+ width:120rpx;
+ height:128rpx;
+
+}
+.titlebox{
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.cell{
+ position: relative;
+ padding:20rpx 0;
+ background: #FFFFFF;
+box-shadow: 0rpx 2rpx 16rpx 2rpx rgba(0,0,0,0.02);
+border-radius: 12rpx;
+ margin:0 32rpx 20rpx;
+
+}
+.rightbox{
+ flex:1;
+ margin-left: 24rpx;
+ margin-right: 20rpx;
+}
+.scrollbox{
+ margin-top: 20rpx;
+ flex:1;
+ overflow-y: scroll;
+ -webkit-overflow-scrolling: touch;
+}
+.bottombox{
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+}
+.info .name{
+ word-break: break-all;
+font-size: 32rpx;
+ font-weight: 600;
+color: rgba(0,0,0,0.85);
+}
+.company{
+ margin-top: 5rpx;
+ font-size: 26rpx;
+font-weight: 400;
+color: rgba(0,0,0,0.45);
+}
+.cell .title{
+display: flex;
+font-size: 34rpx;
+color: #333333;
+}
+.cell{
+ padding:20rpx;
+}
+.cell .name{
+margin-right: 20rpx;
+}
+.row{
+ overflow: hidden;
+ display: -webkit-box;
+ -webkit-line-clamp: 2; /* 设置最大显示行数 */
+ -webkit-box-orient: vertical;
+ text-overflow: ellipsis;
+ word-break: break-all;
+ margin-top: 20rpx;
+ font-size: 30rpx;
+ line-height: 42rpx;
+color: #666666;
+}
+.date{
+margin-top: 20rpx;
+font-size: 26rpx;
+font-weight: 400;
+color: #999999;
+}
+.mark{
+ position: absolute;
+ bottom:0;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ right:0px;
+ font-size: 24rpx;
+font-weight: 400;
+color: #3CC7C0;
+ width: 126rpx;
+height: 54rpx;
+background: #E9FFFE;
+border-radius: 10rpx 0rpx 0rpx 10rpx;
+}
+.icon{
+ color:#c3c3c3;
+}
\ No newline at end of file
diff --git a/Pages/yishi/sickform/index.js b/Pages/yishi/sickform/index.js
new file mode 100644
index 0000000..3aabba6
--- /dev/null
+++ b/Pages/yishi/sickform/index.js
@@ -0,0 +1,79 @@
+// Pages/sickform/index.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ navbarData: {
+ showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
+ title: '问诊表', //导航栏 中间的标题
+ },
+ params:null,
+ basic:[],
+ preson:[]
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ if(options.params){
+ this.setData({
+ params:options.params
+ });
+ let data=JSON.parse(options.params);
+ console.log(options.params)
+ }
+
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/Pages/yishi/sickform/index.json b/Pages/yishi/sickform/index.json
new file mode 100644
index 0000000..6a36619
--- /dev/null
+++ b/Pages/yishi/sickform/index.json
@@ -0,0 +1,8 @@
+{
+ "usingComponents": {
+ "te-nav-bar": "/commpents/te_navbar",
+ "van-radio": "@vant/weapp/radio/index",
+ "van-radio-group": "@vant/weapp/radio-group/index"
+
+ }
+}
\ No newline at end of file
diff --git a/Pages/yishi/sickform/index.wxml b/Pages/yishi/sickform/index.wxml
new file mode 100644
index 0000000..7ff733d
--- /dev/null
+++ b/Pages/yishi/sickform/index.wxml
@@ -0,0 +1,229 @@
+
+
+
+
+
+
+
+
+ 基本信息
+
+
+
+ 1、身高(CM)
+
+
+
+
+
+
+
+
+
+
+ 2、体重(KG)
+
+
+
+
+
+
+
+
+
+
+ 3、婚姻状况
+
+
+
+
+
+
+
+
+
+
+
+ 4、民族
+
+
+
+
+
+
+
+
+
+
+ 5、职业
+
+
+
+
+
+
+
+
+
+
+ 个人情况
+
+
+
+ 1、
+
+ 您是否有过敏史?
+
+
+ 是
+ 否
+
+
+
+
+
+
+ 过敏史:请填写过敏源,如药物,请写出药名;如食物,请写具体如鸡蛋、牛奶等(限制50个字)
+
+
+
+
+
+ 2、
+
+ 您是否有家族病史?
+
+
+ 是
+ 否
+
+
+
+
+
+ 家族病史:请详细填写相关家族病史(限制50个字)
+
+
+
+
+
+ {{startIndex}}、
+
+ 您是否处于备孕、妊娠、哺乳期?
+
+
+ 是
+ 否
+
+
+
+
+
+ 请描述您目前所处阶段,如备孕中、哺乳期中、妊娠月份。(限制50个字)
+
+
+
+
+
+ {{startIndex+1}}、
+
+ 是否做过手术
+
+
+ 是
+ 否
+
+
+
+
+
+ 请描述具体手术名称和做手术医院
+
+
+
+
+
+ {{startIndex+2}}、
+
+ 是否有饮酒史
+
+
+ 从不
+ 偶尔
+ 经常
+ 每天
+ 已戒酒
+
+
+
+
+
+ {{startIndex+3}}、
+
+ 是否有吸烟史
+
+
+ 从不
+ 偶尔
+ 经常
+ 每天
+ 已戒烟
+
+
+
+
+
+ {{startIndex+4}}、
+
+ 是否有接触过化学物
+
+
+ 从不
+ 偶尔
+ 经常
+ 每天
+
+
+
+
+
+
+ 化学物:请详细填写接触过的相关化学物(限制50个字)
+
+
+
+
+
+
+ {{startIndex+45}}、
+
+ 确诊医院是?
+
+
+
+
+ 请填写确诊医院名称
+
+
+
+
+
+ {{startIndex+6}}、
+
+ 服用药品是?
+
+
+
+
+ 请详细填写所服药物(限制50个字)
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Pages/yishi/sickform/index.wxss b/Pages/yishi/sickform/index.wxss
new file mode 100644
index 0000000..c6c0877
--- /dev/null
+++ b/Pages/yishi/sickform/index.wxss
@@ -0,0 +1,143 @@
+page{
+ overflow: hidden;
+}
+.container{
+ height:100vh;
+ overflow: scroll;
+ background-color: #F6F6F6;
+}
+.cellbox{
+ background-color: #fff;
+}
+.questionbox{
+ overflow-y: scroll;
+}
+.cellbox .cell{
+ background-color: #fff;
+ align-items: center;
+ display: flex;
+ padding:0 32rpx;
+ }
+ .cellrow{
+ height:105rpx;
+ width:100%;
+ justify-content: space-between;
+ align-items: center;
+ display: flex;
+ border-bottom:1rpx solid #E3E4E5;
+ }
+ .cell:last-child .cellrow{
+ border-bottom: none;
+ }
+ .iptbox{
+ display: flex;
+ flex:1;
+
+ justify-content: flex-end;
+ }
+ .righticon{
+ width:24rpx;
+ height: 48rpx;
+ }
+ .name{
+ display: flex;
+ align-items: center;
+ }
+ .name .red{
+ margin-top: 20rpx;
+ color:#E34D59;
+ }
+ .placeholder{
+ text-align: right;
+ font-size: 28rpx;
+ font-weight: 400;
+ color: #C5C8CB;
+ }
+ .ipt{
+ width:100%;
+ text-align: right;
+ color: #666666;
+ font-size: 28rpx;
+ }
+ .basictitle{
+ margin-top: 30rpx;
+ font-size: 34rpx;
+ padding:30rpx 32rpx 10rpx;
+ font-family: PingFangSC, PingFang SC;
+ font-weight: 500;
+ color: #1C2023;
+ }
+ .sickHis{
+ background-color: #fff;
+ /* margin-top: 20rpx; */
+ padding:1rpx 52rpx 40rpx;
+
+}
+.list .qa{
+ display: flex;
+ margin-top: 30rpx;
+ border-bottom:1rpx solid #E3E4E5;
+}
+.titlebox{
+ flex:1;
+
+}
+textarea{
+ position: relative;
+ z-index:1;
+ width:100%;
+ color:#333;
+ height:132rpx;
+}
+.radio{
+ margin: 30rpx 0rpx 30rpx 0;
+}
+.group .van-radio--horizontal{
+ margin-right: 11rpx;
+}
+.singlegroup .van-radio--horizontal{
+ margin-right:44rpx;
+}
+.singlegroup .van-radio--horizontal:nth-child(2n){
+ margin-right: 0rpx;
+}
+.group .van-radio--horizontal:nth-child(3n){
+ margin-right: 0;
+}
+.radiotip{
+ position: relative;
+ padding:24rpx 20rpx;
+ justify-content: center;
+ margin-top: 20rpx;
+ line-height: 42rpx;
+background: #F2F2F2;
+border-radius: 10rpx;
+font-size: 28rpx;
+color:#999;
+margin-bottom: 20rpx;
+}
+.radiotip .textbox{
+ top:20rpx;
+ left:20rpx;
+ margin-top: 0;
+ width:auto;
+ height: 100rpx;
+ font-weight: normal;
+ z-index: 0;
+ position: absolute;
+ right:20rpx;
+}
+
+.radiotip text{
+ white-space: nowrap;
+ color:#333;
+}
+.van-radio__label{
+ padding-right:40rpx!important;
+}
+/* .van-radio__label:nth-child(3){
+ padding-right:0rpx!important;
+} */
+.van-radio{
+ margin-bottom: 10rpx!important;
+}
\ No newline at end of file
diff --git a/Pages/yishi/write_sickform/index.js b/Pages/yishi/write_sickform/index.js
new file mode 100644
index 0000000..c718c74
--- /dev/null
+++ b/Pages/yishi/write_sickform/index.js
@@ -0,0 +1,154 @@
+// Pages/yishi/write_sickform/index.js
+import { API } from './../../../utils/network/api'
+import debounce from "./../../../utils/debounce"
+let api = new API()
+const app = getApp()
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ navbarData: {
+ showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
+ title: '问诊表', //导航栏 中间的标题
+ },
+ obj:{
+ height:'身高',
+ weight:'体重',
+ nation_name:'民族',
+ job_name:'职业',
+ marital_status:'婚姻状态',
+ allergy_history:'是否有过敏史?',
+ family_history:'是否有家族病史?',
+ is_pregnant:'是否处于备孕、妊娠、哺乳期?',
+ is_operation:'是否做过手术?',
+ drink_wine_status:'是否有饮酒史?',
+ smoke_status:'是否有吸烟史?',
+ chemical_compound_status:'是否有接触过化学物?',
+ diagnosis_hospital:'确诊医院是?',
+ is_take_medicine:'服用药品是?'
+
+ },
+ order_inquiry_id:'',
+ list1: [],
+ list2: [],
+ result: [],
+ },
+ onChange(event) {
+ this.setData({
+ result: event.detail,
+ });
+ },
+
+ toggle(event) {
+ const { item } = event.currentTarget.dataset;
+ const checkbox = this.selectComponent(`.checkboxes-${item}`);
+ checkbox.toggle();
+ },
+ handleList(order_inquiry_id){
+ api.getUnfilled({
+ order_inquiry_id
+ }).then(data=>{
+ let result=data.data;
+ let {obj}=this.data;
+
+ let arr1=[];
+ let arr2=[];
+ result.forEach(item => {
+ if(item=="weight" || item=="height" || item=="marital_status" || item=="nation_name" || item=="job_name"){
+ if(obj[item]){
+ arr1.push(item);
+ }
+ }else{
+ if(obj[item]){
+ arr2.push(item);
+ }
+ }
+
+ })
+ this.setData({
+ list1:arr1,
+ list2:arr2,
+ })
+ })
+ },
+ handleSend(){
+ let {order_inquiry_id,result}=this.data;
+ if(result.length==0){
+ wx.showToast({
+ title: '请至少选择一项',
+ icon:'none'
+ })
+ return false;
+ }
+ console.log(this.data.result);
+ api.doctorSendUnfilled({
+ order_inquiry_id,
+ fields:this.data.result
+ }).then(data=>{
+ if(data.code==200){
+ wx.navigateBack();
+ }
+ })
+ },
+ noop() {},
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ this.setData({
+ order_inquiry_id:options.order_inquiry_id,
+ })
+ this.handleList(options.order_inquiry_id);
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/Pages/yishi/write_sickform/index.json b/Pages/yishi/write_sickform/index.json
new file mode 100644
index 0000000..14785a0
--- /dev/null
+++ b/Pages/yishi/write_sickform/index.json
@@ -0,0 +1,9 @@
+{
+ "usingComponents": {
+ "te-nav-bar": "/commpents/te_navbar",
+ "van-checkbox": "@vant/weapp/checkbox/index",
+ "van-cell": "@vant/weapp/cell/index",
+ "van-cell-group": "@vant/weapp/cell-group/index",
+ "van-checkbox-group": "@vant/weapp/checkbox-group/index"
+ }
+}
\ No newline at end of file
diff --git a/Pages/yishi/write_sickform/index.wxml b/Pages/yishi/write_sickform/index.wxml
new file mode 100644
index 0000000..199fcad
--- /dev/null
+++ b/Pages/yishi/write_sickform/index.wxml
@@ -0,0 +1,61 @@
+
+
+
+
+
+
+ 基本信息
+
+
+
+
+
+
+
+
+ 个人情况
+
+
+
+
+
+
+
+
+
+
+
+ 发送给患者
+
+
+
+
+
+ 暂无可询问内容
+
\ No newline at end of file
diff --git a/Pages/yishi/write_sickform/index.wxss b/Pages/yishi/write_sickform/index.wxss
new file mode 100644
index 0000000..6218821
--- /dev/null
+++ b/Pages/yishi/write_sickform/index.wxss
@@ -0,0 +1,68 @@
+/* Pages/yishi/write_sickform/index.wxss */
+page{
+ overflow: hidden;
+ background-color: #F6F6F6;
+}
+.van-hairline--top-bottom:after {
+ border-top-width: 0px!important;
+}
+.van-hairline--bottom:after {
+ border-top-width: 0px!important;
+}
+.listbox{
+ flex:1;
+ overflow-y: scroll;
+}
+.container{
+ width: 100vw;
+ height:100vh;
+ display:flex;
+ flex-direction: column;
+}
+.value-class {
+ order:-1!important;
+ flex: none !important;
+}
+.title-class{
+ order:2!important;
+}
+.box .title{
+ padding: 25rpx 30rpx 10rpx;
+ margin-top: 20rpx;
+font-size: 34rpx;
+font-weight: 500;
+color: #1C2023;
+background:#fff;
+}
+.bottom{
+ background-color: #FFFFFF;
+ height:274rpx;
+ width:100%;
+}
+.bottom .btn{
+
+ margin:40rpx 30rpx;
+ height: 80rpx;
+ font-size: 30rpx;
+color: #FFFFFF;
+display: flex;
+align-items: center;
+justify-content: center;
+background: #3CC7C0;
+border-radius: 8rpx;
+}
+.empty{
+ margin-top: 400rpx;
+ width:161rpx;
+ height:162rpx;
+}
+.nocontainer{
+ margin-top: 20rpx;
+ background-color: #fff;
+ height:100vh;
+ display: flex;
+ font-size: 24rpx;
+ color: #999999;
+ align-items: center;
+ flex-direction: column;
+}
\ No newline at end of file
diff --git a/TUIKit/components/TUIChat/components/MessageElements/AudioMessage/index.wxml b/TUIKit/components/TUIChat/components/MessageElements/AudioMessage/index.wxml
index a9764ea..797419b 100644
--- a/TUIKit/components/TUIChat/components/MessageElements/AudioMessage/index.wxml
+++ b/TUIKit/components/TUIChat/components/MessageElements/AudioMessage/index.wxml
@@ -1,5 +1,5 @@
-
+
{{renderDom[0].second}}s
diff --git a/TUIKit/components/TUIChat/components/MessageElements/AudioMessage/index.wxss b/TUIKit/components/TUIChat/components/MessageElements/AudioMessage/index.wxss
index 4bfe7d2..5528738 100644
--- a/TUIKit/components/TUIChat/components/MessageElements/AudioMessage/index.wxss
+++ b/TUIKit/components/TUIChat/components/MessageElements/AudioMessage/index.wxss
@@ -3,10 +3,42 @@
border-radius: 2px 10px 10px 10px;
border: 1px solid #D9D9D9;
}
+
.my-audio {
- border-radius: 10px 2px 10px 10px;
- background: rgba(0,110,255,0.10);
- border: 1px solid rgba(0,110,255,0.30);
+ position: relative;
+ border-radius: 10px 10px 10px 10px;
+ background: rgb(212, 239, 241);
+ border: 1rpx solid #1ACAD3;
+}
+.my-audio::after{
+ content:'';
+ position: absolute;
+ top: 35rpx;
+ right: -19rpx;
+ transform: translate(-50%,-50%) rotate(-135deg);
+ width: 16rpx;
+ height: 16rpx;
+ background: rgb(212, 239, 241);
+ border: 1rpx solid #1ACAD3;
+ border-style: none none solid solid
+}
+.your-audio {
+ position: relative;
+ border-radius: 10px 10px 10px 10px;
+ background: rgb(255, 255, 255);
+ border: 1rpx solid #D8D8D8;
+}
+.your-audio::after{
+ content:'';
+ position: absolute;
+ top: 35rpx;
+ left: 0;
+ transform: translate(-50%,-50%) rotate(45deg);
+ width: 16rpx;
+ height: 16rpx;
+ background: rgb(255, 255, 255);
+ border: 1rpx solid #D8D8D8;
+ border-style: none none solid solid
}
.audio {
/*border-radius: 2px 10px 10px 10px;*/
diff --git a/TUIKit/components/TUIChat/components/MessageElements/CustomMessage/index.js b/TUIKit/components/TUIChat/components/MessageElements/CustomMessage/index.js
index 862f845..5064003 100644
--- a/TUIKit/components/TUIChat/components/MessageElements/CustomMessage/index.js
+++ b/TUIKit/components/TUIChat/components/MessageElements/CustomMessage/index.js
@@ -206,6 +206,21 @@ Component({
}];
return renderDom;
}
+
+ //12:问诊表
+ if (customMessage.message_type === GDXZ_CUSTOM_MSEEAGE.WENZHEN_FORM) {
+ let data = customMessage.data;
+ console.log(data)
+ const renderDom = [{
+ type: 'wenzhen_form',
+ order_inquiry_id:data.order_inquiry_id,
+ message_path:data.message_path,
+ case_patient_message_path:data.case_patient_message_path,
+ case_filled_fields:data.case_filled_fields,
+ case_not_fill_fields:data. case_not_fill_fields
+ }];
+ return renderDom;
+ }
} catch (error) {
}
// 客服咨询
@@ -296,9 +311,9 @@ Component({
})
}),
goSick(event){
- const url=event.currentTarget.dataset.url;
- console.log(url);
- app.go(url);
+ // const url=event.currentTarget.dataset.url;
+ // console.log(url);
+ // app.go(url);
},
openLink(e) {
@@ -315,6 +330,15 @@ Component({
go(e){
let url = e.currentTarget.dataset.url;
app.go(url);
+ },
+ goList(event){
+ console.log(event);
+ const {ismine,params}=event.currentTarget.dataset;
+ console.log(params);
+ if(!ismine){
+ app.go('/Pages/yishi/sickform/index?params='+params)
+ }
+ // app.go(url);
}
},
});
diff --git a/TUIKit/components/TUIChat/components/MessageElements/CustomMessage/index.wxml b/TUIKit/components/TUIChat/components/MessageElements/CustomMessage/index.wxml
index e8a283e..24e350a 100644
--- a/TUIKit/components/TUIChat/components/MessageElements/CustomMessage/index.wxml
+++ b/TUIKit/components/TUIChat/components/MessageElements/CustomMessage/index.wxml
@@ -126,6 +126,22 @@
+
+
+
+
+ 问诊表
+
+
+
+ 问诊表-已填写
+
+
+ 等待填写
+
+
+ 点击查看
+
diff --git a/TUIKit/components/TUIChat/components/MessageElements/CustomMessage/index.wxss b/TUIKit/components/TUIChat/components/MessageElements/CustomMessage/index.wxss
index 8f390db..a9afbe1 100644
--- a/TUIKit/components/TUIChat/components/MessageElements/CustomMessage/index.wxss
+++ b/TUIKit/components/TUIChat/components/MessageElements/CustomMessage/index.wxss
@@ -362,4 +362,61 @@ color: rgba(0,0,0,0.45);
.sicklook .see{
font-size: 32rpx;
+}
+.wenzhen_form{
+ width: 60vw;
+ position: relative;
+ z-index:2;
+ border-radius: 10px 10px 10px 10px;
+ border: 1rpx solid #1ACAD3;
+}
+.wenzhen_form .title{
+ border-radius: 16rpx 16rpx 0 0;
+ padding:20rpx;
+ display: flex;
+ align-items: center;
+ font-size: 30rpx;
+color: #FFFFFF;
+ background-color: #3CC7C0;
+}
+.wzicon{
+ margin-right: 10rpx;
+ width:42rpx;
+ height:46rpx;
+}
+.my-custom .wenzhen_form{
+ background: rgb(212, 239, 241);
+}
+.wenzhen_form .descform{
+ padding:15rpx 20rpx;
+ background-color: #ffff;
+ font-size: 28rpx;
+color: #666666;
+ border-radius: 0 0 16rpx 16rpx;
+}
+.wenzhen_form.my-custom::after{
+ content:'';
+ position: absolute;
+ top: 35rpx;
+ right: -19rpx;
+ transform: translate(-50%,-50%) rotate(-135deg);
+ width: 16rpx;
+ height: 16rpx;
+ background: #3CC7C0;
+ border: 1rpx solid #1ACAD3;
+ /* background: rgb(255, 255, 255);
+ border: 1rpx solid #E7E7E7; */
+ border-style: none none solid solid;
+}
+.wenzhen_form.your-custom::after{
+ content:'';
+ position: absolute;
+ top: 35rpx;
+ left: 0;
+ transform: translate(-50%,-50%) rotate(45deg);
+ width: 16rpx;
+ height: 16rpx;
+ background: #3CC7C0;
+ border: 1rpx solid #1ACAD3;
+ border-style: none none solid solid
}
\ No newline at end of file
diff --git a/TUIKit/components/TUIChat/components/MessageInput/index.js b/TUIKit/components/TUIChat/components/MessageInput/index.js
index e8fb78d..282e635 100644
--- a/TUIKit/components/TUIChat/components/MessageInput/index.js
+++ b/TUIKit/components/TUIChat/components/MessageInput/index.js
@@ -55,7 +55,12 @@ Component({
},
baseInfo: {
type: Object,
- value: {}
+ value: {},
+ observer(newVal) {
+ this.setData({
+ family_id: newVal.family_id,
+ });
+ },
},
message_rounds:{
type: Number,
@@ -74,6 +79,7 @@ Component({
data: {
conversation: {},
message: '',
+ family_id:'',
extensionArea: false,
sendMessageBtn: false,
displayFlag: '',
@@ -113,26 +119,85 @@ Component({
lifetimes: {
attached() {
+ let _this = this;
// 加载声音录制管理器
this.recorderManager = wx.getRecorderManager();
- this.recorderManager.onStop((res) => {
+ this.recorderManager.onStop(async(resData) => {
wx.hideLoading();
if (this.data.canSend) {
- if (res.duration < 1000) {
+ if (resData.duration < 1000) {
wx.showToast({
title: '录音时间太短',
icon: 'none',
});
} else {
+ let {from}=this.data;
// res.tempFilePath 存储录音文件的临时路径
- const message = wx.$TUIKit.createAudioMessage({
- to: this.getToAccount(),
- conversationType: this.data.conversation.type,
- payload: {
- file: res,
- },
+ if(from){
+ await this.handlegetLastInquiry();
+ }
+
+ let conversationID = this.data.conversation.conversationID
+ let promise = wx.$TUIKit.getConversationProfile(conversationID);
+ promise.then((imResponse)=> {
+ // console.log("getConversationProfile 正在执行")
+ // 获取成功
+ // console.log(imResponse.data.conversation); // 会话资料
+ _this.setData({
+ conversation: imResponse.data.conversation
+ })
+ }).catch(function(imError) {
+ console.warn('getConversationProfile error:', imError); // 获取会话资料失败的相关信息
});
- this.$sendTIMMessage(message);
+
+ Promise.all([promise]).then(res => {
+ // 获取最后一条消息
+ let last_message = this.data.conversation.lastMessage;
+ // console.log("last_message: ", last_message);
+ let cloudCustomData = "";
+ let cloudCustomDataJson = "";
+ if(last_message.cloudCustomData){
+ cloudCustomData = last_message.cloudCustomData;
+ }
+ if(cloudCustomData){
+ cloudCustomDataJson = JSON.parse(cloudCustomData);
+ }
+ let message_rounds = 0;
+ let patient_family_data = {};
+ patient_family_data.patient_name = this.data.baseInfo.patient_family_name;
+ patient_family_data.patient_sex = this.data.baseInfo.patient_family_sex;
+ patient_family_data.patient_age = this.data.baseInfo.patient_family_age;
+ if(cloudCustomDataJson){
+ message_rounds = cloudCustomDataJson.message_rounds;
+ }
+
+ let cach_message_rounds = this.data.message_rounds
+ message_rounds = cach_message_rounds>message_rounds?cach_message_rounds:message_rounds
+
+ const mycloudCustomData = JSON.stringify({
+ order_inquiry_id: this.data.order_inquiry_id,
+ inquiry_type: this.data.inquiry_type,
+ message_type: 0,
+ is_system: 0,
+ message_rounds: message_rounds,
+ patient_family_data: patient_family_data
+ });
+
+ const message = wx.$TUIKit.createAudioMessage({
+ to: this.getToAccount(),
+ conversationType: this.data.conversation.type,
+ payload: {
+ file: resData,
+ },
+ cloudCustomData:mycloudCustomData
+ });
+
+ _this.$sendTIMMessage(message);
+
+ }).catch(err=>{
+
+ console.log(err)
+ })
}
}
this.setData({
@@ -144,7 +209,6 @@ Component({
text: '按住说话',
});
});
- let _this = this
wx.onNetworkStatusChange(function (res) {
// console.log("onNetworkStatusChange from wenzhen: ")
// console.log(res.isConnected)
@@ -222,6 +286,9 @@ Component({
text: '按住说话',
focus: false,
});
+ this.setData({
+ displayFlag: '',
+ });
},
// 长按录音
@@ -493,7 +560,8 @@ Component({
});
break;
case '10'://查看完整病历
- app.go("/Pages/yishi/case/index?order_inquiry_id="+this.data.order_inquiry_id)
+ // app.go("/Pages/yishi/case/index?order_inquiry_id="+this.data.order_inquiry_id)
+ app.go("/Pages/yishi/patient_sick/index?order_inquiry_id="+this.data.order_inquiry_id+"&family_id="+this.data.family_id)
break;
case '11'://在线开方
let _this = this;
@@ -1073,6 +1141,9 @@ Component({
showChangYongYu(){
app.go("/Pages/yishi/quickreply/index?from=chat")
},
+ showWenZhenBiao(){
+ app.go("/Pages/yishi/write_sickform/index?order_inquiry_id="+this.data.order_inquiry_id)
+ },
},
});
diff --git a/TUIKit/components/TUIChat/components/MessageInput/index.wxml b/TUIKit/components/TUIChat/components/MessageInput/index.wxml
index de5a1cb..827f1ed 100644
--- a/TUIKit/components/TUIChat/components/MessageInput/index.wxml
+++ b/TUIKit/components/TUIChat/components/MessageInput/index.wxml
@@ -4,7 +4,7 @@
在线开处方
-
-
+
+
发送
+
@@ -52,6 +54,10 @@
常用语
+
+
+ 问诊表
+