已绑定 数据回填
This commit is contained in:
@@ -155,7 +155,7 @@ class ReservationPage extends GetView<ReservationController> {
|
||||
bool isButton = value == '扫码绑定';
|
||||
return Row(
|
||||
children: [
|
||||
Text(label, style: const TextStyle(color: Colors.grey, fontSize: 11)),
|
||||
Text(label, style: const TextStyle(fontSize: 13)),
|
||||
const SizedBox(width: 8),
|
||||
isButton
|
||||
? GestureDetector(
|
||||
@@ -163,13 +163,7 @@ class ReservationPage extends GetView<ReservationController> {
|
||||
//判断是否绑定成功
|
||||
var scanResult = await Get.to(() => const QrCodePage());
|
||||
if (scanResult == true) {
|
||||
VehicleInfo? bean = StorageService.to.vehicleInfo;
|
||||
|
||||
if (bean != null) {
|
||||
showToast(
|
||||
"已绑定${bean.plateNumber}-${StorageService.to.hasVehicleInfo}",
|
||||
);
|
||||
}
|
||||
controller.getUserBindCarInfo();
|
||||
}
|
||||
},
|
||||
child: Container(
|
||||
@@ -183,10 +177,14 @@ class ReservationPage extends GetView<ReservationController> {
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min, // Keep the row compact
|
||||
children: [
|
||||
const Icon(Icons.search, size: 13, color: Colors.blue),
|
||||
Icon(
|
||||
StorageService.to.hasVehicleInfo ? Icons.repeat : Icons.search,
|
||||
size: 13,
|
||||
color: Colors.blue,
|
||||
),
|
||||
const SizedBox(width: 3),
|
||||
Text(
|
||||
value,
|
||||
StorageService.to.hasVehicleInfo ? "换车牌" : value,
|
||||
style: const TextStyle(
|
||||
color: Colors.blue,
|
||||
fontSize: 11,
|
||||
@@ -199,7 +197,7 @@ class ReservationPage extends GetView<ReservationController> {
|
||||
)
|
||||
: Text(
|
||||
value,
|
||||
style: const TextStyle(fontSize: 14, fontWeight: FontWeight.w500),
|
||||
style: const TextStyle(fontSize: 13, fontWeight: FontWeight.w500),
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user