司机 预约 样式修改
This commit is contained in:
@@ -24,6 +24,10 @@ class CarInfoController extends GetxController with BaseControllerMixin {
|
||||
final RxList<String> operationAttachments = <String>[].obs;
|
||||
final RxList<String> hydrogenationAttachments = <String>[].obs;
|
||||
final RxList<String> registerAttachments = <String>[].obs;
|
||||
String color = "";
|
||||
String hydrogenCapacity = "";
|
||||
String rentFromCompany = "";
|
||||
String address = "";
|
||||
bool isNotice = false;
|
||||
|
||||
@override
|
||||
@@ -127,6 +131,12 @@ class CarInfoController extends GetxController with BaseControllerMixin {
|
||||
...hydrogenationAttachments,
|
||||
...registerAttachments,
|
||||
];
|
||||
|
||||
color = data['color'].toString();
|
||||
hydrogenCapacity = data['hydrogenCapacity'].toString();
|
||||
rentFromCompany = data['rentFromCompany'].toString();
|
||||
address = data['address'].toString();
|
||||
|
||||
loadAllPdfs();
|
||||
}
|
||||
}
|
||||
@@ -165,7 +175,7 @@ class CarInfoController extends GetxController with BaseControllerMixin {
|
||||
return url.toLowerCase().endsWith('.pdf');
|
||||
}
|
||||
|
||||
List<String> attachments = [];
|
||||
List<String> attachments = [];
|
||||
|
||||
// --- 新增: 状态管理 ---
|
||||
/// 用于存储网络PDF的本地路径,key是网络url,value是本地路径
|
||||
|
||||
@@ -339,7 +339,7 @@ class CarInfoPage extends GetView<CarInfoController> {
|
||||
tabs: const [
|
||||
Tab(text: '行驶证'),
|
||||
Tab(text: '营运证'),
|
||||
Tab(text: '加氢资格证'),
|
||||
Tab(text: '加氢证'),
|
||||
Tab(text: '登记证'),
|
||||
],
|
||||
),
|
||||
@@ -379,8 +379,8 @@ class CarInfoPage extends GetView<CarInfoController> {
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
_buildCertDetailItem('所属公司', '上海羚牛氢运物联网科技有限公司', isFull: true),
|
||||
_buildCertDetailItem('运营城市', controller.vin),
|
||||
_buildCertDetailItem('所属公司', controller.rentFromCompany, isFull: true),
|
||||
_buildCertDetailItem('运营城市', controller.address),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
@@ -389,10 +389,10 @@ class CarInfoPage extends GetView<CarInfoController> {
|
||||
children: [
|
||||
_buildCertDetailItem(
|
||||
'车辆颜色',
|
||||
'2028-08-14',
|
||||
controller.color,
|
||||
valueColor: const Color(0xFF52C41A),
|
||||
),
|
||||
_buildCertDetailItem('氢瓶容量', '货运'),
|
||||
_buildCertDetailItem('氢瓶容量', controller.hydrogenCapacity),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
|
||||
Reference in New Issue
Block a user