Bläddra i källkod

[fit]无照片增加提示

云天逵 9 månader sedan
förälder
incheckning
951bdb6634

+ 4 - 0
lib/base/base_photo_controller.dart

@@ -164,6 +164,10 @@ abstract class BasePhotoController extends BaseController {
 
   // 点击删除
   void clickDelete() async {
+    if (selectedPhotosIds.isEmpty) {
+      ToastUtil.show('Please select the picture');
+      return;
+    }
     EventHandler.report(EventId.event_03008,
         params: {EventId.type: getPhotosType().name});
     print('BasePhotoController getPhotosType().toString() ${getPhotosType().toString()}');

+ 1 - 1
lib/module/people_photo/people_photo_controller.dart

@@ -46,7 +46,7 @@ class PeoplePhotoController extends BasePhotoController {
   }
   void clickJumpSelect() {
     if (selectedPhotosIds.isEmpty) {
-      ToastUtil.show('请选择图片');
+      ToastUtil.show('Please select the picture');
       return;
     }
     debugPrint('PeoplePhotoController clickJumpSelected');

+ 1 - 1
lib/module/similar_photo/similar_photo_controller.dart

@@ -122,7 +122,7 @@ class SimilarPhotoController extends BasePhotoController {
   }
   void clickJumpSelect() {
     if (selectedPhotosIds.isEmpty) {
-      ToastUtil.show('请选择图片');
+      ToastUtil.show('Please select the picture');
       return;
     }
     debugPrint('SimilarPhotoController clickJumpSelected');