|
|
@@ -5,6 +5,7 @@ import 'package:electronic_assistant/data/repositories/account_repository.dart';
|
|
|
import 'package:electronic_assistant/handler/event_handler.dart';
|
|
|
import 'package:electronic_assistant/module/record/constants.dart';
|
|
|
import 'package:electronic_assistant/module/record/record_handler.dart';
|
|
|
+import 'package:electronic_assistant/module/record/view.dart';
|
|
|
import 'package:electronic_assistant/module/store/view.dart';
|
|
|
import 'package:electronic_assistant/module/talk/view.dart';
|
|
|
import 'package:electronic_assistant/utils/desktop_shortcut_utils.dart';
|
|
|
@@ -26,17 +27,32 @@ class RecordController extends BaseController {
|
|
|
|
|
|
final RxBool isHideIntegrationInsufficient = RxBool(false);
|
|
|
|
|
|
+ RecordFromType? fromType;
|
|
|
+
|
|
|
@override
|
|
|
void onInit() {
|
|
|
super.onInit();
|
|
|
recordHandler.init();
|
|
|
+ _initArgs();
|
|
|
+ }
|
|
|
+
|
|
|
+ void _initArgs() {
|
|
|
+ fromType = Get.arguments?['fromType'];
|
|
|
+ if (fromType == RecordFromType.home) {
|
|
|
+ EventHandler.report(EventId.event_100010,
|
|
|
+ params: {EventId.id: EventId.id_001});
|
|
|
+ } else if (fromType == RecordFromType.shortcutIcon) {
|
|
|
+ EventHandler.report(EventId.event_100010,
|
|
|
+ params: {EventId.id: EventId.id_002});
|
|
|
+ } else if (fromType == RecordFromType.shortcutInstruction) {
|
|
|
+ EventHandler.report(EventId.event_100010,
|
|
|
+ params: {EventId.id: EventId.id_003});
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@override
|
|
|
void onReady() async {
|
|
|
super.onReady();
|
|
|
- EventHandler.report(EventId.event_100010,
|
|
|
- params: {EventId.id: EventId.id_001});
|
|
|
if (!await RecordHandler.hasUnUploadRecord()) {
|
|
|
_startOrContinueRecord();
|
|
|
}
|
|
|
@@ -131,7 +147,7 @@ class RecordController extends BaseController {
|
|
|
}
|
|
|
|
|
|
void onAvailableTimeClick() {
|
|
|
- StorePage.start();
|
|
|
+ StorePage.start(fromType: StoreFromType.record);
|
|
|
}
|
|
|
|
|
|
void onCloseAvailableTimeClick() {
|