This commit is contained in:
zoujiandong
2026-03-17 18:59:46 +08:00
parent 4a22470f38
commit b5cc11ddd3
9 changed files with 600 additions and 62 deletions
+12 -3
View File
@@ -171,13 +171,16 @@ const selectedPatientCount = computed(() => {
// 合计数量:只计算去重后的患者数量
const totalSelectedCount = computed(() => selectedPatientCount.value);
onLoad(() => {
const from = ref('');
onLoad((options) => {
uni.showLoading({
title: '加载中...',
mask: true
});
fetchGroupList();
if(options.from){
from.value = options.from;
}
});
const fetchGroupList = async () => {
@@ -311,7 +314,11 @@ const confirmGroup = () => {
}
try {
uni.navigateTo({
if(from.value){
uni.$emit('selectedChatPatientsSingle', { patients: dedupPatients });
uni.navigateBack();
}else{
uni.navigateTo({
url: '/pages_chat/groupSend/groupSend',
success: (res) => {
try {
@@ -322,6 +329,8 @@ const confirmGroup = () => {
}
}
});
}
} catch (e) {
console.error('跳转失败', e);
uni.showToast({ title: '跳转失败,请重试', icon: 'none' });