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

修复bug

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