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.
aku_new_community/lib/pages/personal/refund_select_page.dart

95 lines
2.7 KiB

// Flutter imports:
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
// Package imports:
import 'package:flutter_icons/flutter_icons.dart';
4 years ago
import 'package:get/get.dart';
// Project imports:
import 'package:akuCommunity/pages/personal/refund_apply_page.dart';
import 'package:akuCommunity/routers/page_routers.dart';
import 'package:akuCommunity/utils/headers.dart';
import 'package:akuCommunity/widget/bee_scaffold.dart';
import 'widget/refund_shop_card.dart';
import 'widget/refund_tile_card.dart';
class RefundSelectPage extends StatefulWidget {
final Bundle bundle;
RefundSelectPage({Key key, this.bundle}) : super(key: key);
@override
_RefundSelectPageState createState() => _RefundSelectPageState();
}
class _RefundSelectPageState extends State<RefundSelectPage> {
Container _containerContentList(List<Map<String, dynamic>> listContent) {
return Container(
child: Column(
children: listContent
.map((item) => RefundShopCard(
imagePath: item['imagePath'],
content: item['content'],
specs: item['specs'],
))
.toList(),
),
);
}
@override
Widget build(BuildContext context) {
List<Map<String, dynamic>> _listTile = [
{
'title': '我要退款',
'subtitle': '没有收到货,与物业协商直接退货',
'fun': () {
4 years ago
RefundApplyPage(
bundle: Bundle()
..putMap('details', {
'listContent': widget.bundle.getMap('details')['listContent'],
'payPrice': widget.bundle.getMap('details')['payPrice'],
'isRefundGood': false
}),
).to;
},
'isRight': true
},
{
'title': '我要退款退货',
'subtitle': '已收到货,需要退还货物',
'fun': () {
4 years ago
RefundApplyPage(
bundle: Bundle()
..putMap('details', {
'listContent': widget.bundle.getMap('details')['listContent'],
'payPrice': widget.bundle.getMap('details')['payPrice'],
'isRefundGood': true
}),
).to;
},
'isRight': true
}
];
4 years ago
return BeeScaffold(
leading: IconButton(
icon: Icon(AntDesign.left, size: 40.sp),
onPressed: () {
Get.back();
},
),
title: '选择服务类型',
body: ListView(
children: [
4 years ago
SizedBox(height: 24.w),
_containerContentList(
widget.bundle.getMap('details')['listContent'],
),
4 years ago
SizedBox(height: 24.w),
RefundTileCard(listTile: _listTile)
],
),
);
}
}