收银台页面搭建及封装 dialog 公用函数且套入页面使用
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* @Author: Aimee~
|
||||
* @Date: 2022-05-26 13:16:03
|
||||
* @LastEditTime: 2022-06-01 13:01:25
|
||||
* @LastEditTime: 2022-06-06 15:53:45
|
||||
* @LastEditors: Aimee
|
||||
* @FilePath: /gl_dao/lib/pages/store/buy/buy.dart
|
||||
* @Description: 订单确认页面
|
||||
@@ -11,6 +11,8 @@ import 'package:get/get.dart';
|
||||
|
||||
import '../../../main_color.dart';
|
||||
import '../../address/adds_list/adds_list_page.dart';
|
||||
import '../../components/yy_alert_dialog_with_divider.dart';
|
||||
import '../checkout/checkout_page.dart';
|
||||
|
||||
class BuyPages extends StatefulWidget {
|
||||
const BuyPages({Key? key}) : super(key: key);
|
||||
@@ -107,7 +109,18 @@ class _BuyPagesState extends State<BuyPages> {
|
||||
),
|
||||
),
|
||||
GestureDetector(
|
||||
onTap: () {},
|
||||
onTap: () {
|
||||
Get.to(const CheckoutPage());
|
||||
// yYAlertDialogWithDivider(
|
||||
// context,
|
||||
// title: '订单提交成功',
|
||||
// type: 'success',
|
||||
// text1: '继续采购',
|
||||
// text2: '查看订单',
|
||||
// onCancel: onCancel,
|
||||
// onSure: onSure,
|
||||
// );
|
||||
},
|
||||
child: Container(
|
||||
margin: const EdgeInsets.only(top: 1),
|
||||
padding: const EdgeInsets.fromLTRB(26, 10, 26, 10),
|
||||
@@ -135,6 +148,16 @@ class _BuyPagesState extends State<BuyPages> {
|
||||
);
|
||||
}
|
||||
|
||||
onCancel() {
|
||||
// ignore: avoid_print
|
||||
print('onCancel.....');
|
||||
}
|
||||
|
||||
onSure() {
|
||||
// ignore: avoid_print
|
||||
print('onSure.....');
|
||||
}
|
||||
|
||||
// 自定义购买信息
|
||||
Widget purchaseInfo() {
|
||||
return Container(
|
||||
|
||||
Reference in New Issue
Block a user