chat.wxml 7.2 KB

1
  1. <view class="container"><view class="top-header flex"><view data-event-opts="{{[['tap',[['ToPatient',['$event']]]]]}}" class="icon" bindtap="__e"><image src="/static/img/icon.png"></image></view><view class="name">{{name||'暂无姓名'}}</view><view data-event-opts="{{[['tap',[['ToHome',['$event']]]]]}}" bindtap="__e">返回首页</view></view><view class="uni-column"><view class="content" style="{{'height:'+(style.contentViewHeight+'px')+';'}}" id="content"><scroll-view class="Meslist" style="{{'height:'+(style.contentViewHeight+'px')+';'}}" id="scrollview" scroll-y="{{true}}" scroll-with-animation="{{true}}" scroll-top="{{scrollTop}}"><view id="listBox"><block wx:for="{{$root.l0}}" wx:for-item="ls" wx:for-index="index" wx:key="index"><view><view class="m-item" id="{{'message'+index}}"><view class="m-left"><block wx:if="{{ls.$orig.uid!=userInfo.uid}}"><image class="head_icon" src="{{ls.$orig.avatar}}"></image></block></view><view class="m-content"><view class="{{['m-content-head',(ls.$orig.uid==userInfo.uid)?'m-content-head-right':'']}}"><block wx:if="{{ls.$orig.uid==userInfo.uid}}"><view class="{{['m-content-head-'+'home']}}"><block wx:if="{{ls.$orig.type==1}}"><view><block wx:if="{{ls.g0>-1}}"><view><navigator href="{{ls.$orig.content}}" class="_a">{{ls.$orig.content}}</navigator></view></block><block wx:else><rich-text nodes="{{ls.g1}}"></rich-text></block></view></block><block wx:if="{{ls.$orig.type==2}}"><view><image class="mes-image" mode="widthFix" src="{{ls.$orig.content}}" data-event-opts="{{[['tap',[['imgInfo',['$0'],[[['MsgList','',index,'content']]]]]]]}}" catchtap="__e"></image></view></block><block wx:if="{{ls.$orig.type==4}}"><view><navigator href="{{ls.g2[0]}}" class="_a"><view class="question-title">{{''+ls.g3[1]+''}}</view><view class="question-img"><image src="../../static/img/img99.jpg" mode></image></view></navigator></view></block><block wx:if="{{ls.$orig.type==5}}"><view><block wx:if="{{ls.g4[1]=='麻醉前访视单'}}"><view><navigator href="{{'http://dxhred.igxys.com/questionnaire/before.html?id='+order_id+'&inquireid='+ls.g5+'&token='+token+'&name='+name}}" class="_a"><view class="question-title">{{''+ls.g6[1]+''}}</view><view class="question-img"><image src="../../static/img/img100.jpg" mode></image></view></navigator></view></block><block wx:if="{{ls.g7[1]=='手术后回访单'}}"><view><navigator href="{{'http://dxhred.igxys.com/questionnaire/index.html?id='+order_id+'&inquireid='+ls.g8+'&token='+token+'&name='+name}}" class="_a"><view class="question-title">{{''+ls.g9[1]+''}}</view><view class="question-img"><image src="../../static/img/img100.jpg" mode></image></view></navigator></view></block></view></block></view></block><block wx:if="{{ls.$orig.uid!=userInfo.uid}}"><view class="{{['m-content-head-'+'customer']}}"><block wx:if="{{ls.$orig.type==1}}"><view><rich-text nodes="{{ls.g10}}"></rich-text></view></block><block wx:if="{{ls.$orig.type==2}}"><view><image class="mes-image" mode="widthFix" src="{{ls.$orig.content}}" data-event-opts="{{[['tap',[['imgInfo',['$0'],[[['MsgList','',index,'content']]]]]]]}}" catchtap="__e"></image></view></block><block wx:if="{{ls.$orig.type==4}}"><view><navigator href="{{ls.g11[0]+'?id='+ls.$orig.order_id+'&token='+token+'&uid='+uid+'&name='+name}}" class="_a"><view class="question-title">{{''+ls.g12[1]+''}}</view><view class="question-img"><image src="../../static/img/img99.jpg" mode></image></view></navigator></view></block><block wx:if="{{ls.$orig.type==5}}"><view><block wx:if="{{ls.g13[1]=='麻醉前访视单'}}"><view><navigator href="{{'http://dxhred.igxys.com/questionnaire/before.html?id='+order_id+'&inquireid='+ls.g14+'&token='+token+'&name='+name}}" class="_a"><view class="question-title">{{''+ls.g15[1]+''}}</view><view class="question-img"><image src="../../static/img/img100.jpg" mode></image></view></navigator></view></block><block wx:if="{{ls.g16[1]=='手术后回访单'}}"><view><navigator href="{{'http://dxhred.igxys.com/questionnaire/index.html?id='+order_id+'&inquireid='+ls.g17+'&token='+token+'&name='+name}}" class="_a"><view class="question-title">{{''+ls.g18[1]+''}}</view><view class="question-img"><image src="../../static/img/img100.jpg" mode></image></view></navigator></view></block></view></block></view></block></view></view><block wx:if="{{userInfo.type==2}}"><view class="m-right"><block wx:if="{{ls.$orig.uid==userInfo.uid}}"><image class="head_icon" src="{{userInfo.ext_info.photo}}"></image></block></view></block><block wx:if="{{userInfo.type!=2}}"><view class="m-right"><block wx:if="{{ls.$orig.uid==userInfo.uid}}"><image class="head_icon" src="{{userInfo.avatar}}"></image></block></view></block></view><block wx:if="{{ls.$orig.time==true}}"><view class="time">{{ls.$orig.add_time}}</view></block></view></block></view></scroll-view></view><view class="foot"><view class="footheight"><view class="footer"><view data-event-opts="{{[['tap',[['scImg']]]]}}" class="footer-left" bindtap="__e"><image src="/static/img/upload.png"></image></view><block wx:if="{{userInfo.type==2}}"><view data-event-opts="{{[['tap',[['open']]]]}}" class="footer-left1" bindtap="__e"><image src="/static/img/file.png"></image></view></block><view data-event-opts="{{[['tap',[['show',['$event']]]]]}}" class="footer-emotion" bindtap="__e"><text class="icon iconfont icon-face"></text></view><view class="footer-center"><input class="input-text" placeholder="清输入您的信息" type="text" focus="{{focus}}" data-event-opts="{{[['focus',[['foc',['$event']]]],['input',[['__set_model',['','inputValue','$event',[]]]]]]}}" value="{{inputValue}}" bindfocus="__e" bindinput="__e"/></view><view data-event-opts="{{[['tap',[['sendMessge',['$event']]]]]}}" class="footer-right" bindtap="__e"><view id="msg-type">发送</view></view></view><block wx:if="{{showPannel}}"><emotion vue-id="f9f3faf2-1" height="{{200}}" data-event-opts="{{[['^emotion',[['handleEmotion']]]]}}" bind:emotion="__e" bind:__l="__l"></emotion></block></view></view></view><block wx:if="{{Maskshow}}"><view class="Info-image"><view class="mask"><image src="{{image}}" mode="aspectFit"></image><view class="foot-box flex"><view data-event-opts="{{[['tap',[['ToReturn',['$event']]]]]}}" class="send-btn btn" bindtap="__e">返回</view><view data-event-opts="{{[['tap',[['send',['$event']]]]]}}" class="send-btn" bindtap="__e">发送</view></view></view></view></block><uni-popup class="vue-ref" vue-id="f9f3faf2-2" type="bottom" data-ref="popup" bind:__l="__l" vue-slots="{{['default']}}"><view class="payment"><view data-event-opts="{{[['tap',[['payclose']]]]}}" class="first flex " bindtap="__e"><text class="word">选择调查文件</text><image src="../../static/img/img25.png"></image></view><view class="pay-type-list"><radio-group data-event-opts="{{[['change',[['radioChange',['$event']]]]]}}" bindchange="__e"><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="value"><label class="type-item b-b"><view class="con"><text class="tit">{{item.$orig.name}}</text></view><view><radio value="{{item.g19}}" checked="{{index===current}}"></radio></view></label></block></radio-group></view><view class="one"></view><view class="Third flex"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="{{['two2',(payLoding)?'clickbg':'']}}" catchtap="__e"><text>选择</text></view></view></view></uni-popup></view>