删除埋点,im和客服
This commit is contained in:
@@ -3,11 +3,8 @@ import 'package:get/get.dart';
|
||||
import 'package:jydj/hj_model/user/user_info_model.dart';
|
||||
import 'package:jydj/hj_utils/api_service/mine_service.dart';
|
||||
import 'package:jydj/hj_utils/const.dart';
|
||||
import 'package:jydj/im_manager/im_manager.dart';
|
||||
import 'package:jydj/im_manager/model/im_message_resp.dart';
|
||||
import 'package:jydj/tools_base/debug_log.dart';
|
||||
import 'package:jydj/tools_base/global_store/store.dart';
|
||||
import 'package:jydj/tools_base/toast.dart';
|
||||
|
||||
class UserCenterController extends GetxController with GetTickerProviderStateMixin {
|
||||
// ===== 数据 =====
|
||||
@@ -76,19 +73,6 @@ class UserCenterController extends GetxController with GetTickerProviderStateMix
|
||||
update();
|
||||
}
|
||||
|
||||
void gotoPrivateChat() {
|
||||
if (globalStore.isMe(model?.uid)) {
|
||||
showToast("不能给自己私信哦~");
|
||||
return;
|
||||
}
|
||||
// 私信走 IM(替换原 HTTP MineChatPage)
|
||||
jumpToChatDetail(IMSessionModel(
|
||||
peerId: model?.uid ?? 0,
|
||||
nickName: model?.name ?? '',
|
||||
avatar: model?.portrait,
|
||||
));
|
||||
}
|
||||
|
||||
/// 关注/取关成功后更新本地状态;[isFollow] 为操作后的最新状态(与 [FollowButton] 回调一致)
|
||||
void onUserFollowSuccess(bool isFollow) {
|
||||
if (model == null) return;
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:jydj/assets_tool/app_colors.dart';
|
||||
import 'package:jydj/assets_tool/images.dart';
|
||||
import 'package:jydj/extension/extensions.dart';
|
||||
import 'package:jydj/hj_page/user_center_page/user_center_logic.dart';
|
||||
import 'package:jydj/hj_utils/screen.dart';
|
||||
import 'package:jydj/hj_utils/widget_util.dart';
|
||||
import 'package:jydj/tools_base/global_store/store.dart';
|
||||
import 'package:jydj/tools_base/widget/follow_button.dart';
|
||||
|
||||
@@ -102,24 +100,9 @@ class UserCenterHeader extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
|
||||
//私信 + 关注,仅他人主页展示
|
||||
//关注,仅他人主页展示
|
||||
List<Widget> _actionButtons() {
|
||||
return [
|
||||
InkWell(
|
||||
enableFeedback: false,
|
||||
onTap: logic.gotoPrivateChat,
|
||||
child: Container(
|
||||
width: 32,
|
||||
height: 24,
|
||||
alignment: Alignment.center,
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(3),
|
||||
color: const Color(0x1AF68804),
|
||||
),
|
||||
child: Text('私信', style: textStyle(10, AppColors.actionRed, FontWeight.w400)),
|
||||
),
|
||||
),
|
||||
12.sizeBoxW,
|
||||
FollowButton(
|
||||
mediaId: (logic.model?.uid ?? 0).toString(),
|
||||
followType: FollowEnum.user,
|
||||
|
||||
Reference in New Issue
Block a user