“HeShaoZe” hai 5 meses
pai
achega
937d8437b6

+ 11 - 12
lib/module/member/member_discount_countdown_widget.dart

@@ -192,20 +192,19 @@ class _MemberDiscountCountdownWidgetState extends State<MemberDiscountCountdownW
 
   Widget _createItemWidget(String timeStr) {
     return Container(
-      padding: EdgeInsets.only(left: 2.w,right: 2.w),
+      height: 15.w, // 确保容器有足够高度
+      alignment: Alignment.center,
       decoration: BoxDecoration(
-          borderRadius: BorderRadius.all(Radius.circular(3)),
-          color: "#8B79F3".color
+        borderRadius: BorderRadius.circular(3),
+        color: "#8B79F3".color,
       ),
-      child: Center(
-        child: Text(
-          timeStr,
-          style: TextStyle(
-            fontSize: 11.sp,
-            color: ColorName.white,
-            backgroundColor: "#8B79F3".color,
-            fontWeight: FontWeight.w500,
-          ),
+      padding: EdgeInsets.symmetric(horizontal: 2.w),
+      child: Text(
+        timeStr,
+        style: TextStyle(
+          fontSize: 11.sp,
+          color: ColorName.white,
+          fontWeight: FontWeight.w500,
         ),
       ),
     );

+ 1 - 1
lib/module/member/member_header_cycle_widget.dart

@@ -76,7 +76,7 @@ class _MemberHeaderCycleWidgetState extends State<MemberHeaderCycleWidget> {
                 decoration: BoxDecoration(
                     image: DecorationImage(
                       image: _images[realIndex],
-                      fit: BoxFit.fill,
+                      fit: BoxFit.cover,
                     )
                 ),
               );

+ 4 - 3
lib/module/member/member_page.dart

@@ -97,7 +97,7 @@ class MemberPage extends BasePage<MemberController> {
                             height: 174,
                           ),
                           Container(
-                            width: double.infinity,
+                            //width: double.infinity,
                             decoration: BoxDecoration(
                                 borderRadius: BorderRadius.only(
                                     topLeft: Radius.circular(20.w),
@@ -109,7 +109,6 @@ class MemberPage extends BasePage<MemberController> {
                               children: [
                                 SizedBox(height: 15.w),
                                 buildUserInfoView(),
-                                SizedBox(height: 26.w),
                                 SizedBox(height: 23.w),
                                 buildGoodsList(),
                                 SizedBox(height: 12.w),
@@ -498,7 +497,8 @@ class MemberPage extends BasePage<MemberController> {
               );
             }),
             Container(
-              height: 13.w,
+              height: 16.w,
+              width: MediaQuery.of(Get.context!).size.width - 77.w,
               child: Row(
                 // 主轴默认左对齐,通过Spacer推挤右侧内容
                 children: [
@@ -515,6 +515,7 @@ class MemberPage extends BasePage<MemberController> {
                     ),
                   ),
                   buildMemberCardVipDesc(),
+                  Spacer(),
                   Container(
                     child: MemberDiscountCountdownWidget(
                       onExpired: () {