<!--packageA/chattingRecords/chattingRecords.wxml-->
<answer id='answer'></answer>
<!-- <view class="partyone">
	<view class="section">
		<picker mode="date" value="{{date}}" start="{{startTime}}" end="{{endTime}}" bindchange="bindDateChange">
			<view class="picker">
				{{date}}
			</view>
			<image class="section-img" src="../../images/down.png"></image>
		</picker>
	</view>
</view>
<view style="height:80rpx;width:100%;"></view> -->
<view class='warp'>
<scroll-view scroll-y style='height:{{scrollHeight}};' scroll-top='{{scrollTop}}' scroll-with-animation enhanced fast-deceleration scroll-anchoring='true' refresher-enabled="{{true}}" refresher-threshold="{{25}}" refresher-default-style="none" refresher-background="white" refresher-triggered="{{scrollloading}}" bindrefresherpulling="scrollPullDownRefresh">
	<!-- 下拉加载 -->
	<view slot="refresher" class="scrollloading"><i class="weui-loading"></i></view>
	<view class='warp-info'>
		<!-- 消息列表 -->
		<view class="showTime" wx:if='{{messageList.length<=0}}'>暂无服务消息记录</view>
		<block wx:for='{{messageList}}' wx:for-item="item" wx:for-index="index" wx:key='index'>
			<view class="showTime" wx:if='{{item.msg_timestamp}}'>{{item.msg_timestamp}}</view>
			<!-- 温馨提示 -->
			<block wx:if='{{item.msg_type == "reminder"}}'>
				<view class="showTime">温馨提示:{{item.msg_content.content}}</view>
			</block>
			<block wx:if='{{item.msg_type == "reminder2"}}'>
					<view class="showText">温馨提示：{{item.msg_content.content.wechat}}</view>
				</block>
							<!-- 新用户报道-->
				<block wx:if='{{item.type == "TIMCustomElem"&&item.payload.data.type=="prompt"}}'>
					<view class="showText">　　{{item.payload.data.content}}</view>
				</block>
				<!-- 结束服务请求 -->
				<block wx:if='{{item.type == "TIMCustomElem"&&item.payload.data=="InitiateEndService"}}'>
					<view class="showText">对方发起了一个结束当前服务的请求</view>
				</block>
				<!-- 拒绝服务请求 -->
				<block wx:if='{{item.type == "TIMCustomElem"&&item.payload.data=="NeverEndService"}}'>
					<view class="showText">您拒绝了对方的结束服务请求</view>
				</block>
				<!-- 同意服务请求 -->
				<block wx:if='{{item.type == "TIMCustomElem"&&item.payload.data=="EndOfService"}}'>
					<view class="showText">{{item.payload.description}}，若需要更多服务请再次购买，<text bindtap="moreService" style="color:#2684ff;">去购买服务</text></view>
				</block>
			<block wx:if='{{item.msg_type == "txt"}}'>
				<!-- 白方消息 -->
				<view class='left' wx:if="{{item.flow=='in'}}" id='d{{index}}'>
					<image class='head' src='{{doctorimage || noSrc}}'></image>
					<view class='msg' data-c="{{item.msg_content.content}}" bind:longpress='copy'>{{item.msg_content.content}}</view>
				</view>
				<!-- 蓝方消息 -->
				<view class='right' wx:if="{{item.flow=='out'}}" id='d{{index}}'>
					<image class='head' src='{{avatarUrl|| noSrc}}'></image>
					<view class='msg' data-c="{{item.msg_content.content}}" bind:longpress='copy'>{{item.msg_content.content}}</view>
				</view>
			</block>
			<!-- 图片消息 -->
			<block wx:if='{{item.msg_type == "img"}}'>
				<view class='left' wx:if="{{item.flow=='in'}}" id='d{{index}}'>
					<image class='head' src='{{doctorimage || noSrc}}'></image>
					<view class='info-img' bindtap='previewImage' data-src='{{item.msg_content.originalPicture}}'>
						<image src='{{item.msg_content.originalPicture}}' data-index="{{index}}" lazy-load mode="widthFix"></image>
					</view>
				</view>
				<view class='right' wx:if="{{item.flow=='out'}}" id='d{{index}}'>
					<image class='head' src='{{avatarUrl|| noSrc}}'></image>
					<view class='info-img' bindtap='previewImage' data-src='{{item.msg_content.originalPicture}}'>
						<image src='{{item.msg_content.originalPicture}}' data-index="{{index}}" lazy-load mode="widthFix"></image>
					</view>
				</view>
			</block>
			<!-- 语音消息 -->
			<block wx:if='{{item.msg_type == "voice"}}'>
				<!-- 白方消息 -->
				<view class='left' wx:if="{{item.flow=='in'}}" id='d{{index}}'>
					<image class='head' src='{{doctorimage|| noSrc}}'></image>
					<view class='msg' style='width:{{80+item.msg_content.second*6}}rpx;text-align: right;' bindtap='openAudio' data-voice='{{item.msg_content.voice}}'>
						<image class="ico" wx:if="{{item.msg_content.voice==audioSave}}" src="/images/yuyin-gif.gif"></image>
						<image class="ico" wx:else src="/images/yuyin-ico.png"></image>
						{{item.msg_content.second}}"
					</view>
				</view>
				<!-- 蓝方消息 -->
				<view class='right' wx:if="{{item.flow=='out'}}" id='d{{index}}'>
					<image class='head' src='{{avatarUrl || noSrc}}'></image>
					<view class='msg' style='width:{{80+item.msg_content.second*6}}rpx;' bindtap='openAudio' data-voice='{{item.msg_content.voice}}'>
						<image class="ico" wx:if="{{item.msg_content.voice==audioSave}}" src="/images/yuyin-gif1.gif"></image>
						<image class="ico" wx:else src="/images/yuyin-ico1.png"></image>
						{{item.msg_content.second}}"
					</view>
				</view>
			</block>
			<!-- 报告 -->
			<block wx:if='{{item.msg_type == "report"}}'>
				<!-- 白方消息 -->
				<view class='systemReport left' wx:if="{{item.flow=='in'}}">
					<view class="systemReport-title">检测报告</view>
					<view class="systemReport-text">{{doctorname}}发送了一份{{item.msg_content.content.lbname}}的检测报告，可点击下方按钮查看</view>
					<view class="btn-view">
						<view class="msg_btn1" bindtap='lookReport' id='d{{index}}' data-src="{{item.msg_content.content.id}}" data-istype='{{item.msg_content.content.is_type}}'>查看报告</view>
					</view>
				</view>
				<!-- 蓝方消息 -->
				<view class='systemReport right' wx:else>
					<view class="systemReport-title">检测报告</view>
					<view class="systemReport-text">{{name}}发送了一份{{item.msg_content.description.lbname}}的检测报告，可点击下方按钮查看</view>
					<view class="btn-view">
						<view class="msg_btn1" bindtap='lookReport' id='d{{index}}' data-src="{{item.msg_content.description.id}}" data-istype='{{item.msg_content.content.is_type}}'>查看报告</view>
					</view>
				</view>
			</block>
			<!-- 预约消息 -->
			<block wx:if='{{item.msg_type == "followUp"}}'>
				<view class='reserveInfo'>
					<view class="reserveInfo-title">预约信息</view>
					<view class="reserve-time">预约时间 <text class="reserve-text">{{item.msg_content.content}}</text></view>
					<view class="reserve-server">预约服务 <text class="reserve-text">在线复诊/咨询</text></view>
					<!-- <view class="btn-view">
						<button class='msg_btn1' style="margin:0;line-height: 48rpx;" open-type='getPhoneNumber' bindgetphonenumber='goSetTel'>添加到提醒</button>
					</view> -->
				</view>
			</block>
			<!-- 心理体检 -->
			<block wx:if='{{item.msg_type == "Checkup"}}'>
				<view class='Report'>
					<view class="Report-doctor">
						<image class='head' src='{{item.msg_content.content.headimgurl || noSrc}}'></image>
						<view class="doctor-info">
							<view><text class="doctor-name">{{item.msg_content.content.nickname}}</text><text  class="doctor-title">{{doctortitle}}</text></view>
							<view class="doctor-unit">{{item.msg_content.content.work_unit}}</view>
						</view>
					</view>
					<view class="Report-text">我已为您开具量表，请点击下方按钮或在我
						的-我的报告,开始检测</view>
					<view class="scale">
						<view class="scale-title">量表名称：</view>
						<view>
							<block wx:for='{{item.msg_content.content.Name_Arr}}' wx:for-item='scaleitem' wx:key="index">
								<view class="scale-item">{{scaleitem}}</view>
							</block>
						</view>
					</view>
					<!-- <view class="btn-view">
						<view class="msg_btn1" bindtap='getCheckup' data-id="{{item.msg_content.content.id}}">开始检测</view>
					</view> -->
				</view>
			</block>
			<!-- 医生推荐 -->
			<block wx:if='{{item.msg_type == "UserDrug"}}'>
				<view class='recipe'>
					<view class="recipe-doctor">
						<image class='head' src='{{item.msg_content.content.img|| noSrc}}'></image>
						<view class="doctor-info">
							<view><text class="doctor-name">{{item.msg_content.content.name}}</text><text  class="doctor-title">{{doctortitle}}</text></view>
							<view class="doctor-unit">{{item.msg_content.content.work_unit}}</view>
						</view>
					</view>
					<view class="Report-text">根据您的病情，诊断：{{item.msg_content.content.diagnosis}}</view>
					<view class="scale">
						<view class="scale-title">医生推荐：</view>
						<view>
							<block wx:for="{{item.msg_content.content.drug}}" wx:for-item="drugitem" wx:key='index'>
								<view class="scale-item">{{drugitem}}</view>
							</block>
						</view>
					</view>
					<view class="btn-view">
						<view class="msg_btn" bindtap="viewRecipe" data-item="{{item.msg_content.content}}">查看推荐</view>
						<!-- <view class="msg_btn1" bindtap="buyDrug" data-item="{{item.msg_content.content}}">购买药品</view> -->
					</view>
				</view>
			</block>
			<!-- 处方 -->
			<block wx:if='{{item.msg_type == "Prescription"}}'>
				<view class='recipe'>
					<view class="recipe-doctor">
						<image class='head' src='{{item.msg_content.content.img|| noSrc}}'></image>
						<view class="doctor-info">
							<view><text class="doctor-name">{{item.msg_content.content.name}}</text><text  class="doctor-title">{{doctortitle}}</text></view>
							<view class="doctor-unit">{{item.msg_content.content.work_unit}}</view>
						</view>
					</view>
					<view class="Report-text">根据您的病情，诊断：{{item.msg_content.content.diagnosis}}</view>
					<view class="scale">
						<view class="scale-title">建议用药：</view>
						<view>
							<block wx:for="{{item.msg_content.content.drug}}" wx:for-item="drugitem" wx:key='index'>
								<view class="scale-item">{{drugitem}}</view>
							</block>
						</view>
					</view>
					<view class="btn-view">
						<view class="msg_btn" bindtap="viewRecipe" data-item="{{item.msg_content.content}}">查看处方</view>
						<!-- <view class="msg_btn1" bindtap="buyDrug" data-item="{{item.msg_content.content}}">购买药品</view> -->
					</view>
				</view>
			</block>
			<!-- 视频消息 -->
			<block wx:if='{{item.msg_type == "LaunchVideo"}}'>
				<view class="{{item.flow=='in'?'left':'right'}}" id='d{{index}}'>
					<image class='head' src='{{doctorimage || noSrc}}'></image>
					<view class='msg' data-c="{{item.msg_content.text}}">视频通话请求</view>
				</view>
				<!-- <view class="LaunchVideo">视频通话请求</view> -->
			</block>
			<block wx:if='{{item.msg_type == "closeVideo"}}'>
				<view class="{{item.flow=='in'?'left':'right'}}" id='d{{index}}'>
					<image class='head' src='{{doctorimage || noSrc}}'></image>
					<view class='msg' data-c="{{item.msg_content.text}}">已挂断</view>
				</view>
				<!-- <view class="LaunchVideo">已挂断</view> -->
			</block>
			<block wx:if='{{item.msg_type == "hangUpVideo"}}'>
				<view class="{{item.flow=='in'?'left':'right'}}" id='d{{index}}'>
					<image class='head' src='{{doctorimage || noSrc}}'></image>
					<view class='msg'>已拒接</view>
				</view>
				<!-- <view class="LaunchVideo">已挂断</view> -->
			</block>
			<!-- 用户信息 -->
			<!-- <block wx:if='{{item.msg_type == "TIMCustomElem"&&item.msg_content.data=="UserInfo"}}'>
					<view class='userInfo'>
						<view class="userInfo-title">患者信息</view>
						<view class="basicInfo">基本信息<text class="userInfo-text">{{item.msg_content.description.name}}</text></view>
						<view class="userInfo-GSGN">肝肾功能<text class="userInfo-text">{{item.msg_content.description.disease}}</text></view>
						<view class="userInfo-BYQK">备孕情况<text class="userInfo-text">{{item.msg_content.description.beiyun}}</text></view>
						<view class="userInfo-GWBS"><view>过往病史</view><view class="gwbs-text">{{item.msg_content.description.past_desc}}</view></view>
						<view class="userInfo-GMS"><view style="margin-right:58rpx">过敏史</view><view class="gms-text">{{item.msg_content.description.allergy_desc}}</view></view>
						<view class="btn-view">
							<view class="msg_btn1">完善信息</view>
						</view>
					</view>
				</block> -->
		</block>
		<!-- 我的评价 -->
		<view class='myEvaluation' wx:if="{{false}}">
			<view class="myEvaluation-title">我的评价</view>
			<view class="myEvaluation-imgList">
				<text class="myEvaluation-on cuIcon-favorfill" wx:if="{{graded>=5}}"></text>
				<text class="myEvaluation-off cuIcon-favorfill" wx:else></text>
				<text class="myEvaluation-on cuIcon-favorfill" wx:if="{{graded>=4}}"></text>
				<text class="myEvaluation-off cuIcon-favorfill" wx:else></text>
				<text class="myEvaluation-on cuIcon-favorfill" wx:if="{{graded>=3}}"></text>
				<text class="myEvaluation-off cuIcon-favorfill" wx:else></text>
				<text class="myEvaluation-on cuIcon-favorfill" wx:if="{{graded>=2}}"></text>
				<text class="myEvaluation-off cuIcon-favorfill" wx:else></text>
				<text class="myEvaluation-on cuIcon-favorfill" wx:if="{{graded>=1}}"></text>
				<text class="myEvaluation-off cuIcon-favorfill" wx:else></text>
			</view>
			<view class="satisfaction">满意度 <text class="satisfaction-text" style="margin-left:28rpx">{{graded}}星</text></view>
			<view class="satisfaction">评价内容 <text class="satisfaction-text" style="margin-left:28rpx">{{graded}}星</text></view>
		</view>
	</view>
	<view style='height:90rpx;'></view>
	<!-- </view> -->
</scroll-view>
</view>