diff --git a/App.vue b/App.vue
index e4cd2d0..4b2d614 100644
--- a/App.vue
+++ b/App.vue
@@ -331,6 +331,10 @@ export default {
/** nim sdk 登录 */
nim.V2NIMLoginService.login(opts.account, opts.token).then(async () => {
+ console.log("登录成功");
+ nim.V2NIMLoginService.on('onKickedOffline', (res) => {
+ console.log("被踢下线", res);
+ });
// #ifdef APP-PLUS
/** 初始化音视频通话插件*/
nimCallKit.initConfig(
@@ -345,6 +349,7 @@ export default {
if (ret.code != 200) {
// callkit init失败
} else {
+
nimCallKit.login(
{
account: opts.account,
@@ -355,6 +360,7 @@ export default {
// 登录失败
} else {
// 登录成功
+
}
}
);
@@ -396,7 +402,8 @@ export default {
console.log("音视频通话插件退出失败", error);
}
// 退出登录
- uni.$UIKitNIM.V2NIMLoginService.logout().then(() => {
+ uni.$UIKitNIM.V2NIMLoginService.logout().then((res) => {
+ console.log("退出登录", res);
uni.$UIKitStore.destroy();
customReLaunch({
url: "/pages/Login/index",
diff --git a/api/api.js b/api/api.js
index 329b707..195ce04 100644
--- a/api/api.js
+++ b/api/api.js
@@ -493,9 +493,21 @@ const api = {
meetingV2Video(data){
return request('/expertAPI/meetingV2Video', data, 'post', false);
},
-
-
-
+ listGroupSendMsg(data){
+ return request('/expertAPI/listGroupSendMsg', data, 'post', false);
+ },
+ addGroupSendMsg4YunXin(data){
+ return request('/expertAPI/addGroupSendMsg4YunXin', data, 'post', false);
+ },
+ quickReplyList(data){
+ return request('/expertAPI/QuickReplyList', data, 'post', false);
+ },
+ addQuickReply(data){
+ return request('/expertAPI/addQuickReply', data, 'post', false);
+ },
+ deleteQuickReply(data){
+ return request('/expertAPI/deleteQuickReply', data, 'post', false);
+ },
}
diff --git a/pages.json b/pages.json
index fa5d51e..14dac99 100644
--- a/pages.json
+++ b/pages.json
@@ -1047,6 +1047,66 @@
}
}
},
+ {
+ "path": "groupSend/groupSend",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTitleText": "uni-app分页",
+ "app": {
+ "bounce": "none"
+ }
+ }
+ },
+ {
+ "path": "patientGroup/patientGroup",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTitleText": "uni-app分页",
+ "app": {
+ "bounce": "none"
+ }
+ }
+ },
+ {
+ "path": "quickReply/quickReply",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTitleText": "uni-app分页",
+ "app": {
+ "bounce": "none"
+ }
+ }
+ },
+ {
+ "path": "article/article",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTitleText": "uni-app分页",
+ "app": {
+ "bounce": "none"
+ }
+ }
+ },
+ {
+ "path": "searchArticle/searchArticle",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTitleText": "uni-app分页",
+ "app": {
+ "bounce": "none"
+ }
+ }
+ },
+ {
+ "path": "video/video",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTitleText": "uni-app分页",
+ "app": {
+ "bounce": "none"
+ }
+ }
+ },
{
"path": "groupMessage/groupMessage",
"style": {
diff --git a/pages/my/my.vue b/pages/my/my.vue
index 65839c4..f18e982 100644
--- a/pages/my/my.vue
+++ b/pages/my/my.vue
@@ -304,7 +304,7 @@
url="/pages_app/patientGroup/patientGroup"
break;
case 'groupMessage':
- url="/pages_app/groupMessage/groupMessage"
+ url="/pages_chat/groupMessage/groupMessage"
break;
case 'qrcode':
url="/pages_app/myCode/myCode"
diff --git a/pages_app/selectPatient/selectPatient.vue b/pages_app/selectPatient/selectPatient.vue
index 8c66861..375c7f7 100644
--- a/pages_app/selectPatient/selectPatient.vue
+++ b/pages_app/selectPatient/selectPatient.vue
@@ -88,7 +88,7 @@
const updateSelectedDetail = () => {
selectedDetail.value = selectedIds.value.map(id => {
const p = patientList.value.find(x => x.uuid === id)
- return { uuid: id, realName: p?.realName || '', photo: p?.photo || '' }
+ return { uuid: id, realName: p?.realName || '', photo: p?.photo || '',nickName: p?.nickName || '' }
})
}
@@ -103,7 +103,7 @@
// 如果未选中,则选中
selectedIds.value.push(id)
const p = patientList.value.find(x => x.uuid === id)
- selectedDetail.value.push({ uuid: id, realName: p?.realName || '', photo: p?.photo || '' })
+ selectedDetail.value.push({ uuid: id, realName: p?.realName || '', photo: p?.photo || '',nickName: p?.nickName || '' })
}
}
@@ -116,7 +116,9 @@
const pages = getCurrentPages()
const curr = pages[pages.length - 1]
const ec = curr?.getOpenerEventChannel?.()
- ec?.emit && ec.emit('onPatientsSelected', payload)
+ ec?.emit && ec.emit('onPatientsSelected', payload);
+ console.log(selectedDetail.value)
+ uni.$emit('selectedChatPatientsSingle', { patients: selectedDetail.value });
} catch (e) {}
// 兜底:使用本地存储
try { uni.setStorageSync('patientsSelectedPayload', payload) } catch (e) {}
diff --git a/pages_app/selectPatientSingle/selectPatientSingle.vue b/pages_app/selectPatientSingle/selectPatientSingle.vue
index 81e05cf..f616d18 100644
--- a/pages_app/selectPatientSingle/selectPatientSingle.vue
+++ b/pages_app/selectPatientSingle/selectPatientSingle.vue
@@ -88,7 +88,7 @@
const updateSelectedDetail = () => {
selectedDetail.value = selectedIds.value.map(id => {
const p = patientList.value.find(x => x.uuid === id)
- return { uuid: id, realName: p?.realName || '', photo: p?.photo || '' }
+ return { uuid: id, realName: p?.realName || '', photo: p?.photo || '',nickname: p?.nickname || '' }
})
}
@@ -105,7 +105,7 @@
selectedIds.value.push(id)
const p = patientList.value.find(x => x.uuid === id)
selectedDetail.value.push({ uuid: id, realName: p?.realName || '', photo: p?.photo || '' })
- let payload = { uuid: id, realName: p?.realName || '', photo: p?.photo || '' }
+ let payload = { uuid: id, realName: p?.realName || '', photo: p?.photo || '',nickname: p?.nickname || '' }
const pages = getCurrentPages()
const curr = pages[pages.length - 1]
const ec = curr?.getOpenerEventChannel?.()
diff --git a/pages_chat/article/article.vue b/pages_chat/article/article.vue
new file mode 100644
index 0000000..8ea9599
--- /dev/null
+++ b/pages_chat/article/article.vue
@@ -0,0 +1,668 @@
+
+