feat(3.8): 进群
This commit is contained in:
@ -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]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user