diff --git a/.DS_Store b/.DS_Store
index 18bfff6..c24ebdb 100644
Binary files a/.DS_Store and b/.DS_Store differ
diff --git a/pages.json b/pages.json
index 08af724..6c1ebad 100644
--- a/pages.json
+++ b/pages.json
@@ -430,7 +430,7 @@
"path": "pages/im/friends/info",
"name": "imFriendsInfo",
"style": {
- "navigationBarTitleText": "用户资料"
+ "navigationBarTitleText": ""
}
},
{
diff --git a/pages/im/components/sentMessageBar.vue b/pages/im/components/sentMessageBar.vue
index eaa1ebb..fbcd97b 100644
--- a/pages/im/components/sentMessageBar.vue
+++ b/pages/im/components/sentMessageBar.vue
@@ -66,6 +66,7 @@
},
onSuccess() {
this.$emit('onSuccess')
+ this.chatText = { value: "", cursor: 0}
},
// 处理弹出层
onHidePopus(){
diff --git a/pages/im/friends/info.vue b/pages/im/friends/info.vue
index 4032fc4..bcaf5cb 100644
--- a/pages/im/friends/info.vue
+++ b/pages/im/friends/info.vue
@@ -3,9 +3,10 @@
+ :size="rpx2px(100)" bg-color="#fff" @click="previeImg(userInfo.portraitUrl)" />
- {{ contact(targetId).name }} ({{ userInfo.name }})
+ {{ contact(targetId).name }}
+ 昵称:{{ userInfo.name }}
地址:{{ userInfo.address }}
@@ -37,7 +38,7 @@
@@ -127,9 +128,9 @@
this.userInfo = res
// 获取到用户信息之后,去检查一下要不要更新
this.$store.dispatch('updateContact', res)
- uni.setNavigationBarTitle({
- title: res.name
- })
+ // uni.setNavigationBarTitle({
+ // title: res.name
+ // })
})
RongIMLib.getConversationNotificationStatus(this.conversationType, this.targetId, ({
status
@@ -156,6 +157,9 @@
})
}
})
+ },
+ previeImg(url){
+ console.log(url)
},
toPrivate() {
uni.navigateTo({
diff --git a/pages/im/private/chat.vue b/pages/im/private/chat.vue
index 1397ccc..24f48ce 100644
--- a/pages/im/private/chat.vue
+++ b/pages/im/private/chat.vue
@@ -59,13 +59,15 @@
}
}
}
+ },
+ onShow() {
+ uni.setNavigationBarTitle({
+ title: this.contact(this.targetId).name
+ })
},
- onLoad(e) {
+ onLoad(e) {
this.targetId = e.targetId
this.userInfo = this.$store.getters.contactInfo(this.targetId)
- uni.setNavigationBarTitle({
- title: this.contact(this.targetId).name
- })
// 获取消息列表
this.getMessageList()
// 监听新消息
diff --git a/static/.DS_Store b/static/.DS_Store
index 0958084..d0621f7 100644
Binary files a/static/.DS_Store and b/static/.DS_Store differ
diff --git a/static/imgs/tel-call.png b/static/imgs/tel-call.png
new file mode 100644
index 0000000..dd40959
Binary files /dev/null and b/static/imgs/tel-call.png differ