dialogbox.wxml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!-- 头部 -->
  2. <view class="header">
  3. <view class="header_title">{{headerTitle}}</view>
  4. <view class="header_botton" wx:if="{{joinHands}}">
  5. <van-button custom-class='head-bot-class head-bot-l' catchtap="refuseToCooperate">暂不合作</van-button>
  6. <van-button custom-class='head-bot-class head-bot-r' catchtap="confirmTheCooperation">确认合作</van-button>
  7. </view>
  8. <view class="header_botton" wx:if="{{fimdialogtype=='话题'}}">
  9. <van-button custom-class='compile' catchtap="refuseToCooperate">
  10. <image src="/static/icon-19.png" style="width: 16rpx;height: 20rpx;"></image>
  11. 编辑
  12. </van-button>
  13. </view>
  14. </view>
  15. <!-- 聊天 bindscrolltoupper='scrolltoupper' -->
  16. <scroll-view class="chatFrame" refresher-default-style='none' refresher-enabled bindrefresherrefresh='scrolltoupper' refresher-triggered='{{triggered}}' scroll-y scroll-into-view="{{toView}}">
  17. <view style="height: 110rpx;"></view>
  18. <!-- 个人聊天 -->
  19. <MsgBubble wx:for="{{socketMsgQueue}}" wx:key="index" id="item{{index}}" type='{{item.message.ftype}}' fobsurl='{{item.message.data[0].fobsurl}}' role="{{userid==item.message.sendfrom.userid?'my':'you'}}" userImg='{{item.message.sendfrom.headpic}}' content='{{item.message.data.fcontent}}' time='{{item.message.fdatetime}}' />
  20. <view style="height: {{keyboardHeight}}px;"></view>
  21. <view id="bottom" style="height: {{iosX?'102':'85'}}px;"></view>
  22. </scroll-view>
  23. <!-- 底部输入 -->
  24. <view class="input-box" style="bottom:{{keyboardHeight}}px;">
  25. <!-- {{lineCount>1?'multi-row':''}} -->
  26. <textarea class="input-text" bindfocus="textareaFocus" adjust-position='{{false}}' bindconfirm='sendMsg' show-confirm-bar='{{false}}' confirm-type='send' confirm-hold='true' cursor-spacing='45' bindinput='sendInput' value='{{sendText}}' maxlength='-1' fixed='true' type="text" bindlinechange='linechange' bindkeyboardheightchange='keyboardheightchange'>
  27. <view class="gambit" wx:if="{{fimdialogtype=='话题'&&timsubjectid==0}}" catchtap="createGambit" data-type="{{fimuserid==userid?'发起会话':'回复'}}">
  28. {{fimuserid==userid?'发起会话':'回复'}}
  29. </view>
  30. </textarea>
  31. <view class="functionalZone" catchtap="selectionFunction">
  32. <image data-name='表情' mode="heightFix" src="/static/chatRoom/icon-01.png" />
  33. <image data-name='图片' mode="heightFix" src="/static/chatRoom/icon-02.png" />
  34. <image data-name='历史' mode="heightFix" src="/static/chatRoom/icon-03.png" />
  35. </view>
  36. <!-- 安全距离 -->
  37. <view style="height: {{iosX?'34':'0'}}rpx;"></view>
  38. </view>
  39. <!-- 表情-->
  40. <van-popup show="{{ memePopup }}" overlay='{{false}}' position='bottom' safe-area-inset-bottom='{{false}}'>
  41. <view class="popup-class">
  42. <scroll-view scroll-y class="meme-box">
  43. <view class="meme-item" wx:for="{{memeList}}" wx:key="index" data-item="{{item}}" catchtap="sendMeme">
  44. <image src="{{item.fobsurl}}" mode="aspectFill"></image>
  45. </view>
  46. </scroll-view>
  47. <view style="height: {{iosX?'34':'0'}}rpx;"></view>
  48. </view>
  49. </van-popup>
  50. <view wx:if="{{ memePopup }}" bindtap="endMemePopup" class="mask-layer"></view>