杨锴
2024-08-22 5ca691ec52cb4bb64841b0d85252af762e48c2ca
XQMuse/Root/Other/View/CommonAlertSheetView.swift
@@ -32,7 +32,7 @@
            static func show(items:[String],clouse:@escaping (Int)->Void){
                        let alertView = CommonAlertSheetView.jq_loadNibView()
                        alertView.frame = sceneDelegate?.window?.frame ?? .zero
                        alertView.cons_tableHei.constant = CGFloat(items.count * 50)
                        alertView.cons_tableHei.constant = CGFloat(items.count * 56)
                        sceneDelegate?.window?.addSubview(alertView)
                        alertView.cons_viewBottom.constant = 0
                        alertView.items = items
@@ -48,7 +48,7 @@
            override func layoutSubviews() {
                        super.layoutSubviews()
                        let totalH = Double(items.count * 50) + UIDevice.jq_safeEdges.bottom + 50
                        let totalH = Double(items.count * 56) + UIDevice.jq_safeEdges.bottom + 56
                        view_container.jq_addCorners(corner: [.topLeft,.topRight], radius: 20,height: totalH)
            }
@@ -86,7 +86,7 @@
            }
            func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
                        return 50
                        return 56
            }
}
@@ -100,8 +100,8 @@
                        selectionStyle = .none
                        label_content = UILabel()
                        label_content.text = "123"
                        label_content.font = UIFont.systemFont(ofSize: 16, weight: .medium)
                        label_content.textColor = .black.withAlphaComponent(0.8)
                        label_content.font = UIFont.systemFont(ofSize: 15, weight: .medium)
                        label_content.textColor = UIColor(hexString: "#6B6B6B")
                        contentView.addSubview(label_content)
                        label_content.snp.makeConstraints { make in
@@ -109,7 +109,7 @@
                        }
                        let lineView = UIView()
                        lineView.backgroundColor = UIColor(hexStr: "#DBDBE7")
                        lineView.backgroundColor = UIColor(hexStr: "#979797").withAlphaComponent(0.05)
                        contentView.addSubview(lineView)
                        lineView.snp.makeConstraints { make in
                                    make.left.equalTo(15)