Bladeren bron

sell flower order

xiaoxi 6 jaren geleden
bovenliggende
commit
c4bf2de8a0

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


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

@@ -164,7 +164,7 @@ extension KXSFMineOrderViewController{
164 164
     func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
165 165
         let cell : KXSFBuySubmitOrderTableCell = tableView.dequeueReusableCell(withIdentifier: tabCellID)! as! KXSFBuySubmitOrderTableCell
166 166
         let mo: KXSFMineFlowerOrderModel = dataSource[indexPath.section] as! KXSFMineFlowerOrderModel
167
-        let subMo: KXSFMListModel = mo.product?[indexPath.row] as! KXSFMListModel
167
+        let subMo: KXSFMListModel = mo.product![indexPath.row] as KXSFMListModel
168 168
         cell.configTableViewCell(model: subMo, indexPath: indexPath as NSIndexPath)
169 169
         cell.selectionStyle = .none
170 170
         return cell
@@ -184,6 +184,7 @@ extension KXSFMineOrderViewController{
184 184
     
185 185
     func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
186 186
         let view : KXSFFlowerFooterView = KXSFFlowerFooterView.init(frame: CGRect(x: 0, y: 0, width: tableView.width, height: 66))
187
+        view.delegate = self
187 188
         let mo: KXSFMineFlowerOrderModel = dataSource[section] as! KXSFMineFlowerOrderModel
188 189
         var isHidden: Bool = true
189 190
         if status == 2 {