18016688350 4 anni fa
parent
commit
912817d63a

+ 1 - 1
pages/accountRecord/index.js

@@ -171,7 +171,7 @@ Page({
         }
 
         that.setData({
-          totalAmount: allNumber,
+          totalAmount: allNumber.toFixed(2),
         })
       }
     }).catch((res) => {})

+ 1 - 1
pages/billing/index.js

@@ -152,7 +152,7 @@ Page({
         }
 
         that.setData({
-          totalAmount: allNumber,
+          totalAmount: allNumber.toFixed(2),
         })
       }
     }).catch((res) => {})

+ 1 - 1
pages/divide/index.js

@@ -202,7 +202,7 @@ Page({
         }
 
         that.setData({
-          totalAmount: allNumber,
+          totalAmount: allNumber.toFixed(2),
         })
       }
     }).catch((res) => {})

+ 3 - 2
pages/pssRecord/index.js

@@ -106,6 +106,7 @@ Page({
       console.log(that.data.params)
       util.request(util.api.productOrderDetailPage, that.data.params, "GET", false, false, app.globalData.token).then((res) => {
         if (res.code == 200) {
+          console.log(res)
           if (res.result.records.length > 0) {
             if (that.data.orderList.length > 0) {
               let list = that.data.orderList
@@ -113,7 +114,7 @@ Page({
                 var item = {}
                 item.orderSn = element.orderSn
                 item.productName = element.productName
-                item.productNum = element.productNum
+                item.productNum = element.productQuantity
                 list.push(item)
               });
               that.setData({
@@ -125,7 +126,7 @@ Page({
                 var item = {}
                 item.orderSn = element.orderSn
                 item.productName = element.productName
-                item.productNum = element.productNum
+                item.productNum = element.productQuantity
                 list.push(item)
               });
               that.setData({