Commit f696b423 authored by pete谢兆麟's avatar pete谢兆麟

首页甄选优化

parent 75421c06
......@@ -91,7 +91,9 @@ extension YHSelectViewController {
self.viewModel.getGoodsList(categoryID: model.id, sortType: buttonItem) {[weak self] success, error in
guard let self = self else { return }
self.tableView.reloadData {
self.tableView.setContentOffset(CGPoint(x: 0, y: 92), animated: true)
if self.viewModel.liveArr.count != 0 {
self.tableView.setContentOffset(CGPoint(x: 0, y: 92), animated: true)
}
}
if self.viewModel.goodsArray.count == 0 {
noDataView.isHidden = false
......
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