diff --git a/im-web/src/components/common/FullImage.vue b/im-web/src/components/common/FullImage.vue
index 7d85f42..99538e7 100644
--- a/im-web/src/components/common/FullImage.vue
+++ b/im-web/src/components/common/FullImage.vue
@@ -2,7 +2,7 @@
-
![]()
+
@@ -33,16 +33,16 @@
+
\ No newline at end of file
diff --git a/im-web/src/components/common/HeadImage.vue b/im-web/src/components/common/HeadImage.vue
index e7ca1d4..8086d62 100644
--- a/im-web/src/components/common/HeadImage.vue
+++ b/im-web/src/components/common/HeadImage.vue
@@ -1,9 +1,9 @@
-
![]()
+
- {{name?.substring(0,2).toUpperCase()}}
+ {{name?.substring(0,2).toUpperCase()}}
+
@@ -14,13 +14,14 @@
name: "headImage",
data() {
return {
- colors: ["#5daa31", "#c7515a", "#e03697", "#85029b",
- "#c9b455", "#326eb6"]
+ colors: ["#5daa31", "#c7515a", "#e03697", "#85029b",
+ "#c9b455", "#326eb6"
+ ]
}
},
props: {
- id:{
+ id: {
type: Number
},
size: {
@@ -33,41 +34,41 @@
height: {
type: Number
},
- radius:{
+ radius: {
type: String,
default: "50%"
},
url: {
type: String
},
- name:{
+ name: {
type: String,
default: null
},
- online:{
+ online: {
type: Boolean,
- default:false
+ default: false
},
- isShowUserInfo: {
- type: Boolean,
- default: true
- }
+ isShowUserInfo: {
+ type: Boolean,
+ default: true
+ }
},
- methods:{
- showUserInfo(e){
- if(!this.isShowUserInfo) return;
- if(this.id && this.id>0){
+ methods: {
+ showUserInfo(e) {
+ if (!this.isShowUserInfo) return;
+ if (this.id && this.id > 0) {
this.$http({
url: `/user/find/${this.id}`,
method: 'get'
}).then((user) => {
- this.$store.commit("setUserInfoBoxPos",e);
- this.$store.commit("showUserInfoBox",user);
+ this.$store.commit("setUserInfoBoxPos", e);
+ this.$store.commit("showUserInfoBox", user);
})
}
}
},
- computed:{
+ computed: {
avatarImageStyle() {
let w = this.width ? this.width : this.size;
let h = this.height ? this.height : this.size;
@@ -84,12 +85,12 @@
border-radius: ${this.radius};
`
},
- textColor(){
+ textColor() {
let hash = 0;
- for (var i = 0; i< this.name.length; i++) {
+ for (var i = 0; i < this.name.length; i++) {
hash += this.name.charCodeAt(i);
}
- return this.colors[hash%this.colors.length];
+ return this.colors[hash % this.colors.length];
}
}
}
@@ -106,16 +107,16 @@
display: block;
}
- .avatar-text{
+ .avatar-text {
color: white;
display: flex;
align-items: center;
justify-content: center;
//border: 1px solid #ccc;
- //box-shadow: var(--im-box-shadow);
+ //box-shadow: var(--im-box-shadow);
}
- .online{
+ .online {
position: absolute;
right: -5px;
bottom: 0;
@@ -126,4 +127,4 @@
border: 2px solid white;
}
}
-
+
\ No newline at end of file
diff --git a/im-web/src/components/rtc/RtcPrivateVideo.vue b/im-web/src/components/rtc/RtcPrivateVideo.vue
index 3e01946..44001ea 100644
--- a/im-web/src/components/rtc/RtcPrivateVideo.vue
+++ b/im-web/src/components/rtc/RtcPrivateVideo.vue
@@ -15,7 +15,7 @@
+ :url="friend.headImage" :isShowUserInfo="false" radius="0">
diff --git a/im-web/src/view/Friend.vue b/im-web/src/view/Friend.vue
index 4199860..ca23360 100644
--- a/im-web/src/view/Friend.vue
+++ b/im-web/src/view/Friend.vue
@@ -24,7 +24,7 @@
@@ -181,13 +181,13 @@
.friend-list-box {
display: flex;
flex-direction: column;
- background: var(--im-background);
+ background: var(--im-background);
.friend-list-header {
- height: 50px;
- display: flex;
- align-items: center;
- padding: 0 8px;
+ height: 50px;
+ display: flex;
+ align-items: center;
+ padding: 0 8px;
.add-btn {
padding: 5px !important;
@@ -207,22 +207,21 @@
flex-direction: column;
.friend-header {
- height: 50px;
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 0 12px;
- font-size: var(--im-font-size-larger);
- border-bottom: var(--im-border);
- box-sizing: border-box;
+ height: 50px;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 0 12px;
+ font-size: var(--im-font-size-larger);
+ border-bottom: var(--im-border);
+ box-sizing: border-box;
}
.friend-detail {
display: flex;
padding: 50px 80px 20px 80px;
text-align: center;
-
-
+
.info-item {
margin-left: 20px;
background-color: #ffffff;
@@ -240,4 +239,4 @@
}
}
}
-
+
\ No newline at end of file
diff --git a/im-web/src/view/Group.vue b/im-web/src/view/Group.vue
index fb25c40..813c59a 100644
--- a/im-web/src/view/Group.vue
+++ b/im-web/src/view/Group.vue
@@ -29,8 +29,8 @@
-
+
发消息
@@ -328,7 +328,7 @@ export default {
}
.avatar-uploader {
- --width: 120px;
+ --width: 160px;
text-align: left;
.el-upload {
diff --git a/im-web/src/view/Home.vue b/im-web/src/view/Home.vue
index 2255b4b..4bc93ad 100644
--- a/im-web/src/view/Home.vue
+++ b/im-web/src/view/Home.vue
@@ -82,7 +82,7 @@ export default {
return {
showSettingDialog: false,
lastPlayAudioTime: new Date().getTime() - 1000,
- isFullscreen: false
+ isFullscreen: true
}
},
methods: {
@@ -409,9 +409,9 @@ export default {
.navi-bar {
--icon-font-size: 22px;
- --width: 56px;
+ --width: 60px;
width: var(--width);
- background: var(--im-color-primary);
+ background: var(--im-color-primary-light-1);
padding-top: 20px;
.navi-bar-box {