Browse Source

fix service bug

glglove 1 month ago
parent
commit
99c7850c96

+ 2 - 2
packages/cpt_services/lib/components/status_card_item.dart

@@ -45,9 +45,9 @@ class StausCardItem extends HookConsumerWidget {
 
     return Container(
       width: double.infinity,
-      height: cardHeight!.ap,
+      height: cardHeight,
       child: Padding(
-        padding: EdgeInsets.only(left: 18.0, right: 18.0, top: 10.0.ap, bottom: 10.0.ap),
+        padding: EdgeInsets.only(left: 18.0, right: 18.0, top: 10, bottom: 10.0),
         child: Column(
           crossAxisAlignment: CrossAxisAlignment.start,
           children: [

+ 2 - 2
packages/cpt_services/lib/modules/services/history/history_page.dart

@@ -117,7 +117,7 @@ class HistoryPage extends HookConsumerWidget {
 
   Widget _buildHistoryItem(BuildContext context, WidgetRef ref, GarageSaleHistoryList item, vm, String cleanServiceType, int serviceStatusCode) {
     return Container(
-      margin: const EdgeInsets.only(top: 9),
+      margin: const EdgeInsets.only(top: 11),
       width: double.infinity,
       decoration: BoxDecoration(
         color: context.appColors.whiteBG,
@@ -132,7 +132,7 @@ class HistoryPage extends HookConsumerWidget {
       ),
       child: StausCardItem(
         key: UniqueKey(),
-        cardHeight: 125.5,
+        cardHeight: 150.0,
         item: item,
         onClickCard: (dynamic value) async {},
       ),

+ 1 - 1
packages/cpt_services/lib/modules/services/inProgress/in_progress_page.dart

@@ -125,7 +125,7 @@ class InProgressPage extends HookConsumerWidget {
       ),
       child: StausCardItem(
         key: UniqueKey(),
-        cardHeight: 140.0,
+        cardHeight: 120.0,
         item: item,
         onClickCard: (dynamic value) async {
           // Log.d("点击了喜欢按钮  --id:${item['id']}- $collectionValue");

+ 1 - 1
packages/cpt_services/lib/modules/services/repair_history/history_page.dart

@@ -112,7 +112,7 @@ class RepairHistoryPage extends HookConsumerWidget {
 
   Widget _buildRepairHistoryItem(BuildContext context, WidgetRef ref, ServiceInProgressList item, vm, String cleanServiceType, int serviceStatusCode){
     return Container(
-      margin: const EdgeInsets.only(top: 9),
+      margin: const EdgeInsets.only(top: 10),
       width: double.infinity,
       decoration: BoxDecoration(
         color: context.appColors.whiteBG,

+ 2 - 2
packages/cpt_services/lib/modules/services/repair_homeService/service_card_item.dart

@@ -192,8 +192,8 @@ class CollectionWidget extends HookConsumerWidget {
               ),
               MyLoadImage(
                 isCollectionState.value? Assets.communityLikeActive: Assets.communityLike,
-                width: 14.1,
-                height: 14,
+                width: isCollectionState.value? 15.5:14.1,
+                height: isCollectionState.value? 14:14,
               )
             ]
           // 点击 收餐/取消收藏

+ 2 - 3
packages/cpt_services/lib/modules/services/repair_inProgress/in_progress_page.dart

@@ -117,7 +117,7 @@ class RepairInProgressPage extends HookConsumerWidget {
       String cleanServiceType,
       int serviceStatusCode) {
     return Container(
-      margin: const EdgeInsets.only(top: 9),
+      margin: const EdgeInsets.only(top: 10),
       width: double.infinity,
       decoration: BoxDecoration(
         color: context.appColors.whiteBG,
@@ -185,14 +185,13 @@ class RepairInProgressPage extends HookConsumerWidget {
                     mainAxisAlignment: MainAxisAlignment.spaceBetween,
                     children: [
                       MyTextView(
-                        item?.merchantNotes ?? "-",
+                        "The staff will contact you soon",
                         fontSize: 14,
                         maxLines: 1,
                         isFontRegular: true,
                         textAlign: TextAlign.left,
                         textColor: context.appColors.textDarkGray,
                       ),
-               
                     ],
                   ),
                 ],