Browse Source

刷新当前选中日期的时间ID

吴彦祖 10 months ago
parent
commit
0b80975f60

BIN
ADHTuanCan.xcworkspace/xcuserdata/aodeheng.xcuserdatad/UserInterfaceState.xcuserstate


+ 16 - 0
ADHTuanCan.xcworkspace/xcuserdata/aodeheng.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@@ -179,5 +179,21 @@
             landmarkType = "7">
          </BreakpointContent>
       </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            uuid = "159E3A2C-2206-4A9E-9795-4037EF1E4DEB"
+            shouldBeEnabled = "Yes"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "ADHTuanCan/Class/&#x767b;&#x5f55;/&#x9a8c;&#x8bc1;&#x7801;/CodeViewController.swift"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "22"
+            endingLineNumber = "22"
+            landmarkName = "phone"
+            landmarkType = "24">
+         </BreakpointContent>
+      </BreakpointProxy>
    </Breakpoints>
 </Bucket>

+ 2 - 2
ADHTuanCan/AppDelegate.swift

@@ -31,10 +31,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
         self.window?.makeKeyAndVisible()
         
         //默认域名
-//        Defaults[\.BaseUrl] = "http://47.108.114.127:10888"
+        Defaults[\.BaseUrl] = "http://47.108.114.127:10888"
 //        Defaults[\.BaseUrl] = "http://www.gzzzyd.com/gm-api"
 //        Defaults[\.BaseUrl] = "http://wine.gzzzyd.com/api"
-        Defaults[\.BaseUrl] = "https://kcapp.kiansengculinary.com/api"
+//        Defaults[\.BaseUrl] = "https://kcapp.kiansengculinary.com/api"
 //        Defaults[\.BaseUrl] = "https://kcapp.gzzzyd.com/api"
 //        Defaults[\.BaseUrl] = "https://kcapp.gzzzyd.com/api"
         

+ 12 - 0
ADHTuanCan/Class/首页/HomeViewController.swift

@@ -385,6 +385,8 @@ class HomeViewController: ADHBaseVC {
 //                self.SalesmanView?.showWithShopcartId(shopcartId: self.shopcartId ?? 0, vc: self)
 //            }
             
+            
+            
             DLog("旧购物车ID: \(self.shopcartId ?? 0)==> 新购物车ID:\(Defaults[\.userType] ?? "")")
             
             if "\(self.shopcartId ?? 0)" == Defaults[\.userType]{
@@ -467,6 +469,16 @@ class HomeViewController: ADHBaseVC {
     //MARK: 刷新时间段
     func reloadDateView(){
         self.dateView?.configModel(dateModel: self.viewModel.TimeRangDetail!)
+        if let _ = self.viewModel.TimeRangDetail?.timeVoList{
+            for model in self.viewModel.TimeRangDetail!.timeVoList! {
+                let item : HomeTimeItem = model
+                if self.nowTimeModel?.shopcartTime == item.shopcartTime
+                    {
+                        self.nowTimeModel = item
+                    }
+            }
+        }
+        
     }
     
     // 底部刷新