提交 c5a7162d authored 作者: yueweilu's avatar yueweilu

add

上级 145abecf
...@@ -105,34 +105,37 @@ class CreditPointsPage extends StatelessWidget { ...@@ -105,34 +105,37 @@ class CreditPointsPage extends StatelessWidget {
color: Colours.cE7, color: Colours.cE7,
// color: Colors.red, // color: Colors.red,
), ),
GestureDetector( Visibility(
onTap: (){ visible: controller.creditPointModel.deductibleIntegral ==0?false:true,
controller.setUse(); child: GestureDetector(
if (controller.useCreditPoint) { onTap: (){
context.pop(); controller.setUse();
} if (controller.useCreditPoint) {
}, context.pop();
child: Container( }
color: Colors.white, },
height: 54, child: Container(
child: Row( color: Colors.white,
mainAxisAlignment: MainAxisAlignment.spaceBetween, height: 54,
children: [ child: Row(
RichText(text: TextSpan( mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
TextSpan(text: '抵扣',style: TextStyle(color: Colours.c9,fontSize: 13.w,height: 1.4)), RichText(text: TextSpan(
TextSpan(text: '¥${controller.creditPointModel.deductibleAmount}',style: TextStyle(color: AppTheme.primary,fontSize: 13.w,height: 1.4,fontWeight: Fonts.medium)), children: [
TextSpan(text: '使用${controller.creditPointModel.deductibleIntegral}积分',style: TextStyle(color: Colours.c9,fontSize: 13.w,height: 1.4)), TextSpan(text: '抵扣',style: TextStyle(color: Colours.c9,fontSize: 13.w,height: 1.4)),
] TextSpan(text: '¥${controller.creditPointModel.deductibleAmount}',style: TextStyle(color: AppTheme.primary,fontSize: 13.w,height: 1.4,fontWeight: Fonts.medium)),
)), TextSpan(text: '使用${controller.creditPointModel.deductibleIntegral}积分',style: TextStyle(color: Colours.c9,fontSize: 13.w,height: 1.4)),
SizedBox( ]
width: 15.w, )),
height: 15.w, SizedBox(
child: Image.asset( width: 15.w,
controller.useCreditPoint?'assets/images/check.png':'assets/images/uncheck.png', height: 15.w,
), child: Image.asset(
) controller.useCreditPoint?'assets/images/check.png':'assets/images/uncheck.png',
], ),
)
],
),
), ),
), ),
) )
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论