Commit 7b1f42ad authored by 刘俊宏's avatar 刘俊宏

修改订单详情bug(规格字段为null)

parent e1acae74
...@@ -105,7 +105,13 @@ class ChangeGoodsPriceVC: BaseViewController , UITableViewDelegate, UITableView ...@@ -105,7 +105,13 @@ class ChangeGoodsPriceVC: BaseViewController , UITableViewDelegate, UITableView
let rowModel = dataArr![indexPath.row] let rowModel = dataArr![indexPath.row]
cell.goodsImgVire.sd_setImage(with: URL(string:SERVERCE_ImageHost + rowModel.goods_thumb!)) cell.goodsImgVire.sd_setImage(with: URL(string:SERVERCE_ImageHost + rowModel.goods_thumb!))
cell.goodsNameLbl.text = rowModel.goods_name cell.goodsNameLbl.text = rowModel.goods_name
cell.attrrLbl.text = rowModel.goods_attr if rowModel?.goods_attr != nil {
cell.attrrLbl.text = rowModel.goods_attr
}else{
cell.attrrLbl.text = "-"
}
cell.priceTf.text = rowModel.goods_price cell.priceTf.text = rowModel.goods_price
cell.detailLbl.isHidden = true cell.detailLbl.isHidden = true
cell.priceTf.delegate = self cell.priceTf.delegate = self
......
...@@ -49,7 +49,12 @@ class ShowAlGoodsViewController: BaseViewController , UITableViewDelegate, UITa ...@@ -49,7 +49,12 @@ class ShowAlGoodsViewController: BaseViewController , UITableViewDelegate, UITa
cell.priceLbl.isHidden = false cell.priceLbl.isHidden = false
let rowModel = order_goods![indexPath.row] let rowModel = order_goods![indexPath.row]
cell.nameLbl.text = rowModel.goods_name cell.nameLbl.text = rowModel.goods_name
cell.detailLbl.text = rowModel.goods_attr if rowModel.goods_attr != nil {
cell.detailLbl.text = "规格:" + rowModel.goods_attr
}else{
cell.detailLbl.text ="规格:" + "-"
}
cell.priceLbl.text = "¥" + (rowModel.goods_price!) cell.priceLbl.text = "¥" + (rowModel.goods_price!)
cell.iconImg.sd_setImage(with: URL(string: SERVERCE_ImageHost + (rowModel.goods_thumb)!)) cell.iconImg.sd_setImage(with: URL(string: SERVERCE_ImageHost + (rowModel.goods_thumb)!))
cell.detailLbl2.text = "x" + StringByInt(number: rowModel.cart_number!) cell.detailLbl2.text = "x" + StringByInt(number: rowModel.cart_number!)
......
...@@ -352,7 +352,12 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa ...@@ -352,7 +352,12 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
cell.iconImg?.sd_setImage(with: URL(string: SERVERCE_ImageHost + (rowModel?.goods_thumb)!)) cell.iconImg?.sd_setImage(with: URL(string: SERVERCE_ImageHost + (rowModel?.goods_thumb)!))
cell.nameLbl.text = rowModel?.goods_name cell.nameLbl.text = rowModel?.goods_name
cell.detailLbl.text = "规格:" + (rowModel?.goods_attr)! if rowModel?.goods_attr != nil {
cell.detailLbl.text = (rowModel?.goods_attr)!
}else{
cell.detailLbl.text = "-"
}
cell.priceLbl.text = "¥" + (self.dataMdoel?.order_res?.goods_amount)! cell.priceLbl.text = "¥" + (self.dataMdoel?.order_res?.goods_amount)!
cell.detailLbl2.text = "x" + StringByInt(number: (rowModel?.cart_number!)!) cell.detailLbl2.text = "x" + StringByInt(number: (rowModel?.cart_number!)!)
......
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