From 68dbdc67d23d2f0fdc6a023efabbd8713a5c3dc8 Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Sat, 19 Jun 2021 20:02:40 +0800
Subject: [PATCH] 聊天功能完善
---
components/contacts/contacts.vue | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/components/contacts/contacts.vue b/components/contacts/contacts.vue
index d2f3bad..7a93d3d 100644
--- a/components/contacts/contacts.vue
+++ b/components/contacts/contacts.vue
@@ -4,12 +4,12 @@
<view class="left" @click="chating">
<view class="top">
<view class="userImg">
- <img class="img" :src="require('../../static/images/index/friend-list/kiko.jpg')">
+ <img class="img" :src=Pdata.avatar>
</view>
- <view class="t-type">{{Pdata.name}}</view>
- <view class="t-id">{{Pdata.lastTime}}</view>
+ <view class="t-type">{{Pdata.recipientName}}</view>
+ <view class="t-id">{{Pdata.postTime}}</view>
</view>
- <view class="bottom">{{Pdata.LastMessage}}</view>
+ <view class="bottom">{{Pdata.postMessage}}</view>
</view>
</view>
</view>
@@ -60,7 +60,7 @@
var datas = this.Pdata;
//alert(datas.name)
uni.navigateTo({
- url: '/pages/groupChat/chating?'
+ url: '/pages/groupChat/chating?chatID=' + datas.recipientId.toString()
});
},
onClose() { //触摸遮罩事件
--
Gitblit v1.9.3