Commit d1545d35 by 王志慧

commit

1 parent b9bf42ce
...@@ -160,8 +160,9 @@ Component({ ...@@ -160,8 +160,9 @@ Component({
return item[k] return item[k]
}, },
transferName: (item) => { transferName: (item) => {
console.log(item)
let arr = [] let arr = []
item.avatar.forEach((val, index) => { item.avatar&&item.avatar.forEach((val, index) => {
arr.push({ arr.push({
avatarUrl: val, avatarUrl: val,
transferName: item.transferName[index] transferName: item.transferName[index]
...@@ -171,7 +172,7 @@ Component({ ...@@ -171,7 +172,7 @@ Component({
}, },
employeeName: (item) => { employeeName: (item) => {
let arr = [] let arr = []
item.avatarUrl.forEach((val, index) => { item.avatarUrl&&item.avatarUrl.forEach((val, index) => {
arr.push({ arr.push({
avatarUrl: val, avatarUrl: val,
transferName: item.employeeName[index] transferName: item.employeeName[index]
...@@ -180,7 +181,7 @@ Component({ ...@@ -180,7 +181,7 @@ Component({
return arr return arr
}, },
conversionRate: (item, k) => { conversionRate: (item, k) => {
const arr = this.data.downType == 'equity' ? item[k].map(item => accMul(item, 100)) : item[k] const arr = this.data.downType == 'equity' ? item[k]&&item[k].map(item => accMul(item, 100)) : item[k]
return arr return arr
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!