Commit cc426de1 authored by lujunye's avatar lujunye

修正图片点击查看bug

parent 84e58190
......@@ -19,16 +19,13 @@ protocol EPViewControllerDelegate {
class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource,TitleAndBtnCellDelegate,GLAlertSelectViewDelegate,GoodsClassViewControllerDelegate,PinPaiListViewControllerDelegate,AddImgCellDelegate,AddGuiGeCellDelegate,CreatNewSpecsViewControllerDelegate,ShangPinGguiGeCellDelegate,UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout,TitleAndSwitchCellDelegate,TitleAndTFCellDelegate,YuShouWeiKuanFaHuoCellDelegate,UITextFieldDelegate,ShowTimeSelectViewDelegate, LMNoteViewControllerDelegate,GeliAlertViewDelegate{
func CheckCellBtnClick(sender: UIButton, cell: AddImgCell) {
let browser = JXPhotoBrowser()
print(sender.tag,cell.imgs.count)
browser.numberOfItems = {
cell.imgs.count
}
browser.pageIndex = sender.tag
browser.reloadCellAtIndex = { context in
let browserCell = context.cell as? JXPhotoBrowserImageCell
let indexPath = IndexPath(item: context.index, section: 0)
browser.pageIndex = indexPath.item
let url = URL(string:SERVERCE_ImageHost + cell.imgs[browser.pageIndex])
let url = URL(string:SERVERCE_ImageHost + cell.imgs[context.index])
browserCell?.imageView.sd_setImage(with: url, placeholderImage: nil, options: [], completed: { (_, _, _, _) in
browserCell?.setNeedsLayout()
})
......
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