diff --git a/App.vue b/App.vue
index 02f4053..6ccbc40 100644
--- a/App.vue
+++ b/App.vue
@@ -1,20 +1,29 @@
+ .pane_title {
+ font-size: 28rpx;
+ color: #999;
+ padding: 12rpx 44rpx;
+ background-color: #f8f8f8;
+ }
+
+ .application_list {
+ flex: 1;
+ height: 100% !important;
+ }
+ }
+ }
+
+ .view_all {
+ background-color: #fff;
+ padding: 44rpx 44rpx;
+ }
+ }
+
\ No newline at end of file
diff --git a/pages/contact/friendList/index.vue b/pages/contact/friendList/index.vue
index ca0d634..444ac4f 100644
--- a/pages/contact/friendList/index.vue
+++ b/pages/contact/friendList/index.vue
@@ -14,9 +14,26 @@
搜索
您被禁言至{{date(storeCurrentMemberInGroup.muteEndTime)}}
+
+
+
{{ latestMessage }}
+
@@ -47,6 +48,7 @@
parsedMessage = JSON.parse(this.source.latestMsg);
} catch (e) {}
if (!parsedMessage) return "";
+ //console.log(parsedMessage);
return getConversationContent(parsedMessage);
},
latestMessageTime() {
@@ -64,7 +66,7 @@
},
methods: {
clickConversationItem() {
- console.log(this.source);
+ //console.log(this.source);
prepareConversationState(this.source);
},
longtapConversationItem() {
@@ -148,6 +150,7 @@
.lastest_msg_wrap {
display: flex;
+ align-items: center;
font-size: 24rpx;
margin: 10rpx 0;
color: #666;
diff --git a/pages/conversation/conversationList/index.vue b/pages/conversation/conversationList/index.vue
index 9b3914f..69ba9cf 100644
--- a/pages/conversation/conversationList/index.vue
+++ b/pages/conversation/conversationList/index.vue
@@ -2,13 +2,15 @@
+
+
@@ -59,7 +61,12 @@
};
},
computed: {
- ...mapGetters(["storeConversationList", "storeIsSyncing", "storeProgress",'storeCurrentUserID']),
+ ...mapGetters([
+ "storeConversationList",
+ "storeIsSyncing",
+ "storeProgress",
+ 'storeCurrentUserID'
+ ]),
},
onReady() {
// #ifdef APP
@@ -87,33 +94,33 @@
},
showExtendMenu(item){
const _this = this;
- const menu = [item.recvMsgOpt===0 ? '关闭免打扰':'免打扰',item.isPrivateChat? '关闭阅后即焚':'开启阅后即焚','隐藏',item.isPinned ? '取消置顶':'置顶','删除'];
+ const menu = [item.recvMsgOpt===0 ? '免打扰':'关闭免打扰',item.isPrivateChat? '关闭阅后即焚':'开启阅后即焚','隐藏',item.isPinned ? '取消置顶':'置顶','删除'];
uni.showActionSheet({
itemList:menu,
success(e) {
switch(menu[e.tapIndex]){
case '免打扰':
- IMSDK.asyncApi('setConversation', IMSDK.uuid(), {
- conversationID: conversationId,
+ _this.setConversation({
+ conversationID: item.conversationID,
recvMsgOpt: 2
})
break;
case '关闭免打扰':
- IMSDK.asyncApi('setConversation', IMSDK.uuid(), {
- conversationID: conversationId,
+ _this.setConversation({
+ conversationID: item.conversationID,
recvMsgOpt: 0
})
break;
case '开启阅后即焚':
- IMSDK.asyncApi('setConversation', IMSDK.uuid(), {
- conversationID: conversationId,
+ _this.setConversation({
+ conversationID: item.conversationID,
isPrivateChat: true,
burnDuration:60
})
break;
case '关闭阅后即焚':
- IMSDK.asyncApi('setConversation', IMSDK.uuid(), {
- conversationID: conversationId,
+ _this.setConversation({
+ conversationID: item.conversationID,
isPrivateChat: false
})
break;
@@ -121,10 +128,16 @@
IMSDK.asyncApi('hideConversation', IMSDK.uuid(), item.conversationID)
break;
case '置顶':
- _this.setPinConversation(item.conversationID,true);
+ _this.setConversation({
+ conversationID: item.conversationID,
+ isPinned: true
+ });
break;
case '取消置顶':
- _this.setPinConversation(item.conversationID,false);
+ _this.setConversation({
+ conversationID: item.conversationID,
+ isPinned: false
+ })
break;
case '删除':
_this.deleteConversation(item.conversationID);
@@ -155,11 +168,9 @@
})
},
- setPinConversation(conversationId,status){
- IMSDK.asyncApi('setConversation', IMSDK.uuid(), {
- conversationID: conversationId,
- isPinned: status
- })
+
+ async setConversation(data){
+ await IMSDK.asyncApi('setConversation', IMSDK.uuid(), data);
},
onRefresh() {
diff --git a/pages/conversation/groupManage/index.vue b/pages/conversation/groupManage/index.vue
index 376ed24..ff68faf 100644
--- a/pages/conversation/groupManage/index.vue
+++ b/pages/conversation/groupManage/index.vue
@@ -6,8 +6,8 @@
-
-
+
+
@@ -42,7 +42,7 @@
},
onLoad() {
this.isMute = this.storeCurrentGroup.status == 3;
- //console.log(this.storeCurrentGroup);
+ console.log(this.storeCurrentGroup);
// IMSDK.asyncApi('getSpecifiedGroupsInfo', IMSDK.uuid(), [this.storeCurrentGroup.groupID]).then(res=>{
// console.log(res);
// }).catch(e=>{
diff --git a/pages/conversation/groupMemberList/index.vue b/pages/conversation/groupMemberList/index.vue
index d8bdebb..9496b42 100644
--- a/pages/conversation/groupMemberList/index.vue
+++ b/pages/conversation/groupMemberList/index.vue
@@ -53,6 +53,7 @@