From 32540a8ad78630b5596fbff24aa561270004a5a2 Mon Sep 17 00:00:00 2001
From: lmx <824295981@qq.com>
Date: Fri, 6 Feb 2026 20:59:42 +0800
Subject: [PATCH] =?UTF-8?q?=E9=9B=86=E6=88=90=E8=9E=8D=E4=BA=911?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App.vue | 118 ++--
manifest.json | 18 +-
pages.json | 23 +-
pages/room/incom.vue | 353 ++++++++++++
pages/room/room - 副本.nvue | 497 -----------------
pages/room/room.nvue | 1028 ++++++++++++++++++-----------------
stores/user.js | 7 +-
7 files changed, 974 insertions(+), 1070 deletions(-)
create mode 100644 pages/room/incom.vue
delete mode 100644 pages/room/room - 副本.nvue
diff --git a/App.vue b/App.vue
index 7722c59..9d7af53 100644
--- a/App.vue
+++ b/App.vue
@@ -1,72 +1,72 @@
+ /* common css for page */
+ // uni-page-body,
+ // html,
+ // body,
+ // page {
+ // width: 100% !important;
+ // height: 100% !important;
+ // overflow: hidden;
+ // }
+
\ No newline at end of file
diff --git a/manifest.json b/manifest.json
index 2c77095..7acf74e 100644
--- a/manifest.json
+++ b/manifest.json
@@ -112,27 +112,13 @@
}
},
"nativePlugins" : {
- "RongCloud-Beauty" : {
- "__plugin_info__" : {
- "name" : "RCUniBeauty",
- "description" : "融云基础版美颜插件,服务于 RCUniRtc 或 RCUniCall",
- "platforms" : "Android,iOS",
- "url" : "https://ext.dcloud.net.cn/plugin?id=7982",
- "android_package_name" : "",
- "ios_bundle_id" : "",
- "isCloud" : true,
- "bought" : 1,
- "pid" : "7982",
- "parameters" : {}
- }
- },
"RongCloud-Call" : {
"__plugin_info__" : {
"name" : "RCUniCall",
"description" : "融云实时音视频 SDK uni 原生插件",
"platforms" : "Android,iOS",
"url" : "https://ext.dcloud.net.cn/plugin?id=6372",
- "android_package_name" : "uni.app.UNI9EFDC69WWCC",
+ "android_package_name" : "uni.app.UNI9EFDC69",
"ios_bundle_id" : "",
"isCloud" : true,
"bought" : 1,
@@ -146,7 +132,7 @@
"description" : "融云即时通讯 SDK uni 原生插件V2",
"platforms" : "Android,iOS",
"url" : "https://ext.dcloud.net.cn/plugin?id=9227",
- "android_package_name" : "uni.app.UNI9EFDC69WWCC",
+ "android_package_name" : "uni.app.UNI9EFDC69",
"ios_bundle_id" : "",
"isCloud" : true,
"bought" : 1,
diff --git a/pages.json b/pages.json
index c002ee4..926a115 100644
--- a/pages.json
+++ b/pages.json
@@ -441,6 +441,16 @@
}
}
},
+ {
+ "path" : "pages/room/room",
+ "style" :
+ {
+ "navigationBarTitleText": "Room",
+ "enablePullDownRefresh": false,
+ "navigationStyle":"custom",
+ "gestureBack":"NO"
+ }
+ },
// #endif
// #ifdef H5
{
@@ -459,14 +469,11 @@
},
// #endif
{
- "path" : "pages/room/room",
- "style" :
- {
- "navigationBarTitleText": "Room",
- "enablePullDownRefresh": false,
- "navigationStyle":"custom",
- "gestureBack":"NO"
- }
+ "path": "pages/room/incom",
+ "style": {
+ "navigationBarTitleText": "来电",
+ "navigationStyle": "custom"
+ }
},
{
"path": "pages/adduser/index",
diff --git a/pages/room/incom.vue b/pages/room/incom.vue
new file mode 100644
index 0000000..de92acb
--- /dev/null
+++ b/pages/room/incom.vue
@@ -0,0 +1,353 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{callerName}}
+ {{ localSession.mediaType === 0 ? '语音通话' : "视频通话" }}
+ {{callStatus}}
+
+
+
+
+
+
+
+
+ 拒绝
+
+
+
+
+
+
+ 接听
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/room/room - 副本.nvue b/pages/room/room - 副本.nvue
deleted file mode 100644
index b9e1af9..0000000
--- a/pages/room/room - 副本.nvue
+++ /dev/null
@@ -1,497 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- {{curCamera?'关闭':'开启'}}摄像头
-
-
- 切换摄像头
-
-
- {{isMicrophone?'关闭':'开启'}}麦克风
-
-
- {{isEnableSpeaker?'关闭':'开启'}}扬声器
-
-
-
- 挂断
- 切换语音
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pages/room/room.nvue b/pages/room/room.nvue
index 1244e66..7b79b4f 100644
--- a/pages/room/room.nvue
+++ b/pages/room/room.nvue
@@ -1,459 +1,361 @@
-
-
-
-
- {{callDuration}}
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
- {{targetUser}}
- 通话中
-
-
-
-
-
-
-
-
- 切换
-
-
-
-
-
-
-
+
+
-
+
-
+
- {{isMicrophoneOn ? '关闭' : '开启'}}麦克风
+
+ {{isMicrophone?'关闭':'开启'}}麦克风
+
-
-
+
-
+
- {{isCameraOn ? '关闭' : '开启'}}摄像头
+
+ {{curCamera?'关闭':'开启'}}摄像头
+
-
-
+
-
-
- {{isSpeakerOn ? '开启' : '关闭'}}扬声器
-
-
-
-
-
-
-
-
- {{mediaType === 'video' ? '切换语音' : '切换视频'}}
+
+ {{isEnableSpeaker?'关闭':'开启'}}扬声器
+
-
-
-
+
+
+
+
+
+
+
+ {{mediaTypeCur === 'video' ? '切换语音' : '切换视频'}}
+
+
+
+
挂断
-
-
+
-
+
- 翻转
-
-
-
-
-
-
-
-
-
-
- {{callerName}}
- 视频通话邀请
-
-
-
-
-
-
- 拒绝
-
-
-
-
-
- 接听
+
+ 翻转
+
-
-
-
\ No newline at end of file
diff --git a/stores/user.js b/stores/user.js
index 86908d8..b07eb13 100644
--- a/stores/user.js
+++ b/stores/user.js
@@ -222,11 +222,13 @@ export const useUserStore = defineStore('user', () => {
// //呼入
uni.setStorageSync('room-parameters', {
callType: 'in',
- mediaType: session.mediaType === 0 ? 'audio' : 'video'
+ mediaType: session.mediaType === 0 ? 'audio' : 'video',
+ callId: res.data.callId,
+ mine: res.data.mine.userId
});
//跳转.nvue
uni.navigateTo({
- url:'/pages/room/room'
+ url:'/pages/room/incom'
});
})
@@ -258,6 +260,7 @@ export const useUserStore = defineStore('user', () => {
res.data.reason
)
uni.$emit('OnCallDisconnected');
+ uni.navigateBack()
})
}