|
|
@ -42,6 +42,27 @@ class _LifePayDetailPageState extends State<LifePayDetailPage> {
|
|
|
|
return listLength == _selectItems.length;
|
|
|
|
return listLength == _selectItems.length;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
|
|
|
void initState() {
|
|
|
|
|
|
|
|
super.initState();
|
|
|
|
|
|
|
|
for (var i = 0; i < widget.model.dailyPaymentTypeVos.length; i++) {
|
|
|
|
|
|
|
|
for (var j = 0;
|
|
|
|
|
|
|
|
j < widget.model.dailyPaymentTypeVos[i].detailedVoList.length;
|
|
|
|
|
|
|
|
j++) {
|
|
|
|
|
|
|
|
String id = widget.model.dailyPaymentTypeVos[i].id.toString() +
|
|
|
|
|
|
|
|
widget.model.dailyPaymentTypeVos[i].detailedVoList[j].groupId
|
|
|
|
|
|
|
|
.toString();
|
|
|
|
|
|
|
|
if (!_selectItems.contains(id)) {
|
|
|
|
|
|
|
|
_selectItems.add(id);
|
|
|
|
|
|
|
|
_payNum += 1;
|
|
|
|
|
|
|
|
_payTotal += widget
|
|
|
|
|
|
|
|
.model.dailyPaymentTypeVos[i].detailedVoList[j].paymentPrice
|
|
|
|
|
|
|
|
.toDouble();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Widget _buildTile(int groupId, int id, int years, double price) {
|
|
|
|
Widget _buildTile(int groupId, int id, int years, double price) {
|
|
|
|
return GestureDetector(
|
|
|
|
return GestureDetector(
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
@ -75,10 +96,6 @@ class _LifePayDetailPageState extends State<LifePayDetailPage> {
|
|
|
|
.bold
|
|
|
|
.bold
|
|
|
|
.make(),
|
|
|
|
.make(),
|
|
|
|
24.w.widthBox,
|
|
|
|
24.w.widthBox,
|
|
|
|
Icon(
|
|
|
|
|
|
|
|
CupertinoIcons.chevron_forward,
|
|
|
|
|
|
|
|
size: 40.w,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
).material(color: Colors.transparent),
|
|
|
|
).material(color: Colors.transparent),
|
|
|
|
);
|
|
|
|
);
|
|
|
@ -131,7 +148,6 @@ class _LifePayDetailPageState extends State<LifePayDetailPage> {
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
GestureDetector(
|
|
|
|
GestureDetector(
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
|
setState(() {
|
|
|
|
|
|
|
|
if (isAllSelect) {
|
|
|
|
if (isAllSelect) {
|
|
|
|
_selectItems.clear();
|
|
|
|
_selectItems.clear();
|
|
|
|
_payNum = 0;
|
|
|
|
_payNum = 0;
|
|
|
@ -141,10 +157,10 @@ class _LifePayDetailPageState extends State<LifePayDetailPage> {
|
|
|
|
i < widget.model.dailyPaymentTypeVos.length;
|
|
|
|
i < widget.model.dailyPaymentTypeVos.length;
|
|
|
|
i++) {
|
|
|
|
i++) {
|
|
|
|
for (var j = 0;
|
|
|
|
for (var j = 0;
|
|
|
|
i <
|
|
|
|
j <
|
|
|
|
widget.model.dailyPaymentTypeVos[i].detailedVoList
|
|
|
|
widget.model.dailyPaymentTypeVos[i].detailedVoList
|
|
|
|
.length;
|
|
|
|
.length;
|
|
|
|
i++) {
|
|
|
|
j++) {
|
|
|
|
String id =
|
|
|
|
String id =
|
|
|
|
widget.model.dailyPaymentTypeVos[i].id.toString() +
|
|
|
|
widget.model.dailyPaymentTypeVos[i].id.toString() +
|
|
|
|
widget.model.dailyPaymentTypeVos[i]
|
|
|
|
widget.model.dailyPaymentTypeVos[i]
|
|
|
@ -160,7 +176,7 @@ class _LifePayDetailPageState extends State<LifePayDetailPage> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
setState(() {});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: AnimatedContainer(
|
|
|
|
child: AnimatedContainer(
|
|
|
|
duration: Duration(milliseconds: 300),
|
|
|
|
duration: Duration(milliseconds: 300),
|
|
|
@ -205,6 +221,7 @@ class _LifePayDetailPageState extends State<LifePayDetailPage> {
|
|
|
|
'已选$_payNum项'.text.color(ktextSubColor).size(20.sp).make(),
|
|
|
|
'已选$_payNum项'.text.color(ktextSubColor).size(20.sp).make(),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
8.w.widthBox,
|
|
|
|
MaterialButton(
|
|
|
|
MaterialButton(
|
|
|
|
elevation: 0,
|
|
|
|
elevation: 0,
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|