diff --git a/pages/formate.wxs b/pages/formate.wxs
index 495409c..ae1a6c4 100644
--- a/pages/formate.wxs
+++ b/pages/formate.wxs
@@ -53,6 +53,9 @@ function formateDate(datetime) {
}
function formateAmount(amount) {
+ if (isEmpty(amount)) {
+ return ''
+ }
return Number(amount).toFixed(2)
}
diff --git a/pages/process/order-info/index.wxml b/pages/process/order-info/index.wxml
index 5b2ecb6..7bac14b 100644
--- a/pages/process/order-info/index.wxml
+++ b/pages/process/order-info/index.wxml
@@ -1,4 +1,5 @@
+
{{title}}
@@ -111,7 +112,7 @@
单价(元/KG)
- {{form.settleUnitPrice}}
+ {{formate.formateAmount(form.settleUnitPrice)}}
+
待付款订单
@@ -13,23 +14,28 @@
-
- {{item.tipsTime}}
+
+ {{item.tipsTime}}
+
-
+
客户名称:{{item.factoryCustomerName}}
({{item.factoryCustomerMobile}})
- 毛重:{{item.totalWeight}}KG
+
+ 废纸品类:{{item.productName}}
+
+ 金额:{{formate.formateAmount(item.settlePrice)}}元
+
待付款
-
- 已完成
-