diff --git a/im-uniapp/common/emotion.js b/im-uniapp/common/emotion.js index 7e567e3..8937732 100644 --- a/im-uniapp/common/emotion.js +++ b/im-uniapp/common/emotion.js @@ -21,10 +21,6 @@ let textToImg = (emoText) => { return emoText; } let path = textToPath(emoText); - // #ifdef MP - // 微信小程序不能有前面的'/' - path = path.slice(1); - // #endif let img = ``; return img; diff --git a/im-uniapp/components/chat-message-item/chat-message-item.vue b/im-uniapp/components/chat-message-item/chat-message-item.vue index ba54d33..2f43b00 100644 --- a/im-uniapp/components/chat-message-item/chat-message-item.vue +++ b/im-uniapp/components/chat-message-item/chat-message-item.vue @@ -23,7 +23,7 @@ - @@ -306,6 +306,7 @@ export default { .send-image { min-width: 200rpx; max-width: 420rpx; + height: 350rpx; cursor: pointer; border-radius: 4px; } diff --git a/im-uniapp/im.scss b/im-uniapp/im.scss index 1f2856c..53bd6c6 100644 --- a/im-uniapp/im.scss +++ b/im-uniapp/im.scss @@ -28,6 +28,39 @@ uni-button[size='mini'] { font-size: $im-font-size-smaller !important; } +// #ifdef MP-WEIXIN +// wx小程序只有button,没有uni-botton +button { + font-size: $im-font-size !important; +} + +button[type='primary'] { + color: #fff !important; + background-color: $im-color-primary !important; +} + +button[type='primary'][plain] { + color: $im-color-primary !important; + border: 1px solid $im-color-primary; + background-color: transparent; +} + +button[type='warn'] { + color: #fff !important; + background-color: $im-color-danger !important; +} + +button[type='warn'][plain] { + color: $im-color-danger !important; + border: 1px solid $im-color-danger !important; + background-color: transparent !important; +} + +button[size='mini'] { + font-size: $im-font-size-smaller !important; +} +// #endif + .button-hover[type='primary'] { color: #fff !important; background-color: $im-color-primary-dark-1 !important; diff --git a/im-uniapp/pages/friend/friend-add.vue b/im-uniapp/pages/friend/friend-add.vue index 15231f0..ea21de4 100644 --- a/im-uniapp/pages/friend/friend-add.vue +++ b/im-uniapp/pages/friend/friend-add.vue @@ -13,7 +13,13 @@ - {{ user.nickName }} + @@ -90,22 +96,45 @@ export default { overflow: hidden; .user-item { - height: 120rpx; + height: 100rpx; display: flex; margin-bottom: 1rpx; position: relative; - padding: 0 30rpx; + padding: 18rpx 20rpx; align-items: center; background-color: white; white-space: nowrap; - .user-name { + .user-info { flex: 1; + display: flex; + flex-direction: column; padding-left: 20rpx; font-size: $im-font-size; - line-height: 60rpx; white-space: nowrap; overflow: hidden; + + .user-name { + display: flex; + flex: 1; + font-size: $im-font-size-large; + white-space: nowrap; + overflow: hidden; + align-items: center; + + .uni-tag { + text-align: center; + margin-left: 5rpx; + padding: 1px 5px; + } + } + + .nick-name { + display: flex; + font-size: $im-font-size-smaller; + color: $im-text-color-lighter; + padding-top: 8rpx; + } } } diff --git a/im-uniapp/pages/group/group-info.vue b/im-uniapp/pages/group/group-info.vue index 9944bd4..1477d4d 100644 --- a/im-uniapp/pages/group/group-info.vue +++ b/im-uniapp/pages/group/group-info.vue @@ -46,9 +46,9 @@ 修改群聊资料 > - - - + + + diff --git a/im-uniapp/pages/login/login.vue b/im-uniapp/pages/login/login.vue index b8e5faf..a6f65c9 100644 --- a/im-uniapp/pages/login/login.vue +++ b/im-uniapp/pages/login/login.vue @@ -1,7 +1,7 @@