From ca2a4ce89064be715e90ae60dc305c26e7dd5719 Mon Sep 17 00:00:00 2001
From: younger_times <841720330@qq.com>
Date: 星期五, 14 七月 2023 18:52:34 +0800
Subject: [PATCH] 新增

---
 WanPai/Root/Activity/TCell/ActivityInfoTCell.swift |   30 ++++++++++++++++++++++++++++--
 1 files changed, 28 insertions(+), 2 deletions(-)

diff --git a/WanPai/Root/Activity/TCell/ActivityInfoTCell.swift b/WanPai/Root/Activity/TCell/ActivityInfoTCell.swift
index fad3068..d1a3fa3 100644
--- a/WanPai/Root/Activity/TCell/ActivityInfoTCell.swift
+++ b/WanPai/Root/Activity/TCell/ActivityInfoTCell.swift
@@ -6,15 +6,41 @@
 //
 
 import UIKit
+import JQTools
 
 class ActivityInfoTCell: UITableViewCell {
 
+    var activityListModel:ActivityListModel?{
+        didSet{
+            if let m = activityListModel{
+                img_profile.sd_setImage(with: URL(string: m.coverDrawing)!)
+                label_title.text = m.name
+
+                var temp = [String]()
+                temp.append(m.cityName)
+                temp.append(m.registerCondition.strTitle)
+
+                label_limit.text = temp.joined(separator: "|")
+                label_info.text = m.introduction
+                label_duetime.text = "截止报名:" + m.registerEndTime
+                label_ageScope.text = m.age
+                label_hot.text = "\(m.heat)"
+            }
+        }
+    }
+
     @IBOutlet weak var label_state: UILabel!
-    
+    @IBOutlet weak var img_profile: UIImageView!
+    @IBOutlet weak var label_title: UILabel!
+    @IBOutlet weak var label_limit: UILabel!
+    @IBOutlet weak var label_info: UILabel!
+    @IBOutlet weak var label_duetime: UILabel!
+    @IBOutlet weak var label_ageScope: UILabel!
+    @IBOutlet weak var label_hot: UILabel!
+
     override func awakeFromNib() {
         super.awakeFromNib()
         selectionStyle = .none
-        
     }
     
     override func layoutSubviews() {

--
Gitblit v1.7.1