|
|
@@ -1,4 +1,9 @@
|
|
|
-const _Http = getApp().globalData.http;
|
|
|
+const _Http = getApp().globalData.http,
|
|
|
+ currency = require("../../utils/currency"),
|
|
|
+ CNY = (value, symbol = "¥", precision = 2) => currency(value, {
|
|
|
+ symbol,
|
|
|
+ precision
|
|
|
+ }).format();
|
|
|
Page({
|
|
|
data: {
|
|
|
loading: true,
|
|
|
@@ -96,6 +101,7 @@ Page({
|
|
|
})
|
|
|
res.data = res.data.map(v => {
|
|
|
v.progress = v.stage / v.totalstage * 100;
|
|
|
+ v.quotedpriceamount = CNY(v.quotedpriceamount)
|
|
|
return v
|
|
|
})
|
|
|
this.setData({
|