12345678910111213141516171819202122232425262728293031323334353637 |
- //
- // MyOrderTableViewCell.swift
- // CommonFrame
- //
- // Created by Virgil on 2019/4/19.
- // Copyright © 2019 Virgil. All rights reserved.
- //
- import UIKit
- class MyOrderTableViewCell: UITableViewCell {
- @IBOutlet weak var lblState: UILabel!
- @IBOutlet weak var lblMoney: UILabel!
- @IBOutlet weak var imgShow: UIImageView!
- @IBOutlet weak var lblCount: UILabel!
- @IBOutlet weak var lblDate: UILabel!
- @IBOutlet weak var lblName: UILabel!
- @IBOutlet weak var viewContent: UIView!
- override func awakeFromNib() {
- super.awakeFromNib()
- // Initialization code
- }
- func initCell(rowIndex: Int, dic: NSDictionary) {
- imgShow.sd_setImage(with: NSURL.init(string: dic["image"]as!String)! as URL)
- lblName.text = dic.getString(key: "name")
- lblCount.text = "x\(dic.getInt(key: "num"))"
- lblMoney.text = "合计¥\(dic.getDouble(key: "price")*dic.getDouble(key: "num"))"
- }
- override func setSelected(_ selected: Bool, animated: Bool) {
- super.setSelected(selected, animated: animated)
- // Configure the view for the selected state
- }
- }
|