index.wxml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <view class="gambit-msg {{role?'r':'l'}}">
  2. <!-- 头像 -->
  3. <image class="user-img" wx:if="{{itemData.sendfrom.headpic!=''}}" src="{{itemData.sendfrom.headpic}}" />
  4. <image class="user-img" wx:else src="https://bwj.obs.cn-east-2.myhuaweicloud.com/resources/WeChat/userCenter/userImg.png" />
  5. <!-- 内容盒子 -->
  6. <view class="contents-box">
  7. <block wx:for="{{itemData.imsubjectcontent}}" wx:key="index">
  8. <view class="msg-bubble" wx:if="{{item.fcontent!=''}}">{{item.fcontent}}</view>
  9. <view class="msg-file" wx:if="{{item.attinfos.length>=1}}" wx:for="{{item.attinfos}}" wx:for-index="i" wx:for-item="it" wx:key="i">
  10. <image class="{{it.ftype=='emoji'?'emoji':'image'}}" data-type="{{it.ftype}}" data-url="{{it.fobsurl}}" catchtap="preViewImage" src="{{it.fobsurl}}" mode="widthFix" />
  11. </view>
  12. </block>
  13. <block wx:if="{{isShowBottom}}">
  14. <view class="hr"></view>
  15. <view class="bottom" wx:if="{{role}}" bindtap="toStats">
  16. <text data-type='回复'>查看回复详情</text>
  17. <text data-type='已读' style="margin-left: 40rpx;">查看已读/未读详情</text>
  18. </view>
  19. <view wx:else class="bot-button">
  20. <van-button custom-class="call" catchtap="writBack">回复</van-button>
  21. </view>
  22. </block>
  23. <view class="time">
  24. {{itemData.closedate}}
  25. </view>
  26. </view>
  27. <!-- 透明度为0,结构和上方一直 用来撑盒子高度 -->
  28. <view class="contents-box" style="position: relative; left: 0; opacity: 0; pointer-events: none;">
  29. <block wx:for="{{itemData.imsubjectcontent}}" wx:key="index">
  30. <view class="msg-bubble" wx:if="{{item.fcontent!=''}}">{{item.fcontent}}</view>
  31. <view class="msg-file" wx:if="{{item.attinfos.length>=1}}" wx:for="{{item.attinfos}}" wx:for-index="i" wx:for-item="it" wx:key="i">
  32. <image class="{{it.ftype=='emoji'?'emoji':'image'}}" data-type="{{it.ftype}}" data-url="{{it.fobsurl}}" catchtap="preViewImage" src="{{it.fobsurl}}" mode="widthFix" />
  33. </view>
  34. </block>
  35. <block wx:if="{{isShowBottom}}">
  36. <view class="hr"></view>
  37. <view class="bottom" wx:if="{{role}}" bindtap="toStats">
  38. <text data-type='回复'>查看回复详情</text>
  39. <text data-type='已读' style="margin-left: 40rpx;">查看已读/未读详情</text>
  40. </view>
  41. <view wx:else class="bot-button">
  42. <van-button custom-class="call" catchtap="writBack">回复</van-button>
  43. </view>
  44. </block>
  45. <view class="time">
  46. {{itemData.closedate}}
  47. </view>
  48. </view>
  49. </view>
  50. <!--
  51. <button style="margin-top: 84rpx;" bindtap="change">
  52. 切换
  53. </button> -->