|
@@ -53,7 +53,6 @@ class HomeFirstFragment : MBFragment<HomeFirstVModel, FragmentHomeFirstBinding>(
|
|
|
|
|
|
var fragments = emptyArray<Fragment>()
|
|
|
private var adapter: FragAdapter? = null
|
|
|
- var type = 1//1精选 2预约
|
|
|
|
|
|
|
|
|
override fun init(savedInstanceState: Bundle?) {
|
|
@@ -127,6 +126,7 @@ class HomeFirstFragment : MBFragment<HomeFirstVModel, FragmentHomeFirstBinding>(
|
|
|
override fun listeners() {
|
|
|
super.listeners()
|
|
|
binding.tvMyChose.setOnClickListener(View.OnClickListener { view: View? ->
|
|
|
+ vm.type=1
|
|
|
switchContent(0)
|
|
|
binding.tvMyChose.setTextColor(Color.parseColor("#222222"))
|
|
|
binding.tvMyCollection.setTextColor(Color.parseColor("#888888"))
|
|
@@ -135,6 +135,7 @@ class HomeFirstFragment : MBFragment<HomeFirstVModel, FragmentHomeFirstBinding>(
|
|
|
|
|
|
})
|
|
|
binding.tvMyCollection.setOnClickListener(View.OnClickListener { view: View? ->
|
|
|
+ vm.type=2
|
|
|
switchContent(1)
|
|
|
binding.tvMyChose.setTextColor(Color.parseColor("#888888"))
|
|
|
binding.tvMyCollection.setTextColor(Color.parseColor("#222222"))
|
|
@@ -143,6 +144,7 @@ class HomeFirstFragment : MBFragment<HomeFirstVModel, FragmentHomeFirstBinding>(
|
|
|
|
|
|
|
|
|
binding.tvMyAppointment.setOnClickListener(View.OnClickListener { view: View? ->
|
|
|
+ vm.type=3
|
|
|
switchContent(2)
|
|
|
binding.tvMyChose.setTextColor(Color.parseColor("#888888"))
|
|
|
binding.tvMyCollection.setTextColor(Color.parseColor("#888888"))
|