@@ -21,8 +21,7 @@ let toTimeText = (timeStamp, simple) => {
//不属于今年
timeText = formatDateTime(dateTime);
if(simple){
- console.log(timeText)
- timeText = timeText.substr(2,5);
+ timeText = timeText.substr(2,8);
}
return timeText;
@@ -21,7 +21,7 @@ let toTimeText = (timeStamp, simple) => {
@@ -7,7 +7,7 @@
<view class="chat-right">
<view class="chat-name">
<view class="chat-name-text">{{chat.showName}}</view>
- <view class="chat-time">{{$date.toTimeText(chat.lastSendTime)}}</view>
+ <view class="chat-time">{{$date.toTimeText(chat.lastSendTime,true)}}</view>
</view>
<view class="chat-content">
<view class="chat-at-text">{{atText}}</view>