chat.wxml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <!--pages/list/list.wxml-->
  2. <import src="../../modules/chat-page/chat-item.wxml"/>
  3. <import src="../../modules/chat-input/chat-input.wxml"/>
  4. <import src="../../modules/chat-page/chat-page-status.wxml"/>
  5. <!-- <template is="chat-page-status" data="{{chatStatue,chatStatusContent}}"/> -->
  6. <!-- <x-scroll-view
  7. style="height:{{pageHeight}}px;width: 100%;display: flex;flex-direction: column;margin-top: 54rpx;"
  8. scroll-y="true"
  9. scroll-top="{{scrollTopVal}}"
  10. bindtap="resetInputStatus"
  11. refreshing="{{refreshing}}" nomore="{{nomore}}" bindpulldownrefresh="_onPullDownRefresh" bindscroll="_onScroll"
  12. >
  13. <view style='height:{{pageHeight +200}}px'>
  14. <block wx:for="{{chatItems}}" wx:key="{{index}}">
  15. <template is="chat-item"
  16. data="{{length:chatItems.length,index:index,item:item}}"/>
  17. </block>
  18. </view>
  19. </x-scroll-view>
  20. <template is="chat-input" data="{{inputObj,textMessage,showVoicePart:true}}"/> -->
  21. <scroll-view
  22. style="height:{{pageHeight -44}}px;width: 100%;display: flex;flex-direction: column;"
  23. scroll-y="true"
  24. scroll-top="{{scrollTopVal}}"
  25. bindtap="resetInputStatus"
  26. bindscrolltoupper="upper"
  27. bindscrolltolower="lower"
  28. bindscroll="scroll"
  29. >
  30. <block wx:for="{{chatItems}}" wx:key="{{index}}">
  31. <template is="chat-item"
  32. data="{{length:chatItems.length,index:index,item:item}}"/>
  33. </block>
  34. </scroll-view>
  35. <template is="chat-input" data="{{inputObj,textMessage,showVoicePart:true}}"/>