|
@@ -234,39 +234,34 @@ class BaseTabbarViewController: NSObject {
|
|
|
func reloadTabbar(index:Int) {
|
|
|
|
|
|
if index == 0 && lastIndex == 0 {
|
|
|
- self.lottieAnimateContentView1.animationView.stop()
|
|
|
- self.lottieAnimateContentView1.animationView.play()
|
|
|
+// self.lottieAnimateContentView1.animationView.stop()
|
|
|
+// self.lottieAnimateContentView1.animationView.play()
|
|
|
|
|
|
if communityModuleTopType == .communityModuleFollowTop {
|
|
|
NotificationCenter.default.post(name: NSNotification.Name("CommunityModuleFollowTop"), object: nil)
|
|
|
|
|
|
}
|
|
|
if communityModuleTopType == .communityModuleRecommendTop {
|
|
|
-// NotificationCenter.default.post(name: NSNotification.Name("CommunityModuleRecommendTop"), object: nil)
|
|
|
-
|
|
|
- }
|
|
|
- if communityModuleTopType == .communityModulePlanetTop {
|
|
|
- NotificationCenter.default.post(name: NSNotification.Name("CommunityModulePlanetTop"), object: nil)
|
|
|
+ NotificationCenter.default.post(name: NSNotification.Name("CommunityModuleRecommendTop"), object: nil)
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
if index == 1 && lastIndex == 1 {
|
|
|
- self.lottieAnimateContentView2.animationView.stop()
|
|
|
- self.lottieAnimateContentView2.animationView.play()
|
|
|
-// NotificationCenter.default.post(name: NSNotification.Name("ShoppingMallModuleTop"), object: nil)
|
|
|
- NotificationCenter.default.post(name: NSNotification.Name("RedemptionAreaModuleTop"), object: nil)
|
|
|
+// self.lottieAnimateContentView2.animationView.stop()
|
|
|
+// self.lottieAnimateContentView2.animationView.play()
|
|
|
+ NotificationCenter.default.post(name: NSNotification.Name("BackyardViewModuleTop"), object: nil)
|
|
|
|
|
|
}
|
|
|
if index == 3 && lastIndex == 3 {
|
|
|
- self.lottieAnimateContentView4.animationView.stop()
|
|
|
- self.lottieAnimateContentView4.animationView.play()
|
|
|
+// self.lottieAnimateContentView4.animationView.stop()
|
|
|
+// self.lottieAnimateContentView4.animationView.play()
|
|
|
NotificationCenter.default.post(name: NSNotification.Name("MessageModuleTop"), object: nil)
|
|
|
|
|
|
}
|
|
|
if index == 4 && lastIndex == 4 {
|
|
|
- self.lottieAnimateContentView5.animationView.stop()
|
|
|
- self.lottieAnimateContentView5.animationView.play()
|
|
|
+// self.lottieAnimateContentView5.animationView.stop()
|
|
|
+// self.lottieAnimateContentView5.animationView.play()
|
|
|
NotificationCenter.default.post(name: NSNotification.Name("MineModuleTop"), object: nil)
|
|
|
}
|
|
|
}
|