chat.wxml 1.0 KB

12345678910111213141516171819202122232425262728
  1. <!--pages/list/list.wxml-->
  2. <import src="../../modules/chat-page/chat-item.wxml"/>
  3. <import src="../../modules/chat-page/chat-page-status.wxml"/>
  4. <scroll-view
  5. style="height:{{pageHeight}}px;width: 100%;display: flex;flex-direction: column;padding-bottom: 120rpx;"
  6. scroll-y="true"
  7. scroll-top="{{scrollTopVal}}"
  8. bindtap="resetInputStatus">
  9. <block wx:for="{{chatItems}}" wx:key="{{id}}">
  10. <template is="chat-item"
  11. data="{{length:chatItems.length,index:index,item:item}}"/>
  12. </block>
  13. </scroll-view>
  14. <chat-input
  15. id="chatInput"
  16. min-voice-time="{{1}}"
  17. max-voice-time="{{60}}"
  18. start-time-down="{{54}}"
  19. tabBarHeight="{{0}}"
  20. format="mp3"
  21. extra-array="{{extraArr}}"
  22. bind:extraClickEvent="onExtraClickEvent"
  23. bind:extraItemClickEvent="onExtraItemClickEvent"
  24. bind:voiceRecordEvent="onVoiceRecordEvent"
  25. bind:sendMessageEvent="onSendMessageEvent"></chat-input>
  26. <!--<template is="chat-input" data="{{inputObj,textMessage,showVoicePart:true}}"/>-->