Parcourir la source

发件页面格式化double保留一位小数

daxu0403 il y a 7 ans
Parent
commit
5a6d004c7e

BIN
android/.gradle/4.10.2/fileHashes/fileHashes.bin


BIN
android/.gradle/4.10.2/fileHashes/fileHashes.lock


BIN
android/.gradle/4.10.2/taskHistory/taskHistory.bin


BIN
android/.gradle/4.10.2/taskHistory/taskHistory.lock


BIN
android/.gradle/buildOutputCleanup/buildOutputCleanup.lock


+ 8 - 0
lib/pages/send_express_page.dart

@@ -483,12 +483,20 @@ class _SendExpressPageState extends State < SendExpressPage > with AutomaticKeep
                                   goodsQuantity = int.parse(value);
                                 } else if (key == '运费') {
                                   goodsFreight = double.parse(value);
+                                  String temp =goodsFreight.toStringAsFixed(1);
+                                  goodsFreight = double.parse(temp);
                                 } else if (key == '代收') {
                                   goodsAgencyFund = double.parse(value);
+                                  String temp =goodsAgencyFund.toStringAsFixed(1);
+                                  goodsAgencyFund = double.parse(temp);
                                 } else if (key == '保价') {
                                   goodsPriceProtection = double.parse(value);
+                                  String temp =goodsPriceProtection.toStringAsFixed(1);
+                                  goodsPriceProtection = double.parse(temp);
                                 } else if (key == '重量') {
                                   goodsWeight = double.parse(value);
+                                  String temp =goodsWeight.toStringAsFixed(1);
+                                  goodsWeight = double.parse(temp);
                                 }
                               }
                             },