修复viptab颜色样式
This commit is contained in:
parent
19c8c578c4
commit
30eabe1f42
|
|
@ -35,6 +35,7 @@ import com.example.base.extensions.getColor
|
|||
import com.example.base.extensions.gone
|
||||
import com.example.base.extensions.onClick
|
||||
import com.example.base.extensions.toast
|
||||
import com.example.base.extensions.visible
|
||||
import com.example.base.ui.BaseFragment
|
||||
import com.example.base.utils.ClipboardUtils
|
||||
|
||||
|
|
@ -60,6 +61,7 @@ class MineFragment : BaseFragment<FragmentMineBinding, MineViewModel>() {
|
|||
override fun onResume() {
|
||||
super.onResume()
|
||||
mViewModel.userInfo(isInit)
|
||||
mViewModel.getCompanyInfo()
|
||||
mViewModel.getSubscriptionList()
|
||||
mViewModel.getFavoriteList()
|
||||
mViewModel.getHistoryList()
|
||||
|
|
@ -69,7 +71,6 @@ class MineFragment : BaseFragment<FragmentMineBinding, MineViewModel>() {
|
|||
|
||||
override fun initData() {
|
||||
super.initData()
|
||||
mViewModel.getCompanyInfo()
|
||||
}
|
||||
|
||||
override fun initListener() {
|
||||
|
|
@ -169,11 +170,13 @@ class MineFragment : BaseFragment<FragmentMineBinding, MineViewModel>() {
|
|||
binding.tvAuthStatus.text = "认证成功"
|
||||
binding.tvAuthStatus.setTextColor(getColor(R.color.color_3bbf0f))
|
||||
binding.tvAuthStatus.setCompoundDrawablesWithIntrinsicBounds(R.drawable.shape_auth_success_dot, 0, 0, 0)
|
||||
binding.tvAuthStatus.visible()
|
||||
}
|
||||
"3" -> {
|
||||
binding.tvAuthStatus.text = "认证失败"
|
||||
binding.tvAuthStatus.setTextColor(getColor(R.color.color_ff592b))
|
||||
binding.tvAuthStatus.setCompoundDrawablesWithIntrinsicBounds(R.drawable.shape_auth_fail_dot, 0, 0, 0)
|
||||
binding.tvAuthStatus.visible()
|
||||
}
|
||||
else -> binding.tvAuthStatus.gone()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -495,9 +495,9 @@ class VipFragment : BaseFragment<FragmentVipBinding, VipViewModel>() {
|
|||
if (vipType == 0) {
|
||||
payTypeCheckedRes = R.mipmap.ic_pay_checked1
|
||||
|
||||
binding.btnTab1.setTextColor(getColor(R.color.color_c5ffe1))
|
||||
binding.btnTab1.setTextColor(getColor(R.color.color_fff5e6))
|
||||
binding.btnTab1.setCompoundDrawablesWithIntrinsicBounds(R.drawable.shape_vip_tab_checked1, 0, 0, 0)
|
||||
binding.btnTab2.setTextColor(getColor(R.color.color_8a7570))
|
||||
binding.btnTab2.setTextColor(getColor(R.color.color_1b6648))
|
||||
binding.btnTab2.setCompoundDrawablesWithIntrinsicBounds(R.drawable.shape_vip_tab_default2, 0, 0, 0)
|
||||
|
||||
binding.ivTopBg.setImageResource(R.mipmap.ic_vip_top_bg1)
|
||||
|
|
|
|||
|
|
@ -43,8 +43,8 @@
|
|||
android:layout_height="@dimen/dp_68"
|
||||
android:layout_marginStart="@dimen/dp_16"
|
||||
android:layout_marginTop="@dimen/dp_3"
|
||||
android:padding="@dimen/dp_2"
|
||||
android:background="@drawable/shape_avatar_bg"
|
||||
android:padding="@dimen/dp_2"
|
||||
android:src="@mipmap/ic_default_avatar"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/iv_setting" />
|
||||
|
|
@ -232,25 +232,25 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp_20"
|
||||
android:layout_marginTop="@dimen/dp_28"
|
||||
android:text="开通会员"
|
||||
android:textColor="@color/color_fbcd8c"
|
||||
android:textSize="@dimen/sp_16"
|
||||
app:layout_constraintTop_toTopOf="@id/iv_vip_bg"
|
||||
android:layout_marginTop="@dimen/dp_28"
|
||||
app:layout_constraintStart_toStartOf="@id/iv_vip_bg" />
|
||||
app:layout_constraintStart_toStartOf="@id/iv_vip_bg"
|
||||
app:layout_constraintTop_toTopOf="@id/iv_vip_bg" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_expire_time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_2"
|
||||
android:drawableEnd="@mipmap/ic_mine_arrow1"
|
||||
android:gravity="center"
|
||||
android:text="开通会员,查看海量商机"
|
||||
android:layout_marginTop="@dimen/dp_2"
|
||||
android:textColor="@color/color_bcac8e"
|
||||
android:textSize="@dimen/sp_12"
|
||||
app:layout_constraintTop_toBottomOf="@id/tv_vip_name"
|
||||
app:layout_constraintStart_toStartOf="@id/tv_vip_name" />
|
||||
app:layout_constraintStart_toStartOf="@id/tv_vip_name"
|
||||
app:layout_constraintTop_toBottomOf="@id/tv_vip_name" />
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/layout_menus"
|
||||
|
|
@ -305,6 +305,7 @@
|
|||
android:drawablePadding="@dimen/dp_6"
|
||||
android:text="认证失败"
|
||||
android:textColor="@color/color_ff592b"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@id/tv_auth"
|
||||
app:layout_constraintEnd_toEndOf="@id/tv_auth"
|
||||
app:layout_constraintTop_toTopOf="@id/tv_auth" />
|
||||
|
|
|
|||
|
|
@ -94,6 +94,7 @@
|
|||
<color name="color_ff592b">#FF592B</color>
|
||||
<color name="color_fbcd8c">#FBCD8C</color>
|
||||
<color name="color_bcac8e">#BCAC8E</color>
|
||||
<color name="color_fff5e6">#FFF5E6</color>
|
||||
<color name="color_c5ffe1">#C5FFE1</color>
|
||||
<color name="color_a6c8ba">#A6C8BA</color>
|
||||
<color name="color_7e4024">#7E4024</color>
|
||||
|
|
@ -101,6 +102,7 @@
|
|||
<color name="color_f11e1e">#F11E1E</color>
|
||||
<color name="color_797069">#797069</color>
|
||||
<color name="color_8a7570">#8A7570</color>
|
||||
<color name="color_1b6648">#1B6648</color>
|
||||
<color name="color_fffaef">#FFFAEF</color>
|
||||
<color name="color_fffaee">#FFFAEE</color>
|
||||
<color name="color_fdf7f0">#FDF7F0</color>
|
||||
|
|
|
|||
Loading…
Reference in New Issue