dialogbox.wxml 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!-- 头部 -->
  2. <view class="header">
  3. <view class="header_title">{{headerTitle}}</view>
  4. <view class="header_botton" wx:if="{{joinHands&&fdatastatus==2}}">
  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 gxtips" style="color:#FF1A2E;" wx:if="{{joinHands&&fdatastatus==0}}">
  9. <van-icon name="clear" /> 已拒绝合作
  10. </view>
  11. <view class="header_botton gxtips" style="color:#74C041;" wx:if="{{joinHands&&fdatastatus==1}}">
  12. <van-icon name="checked" /> 已达成合作
  13. </view>
  14. <view class="header_botton" wx:if="{{fimdialogtype=='话题'&&fimuserid==userid}}">
  15. <van-button custom-class='compile' catchtap="toCreate">
  16. <image src="/static/icon-19.png" style="width: 16rpx;height: 20rpx;"></image>
  17. 编辑
  18. </van-button>
  19. </view>
  20. </view>
  21. <!-- 聊天 bindscrolltoupper='scrolltoupper' -->
  22. <scroll-view class="chatFrame" refresher-default-style='none' refresher-enabled bindrefresherrefresh='scrolltoupper' refresher-triggered='{{triggered}}' scroll-y scroll-into-view="{{toView}}">
  23. <view style="height: 110rpx;"></view>
  24. <!-- 个人聊天 -->
  25. <MsgBubble wx:if="{{fimdialogtype!='话题'}}" wx:for="{{socketMsgQueue}}" isGroup='{{item.message.timsubjectid}}' groupData="{{item.message}}" 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}}' />
  26. <!-- 群聊聊天 -->
  27. <GambitMsgBubble wx:if="{{fimdialogtype=='话题'}}" wx:for="{{gambitList}}" wx:if="{{item.imsubjectcontent.length!=0}}" itemData='{{item}}' wx:key="index" id="item{{index}}" fimuserid='{{fimuserid}}' role="{{userid==fimuserid?true:false}}" />
  28. <view style="height: {{keyboardHeight}}px;"></view>
  29. <view id="bottom" style="height: {{iosX?'102':'85'}}px;"></view>
  30. </scroll-view>
  31. <!-- 底部输入 -->
  32. <view class="input-box" style="bottom:{{keyboardHeight}}px;" wx:if="{{fimuserid==userid||fimdialogtype!='话题'}}">
  33. <!-- 普通输入框 -->
  34. <!-- bindblur="sendMsg" -->
  35. <textarea class="input-text" bindfocus="textareaFocus" style="padding-right: {{timsubjectid==0?'25rpx':'150rpx'}};" 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'>
  36. <!-- 话题 -->
  37. <block wx:if="{{fimdialogtype=='话题'}}">
  38. <view class="gambit" wx:if="{{timsubjectid==0}}" catchtap="createGambit">
  39. 发起会话
  40. </view>
  41. <navigator wx:else url='#' class="gambit-end" catchtap="endGambit">
  42. <image src="/static/icon-20.png" mode="aspectFill"></image>
  43. </navigator>
  44. </block>
  45. </textarea>
  46. <view class="functionalZone" catchtap="selectionFunction">
  47. <image data-name='表情' mode="heightFix" src="/static/chatRoom/icon-01.png" />
  48. <image data-name='图片' mode="heightFix" src="/static/chatRoom/icon-02.png" />
  49. <image data-name='历史' mode="heightFix" src="/static/chatRoom/icon-03.png" />
  50. </view>
  51. <!-- 安全距离 -->
  52. <view style="height: {{iosX?'34':'0'}}rpx;"></view>
  53. </view>
  54. <!-- 表情-->
  55. <van-popup show="{{ memePopup }}" overlay='{{false}}' position='bottom' safe-area-inset-bottom='{{false}}'>
  56. <view class="popup-class">
  57. <scroll-view scroll-y class="meme-box">
  58. <view class="meme-item" wx:for="{{memeList}}" wx:key="index" data-item="{{item}}" catchtap="sendMeme">
  59. <image src="{{item.fobsurl}}" mode="aspectFill"></image>
  60. </view>
  61. </scroll-view>
  62. <view style="height: {{iosX?'34':'0'}}rpx;"></view>
  63. </view>
  64. </van-popup>
  65. <view wx:if="{{ memePopup }}" bindtap="endMemePopup" class="mask-layer"></view>