161 lines
8.6 KiB
Plaintext
161 lines
8.6 KiB
Plaintext
<view class="TUI-message-input-container">
|
|
<view class="TUI-commom-function">
|
|
<view class="TUI-commom-function-item" data-key="10" bindtap="handleCommonFunctions">查看完整病历</view>
|
|
<view class="TUI-commom-function-item" data-key="11" bindtap="handleCommonFunctions" wx:if="{{baseInfo.multi_point_status == 1 && baseInfo.inquiry_status==4 && baseInfo.multi_point_enable==1}}">在线开处方</view>
|
|
<view class="TUI-commom-function-item" data-key="12" bindtap="handleCommonFunctions" wx:if="{{baseInfo.multi_point_status == 1 && baseInfo.inquiry_status==4 && baseInfo.multi_point_enable==1}}">预约视频时间</view>
|
|
</view>
|
|
<view class="TUI-message-input">
|
|
<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"
|
|
value="{{message}}" bindinput="onInputValueChange" maxlength="-1" type="text" auto-height="{{true}}"
|
|
placeholder="请输入文字" placeholder-class="input-placeholder" confirm-type="return" show-confirm-bar="{{false}}"
|
|
bindfocus="inputBindFocus"
|
|
bindblur="inputBindBlur"
|
|
bindconfirm="sendTextMessage"
|
|
bindlinechange="inputBindLinechange"
|
|
/>
|
|
</view>
|
|
<view wx:if="{{isAudio}}" class="TUI-message-input-main"
|
|
catchlongpress="handleLongPress"
|
|
catchtouchmove="handleTouchMove"
|
|
catchtouchend="handleTouchEnd"
|
|
catchtap="handleTouchCancel"
|
|
catchtouchcancel="handleTouchCancel"
|
|
style="display: flex; justify-content: center; font-size: 32rpx; font-family: PingFangSC-Regular; height: 30px">
|
|
<text >{{text}}</text>
|
|
</view>
|
|
<view class="TUI-message-input-functions" hover-class="none">
|
|
<!-- 打开emoji按钮 -->
|
|
<view class="TUI-sendMessage-btn" wx:if="{{ has_emoji }}">
|
|
<image class="TUI-icon" bindtap="handleEmoji" src="../../../../static/assets/face-emoji.svg" />
|
|
</view>
|
|
<view class="TUI-sendMessage-btn" >
|
|
<view wx:if="{{!sendMessageBtn}}" bindtap="handleExtensions" class="TUI-sendMessage-btn">
|
|
<image class="TUI-icon" src="{{static_host}}/applet/doctor/static/images/chat/tianjia.png" />
|
|
</view>
|
|
<view wx:else class="TUI-sendMessage-btn TUI-sendMessage-btn-input" bindtap="sendTextMessage">
|
|
发送
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view wx:if="{{displayFlag === 'emoji'}}" class="TUI-Emoji-area">
|
|
<Emoji bind:enterEmoji="appendMessage" />
|
|
</view>
|
|
<view wx:if="{{displayFlag === 'extension'}}" class="TUI-Extensions">
|
|
<view class="TUI-Extension-slot MY-TUI-Extension-slot" bindtap="handleSendPicture">
|
|
<image mode="widthFix" class="TUI-Extension-icon MY-TUI-Extension-icon" src="{{static_host}}/applet/doctor/static/images/chat/xiangji.png" />
|
|
<view class="TUI-Extension-slot-name MY-TUI-Extension-slot-name">相机</view>
|
|
</view>
|
|
<view class="TUI-Extension-slot MY-TUI-Extension-slot" bindtap="handleSendImage">
|
|
<image mode="widthFix" class="TUI-Extension-icon MY-TUI-Extension-icon" src="{{static_host}}/applet/doctor/static/images/chat/picture.png" />
|
|
<view class="TUI-Extension-slot-name MY-TUI-Extension-slot-name">照片</view>
|
|
</view>
|
|
<view class="TUI-Extension-slot MY-TUI-Extension-slot" bindtap="showChangYongYu">
|
|
<image mode="widthFix" class="TUI-Extension-icon MY-TUI-Extension-icon" src="{{static_host}}/applet/doctor/static/images/chat/wenzi.png" />
|
|
<view class="TUI-Extension-slot-name MY-TUI-Extension-slot-name">常用语</view>
|
|
</view>
|
|
<view class="TUI-Extension-slot MY-TUI-Extension-slot" bindtap="showWenZhenBiao" wx:if="{{baseInfo.inquiry_status==4}}">
|
|
<image mode="widthFix" class="TUI-Extension-icon MY-TUI-Extension-icon" src="../../../../../static/images/yishi/tabbar_icon/wenzhenicon.png" />
|
|
<view class="TUI-Extension-slot-name MY-TUI-Extension-slot-name">问诊表</view>
|
|
</view>
|
|
<!-- <view class="TUI-Extension-slot" bindtap="handleSendPicture">
|
|
<image class="TUI-Extension-icon" src="../../../../static/assets/take-photo.svg" />
|
|
<view class="TUI-Extension-slot-name">相机</view>
|
|
</view>
|
|
<view class="TUI-Extension-slot" bindtap="handleSendImage">
|
|
<image class="TUI-Extension-icon" src="../../../../static/assets/send-img.svg" />
|
|
<view class="TUI-Extension-slot-name">照片</view>
|
|
</view>
|
|
<view class="TUI-Extension-slot" bindtap="handleSendImage">
|
|
<image class="TUI-Extension-icon" src="../../../../static/assets/send-img.svg" />
|
|
<view class="TUI-Extension-slot-name">常用语</view>
|
|
</view>
|
|
<view class="TUI-Extension-slot" bindtap="handleShootVideo">
|
|
<image class="TUI-Extension-icon" src="../../../../static/assets/take-video.svg" />
|
|
<view class="TUI-Extension-slot-name">拍摄视频</view>
|
|
</view>
|
|
<view class="TUI-Extension-slot" bindtap="handleSendVideo">
|
|
<image class="TUI-Extension-icon" src="../../../../static/assets/send-video.svg" />
|
|
<view class="TUI-Extension-slot-name">发送视频</view>
|
|
</view>
|
|
<view class="TUI-Extension-slot" data-value="{{1}}" bindtap="handleCheckAuthorize" >
|
|
<image class="TUI-Extension-icon" src="../../../../static/assets/audio-calling.svg" />
|
|
<view class="TUI-Extension-slot-name">语音通话</view>
|
|
</view>
|
|
<view class="TUI-Extension-slot" data-value="{{2}}" bindtap="handleCheckAuthorize" >
|
|
<image class="TUI-Extension-icon" src="../../../../static/assets/video-calling.svg" />
|
|
<view class="TUI-Extension-slot-name">视频通话</view>
|
|
</view>
|
|
<view class="TUI-Extension-slot" bindtap="handleServiceEvaluation">
|
|
<image class="TUI-Extension-icon" src="../../../../static/assets/service-assess.svg" />
|
|
<view class="TUI-Extension-slot-name">服务评价</view>
|
|
</view>
|
|
<view class="TUI-Extension-slot" bindtap="handleSendOrder">
|
|
<image class="TUI-Extension-icon" src="../../../../static/assets/send-order.svg" />
|
|
<view class="TUI-Extension-slot-name">发送订单</view>
|
|
</view> -->
|
|
</view>
|
|
<CommonWords class="tui-cards" display="{{displayCommonWords}}" bind:sendMessage="$handleSendTextMessage" bind:close="$handleCloseCards" />
|
|
<OrderList class="tui-cards" display="{{displayOrderList}}" bind:sendCustomMessage="$handleSendCustomMessage" bind:close="$handleCloseCards"/>
|
|
<ServiceEvaluation class="tui-cards" display="{{displayServiceEvaluation}}" bind:sendCustomMessage="$handleSendCustomMessage" bind:close="$handleCloseCards"/>
|
|
</view>
|
|
<view class="record-modal" wx:if="{{popupToggle}}" bind:longpress="handleLongPress"
|
|
bind:touchmove="handleTouchMove"
|
|
bind:touchend="handleTouchEnd">
|
|
<view class="wrapper">
|
|
<view class="modal-loading">
|
|
</view>
|
|
</view>
|
|
<view class="recordtime">
|
|
00:{{recordtime<10?'0'+recordtime:recordtime}}
|
|
</view>
|
|
<view class="modal-title">
|
|
{{title}}
|
|
</view>
|
|
|
|
</view>
|
|
<t-dialog
|
|
visible="{{ dialog_visible }}"
|
|
title="温馨提示"
|
|
content="{{dialog_message}}"
|
|
>
|
|
<view slot="cancel-btn" class="dialog dialog_cancel_btn" bindtap="cancelDialog">
|
|
取消
|
|
</view>
|
|
<view slot="confirm-btn" class="dialog dialog_confirm_btn" bindtap="confirmDialog">
|
|
确定
|
|
</view>
|
|
</t-dialog>
|
|
|
|
<t-dialog
|
|
visible="{{ sub_visible }}"
|
|
title="温馨提示"
|
|
content="您已关闭订阅消息通知,请点击“确认”按钮在设置中打开订阅通知。"
|
|
>
|
|
<view slot="cancel-btn" class="dialog dialog_cancel_btn" bindtap="subcancelDialog">
|
|
取消
|
|
</view>
|
|
<view slot="confirm-btn" class="dialog dialog_confirm_btn" bindtap="subconfirmDialog">
|
|
确定
|
|
</view>
|
|
</t-dialog>
|
|
<van-popup
|
|
round
|
|
show="{{ showTimepicker}}"
|
|
position="bottom"
|
|
custom-style="height: 50%"
|
|
>
|
|
<van-datetime-picker
|
|
bind:cancel="cancelTimepicker"
|
|
title="预约视频时间"
|
|
bind:confirm="confirmTimepicker"
|
|
value="{{ currentDate }}"
|
|
min-date="{{ minDate }}"
|
|
formatter="{{ formatter }}"
|
|
/>
|
|
|
|
</van-popup>
|