Commit 3673f555 authored by 刘俊宏's avatar 刘俊宏

商品管理bug

parent 429a0789
......@@ -372,7 +372,13 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "GoodsCollectionViewCell", for: indexPath) as! GoodsCollectionViewCell
let rowModel = self.items[indexPath.row]
var rowModel:GoodsResModel! = nil
if isSearch {
rowModel = self.itemsSearch[indexPath.row]
}else{
rowModel = self.items[indexPath.row]
}
cell.delegate = self
cell.goodsName.text = rowModel.goods_name
cell.priceLbl.text = "¥" + rowModel.price!
......
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