| | |
| | | tableView.register(UINib(nibName: "GoodsItemTCell", bundle: nil), forCellReuseIdentifier: "_GoodsItemTCell") |
| | | view.addSubview(tableView) |
| | | tableView.snp.makeConstraints { make in |
| | | make.left.equalTo(239 * Config.RatioW) |
| | | make.right.equalTo(-239 * Config.RatioW) |
| | | make.left.equalTo(159 * Config.RatioW) |
| | | make.right.equalTo(-159 * Config.RatioW) |
| | | make.top.equalTo(self.view.safeAreaLayoutGuide.snp.top).offset(27 * Config.RatioW) |
| | | make.bottom.equalTo(self.view.safeAreaLayoutGuide.snp.bottom).offset(-5) |
| | | } |
| | |
| | | } |
| | | |
| | | func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { |
| | | return 221 * Config.RatioH |
| | | return 241 * Config.RatioH |
| | | } |
| | | |
| | | |