Selaa lähdekoodia

数据版本问题

xiaohaizhao 1 vuosi sitten
vanhempi
commit
e11f0aff1c
2 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 1 0
      packageA/orderForm/detail.js
  2. 1 0
      packageA/orderForm/modules/product/index.js

+ 1 - 0
packageA/orderForm/detail.js

@@ -341,6 +341,7 @@ Page({
 					title: res.msg,
 					icon: "none"
 				});
+				this.getDetail(true)
 				resolve(res)
 			})
 		})

+ 1 - 0
packageA/orderForm/modules/product/index.js

@@ -112,6 +112,7 @@ Component({
                     ...obj
                 };
                 data.amount = CNY(currency(data.price).multiply(data.qty).format());
+                data.price = CNY(data.price)
                 this.setData({
                     [`list[${index}]`]: data
                 })