Browse Source

-----

featrue/v4.4
DESKTOP-A1SENDA\HUzy 4 years ago
parent
commit
9c438f7fb5
2 changed files with 19 additions and 14 deletions
  1. 16
      pages/agent/detail/item-money-info/money-info.js
  2. 17
      pages/agent/detail/pound-info/pound-info.js

16
pages/agent/detail/item-money-info/money-info.js

@ -36,13 +36,15 @@ Component({
attached: function () {
// 在组件实例进入页面节点树时执行
// console.log(this.data.item)
this.data.item.otherAmountDtoList.forEach(element => {
if (element.amount != null&&element.amount!=0) {
this.setData({
isShowtotalOtherAmount: false
})
}
});
if(this.data.item.otherAmountDtoList.length){
this.data.item.otherAmountDtoList.forEach(element => {
if (element.amount != null&&element.amount!=0) {
this.setData({
isShowtotalOtherAmount: false
})
}
});
}
console.log(this.data)
console.log(this.data.isShowtotalOtherAmount)
//首笔货款金额tiptip提示

17
pages/agent/detail/pound-info/pound-info.js

@ -19,13 +19,16 @@ Component({
attached: function () {
// 在组件实例进入页面节点树时执行
// console.log(this.data.item)
this.data.item.otherAmountDtoList.forEach(element => {
if (element.amount != null&&element.amount!=0) {
this.setData({
isShowtotalOtherAmount: false
})
}
});
if(this.data.item.otherAmountDtoList.length){
this.data.item.otherAmountDtoList.forEach(element => {
if (element.amount != null&&element.amount!=0) {
this.setData({
isShowtotalOtherAmount: false
})
}
});
}
},
detached: function () {

Loading…
Cancel
Save