Commit f5c4e776 by 李嘉林

商户列表组件

parent a6675cb4
...@@ -133,18 +133,23 @@ Component({ ...@@ -133,18 +133,23 @@ Component({
['WaterfallFlowListL[' + this.data.WaterfallFlowListL.length + ']']: WaterfallFlowListL, ['WaterfallFlowListL[' + this.data.WaterfallFlowListL.length + ']']: WaterfallFlowListL,
['WaterfallFlowListR[' + this.data.WaterfallFlowListR.length + ']']: WaterfallFlowListR ['WaterfallFlowListR[' + this.data.WaterfallFlowListR.length + ']']: WaterfallFlowListR
}) })
if (this.data.WaterfallFlowListL.length == 0 && this.data.WaterfallFlowListR.length == 0) {
this.setData({
showList : false
})
console.log('------change2')
}
} else { } else {
this.setData({ this.setData({
['WaterfallFlowList[' + this.data.WaterfallFlowList.length + ']']: list ['WaterfallFlowList[' + this.data.WaterfallFlowList.length + ']']: list
}) })
} if (this.data.WaterfallFlowList.length == 0) {
}
if (this.data.WaterfallFlowList.length <= 0) {
this.setData({ this.setData({
showList : false showList : false
}) })
console.log('------change2') console.log('------change3')
}
}
} }
} }
if (list == null || list.length < 10) { if (list == null || list.length < 10) {
...@@ -163,7 +168,7 @@ Component({ ...@@ -163,7 +168,7 @@ Component({
finished : true, finished : true,
showList : false showList : false
}) })
console.log('------change3') console.log('------change4')
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment