3.22医生

This commit is contained in:
zoujiandong
2024-03-22 16:10:50 +08:00
parent 2454bafd78
commit bdc8abf326
34 changed files with 437 additions and 137 deletions
@@ -82,7 +82,7 @@ Component({
this.setData({
baseInfo:newVal,
patient_user_id: newVal.patient_user_id,
family_id: newVal.family_id,
family_id: newVal.family_id,
});
},
},
@@ -125,7 +125,8 @@ Component({
notShow: false,
isShow: true,
currentDate: null,
minDate:null,
minDate:new Date().getTime(),
maxDate:null,
commonFunction: [
{ name: '查看完整病历', key: '10' },
{ name: '在线开处方', key: '11' },
@@ -299,6 +300,13 @@ Component({
},
pageLifetimes:{
show(){
var currentDate = new Date();
// 在当前日期基础上增加2天
currentDate.setDate(currentDate.getDate() + 2);
var twoDaysLaterTimestamp = currentDate.getTime();
this.setData({
maxDate:twoDaysLaterTimestamp
})
//获得常用语
let words = wx.getStorageSync('words');
// console.log("words from chat: ", words);
@@ -442,7 +450,7 @@ Component({
},
call() {
let {baseInfo}=this.data;
console.log(baseInfo)
wx.setStorage({
key:'patientInfo',
data:{
@@ -464,7 +472,8 @@ Component({
order_inquiry_id:baseInfo.order_inquiry_id
}).then(async(res)=>{
let result=res.data;
console.log("userID:"+this.data.patient_user_id)
console.log("本人userID:"+app.globalData.config.userID);
console.log("呼叫userID:"+this.data.patient_user_id)
TUICallKitServer.setLogLevel(0);
await TUICallKitServer.call({
userID: this.data.patient_user_id,
@@ -10,10 +10,13 @@
<image class="TUI-icon" bindtap="switchAudio"
src="{{isAudio ? '../../../../static/assets/keyboard.svg' : '../../../../static/assets/audio.svg'}}" />
<view wx:if="{{!isAudio || isEmoji}}" class="TUI-message-input-main {{ focus && 'TUI-message-input-main-focus'}}" >
<textarea focus="{{false}}" hold-keyboard id="mytextarea" class="TUI-message-input-area" adjust-position="{{false}}" cursor-spacing="0"
<!-- <textarea class="TUI-message-input-area" adjust-position="{{true}}" cursor-spacing="-300" placeholder="请输入文字" value="{{message}}" bindinput="onInputValueChange" maxlength="-1" type="text" auto-height="{{true}}" placeholder-class="textarea-placeholder" confirm-type="send" show-confirm-bar="{{false}}" disable-default-padding="{{true}}" bindfocus="inputBindFocus" bindblur="inputBindBlur" bindconfirm="sendTextMessage" /> -->
<textarea focus="{{false}}" id="mytextarea" cursor-spacing="-300" class="TUI-message-input-area" adjust-position="{{true}}"
value="{{message}}" bindinput="onInputValueChange" maxlength="-1" type="text" auto-height="{{true}}"
placeholder="请输入文字" placeholder-class="input-placeholder" confirm-type="return" show-confirm-bar="{{false}}"
disable-default-padding="{{true}}"
bindfocus="inputBindFocus"
bindblur="inputBindBlur"
bindconfirm="sendTextMessage"
bindlinechange="inputBindLinechange"
@@ -112,7 +115,7 @@
<view class="record-modal" wx:if="{{popupToggle}}" bind:longpress="handleLongPress"
bind:touchmove="handleTouchMove"
bind:touchend="handleTouchEnd">
<view class="wrapper">
<view class="wrapper" style="align-items: flex-start;">
<view class="modal-loading">
</view>
</view>
@@ -197,6 +200,7 @@
bind:confirm="confirmTimepicker"
value="{{ currentDate }}"
min-date="{{ minDate }}"
max-date="{{maxDate}}"
formatter="{{ formatter }}"
/>