|
|
@ -24,6 +24,7 @@ class _OrderWriteOff extends State<OrderWriteOff> { |
|
|
|
var writeOffCheck = false; |
|
|
|
var writeOffCheck = false; |
|
|
|
List<Tickets> tickets; |
|
|
|
List<Tickets> tickets; |
|
|
|
String productName; |
|
|
|
String productName; |
|
|
|
|
|
|
|
int nameIndex = 0; |
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
void initState() { |
|
|
|
void initState() { |
|
|
@ -132,9 +133,9 @@ class _OrderWriteOff extends State<OrderWriteOff> { |
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
|
height: 12.h, |
|
|
|
height: 12.h, |
|
|
|
), |
|
|
|
), |
|
|
|
basicInfoItem("票券名称:",productName ?? ""), |
|
|
|
basicInfoItem("票券名称:",tickets[nameIndex].name ?? ""), |
|
|
|
basicInfoItem("用户名称::",widget?.arguments["userName"] ?? ""), |
|
|
|
basicInfoItem("用户名称::",widget?.arguments["userName"] ?? ""), |
|
|
|
basicInfoItem("票券编号::","177777622222223"), |
|
|
|
basicInfoItem("票券编号::",tickets[nameIndex].code ?? ""), |
|
|
|
basicInfoItem("订单编号::",widget?.arguments["orderCode"] ?? ""), |
|
|
|
basicInfoItem("订单编号::",widget?.arguments["orderCode"] ?? ""), |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
@ -219,7 +220,11 @@ class _OrderWriteOff extends State<OrderWriteOff> { |
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
itemBuilder: (context, position) { |
|
|
|
itemBuilder: (context, position) { |
|
|
|
return GestureDetector( |
|
|
|
return GestureDetector( |
|
|
|
onTap: () {}, |
|
|
|
onTap: () { |
|
|
|
|
|
|
|
setState((){ |
|
|
|
|
|
|
|
nameIndex = position; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
child: writeOffInfoItem(tickets[position]), |
|
|
|
child: writeOffInfoItem(tickets[position]), |
|
|
|
); |
|
|
|
); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -277,6 +282,7 @@ class _OrderWriteOff extends State<OrderWriteOff> { |
|
|
|
)) |
|
|
|
)) |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
if(tickets.state != 1) |
|
|
|
Align( |
|
|
|
Align( |
|
|
|
alignment: Alignment.centerRight, |
|
|
|
alignment: Alignment.centerRight, |
|
|
|
child:Container( |
|
|
|
child:Container( |
|
|
|