Commit d1545d35 by 王志慧

commit

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