|
|
@@ -1,9 +1,18 @@
|
|
|
-const _Http = getApp().globalData.http
|
|
|
+const _Http = getApp().globalData.http,
|
|
|
+ currency = require("../../../../utils/currency"),
|
|
|
+ CNY = value => currency(value, {
|
|
|
+ symbol: "¥",
|
|
|
+ precision: 2
|
|
|
+ }).format();
|
|
|
Component({
|
|
|
properties: {
|
|
|
disabled: {
|
|
|
type: Boolean,
|
|
|
value: false
|
|
|
+ },
|
|
|
+ isshowsalesfeesamount: {
|
|
|
+ type: Boolean,
|
|
|
+ value: false
|
|
|
}
|
|
|
},
|
|
|
options: {
|
|
|
@@ -47,6 +56,11 @@ Component({
|
|
|
content
|
|
|
}).then(res => {
|
|
|
console.log('线索跟进', res);
|
|
|
+
|
|
|
+ if (this.data.isshowsalesfeesamount) res.data = res.data.map(v => {
|
|
|
+ v.showsalesfeesamount = CNY(v.salesfeesamount)
|
|
|
+ return v
|
|
|
+ })
|
|
|
this.setData({
|
|
|
followList: res.pageNumber == 1 ? res.data : this.data.followList.concat(res.data),
|
|
|
"content.pageNumber": res.pageNumber + 1,
|