聊天完成

This commit is contained in:
2020-08-07 16:55:00 +08:00
parent 4453742f3c
commit ceb2b8084d
4 changed files with 20 additions and 9 deletions

View File

@@ -152,7 +152,7 @@ export default {
this.getcarlist();
const user = uni.getStorageSync('userinfo');
console.log(user)
this.imService.login(user.userId,"","")
this.imService.login(user.userId,user.member_avatar,"")
this.imService.connectIM()
// 订单状态: 0:全部 1已付款未发货 2已发货 3已完成 4申请退款/退货 5已退款/退货 6拒绝退款/退货
},

View File

@@ -14,6 +14,7 @@
<view class="names">{{item.name}}</view>
<view class="content u-line-1">{{item.text}}</view>
<view class="times">{{item.time}}</view>
<view class="tishi" v-if="item.unReadMessage"></view>
</view>
<u-toast ref="uToast" />
</view>
@@ -60,6 +61,15 @@
</script>
<style lang="scss" scoped>
.tishi{
position: absolute;
bottom: 30rpx;
right: 30rpx;
width: 12rpx;
height: 12rpx;
border-radius: 50%;
background-color: #FF0000;
}
.u-search{
width: 690rpx;
margin: 0 auto;
@@ -73,6 +83,7 @@
position: relative;
border-bottom: 1px #ECECEC solid;
overflow: hidden;
position: relative;
zoom: 1;
.images{
width: 84rpx;

View File

@@ -134,8 +134,8 @@
});
setTimeout(() => {
uni.setNavigationBarColor({
backgroundColor : '#D02129',
frontColor : '#ffffff'
backgroundColor : '#FF780F',
frontColor : '#333333'
});
}, 10);
@@ -567,7 +567,7 @@
}
.chatInterface .message-item.self .content span{
color: #ffffff;
background:#D02129;
background:#FF780F;
word-break: break-all;
text-align: left;
max-width: 520rpx;