This commit is contained in:
唐明明
2022-02-18 10:50:30 +08:00
9 changed files with 97 additions and 22 deletions

View File

@@ -20,7 +20,8 @@
</view>
<u-alert type="warning" v-if="connection != 0" description="网络似乎断开了,请检查网络" :show-icon="true" />
<!-- content -->
<view v-if="$store.state.token !== ''">
<view v-if="$store.state.token !== ''">
<view @click="onDemo">临时测试用</view>
<conversation-list @refresh="getConversationList()" :conversations="conversations" />
</view>
<!-- 未登录 -->
@@ -71,7 +72,13 @@
onHide() {
uni.$off('onReceiveMessage')
},
methods: {
methods: {
onDemo(){
console.log('1111')
uni.navigateTo({
url: '/pages/im/chatDemo'
})
},
checkNewFriendPending() {
im.getPendingList((pendings) => {
this.hasNewFriends = pendings.length