package com.kuanzhai.driver.ui.merchant
|
|
import cn.sinata.xldutils.utils.clickDelay
|
import cn.sinata.xldutils.utils.textColor
|
import com.kuanzhai.driver.R
|
import com.kuanzhai.driver.base.MyBaseActivity
|
import com.kuanzhai.driver.ui.adapter.ConponMerchantMineAdapter
|
import kotlinx.android.synthetic.main.activity_rechant_mine.*
|
|
/**
|
* @ClassName MerchantMineActivity
|
* @Description TODO
|
* @Author Administrator
|
* @Date 2022/2/9 17:03
|
* @Version 1.0
|
*/
|
class MerchantMineActivity: MyBaseActivity() {
|
|
val conponMerchantMineFragment by lazy {
|
ConponMerchantMineFragment()
|
}
|
|
override fun setContentView() {
|
setContentView(R.layout.activity_rechant_mine)
|
}
|
|
override fun initView() {
|
setTitleText("我的商家券")
|
addFragment(conponMerchantMineFragment,R.id.rl_main_container)
|
}
|
|
override fun setOnclick() {
|
tv_server_ing.clickDelay {
|
tv_server_ing.textColor(this, R.color.main_yellow)
|
tv_wait_server.textColor(this, R.color.main_gray)
|
conponMerchantMineFragment.type = 1
|
(conponMerchantMineFragment.adapter as ConponMerchantMineAdapter).type = 1
|
conponMerchantMineFragment.callRefresh()
|
}
|
|
tv_wait_server.clickDelay {
|
tv_wait_server.textColor(this, R.color.main_yellow)
|
tv_server_ing.textColor(this, R.color.main_gray)
|
conponMerchantMineFragment.type = 2
|
(conponMerchantMineFragment.adapter as ConponMerchantMineAdapter).type = 2
|
conponMerchantMineFragment.callRefresh()
|
}
|
}
|
}
|