xiaoxi лет назад: 6
Родитель
Сommit
ec0b3da156

BIN
CAISHEN.xcworkspace/xcuserdata/xiaoxi.xcuserdatad/UserInterfaceState.xcuserstate


+ 3 - 0
CAISHEN/SellFlowers/BuyCar/view/KXSFBuyCarTableViewCell.swift

@@ -73,6 +73,9 @@ class KXSFBuySubmitOrderTableCell: UITableViewCell {
73 73
         detailLabel?.text = "花财:" + aaModel.flower!
74 74
         priceLabel?.text = "¥" + aaModel.price!
75 75
         countLabel?.text = "x " + String(aaModel.count)
76
+        if (aaModel.num != nil) {
77
+            countLabel?.text = "x " + aaModel.num! 
78
+        }
76 79
     }
77 80
     
78 81
     func setUI() {

+ 3 - 0
CAISHEN/SellFlowers/Main/model/KXSFMListModel.swift

@@ -18,6 +18,7 @@ class KXSFMListModel: NSObject ,NSCoding {
18 18
     @objc var image : NSArray = [] as [String] as NSArray
19 19
     @objc var language : String? = ""
20 20
     @objc var name : String? = ""
21
+    @objc var num : String? = ""
21 22
     var isSelect = false
22 23
     var count = 0
23 24
     
@@ -32,6 +33,7 @@ class KXSFMListModel: NSObject ,NSCoding {
32 33
         aCoder.encode(image, forKey: "image")
33 34
         aCoder.encode(language, forKey: "language")
34 35
         aCoder.encode(name, forKey: "name")
36
+        aCoder.encode(num, forKey: "num")
35 37
     }
36 38
     
37 39
     required init?(coder aDecoder: NSCoder) {
@@ -45,6 +47,7 @@ class KXSFMListModel: NSObject ,NSCoding {
45 47
         image = aDecoder.decodeObject(forKey: "image") as! NSArray
46 48
         language = aDecoder.decodeObject(forKey: "language") as? String
47 49
         name = aDecoder.decodeObject(forKey: "name") as? String
50
+        num = aDecoder.decodeObject(forKey: "num") as? String
48 51
     }
49 52
     
50 53
     override init() {

+ 1 - 1
CAISHEN/SellFlowers/Mine/controllers/KXSFMineOrderViewController.swift

@@ -149,7 +149,7 @@ extension KXSFMineOrderViewController{
149 149
     
150 150
     func kxsf_FlowerFooterViewAction(section: Int) {
151 151
         let mo: KXSFMineFlowerOrderModel = dataSource[section] as! KXSFMineFlowerOrderModel
152
-        requestConfirmOrder(id: mo.id ?? "0")
152
+        requestConfirmOrder(id: mo.id!)
153 153
     }
154 154
     
155 155
     func numberOfSections(in tableView: UITableView) -> Int {