1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <import src="../../modules/chat-page/chat-item.wxml"/>
- <import src="../../modules/chat-input/chat-input.wxml"/>
- <import src="../../modules/chat-page/chat-page-status.wxml"/>
- {{chatStatue,chatStatusContent}}
- {{pageHeight}}
- {{scrollTopVal}}
- {{refreshing}}{{nomore}}
- {{pageHeight +200}}
- {{chatItems}}{{index}}
- {{length:chatItems.length,index:index,item:item}}
- {{inputObj,textMessage,showVoicePart:true}}
- <scroll-view
- style="height:{{pageHeight -44}}px;width: 100%;display: flex;flex-direction: column;"
- scroll-y="true"
- scroll-top="{{scrollTopVal}}"
- bindtap="resetInputStatus"
- bindscrolltoupper="upper"
- bindscrolltolower="lower"
- bindscroll="scroll"
- >
- <block wx:for="{{chatItems}}" wx:key="{{index}}">
- <template is="chat-item"
- data="{{length:chatItems.length,index:index,item:item}}"/>
- </block>
- </scroll-view>
- <template is="chat-input" data="{{inputObj,textMessage,showVoicePart:true}}"/>
|