|
@@ -385,6 +385,8 @@ class HomeViewController: ADHBaseVC {
|
|
// self.SalesmanView?.showWithShopcartId(shopcartId: self.shopcartId ?? 0, vc: self)
|
|
// self.SalesmanView?.showWithShopcartId(shopcartId: self.shopcartId ?? 0, vc: self)
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
DLog("旧购物车ID: \(self.shopcartId ?? 0)==> 新购物车ID:\(Defaults[\.userType] ?? "")")
|
|
DLog("旧购物车ID: \(self.shopcartId ?? 0)==> 新购物车ID:\(Defaults[\.userType] ?? "")")
|
|
|
|
|
|
if "\(self.shopcartId ?? 0)" == Defaults[\.userType]{
|
|
if "\(self.shopcartId ?? 0)" == Defaults[\.userType]{
|
|
@@ -467,6 +469,16 @@ class HomeViewController: ADHBaseVC {
|
|
//MARK: 刷新时间段
|
|
//MARK: 刷新时间段
|
|
func reloadDateView(){
|
|
func reloadDateView(){
|
|
self.dateView?.configModel(dateModel: self.viewModel.TimeRangDetail!)
|
|
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
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
// 底部刷新
|
|
// 底部刷新
|