Browse Source

我的更改

zyh
w-R 3 years ago
parent
commit
e26fe495c1
  1. 28
      lib/mine/mine_vip/mine_vip_core.dart
  2. 3
      lib/retrofit/data/miNiDetail.dart
  3. 2
      lib/view_widget/mine_vip_entry.dart

28
lib/mine/mine_vip/mine_vip_core.dart

@ -183,7 +183,7 @@ class _MineVipCore extends State<MineVipCore> {
),
Column(
children: [
SizedBox(height: 40),
SizedBox(height: 40.h),
Container(
child:Row(
children: [
@ -302,8 +302,8 @@ class _MineVipCore extends State<MineVipCore> {
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<MineVipCore> {
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<MineVipCore> {
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<MineVipCore> {
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<MineVipCore> {
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<MineVipCore> {
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<MineVipCore> {
),
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<MineVipCore> {
//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(

3
lib/retrofit/data/miNiDetail.dart

@ -71,6 +71,7 @@ class MiNiDetail {
String detail;
int isDelete;
String printerFlag;
String thumbnailImg;
dynamic materialId;
List<String> 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,

2
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),

Loading…
Cancel
Save