|
@@ -5,6 +5,7 @@
|
|
|
// Created by Ning.ge on 2023/6/15.
|
|
|
//
|
|
|
import UIKit
|
|
|
+import RxSwift
|
|
|
|
|
|
final class MeTraineeSubjectCell: UITableViewCell,NibLoadable {
|
|
|
|
|
@@ -44,15 +45,20 @@ final class MeTraineeSubjectCell: UITableViewCell,NibLoadable {
|
|
|
//备注
|
|
|
@IBOutlet weak var remark_label: UILabel!
|
|
|
|
|
|
+// var disposeBag:DisposeBag?
|
|
|
+ var rowInfo:RowInfo?
|
|
|
|
|
|
override func awakeFromNib() {
|
|
|
super.awakeFromNib()
|
|
|
self.backgroundColor = .db_theme
|
|
|
self.contentView.backgroundColor = .db_theme
|
|
|
self.selectionStyle = .none
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
func setRowInfo(rowInfo:RowInfo){
|
|
|
+ self.rowInfo = rowInfo
|
|
|
//用户头像
|
|
|
self.user_imageview.sd_setImage(with: rowInfo.photoPath.urlValue, placeholderImage: rowInfo.sex == "2" ? NYImage.Home.userfemale:NYImage.Home.usermale)
|
|
|
//报名时间
|
|
@@ -100,6 +106,24 @@ final class MeTraineeSubjectCell: UITableViewCell,NibLoadable {
|
|
|
self.remark_label.text = "备注:" + ((rowInfo.remark==nil||rowInfo.remark=="") ? "无":rowInfo.remark)
|
|
|
//预
|
|
|
self.stumake_imageview.isHidden = rowInfo.bmType == "1" ? false:true
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @IBAction func actionPhoneClickdo(_ sender: UIButton) {
|
|
|
+ if let phoneURL = URL(string: "tel://"+self.rowInfo!.phone) {
|
|
|
+ if UIApplication.shared.canOpenURL(phoneURL) {
|
|
|
+ UIApplication.shared.open(phoneURL, options: [:], completionHandler: nil)
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ @IBAction func actionMessageClickdo(_ sender: UIButton) {
|
|
|
+ if let smsURL = URL(string: "sms://"+self.rowInfo!.phone) {
|
|
|
+ if UIApplication.shared.canOpenURL(smsURL) {
|
|
|
+ UIApplication.shared.open(smsURL, options: [:], completionHandler: nil)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|