业务交流通
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

wechat2.wxml 5.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <!-- pages/wechat2/wechat2.wxml -->
  2. <view class='news' bindtap="closeEmotionVisible">
  3. <view class="historycon">
  4. <scroll-view scroll-y="{{ true }}" scroll-into-view="{{scrollid}}" scroll-with-animation="{{true}}" style="height:{{scrollHeight}}" class="history">
  5. <!-- 历史记录部分start -->
  6. <view wx:if="{{historyList.length > 0}}">
  7. <view class="historyText">历史消息</view>
  8. <block wx:for="{{historyList}}" wx:key="index">
  9. <!-- 此处为other -->
  10. <view wx:if="{{item.type==1 && item.messageType != 1}}" id="historyscrollid{{index}}">
  11. <view>
  12. <text class='chat-time' style="display:none;">{{item.date}}</text>
  13. </view>
  14. <view class='other-record'>
  15. <image class='other-head-img' src='{{item.senderHeadPortrait}}'></image>
  16. <view class='other-record-content-triangle'></view>
  17. <view class='other-record-content'>{{item.content}}</view>
  18. </view>
  19. </view>
  20. <!-- 此处为结尾 -->
  21. <!-- 此处为own -->
  22. <view id="historyscrollid{{index}}" wx:elif="{{item.type==0 && item.messageType != 1}}">
  23. <view>
  24. <text class='chat-time' style="display:none;">{{item.date}}</text>
  25. </view>
  26. <view class='own-record'>
  27. <view class='own-record-content'>{{item.content}}</view>
  28. <view class='own-record-content-triangle'></view>
  29. <image class='own-head-img' src='{{item.senderHeadPortrait}}'></image>
  30. </view>
  31. </view>
  32. <view wx:else class="product-item-view" bindtap="goDetails" data-value="{{ item.transactionId }}">
  33. <view class="content-view">
  34. <view class="product-info-item">{{ item.object.info }}</view>
  35. <view class="product-send-time">{{ item.date }} 由你发起沟通</view>
  36. </view>
  37. </view>
  38. <!-- own结尾 -->
  39. </block>
  40. <view class="historyText" id="lastHistoryText">以上为历史消息</view>
  41. </view>
  42. <!-- 历史记录部分end -->
  43. <view wx:if="{{ newsList.length == 0}}" id="scrollid0"></view>
  44. <block wx:for="{{newsList}}" wx:key="index">
  45. <!-- 此处为other -->
  46. <view wx:if="{{item.type==1 && item.messageType != 1}}" id="scrollid{{index}}">
  47. <view>
  48. <text class='chat-time' style="display:none;">{{item.date}}</text>
  49. </view>
  50. <view class='other-record'>
  51. <image class='other-head-img' src='{{receivebaseInfo.avatar}}'></image>
  52. <view class='other-record-content-triangle'></view>
  53. <view class='other-record-content'>{{item.message}}</view>
  54. </view>
  55. </view>
  56. <!-- 此处为结尾 -->
  57. <!-- 此处为own -->
  58. <view id="scrollid{{index}}" wx:elif="{{item.type==0 && item.messageType != 1}}">
  59. <view>
  60. <text class='chat-time' style="display:none;">{{item.date}}</text>
  61. </view>
  62. <view class='own-record'>
  63. <view class='own-record-content'>{{item.message}}</view>
  64. <view class='own-record-content-triangle'></view>
  65. <image class='own-head-img' src='{{sendAvatar}}'></image>
  66. </view>
  67. </view>
  68. <!-- own结尾 -->
  69. <view wx:else class="product-item-view" bindtap="goDetails" data-value="{{ item.transactionId }}">
  70. <view class="content-view">
  71. <view class="product-info-item">{{ item.info }}</view>
  72. <view class="product-send-time">{{ item.date }} 由你发起沟通</view>
  73. </view>
  74. </view>
  75. </block>
  76. </scroll-view>
  77. </view>
  78. </view>
  79. <view class="sendmessage">
  80. <view class="send-message">
  81. <input class="chat-input" type="text" bindinput="bindChange" confirm-type="send" value='{{input}}' cursor-spacing="16px" hold-keyboard="{{true}}" placeholder="" bindconfirm="send" focus="{{inputShowed}}" />
  82. <image class="expression-msg-img" src="/images/home/expression-msg-icon.png" bind:tap="emotionChange" />
  83. <image class="img-msg-img" src="/images/home/img-msg-icon.png" bindtap="upImg"/>
  84. </view>
  85. <view class="faces-view-dialog clearfix" wx:if="{{emotionVisible}}">
  86. <view class="emotions-item fl" wx:for="{{connectemoji}}" wx:key="index" bindtap="addemotion" data-index="{{index}}">
  87. {{item}}
  88. </view>
  89. </view>
  90. <!-- <view class="emotions" wx:if="{{emotionVisible}}">
  91. <view class="emotions-item" wx:for="{{connectemoji}}" wx:key="index" bindtap="addemotion" data-index="{{index}}">
  92. {{item}}
  93. </view>
  94. </view> -->
  95. </view>