diff --git a/lib/mine/mine_vip/mine_vip_core.dart b/lib/mine/mine_vip/mine_vip_core.dart index 89094041..953ea947 100644 --- a/lib/mine/mine_vip/mine_vip_core.dart +++ b/lib/mine/mine_vip/mine_vip_core.dart @@ -183,7 +183,7 @@ class _MineVipCore extends State { ), Column( children: [ - SizedBox(height: 40), + SizedBox(height: 40.h), Container( child:Row( children: [ @@ -302,8 +302,8 @@ class _MineVipCore extends State { Row( children: [ Container( - width: 4, - height: 18, + width: 4.w, + height: 18.h, decoration: BoxDecoration( gradient: new LinearGradient( begin: Alignment.bottomCenter, @@ -353,8 +353,8 @@ class _MineVipCore extends State { Row( children: [ Container( - width: 4, - height: 18, + width: 4.w, + height: 18.h, decoration: BoxDecoration( gradient: new LinearGradient( begin: Alignment.bottomCenter, @@ -384,7 +384,7 @@ class _MineVipCore extends State { if (vipRuleDetails?.qa != null && vipRuleDetails.qa != "") Container( color: Colors.white, - padding: EdgeInsets.only(left: 8), + padding: EdgeInsets.only(left: 8.w), child: Html( data: vipRuleDetails?.qa ?? "", customImageRenders: { @@ -418,8 +418,8 @@ class _MineVipCore extends State { Row( children: [ Container( - width: 4, - height: 18, + width: 4.w, + height: 18.h, decoration: BoxDecoration( gradient: new LinearGradient( begin: Alignment.bottomCenter, @@ -449,7 +449,7 @@ class _MineVipCore extends State { MImage( vipRuleDetails?.contrast ?? "", width: double.infinity, - height: 281, + height: 281.h, errorSrc: "assets/image/default_1.webp", fadeSrc: "assets/image/default_1.webp", ), @@ -483,8 +483,8 @@ class _MineVipCore extends State { Row( children: [ Container( - width: 4, - height: 18, + width: 4.w, + height: 18.h, decoration: BoxDecoration( gradient: new LinearGradient( begin: Alignment.bottomCenter, @@ -560,7 +560,7 @@ class _MineVipCore extends State { ), width: MediaQuery.of(context).size.width, padding: EdgeInsets.all(16), - height: 54, + height: 54.h, alignment: Alignment.center, child: Text( "${S.of(context).lijikaitong}¥${ranks.length > checkIndex ? ranks[checkIndex].price : ""}/永久", @@ -630,11 +630,11 @@ class _MineVipCore extends State { //水平子Widget之间间距 crossAxisSpacing: 35, //垂直子Widget之间间距 - mainAxisSpacing: 10, + mainAxisSpacing: 12, //子Widget宽高比例 childAspectRatio: AppUtils.textScale(context) > 1 ? (1 - ((AppUtils.textScale(context) - 1))) - : 0.85, + : 0.80, ), itemBuilder: (context, index) { return GestureDetector( diff --git a/lib/retrofit/data/miNiDetail.dart b/lib/retrofit/data/miNiDetail.dart index e5c02685..65f600fa 100644 --- a/lib/retrofit/data/miNiDetail.dart +++ b/lib/retrofit/data/miNiDetail.dart @@ -71,6 +71,7 @@ class MiNiDetail { String detail; int isDelete; String printerFlag; + String thumbnailImg; dynamic materialId; List imgs; StoreDTOBean storeDTO; @@ -118,6 +119,7 @@ class MiNiDetail { miNiDetailBean.detail = map['detail']; miNiDetailBean.isDelete = map['isDelete']; miNiDetailBean.printerFlag = map['printerFlag']; + miNiDetailBean.thumbnailImg = map['thumbnailImg']; miNiDetailBean.materialId = map['materialId']; miNiDetailBean.imgs = []..addAll( (map['imgs'] as List ?? []).map((o) => o.toString()) @@ -171,6 +173,7 @@ class MiNiDetail { "detail" :detail, "isDelete": isDelete, "printerFlag": printerFlag, + "thumbnailImg": thumbnailImg, "materialId": materialId, "imgs": imgs, "storeDTO": storeDTO, diff --git a/lib/view_widget/mine_vip_entry.dart b/lib/view_widget/mine_vip_entry.dart index f3d68cf9..e48975be 100644 --- a/lib/view_widget/mine_vip_entry.dart +++ b/lib/view_widget/mine_vip_entry.dart @@ -71,7 +71,7 @@ class MineVipEntry extends StatelessWidget { Widget widget = Container( width: double.infinity, padding: EdgeInsets.only(top: 12.h, bottom: 22.h, left: 12.w, right: 12.w), - margin: EdgeInsets.only(top: 23.h,left: 16.w,right: 16.w,bottom:15.h), + margin: EdgeInsets.only(top: 23.h,left: 13.5.w,right: 13.5.w,bottom:15.h), decoration: BoxDecoration( color: Color(0xFF3D3D5D), borderRadius: BorderRadius.circular(6),