import type IChatViewPlugin from "@/plugins/IChatViewPlugin"; class ChatVoiceViewPlugin implements IChatViewPlugin { icon = 'cuIcon-phone' title = '语音通话' handle(chatId: string) { uni.navigateTo({ url: `/imcall/webRTCCallCtr?friendId=${chatId}&showVideo=false&isCaller=true` }) // if(uni.getSystemInfoSync().platform == "ios"){ // uni.navigateTo({ // //url: `/plugins/video/VideoCalling?friendId=${chatId}&showVideo=false` // url: `/imcall/iOSVideoCalling?friendId=${chatId}&showVideo=false&isCaller=true` // //url: `/plugins/video/iOSVideoCalling?friendId=${chatId}&showVideo=false` // }) // } // else{ // uni.navigateTo({ // //url: `/plugins/video/VideoCalling?friendId=${chatId}&showVideo=false` // url: `/imcall/adrVideoCalling?friendId=${chatId}&showVideo=false&isCaller=true` // //url: `/plugins/video/iOSVideoCalling?friendId=${chatId}&showVideo=false` // }) // } } } export default ChatVoiceViewPlugin