| | |
| | | didSet{ |
| | | |
| | | if let m = detailModel{ |
| | | img_cover.sd_setImage(with: URL(string: m.coverDrawing)) |
| | | img_cover.sd_setImage(with: URL(string: m.storeCoverDrawing)) |
| | | label_title.text = m.name |
| | | label_distance.text = String(format: "距离我%.2lfkm", m.distance) |
| | | label_local.text = String(format: "%@(%@)", m.storeName,m.storeAddress) |
| | |
| | | if let subM = m.list.first { |
| | | label_originPrice.isHidden = subM.originalPrice == nil || subM.originalPrice == 0 |
| | | label_coin.isHidden = subM.playPaiCoin == nil || subM.playPaiCoin == 0 |
| | | label_vipPrice.isHidden = subM.vipPrice == nil || subM.vipPrice == 0 |
| | | label_vipPrice.isHidden = subM.vipPrice == 0 |
| | | |
| | | //原价 |
| | | if let originPrice = subM.originalPrice{ |
| | |
| | | |
| | | if m.type == .experience{ |
| | | label_price.text = (m.list.first?.paymentPrice ?? 0).currency() |
| | | label_originPrice.isHidden = true |
| | | label_vipPrice.isHidden = true |
| | | label_vaildTime.text = "购买当天有效" |
| | | view_listen.isHidden = true |
| | | label_originPrice.alpha = 0 |
| | | label_vipPrice.alpha = 0 |
| | | view_listen.alpha = 0 |
| | | label_price.isHidden = (m.list.first?.paymentPrice ?? 0) == 0 |
| | | } |
| | | |