feat(3.8): 进群

This commit is contained in:
chashaobao
2026-01-18 10:04:21 +08:00
parent 4d699baca9
commit 6fd07f9071
8 changed files with 126 additions and 8 deletions

View File

@ -8,10 +8,9 @@ import { PageType, PageUrl, RoleType } from '@/constants/app';
import useCityOperators from '@/hooks/use-city-operators';
import useInviteCode from '@/hooks/use-invite-code';
import { switchRoleType } from '@/utils/app';
import { openCustomerServiceChat } from '@/utils/common';
import { getCurrentCityCode } from '@/utils/location';
import { getInviteCodeFromQueryAndUpdate } from '@/utils/partner';
import { getPageQuery } from '@/utils/route';
import { getPageQuery, navigateTo } from '@/utils/route';
import { getCommonShareMessage } from '@/utils/share';
import { checkCityCode } from '@/utils/user';
import './index.less';
@ -38,10 +37,11 @@ export default function GroupV2() {
if (!checkCityCode(cityCode)) {
return;
}
const group = cityOperators.find(g => String(g.cityCode) === cityCode);
if (group) {
openCustomerServiceChat(group.groupLink);
}
navigateTo(PageUrl.GroupDetail, { cityCode });
// const group = cityOperators.find(g => String(g.cityCode) === cityCode);
// if (group) {
// openCustomerServiceChat(group.groupLink);
// }
},
[cityOperators]
);