Prechádzať zdrojové kódy

准备调试爆出的问题

南鑫林 6 rokov pred
rodič
commit
ceff0b2973

+ 2 - 3
RainbowPlanet/RainbowPlanet/Modules/MineModule/Mine/View/MineOrderTableViewCell.swift

@@ -20,10 +20,9 @@ class MineOrderTableViewCell: UITableViewCell {
     typealias DidSelectItemAtClosure = (_ indexPath: IndexPath) -> Void
      var didSelectItemAtClosure : DidSelectItemAtClosure?
     
-    let images = ["my_payment","my_pickup","my_shipment","my_reception","my_refund"]
-    
-    let titles = ["待付款","待自提","待发货","待收货","退款/售后"]
+    let images = ["my_payment","my_shipment","my_reception","my_evaluation","my_refund"]
     
+    let titles = ["待付款","待发货","待收货","待评价","退款/售后"]
 
     class func cellWith(tableView:UITableView,indexPath:IndexPath) -> MineOrderTableViewCell {
         let ID = "MineOrderTableViewCell"

+ 2 - 0
RainbowPlanet/RainbowPlanet/Modules/MineModule/Mine/View/MineServiceCollectionViewCell.swift

@@ -94,7 +94,9 @@ class MineServiceCollectionViewCell: UICollectionViewCell {
             switch indexPath?.row {
             case 0:
                 detailTitleLabel.text = "18392968047"
+                detailTitleLabel.isHidden = false
             default:
+                detailTitleLabel.isHidden = true
                 break
             }
             

+ 9 - 0
RainbowPlanet/RainbowPlanet/Modules/ShoppingCartModule/ShoppingCart/View/ShoppingCartView.swift

@@ -220,6 +220,15 @@ extension ShoppingCartView : UITableViewDelegate, UITableViewDataSource {
         return  UITableView.automaticDimension
     }
     
+    func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
+        if !(cartListModelArr?.isEmpty ?? true) {
+            if indexPath.section < cartListModelArr!.count {
+                let productMdl = cartListModelArr?[indexPath.section].productList?[indexPath.row]
+
+            }
+        }
+    }
+    
     
     
     func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {

+ 1 - 1
RainbowPlanet/RainbowPlanet/Modules/ShoppingCartModule/ShoppingCart/ViewController/ShoppingCartViewController.swift

@@ -13,7 +13,7 @@ class ShoppingCartViewController: BaseViewController {
     
     weak var observe : NSObjectProtocol?
     deinit {
-        NotificationCenter.default.removeObserver(observe!)
+        NotificationCenter.default.removeObserver(observe as Any)
     }
     
     var productSearchModelArray = Array<ProductSearchModel>()

+ 3 - 3
RainbowPlanet/RainbowPlanet/Supporting Files/MineModule.xcassets/my_pickup.imageset/Contents.json

@@ -2,17 +2,17 @@
   "images" : [
     {
       "idiom" : "universal",
-      "filename" : "my_pickup.png",
+      "filename" : "my_evaluation.png",
       "scale" : "1x"
     },
     {
       "idiom" : "universal",
-      "filename" : "my_pickup@2x.png",
+      "filename" : "my_evaluation@2x.png",
       "scale" : "2x"
     },
     {
       "idiom" : "universal",
-      "filename" : "my_pickup@3x.png",
+      "filename" : "my_evaluation@3x.png",
       "scale" : "3x"
     }
   ],

BIN
RainbowPlanet/RainbowPlanet/Supporting Files/MineModule.xcassets/my_evaluation.imageset/my_evaluation.png


BIN
RainbowPlanet/RainbowPlanet/Supporting Files/MineModule.xcassets/my_evaluation.imageset/my_evaluation@2x.png


BIN
RainbowPlanet/RainbowPlanet/Supporting Files/MineModule.xcassets/my_evaluation.imageset/my_evaluation@3x.png


BIN
RainbowPlanet/RainbowPlanet/Supporting Files/MineModule.xcassets/my_pickup.imageset/my_pickup.png


BIN
RainbowPlanet/RainbowPlanet/Supporting Files/MineModule.xcassets/my_pickup.imageset/my_pickup@2x.png


BIN
RainbowPlanet/RainbowPlanet/Supporting Files/MineModule.xcassets/my_pickup.imageset/my_pickup@3x.png


BIN
彩虹星球1期遗留问题.xmind