Bladeren bron

flower order

xiaoxi 6 jaren geleden
bovenliggende
commit
ec0b3da156

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


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

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

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

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

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

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