|
@@ -6,7 +6,7 @@
|
|
|
<image class="avatar" src="{{ '../../../images/faces/' + item.data }}" style="width:25px; height:25px; margin:0 0 2px 0; float:left;" />
|
|
|
</template>
|
|
|
<template name="img">
|
|
|
- <image class="avatar" src="{{item.msg.data}}" style="width:90px; height:90px; margin:2px auto;" mode="aspectFit" bind:tap="previewImage" data-url="{{item.msg.data}}" />
|
|
|
+ <image class="avatar msg-img" src="{{item.msg.data}}" mode="aspectFit" bind:tap="previewImage" data-url="{{item.msg.data}}" />
|
|
|
</template>
|
|
|
<template name="video">
|
|
|
<video class="msg-video" bindfullscreenchange="onFullscreenchange" src="{{ item.msg.data }}" controls autoplay />
|
|
@@ -16,7 +16,7 @@
|
|
|
</template>
|
|
|
|
|
|
<!-- view 换成 scroll-view效果更好 用view是为了要stopPullDownRefresh -->
|
|
|
-<view scroll-y="true" class="{{view}} wrap {{isIPX?'scroll_view_X': ''}}" bind:tap="onTap" bindscroll="scrollmore" bindscrolltoupper="refresh" upper-threshold='-50' scroll-into-view="{{toView}}">
|
|
|
+<scroll-view scroll-y="true" class="{{view}} wrap {{isIPX?'scroll_view_X': ''}}" bind:tap="onTap" bindscroll="scrollmore" bindscrolltoupper="refresh" upper-threshold='-50' scroll-into-view="{{toView}}">
|
|
|
<view class="message" wx:for="{{chatMsg}}" wx:key="mid" id="{{item.mid}}">
|
|
|
<view class="{{item.style == 'self' ? 'row-right' : 'row-left'}}">
|
|
|
<image class="photo" src="{{item.info.fromInfo.avatarurl || imgPath +'/chat-user.png'}}" wx:if="{{item.style != 'self'}}"></image>
|
|
@@ -36,5 +36,5 @@
|
|
|
<image class="photo" src="{{item.info.fromInfo.avatarurl || imgPath +'/chat-user.png'}}" wx:if="{{item.style == 'self'}}"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
-</view>
|
|
|
+</scroll-view>
|
|
|
<view style="height: 1px;"></view>
|