浏览代码

增加老师端达人证人首页认证失败提示

Pq 3 年之前
父节点
当前提交
e33bcdc1fa

+ 1 - 0
BaseLibrary/src/main/res/values/colors.xml

@@ -143,5 +143,6 @@
     <color name="color_eeeeee">#EEEEEE</color>
     <color name="color_4877ff">#4877FF</color>
     <color name="color_ff4902">#ff4902</color>
+    <color name="color_fb5e32">#FB5E32</color>
 
 </resources>

+ 2 - 0
teacher/src/main/java/com/cooleshow/teacher/ui/main/NewHomeFragment.java

@@ -452,6 +452,7 @@ public class NewHomeFragment extends BaseMVPFragment<FragmentNewHomeLayoutBindin
             }
         }
         this.entryStatus = teacherUserInfo.entryStatus;
+        mViewBinding.tvCertFailTip.setVisibility(View.GONE);
         if (TextUtils.equals(teacherUserInfo.entryStatus, TeacherInfoConstants.ENTRY_STATUS_DOING)) {
             //入驻审核中
             mViewBinding.ivCert.setClickable(true);
@@ -462,6 +463,7 @@ public class NewHomeFragment extends BaseMVPFragment<FragmentNewHomeLayoutBindin
             mViewBinding.ivCert.setImageResource(R.drawable.icon_home_cert_complete);
         } else {
             //未通过或者未申请
+            mViewBinding.tvCertFailTip.setVisibility(View.VISIBLE);
             mViewBinding.ivCert.setClickable(true);
             mViewBinding.ivCert.setImageResource(R.drawable.icon_home_un_certification);
         }

+ 11 - 0
teacher/src/main/res/drawable/bg_red_8dp_border_1dp.xml

@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android">
+    <solid android:color="@color/color_fb5e32" />
+    <corners
+        android:bottomRightRadius="8dp"
+        android:topLeftRadius="8dp"
+        android:topRightRadius="8dp" />
+    <stroke
+        android:width="1dp"
+        android:color="@color/white" />
+</shape>

+ 18 - 0
teacher/src/main/res/layout/fragment_new_home_layout.xml

@@ -225,6 +225,24 @@
                     app:layout_constraintRight_toRightOf="parent"
                     app:layout_constraintTop_toTopOf="@+id/iv_style_badge" />
 
+                <TextView
+                    android:visibility="gone"
+                    android:id="@+id/tv_cert_fail_tip"
+                    app:layout_constraintCircleAngle="58"
+                    app:layout_constraintCircleRadius="35dp"
+                    app:layout_constraintCircle="@+id/iv_cert"
+                    android:textColor="@color/white"
+                    android:textSize="@dimen/sp_10"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:background="@drawable/bg_red_8dp_border_1dp"
+                    android:gravity="center"
+                    android:paddingStart="7dp"
+                    android:paddingTop="1dp"
+                    android:paddingEnd="7dp"
+                    android:paddingBottom="1dp"
+                    android:text="认证失败" />
+
                 <View
                     android:id="@+id/view_cert_red_point"
                     android:layout_width="8dp"