|
@@ -116,7 +116,7 @@ class BookConfirmPage extends HookConsumerWidget {
|
|
),
|
|
),
|
|
|
|
|
|
// 显示支付信息
|
|
// 显示支付信息
|
|
- _paymentInfo(context),
|
|
|
|
|
|
+ _paymentInfo(context,ref),
|
|
|
|
|
|
// 底部按钮
|
|
// 底部按钮
|
|
MyButton(
|
|
MyButton(
|
|
@@ -235,7 +235,9 @@ class BookConfirmPage extends HookConsumerWidget {
|
|
}
|
|
}
|
|
|
|
|
|
//底部的支付信息
|
|
//底部的支付信息
|
|
- Widget _paymentInfo(BuildContext context) {
|
|
|
|
|
|
+ Widget _paymentInfo(BuildContext context,WidgetRef ref) {
|
|
|
|
+ final viewModel = ref.watch(bookConfirmViewModelProvider.notifier);
|
|
|
|
+
|
|
return Container(
|
|
return Container(
|
|
padding: const EdgeInsets.symmetric(vertical: 17.5, horizontal: 23),
|
|
padding: const EdgeInsets.symmetric(vertical: 17.5, horizontal: 23),
|
|
color: context.appColors.whiteBG,
|
|
color: context.appColors.whiteBG,
|
|
@@ -268,6 +270,7 @@ class BookConfirmPage extends HookConsumerWidget {
|
|
textColor: Colors.white,
|
|
textColor: Colors.white,
|
|
backgroundColor: context.appColors.btnBgDefault,
|
|
backgroundColor: context.appColors.btnBgDefault,
|
|
paddingRight: 16,
|
|
paddingRight: 16,
|
|
|
|
+ onClick: viewModel.gotoChooseCardPage,
|
|
paddingLeft: 16,
|
|
paddingLeft: 16,
|
|
paddingTop: 8,
|
|
paddingTop: 8,
|
|
paddingBottom: 8,
|
|
paddingBottom: 8,
|