1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <!-- pages/wechat2/wechat2.wxml -->
- <view class='news' bindtap="closeEmotionVisible">
- <view class="historycon">
- <scroll-view scroll-y="{{ true }}" scroll-into-view="{{scrollid}}" scroll-with-animation="{{true}}" style="height:{{scrollHeight}}" class="history">
- <!-- 历史记录部分start -->
- <view wx:if="{{historyList.length > 0}}">
- <view class="historyText">历史消息</view>
- <block wx:for="{{historyList}}" wx:key="index">
- <!-- 此处为other -->
- <view wx:if="{{item.type==1 && item.messageType != 1}}" id="historyscrollid{{index}}">
- <view>
- <text class='chat-time' style="display:none;">{{item.date}}</text>
- </view>
- <view class='other-record'>
- <image class='other-head-img' src='{{item.senderHeadPortrait}}'></image>
- <view class='other-record-content-triangle'></view>
- <view class='other-record-content'>{{item.content}}</view>
- </view>
- </view>
- <!-- 此处为结尾 -->
- <!-- 此处为own -->
- <view id="historyscrollid{{index}}" wx:elif="{{item.type==0 && item.messageType != 1}}">
- <view>
- <text class='chat-time' style="display:none;">{{item.date}}</text>
- </view>
- <view class='own-record'>
- <view class='own-record-content'>{{item.content}}</view>
- <view class='own-record-content-triangle'></view>
- <image class='own-head-img' src='{{item.senderHeadPortrait}}'></image>
- </view>
- </view>
- <view wx:else class="product-item-view" bindtap="goDetails" data-value="{{ item.transactionId }}">
- <view class="content-view">
- <view class="product-info-item">{{ item.object.info }}</view>
- <view class="product-send-time">{{ item.date }} 由你发起沟通</view>
- </view>
- </view>
- <!-- own结尾 -->
- </block>
- <view class="historyText" id="lastHistoryText">以上为历史消息</view>
- </view>
- <!-- 历史记录部分end -->
- <view wx:if="{{ newsList.length == 0}}" id="scrollid0"></view>
- <block wx:for="{{newsList}}" wx:key="index">
- <!-- 此处为other -->
- <view wx:if="{{item.type==1 && item.messageType != 1}}" id="scrollid{{index}}">
- <view>
- <text class='chat-time' style="display:none;">{{item.date}}</text>
- </view>
- <view class='other-record'>
- <image class='other-head-img' src='{{receivebaseInfo.avatar}}'></image>
- <view class='other-record-content-triangle'></view>
- <view class='other-record-content'>{{item.message}}</view>
- </view>
- </view>
- <!-- 此处为结尾 -->
- <!-- 此处为own -->
- <view id="scrollid{{index}}" wx:elif="{{item.type==0 && item.messageType != 1}}">
- <view>
- <text class='chat-time' style="display:none;">{{item.date}}</text>
- </view>
- <view class='own-record'>
- <view class='own-record-content'>{{item.message}}</view>
- <view class='own-record-content-triangle'></view>
- <image class='own-head-img' src='{{sendAvatar}}'></image>
- </view>
- </view>
- <!-- own结尾 -->
- <view wx:else class="product-item-view" bindtap="goDetails" data-value="{{ item.transactionId }}">
- <view class="content-view">
- <view class="product-info-item">{{ item.info }}</view>
- <view class="product-send-time">{{ item.date }} 由你发起沟通</view>
- </view>
- </view>
- </block>
- </scroll-view>
- </view>
- </view>
- <view class="sendmessage">
- <view class="send-message">
- <input class="chat-input" type="text" bindinput="bindChange" confirm-type="send" value='{{input}}' cursor-spacing="16px" hold-keyboard="{{true}}" placeholder="" bindconfirm="send" focus="{{inputShowed}}" />
- <image class="expression-msg-img" src="/images/home/expression-msg-icon.png" bind:tap="emotionChange" />
- <image class="img-msg-img" src="/images/home/img-msg-icon.png" bindtap="upImg"/>
- </view>
- <view class="faces-view-dialog clearfix" wx:if="{{emotionVisible}}">
- <view class="emotions-item fl" wx:for="{{connectemoji}}" wx:key="index" bindtap="addemotion" data-index="{{index}}">
- {{item}}
- </view>
- </view>
- <!-- <view class="emotions" wx:if="{{emotionVisible}}">
- <view class="emotions-item" wx:for="{{connectemoji}}" wx:key="index" bindtap="addemotion" data-index="{{index}}">
- {{item}}
- </view>
- </view> -->
- </view>
|