فهرست منبع

[feat]修改埋点

云天逵 6 ماه پیش
والد
کامیت
0db7cf2317

+ 1 - 1
lib/handler/event_handler.dart

@@ -5,7 +5,7 @@ import '../sdk/gravity/gravity_helper.dart';
 import '../utils/toast_util.dart';
 
 class EventHandler {
-  static const bool isShowToast = true;
+  static const bool isShowToast = false;
 
   EventHandler._();
 

+ 9 - 3
lib/module/character_custom/character_custom_controller.dart

@@ -135,7 +135,7 @@ class CharacterCustomController extends BaseController {
       if (isSkipFromHistory.value) {
         // 跳到定制历史
         clickHistory();
-        isSkipFromHistory.value = false;
+
         return;
       }
       Get.back();
@@ -201,7 +201,7 @@ class CharacterCustomController extends BaseController {
     if (isSkipFromHistory.value) {
     //  跳到定制历史
       clickHistory();
-      isSkipFromHistory.value = false;
+
     }
   }
 
@@ -248,13 +248,19 @@ class CharacterCustomController extends BaseController {
 
   Future<void> clickHistory() async {
     AtmobLog.d(tag, "clickHistory");
+    if (isSkipFromHistory.value) {
+      isSkipFromHistory.value = false;
+    }else {
+      EventHandler.report(EventId.event_12007);
+    }
+
     var result = await CharacterCustomListPage.start();
     if (result != null) {
       AtmobLog.d(tag, "clickHistory");
       currentStep.value = result;
       isSkipFromHistory.value = true;
     }
-    EventHandler.report(EventId.event_12007);
+
 
   }
 

+ 1 - 0
lib/module/character_custom/list/character_custom_list_controller.dart

@@ -189,6 +189,7 @@ class CharacterCustomListController extends BaseController {
   }
 
   void clickStartCustom(){
+    EventHandler.report(EventId.event_12007);
     Get.back(result: StepType.hobbies);
   }
 }

+ 1 - 0
lib/module/intimacy_analyse/screenshot_reply/conversation_analysis/conversation_analysis_controller.dart

@@ -173,6 +173,7 @@ class ConversationAnalysisController extends BaseController {
   /// 点击解锁按钮
   void clickUnlockBtn(BuildContext context) async {
     // 跳转去会员活动页
+    EventHandler.report(EventId.event_10003);
     NewDiscountPage.start();
   }
 

+ 6 - 1
lib/module/mine/mine_controller.dart

@@ -124,7 +124,12 @@ class MineController extends BaseController {
 
     if (isLogin) {
       debugPrint('clickOnlineCustomerService');
-      EventHandler.report(EventId.event_14009);
+      if (type == FeedbackType.feedback) {
+        EventHandler.report(EventId.event_14009);
+      }else if (type == FeedbackType.complaint) {
+        EventHandler.report(EventId.event_14010);
+      }
+
       FeedbackPage.start(type);
     } else {
       EventHandler.report(EventId.event_14010);

+ 3 - 0
lib/module/profile/edit/profile_edit_controller.dart

@@ -12,7 +12,9 @@ import 'package:keyboard/utils/atmob_log.dart';
 import 'package:keyboard/utils/toast_util.dart';
 
 import '../../../data/bean/character_info.dart';
+import '../../../data/consts/event_report.dart';
 import '../../../data/repository/config_repository.dart';
+import '../../../handler/event_handler.dart';
 import '../../../resource/assets.gen.dart';
 import '../../../utils/error_handler.dart';
 import '../../../utils/http_handler.dart';
@@ -127,6 +129,7 @@ class ProfileEditController extends BaseController {
   }
 
   clickSaveButton() async {
+    EventHandler.report(EventId.event_06003);
     AtmobLog.d(tag, 'clickSaveButton');
     if (!_validateForm()) return;
 

+ 3 - 2
lib/module/profile/profile_controller.dart

@@ -67,7 +67,7 @@ class ProfileController extends BaseController {
   }
 
   clickOnChangeKeyboard(KeyboardInfo keyboardInfo) {
-    EventHandler.report(EventId.event_06004);
+
     AtmobLog.d(tag, 'clickOnChangeKeyboard: ${keyboardInfo.toJson()}');
 
     _currentCustomKeyboardInfo.value = keyboardInfo;
@@ -88,7 +88,8 @@ class ProfileController extends BaseController {
 
   clickSaveButton() async {
     AtmobLog.d(tag, "clickSaveButton");
-    EventHandler.report(EventId.event_06003);
+    EventHandler.report(EventId.event_06004);
+
     final keyboardInfo = _currentCustomKeyboardInfo.value;
     // if (_currentCustomKeyboardInfo.value.isChoose == true) {
     //   ToastUtil.show("当前键盘已选择");

+ 13 - 9
lib/module/zodiac_love_intimacy/zodiac_love_intimacy_page.dart

@@ -144,15 +144,19 @@ class ZodiacLoveIntimacyPage extends BasePage<ZodiacLoveIntimacyController> {
         preferredSize: Size.fromHeight(45.h),
         child: Stack(
           children: [
-            Container(
-              height: 41.h,
-              margin: EdgeInsets.only(top: 6.h),
-              // 顶部2边圆角
-              decoration: BoxDecoration(
-                color: Color(0xFFEBE7FD),
-                borderRadius: BorderRadius.only(
-                  topLeft: Radius.circular(45.r),
-                  topRight: Radius.circular(45.r),
+            Positioned(
+              left: 0,
+              right: 0,
+              top: 6.h,
+              child: Container(
+                height: 41.h,
+                // 顶部2边圆角
+                decoration: BoxDecoration(
+                  color: Color(0xFFEBE7FD),
+                  borderRadius: BorderRadius.only(
+                    topLeft: Radius.circular(45.r),
+                    topRight: Radius.circular(45.r),
+                  ),
                 ),
               ),
             ),