This commit is contained in:
2022-01-28 09:51:22 +08:00
parent 27c3f583f1
commit 572066de9a
2 changed files with 118 additions and 122 deletions

View File

@@ -126,6 +126,18 @@
}
});
},
methods: {
copyAddress() {
uni.setClipboardData({
data: this.userInfo.address,
success: () => {
uni.showToast({
icon: 'none',
title: '复制成功'
})
}
})
},
toPrivate() {
uni.redirectTo({
url: '/pages/im/private/index?conversationType=1&targetId=' + this.targetId
@@ -153,10 +165,11 @@
success() {
uni.switchTab({
url: '/pages/im/index'
});
})
}
})
})
}
});
});
}
})
},
@@ -196,7 +209,8 @@
})
},
setStatus() {
RongIMLib.setConversationNotificationStatus(this.conversationType, this.targetId, this.status, ({
RongIMLib.setConversationNotificationStatus(this.conversationType, this.targetId, this.status,
({
status
}) => {
this.status = !Boolean(status)
@@ -228,20 +242,6 @@
})
})
},
singleCall(e) {
CallLib.startSingleCall(this.targetId, e.type, '');
uni.redirectTo({
url: '/pages/im/private/call',
success: (err) => {
console.log('跳转视频通话成功');
},
fail: (err) => {
console.log('跳转视频页失败', err);
}
})
<<<<<<< HEAD
})
},
singleCall(e) {
CallLib.startSingleCall(this.targetId, e.type, '');
uni.redirectTo({
@@ -253,13 +253,9 @@
console.log('跳转视频页失败', err);
}
})
},
=======
},
>>>>>>> d3c351f58f900a4484c2811b73ef00ace4632e2b
}
}
};
}
</script>
<style lang="scss" scoped>

View File

@@ -8,7 +8,7 @@ import {
const initIm = (KEY) => {
RongIMLib.init(KEY)
CallLib.init()
CallLib.init({})
addListeners()
}