Преглед на файлове

删除已读未读

release/210823_需求对对碰
王饶冀 преди 3 години
родител
ревизия
28985a4bf5
променени са 4 файла, в които са добавени 28 реда и са изтрити 8 реда
  1. 1
    1
      pages/index/components/listDetails/Details.js
  2. 1
    1
      pages/index/index.wxss
  3. 22
    2
      pages/msgModule/wechat2/wechat2.js
  4. 4
    4
      pages/msgModule/wechat2/wechat2.wxml

+ 1
- 1
pages/index/components/listDetails/Details.js Целия файл

@@ -24,7 +24,7 @@ Page({
total: 0,
// 是否加载数据,true加载,false不加载
onRefresh: true,
currentIndex: 0,
currentIndex: -1,
// 当前登录器用户登录ID
userCustomerId: null,
businessCommunicationDemandId: "",

+ 1
- 1
pages/index/index.wxss Целия файл

@@ -114,7 +114,7 @@
padding: 0 15rpx;
}
.tab-view .tab-li.more{
padding: 0 14rpx;
padding: 0 12rpx;
}
.tab-view .tab-span {
display: inline-block;

+ 22
- 2
pages/msgModule/wechat2/wechat2.js Целия файл

@@ -137,8 +137,8 @@ Page({
// duration: 2000
// })
})
wx.onSocketError(res=>{
wx.onSocketError(res => {
console.log(`打印异常`)
console.log(res);
})
@@ -149,6 +149,8 @@ Page({
list = _this.data.newsList;
let _data = JSON.parse(res.data);
_data.chatRecord = JSON.parse(_data.chatRecord);

console.log(_data, '_data');
let msgData = {};
// type 0 自己 1 对方
if (_data.chatRecord.chatRecord.sender != _this.data.receiveMemberId) {
@@ -336,6 +338,24 @@ Page({
send: function () {
var _this = this;
if (_this.data.input) {
wx.sendSocketMessage({
data: _this.data.input,
success: (res) => {
console.log(`发送成功`)
console.log(res)
// let { sendMemberId, receiveMemberId, businessCommunicationDemandId } = _this.data;
// let params = {
// sender: receiveMemberId, // 发件人Id
// addressee: sendMemberId, // 收件人Id
// transactionId: businessCommunicationDemandId, // 产品ID
// content: _this.data.input
// };
},
fail: (err) => {
console.log('sendSocketMessage', '失败')
}
})
return
this.sendmsgApi(_this.data.input, 0);
}
},

+ 4
- 4
pages/msgModule/wechat2/wechat2.wxml Целия файл

@@ -16,7 +16,7 @@
<view class='other-record-content-triangle'></view>
<view class='other-record-content' style="user-select:text!important;-webkit-user-select:text">
<text selectable="{{true}}" user-select='true'>{{item.content}}</text>
<view class="msg-isRead left">{{ item.isRead ? '已读' : '未读' }}</view>
<!-- <view class="msg-isRead left">{{ item.isRead ? '已读' : '未读' }}</view> -->
</view>
</view>
</view>
@@ -46,7 +46,7 @@
<view class='other-record-content-triangle'></view>
<view class='other-record-content'>
<image class='content-img' src="{{ mangerUrl + item.content }}" data-url="{{ mangerUrl + item.content }}" bindtap="viewImg" mode="widthFix"></image>
<view class="msg-isRead left">{{ item.isRead ? '已读' : '未读' }}</view>
<!-- <view class="msg-isRead left">{{ item.isRead ? '已读' : '未读' }}</view> -->
</view>
</view>
</view>
@@ -89,7 +89,7 @@
<view class='other-record-content-triangle'></view>
<view class='other-record-content' style="user-select:text!important;-webkit-user-select:text">
<text selectable="{{true}}">{{item.message}}</text>
<view class="msg-isRead left">{{ item.isRead ? '已读' : '未读' }}</view>
<!-- <view class="msg-isRead left">{{ item.isRead ? '已读' : '未读' }}</view> -->
</view>
</view>
</view>
@@ -117,7 +117,7 @@
<view class='other-record-content-triangle'></view>
<view class='other-record-content'>
<image class='content-img' src="{{ mangerUrl + item.message }}" data-url="{{ mangerUrl + item.message }}" bindtap="viewImg" mode="widthFix"></image>
<view class="msg-isRead left">{{ item.isRead ? '已读' : '未读' }}</view>
<!-- <view class="msg-isRead left">{{ item.isRead ? '已读' : '未读' }}</view> -->
</view>
</view>
</view>

Loading…
Отказ
Запис