提交 513231a2 authored 作者: yueweilu's avatar yueweilu

修复bug

上级 0c4781fc
......@@ -55,7 +55,6 @@ class BookPayController extends GetxController {
void setUseCoupon(CouponModel model){
useCouponModel = model;
print('使用优惠券。。。。。。。。。。。。。。。。${model.couponRecId}');
computeFinalPrice();
// 使用优惠券后重新获取积分
_getCreditPoints(price: originalPrice.toString(), couponRecId: useCouponModel.couponRecId.toString());
}
......@@ -102,6 +101,7 @@ class BookPayController extends GetxController {
required String couponRecId
}) async {
creditPointModel = await ShopAPI.creditPoints(price: price,couponRecId: useCouponModel.couponRecId.toString());
computeFinalPrice();
update();
}
/// 是否展示优惠券 和积分使用 模型
......
......@@ -67,7 +67,9 @@ class _BookPayPageState extends State<BookPayPage> {
controller.showModel.integralSwitch =='0'?const SizedBox(): GestureDetector(
child: _buildPointWidget(controller,title: '积分抵扣',icon: 'assets/images/pay_point.png',),
onTap: (){
context.pushNamed(Routes.creditPoints);
if(controller.creditPointModel.deductibleIntegral !=0){
context.pushNamed(Routes.creditPoints);
}
},
),
],
......@@ -296,7 +298,7 @@ class _BookPayPageState extends State<BookPayPage> {
mainAxisAlignment: MainAxisAlignment.center,
children: [
controller.useCreditPoint?Text('-¥${controller.creditPointModel.deductibleAmount}',style: TextStyle(fontSize:13.w,color: AppTheme.primary,height:1.4),)
: Text('去选择',style: TextStyle(fontSize:13.w,color: Colours.c9,height:1.4)),
: Text( controller.creditPointModel.deductibleIntegral ==0?'不可用':'去选择',style: TextStyle(fontSize:13.w,color: Colours.c9,height:1.4)),
Gaps.hGaps10,
SizedBox(
// color: Colors.cyan,
......
......@@ -89,7 +89,9 @@ class LoginController extends GetxController {
/// 测试账号
if (kDebugMode) {
phoneInput.text = '13521054068';
passwordInput.text = 'zj123456';
passwordInput.text = 'zj123456';
// phoneInput.text = '17311837355';
// passwordInput.text = '12345678';
}
super.onInit();
}
......
......@@ -40,7 +40,7 @@ class UserOrderCancelDetailController extends GetxController {
OrderCompletedModel(name: '支付方式',value: payWay),
OrderCompletedModel(name: '支付时间',value: model.payTime.toString()),
OrderCompletedModel(name: '下单时间',value: model.createTime.toString()),
OrderCompletedModel(name: '退款时间',value: model.refundTime.toString()),
// OrderCompletedModel(name: '退款时间',value: model.refundTime.toString()),
];
update();
......
......@@ -162,7 +162,7 @@ class _UserSecurityPageState extends State<UserSecurityPage> {
'确定',
style: TextStyle(
fontSize: 15,
fontWeight: Fonts.medium,
fontWeight: Fonts.boldSemi,
color: Colours.cAB1941,
),
),
......
......@@ -174,7 +174,7 @@ class _UserSetPageState extends State<UserSetPage> {
'确定',
style: TextStyle(
fontSize: 15,
fontWeight: Fonts.medium,
fontWeight: Fonts.boldSemi,
color: Colours.cAB1941,
),
),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论