You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
181 lines
6.4 KiB
181 lines
6.4 KiB
1 year ago
|
import 'package:flutter/material.dart';
|
||
|
import 'package:huixiang/utils/font_weight.dart';
|
||
|
import 'package:huixiang/view_widget/my_appbar.dart';
|
||
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||
|
import 'package:intl/intl.dart';
|
||
|
|
||
|
class PaySuccessPage extends StatefulWidget {
|
||
|
final Map<String, dynamic> arguments;
|
||
|
|
||
|
PaySuccessPage({this.arguments});
|
||
|
|
||
|
@override
|
||
|
State<StatefulWidget> createState() {
|
||
|
return _PaySuccessPage();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class _PaySuccessPage extends State<PaySuccessPage> {
|
||
|
|
||
|
@override
|
||
|
void initState() {
|
||
|
super.initState();
|
||
|
}
|
||
|
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return Scaffold(
|
||
|
appBar: MyAppBar(
|
||
|
title: "收银成功",
|
||
|
titleColor: Colors.black,
|
||
|
background: Colors.white,
|
||
|
leadingColor: Colors.black,
|
||
|
brightness: Brightness.dark,
|
||
|
),
|
||
|
body: Column(
|
||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||
|
children: [
|
||
|
Container(
|
||
|
width: double.infinity,
|
||
|
margin: EdgeInsets.only(top:8.h, left: 16.w, right: 16.w),
|
||
|
padding: EdgeInsets.only(top:19.h,bottom: 36.h),
|
||
|
decoration: BoxDecoration(
|
||
|
color: Colors.white,
|
||
|
boxShadow: [
|
||
|
BoxShadow(
|
||
|
color: Color(0x0F06152E),
|
||
|
offset: Offset(0, 2),
|
||
|
blurRadius: 4,
|
||
|
spreadRadius: 0,
|
||
|
)
|
||
|
],
|
||
|
borderRadius: BorderRadius.circular(8),
|
||
|
),
|
||
|
child: Column(
|
||
|
children: [
|
||
|
Image.asset(
|
||
|
"assets/image/bus_pay_success_logo.png",
|
||
|
width: 76.h,
|
||
|
height: 76.h,
|
||
|
),
|
||
|
Padding(padding: EdgeInsets.only(top:16.h,),
|
||
|
child:Text(
|
||
|
"收银成功",
|
||
|
style: TextStyle(
|
||
|
color: Color(0xFF0D0D0D),
|
||
|
fontSize: 18.sp,
|
||
|
fontWeight: MyFontWeight.bold,
|
||
|
),
|
||
|
)),
|
||
|
Container(
|
||
|
width: double.infinity,
|
||
|
margin: EdgeInsets.only(left:17.w,right: 16.w,top:11.h,bottom:17.h),
|
||
|
child: Flex(
|
||
|
children: List.generate(70, (_) {
|
||
|
return SizedBox(
|
||
|
width: 2.w,
|
||
|
height: 1.h,
|
||
|
child: DecoratedBox(
|
||
|
decoration:
|
||
|
BoxDecoration(color: Color(0xFFEBECEF)),
|
||
|
),
|
||
|
);
|
||
|
}),
|
||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||
|
direction: Axis.horizontal,
|
||
|
),
|
||
|
),
|
||
|
Padding(padding:EdgeInsets.only(left: 24.w,right: 24.w,bottom: 20.h),
|
||
|
child:Row(
|
||
|
children: [
|
||
|
Expanded(child:Text(
|
||
|
"订单编号",
|
||
|
style: TextStyle(
|
||
|
color: Color(0xFF0D0D0D),
|
||
|
fontSize: 14.sp,
|
||
|
fontWeight: MyFontWeight.bold,
|
||
|
),
|
||
|
)),
|
||
|
Text(
|
||
|
widget?.arguments["rechargeId"] ?? "",
|
||
|
style: TextStyle(
|
||
|
color: Color(0xFF0D0D0D),
|
||
|
fontSize: 14.sp,
|
||
|
fontWeight: MyFontWeight.bold,
|
||
|
),
|
||
|
)
|
||
|
],
|
||
|
)),
|
||
|
Padding(padding:EdgeInsets.only(left: 24.w,right: 24.w,bottom: 20.h),
|
||
|
child:Row(
|
||
|
children: [
|
||
|
Expanded(child:Text(
|
||
|
"支付金额",
|
||
|
style: TextStyle(
|
||
|
color: Color(0xFF0D0D0D),
|
||
|
fontSize: 14.sp,
|
||
|
fontWeight: MyFontWeight.bold,
|
||
|
),
|
||
|
)),
|
||
|
Text(
|
||
|
"¥${widget?.arguments["rechargeMoney"] ?? ""}",
|
||
|
style: TextStyle(
|
||
|
color: Color(0xFF0D0D0D),
|
||
|
fontSize: 14.sp,
|
||
|
fontWeight: MyFontWeight.bold,
|
||
|
),
|
||
|
)
|
||
|
],
|
||
|
)),
|
||
|
Padding(padding:EdgeInsets.only(left: 24.w,right: 24.w,bottom: 20.h),
|
||
|
child:Row(
|
||
|
children: [
|
||
|
Expanded(child:Text(
|
||
|
"支付时间",
|
||
|
style: TextStyle(
|
||
|
color: Color(0xFF0D0D0D),
|
||
|
fontSize: 14.sp,
|
||
|
fontWeight: MyFontWeight.bold,
|
||
|
),
|
||
|
)),
|
||
|
Text(
|
||
|
DateFormat("yyyy-MM-dd HH:mm:ss").format(DateTime.now()),
|
||
|
style: TextStyle(
|
||
|
color: Color(0xFF0D0D0D),
|
||
|
fontSize: 14.sp,
|
||
|
fontWeight: MyFontWeight.bold,
|
||
|
),
|
||
|
)
|
||
|
],
|
||
|
)),
|
||
|
Padding(padding:EdgeInsets.only(left: 24.w,right: 24.w),
|
||
|
child:Row(
|
||
|
children: [
|
||
|
Expanded(child:Text(
|
||
|
"支付方式",
|
||
|
style: TextStyle(
|
||
|
color: Color(0xFF0D0D0D),
|
||
|
fontSize: 14.sp,
|
||
|
fontWeight: MyFontWeight.bold,
|
||
|
),
|
||
|
)),
|
||
|
Text(
|
||
|
widget.arguments["payIndex"] == 1 ? "现金":(widget.arguments["payIndex"] == 2?"微信支付":"支付宝支付"),
|
||
|
style: TextStyle(
|
||
|
color: Color(0xFF0D0D0D),
|
||
|
fontSize: 14.sp,
|
||
|
fontWeight: MyFontWeight.bold,
|
||
|
),
|
||
|
)
|
||
|
],
|
||
|
)),
|
||
|
],
|
||
|
),
|
||
|
)
|
||
|
],
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|