Commit 8eafc164c216f99e139f31d21db459e1a6fd358a
1 parent
cb66547b
添加机构认证进度页面
Showing
11 changed files
with
88 additions
and
8 deletions
core/dentity_verfication/src/main/java/com/cnlive/core/people_verfication/activity/CheckResultActivity.java
| @@ -10,6 +10,11 @@ import com.cnlive.core.people_verfication.fragment.PersonCheckSuccessFragment; | @@ -10,6 +10,11 @@ import com.cnlive.core.people_verfication.fragment.PersonCheckSuccessFragment; | ||
| 10 | import androidx.appcompat.app.AppCompatActivity; | 10 | import androidx.appcompat.app.AppCompatActivity; |
| 11 | import androidx.fragment.app.Fragment; | 11 | import androidx.fragment.app.Fragment; |
| 12 | 12 | ||
| 13 | +/** | ||
| 14 | + * 认证结果判断 | ||
| 15 | + * @Author hanyayun | ||
| 16 | + * @Date 2020/4/7 | ||
| 17 | + */ | ||
| 13 | public class CheckResultActivity extends AppCompatActivity { | 18 | public class CheckResultActivity extends AppCompatActivity { |
| 14 | 19 | ||
| 15 | private String userId,code,type; | 20 | private String userId,code,type; |
core/dentity_verfication/src/main/java/com/cnlive/core/people_verfication/activity/PersonCheckActivity.java
| @@ -5,7 +5,11 @@ import android.os.Bundle; | @@ -5,7 +5,11 @@ import android.os.Bundle; | ||
| 5 | import com.cnlive.core.people_verfication.R; | 5 | import com.cnlive.core.people_verfication.R; |
| 6 | 6 | ||
| 7 | import androidx.appcompat.app.AppCompatActivity; | 7 | import androidx.appcompat.app.AppCompatActivity; |
| 8 | - | 8 | +/** |
| 9 | + * 个人认证结果页面 | ||
| 10 | + * @Author hanyayun | ||
| 11 | + * @Date 2020/4/7 | ||
| 12 | + */ | ||
| 9 | public class PersonCheckActivity extends AppCompatActivity { | 13 | public class PersonCheckActivity extends AppCompatActivity { |
| 10 | 14 | ||
| 11 | private String code; | 15 | private String code; |
core/dentity_verfication/src/main/java/com/cnlive/core/people_verfication/activity/TakeIdentityPictureActivity.java
| @@ -28,6 +28,8 @@ import androidx.databinding.ViewDataBinding; | @@ -28,6 +28,8 @@ import androidx.databinding.ViewDataBinding; | ||
| 28 | 28 | ||
| 29 | /** | 29 | /** |
| 30 | * 拍摄照片 身份证件采集 | 30 | * 拍摄照片 身份证件采集 |
| 31 | + * @Author hanyayun | ||
| 32 | + * @Date 2020/4/2 | ||
| 31 | */ | 33 | */ |
| 32 | public class TakeIdentityPictureActivity extends BaseActivity<TakeIdentityPictureView, TakeIdentityPicturePresenter> { | 34 | public class TakeIdentityPictureActivity extends BaseActivity<TakeIdentityPictureView, TakeIdentityPicturePresenter> { |
| 33 | 35 |
core/dentity_verfication/src/main/java/com/cnlive/core/people_verfication/fragment/CheckResultFragment.java
| @@ -14,7 +14,9 @@ import androidx.annotation.Nullable; | @@ -14,7 +14,9 @@ import androidx.annotation.Nullable; | ||
| 14 | import androidx.fragment.app.Fragment; | 14 | import androidx.fragment.app.Fragment; |
| 15 | 15 | ||
| 16 | /** | 16 | /** |
| 17 | - * A simple {@link Fragment} subclass. | 17 | + * 认证审核结果页面 |
| 18 | + * @Author hanyayun | ||
| 19 | + * @Date 2020/4/7 | ||
| 18 | */ | 20 | */ |
| 19 | public class CheckResultFragment extends Fragment { | 21 | public class CheckResultFragment extends Fragment { |
| 20 | 22 | ||
| @@ -57,10 +59,12 @@ public class CheckResultFragment extends Fragment { | @@ -57,10 +59,12 @@ public class CheckResultFragment extends Fragment { | ||
| 57 | type = getArguments().getString("type"); | 59 | type = getArguments().getString("type"); |
| 58 | if(type.equals("company")){//0和2都是一个页面 | 60 | if(type.equals("company")){//0和2都是一个页面 |
| 59 | result_img.setImageResource(R.drawable.check_icon); | 61 | result_img.setImageResource(R.drawable.check_icon); |
| 60 | - result_tx.setText("审核进度以及结果请您去pc端查看"); | 62 | + result_tx.setText("您提交资料已完成,查询审核状态需登录PC端操作"); |
| 61 | result_btn.setText("返回"); | 63 | result_btn.setText("返回"); |
| 64 | + view.findViewById(R.id.company_ly).setVisibility(View.VISIBLE); | ||
| 62 | result_btn.setOnClickListener(view1 -> getActivity().finish()); | 65 | result_btn.setOnClickListener(view1 -> getActivity().finish()); |
| 63 | }else if(type.equals("person")){ | 66 | }else if(type.equals("person")){ |
| 67 | + view.findViewById(R.id.company_ly).setVisibility(View.GONE); | ||
| 64 | if(code.equals("0")){//审核中 | 68 | if(code.equals("0")){//审核中 |
| 65 | result_img.setImageResource(R.drawable.check_icon); | 69 | result_img.setImageResource(R.drawable.check_icon); |
| 66 | result_tx.setText(getString(R.string.checking)); | 70 | result_tx.setText(getString(R.string.checking)); |
core/dentity_verfication/src/main/java/com/cnlive/core/people_verfication/fragment/CompanyCheckSuccessFragment.java
| @@ -10,7 +10,9 @@ import com.cnlive.core.people_verfication.R; | @@ -10,7 +10,9 @@ import com.cnlive.core.people_verfication.R; | ||
| 10 | import androidx.fragment.app.Fragment; | 10 | import androidx.fragment.app.Fragment; |
| 11 | 11 | ||
| 12 | /** | 12 | /** |
| 13 | - * A simple {@link Fragment} subclass. | 13 | + * 结构认证成功页面 |
| 14 | + * @Author hanyayun | ||
| 15 | + * @Date 2020/4/7 | ||
| 14 | */ | 16 | */ |
| 15 | public class CompanyCheckSuccessFragment extends Fragment { | 17 | public class CompanyCheckSuccessFragment extends Fragment { |
| 16 | 18 |
core/dentity_verfication/src/main/java/com/cnlive/core/people_verfication/fragment/PersonCheckFragment.java
| @@ -14,7 +14,9 @@ import androidx.annotation.Nullable; | @@ -14,7 +14,9 @@ import androidx.annotation.Nullable; | ||
| 14 | import androidx.fragment.app.Fragment; | 14 | import androidx.fragment.app.Fragment; |
| 15 | 15 | ||
| 16 | /** | 16 | /** |
| 17 | - * A simple {@link Fragment} subclass. | 17 | + * 个人检测页面 |
| 18 | + * @Author hanyayun | ||
| 19 | + * @Date 2020/4/7 | ||
| 18 | */ | 20 | */ |
| 19 | public class PersonCheckFragment extends Fragment { | 21 | public class PersonCheckFragment extends Fragment { |
| 20 | 22 |
core/dentity_verfication/src/main/java/com/cnlive/core/people_verfication/fragment/PersonCheckSuccessFragment.java
| @@ -10,7 +10,9 @@ import com.cnlive.core.people_verfication.R; | @@ -10,7 +10,9 @@ import com.cnlive.core.people_verfication.R; | ||
| 10 | import androidx.fragment.app.Fragment; | 10 | import androidx.fragment.app.Fragment; |
| 11 | 11 | ||
| 12 | /** | 12 | /** |
| 13 | - * A simple {@link Fragment} subclass. | 13 | + * 个人检测成功页面 |
| 14 | + * @Author hanyayun | ||
| 15 | + * @Date 2020/4/7 | ||
| 14 | */ | 16 | */ |
| 15 | public class PersonCheckSuccessFragment extends Fragment { | 17 | public class PersonCheckSuccessFragment extends Fragment { |
| 16 | 18 |
core/dentity_verfication/src/main/java/com/cnlive/core/people_verfication/fragment/TakeIdentityPictureFragment.java
| @@ -10,7 +10,9 @@ import com.cnlive.core.people_verfication.R; | @@ -10,7 +10,9 @@ import com.cnlive.core.people_verfication.R; | ||
| 10 | import androidx.fragment.app.Fragment; | 10 | import androidx.fragment.app.Fragment; |
| 11 | 11 | ||
| 12 | /** | 12 | /** |
| 13 | - * A simple {@link Fragment} subclass. | 13 | + * 身份采集页面 |
| 14 | + * @Author hanyayun | ||
| 15 | + * @Date 2020/4/7 | ||
| 14 | */ | 16 | */ |
| 15 | public class TakeIdentityPictureFragment extends Fragment { | 17 | public class TakeIdentityPictureFragment extends Fragment { |
| 16 | 18 |
core/dentity_verfication/src/main/res/layout/fragment_check_result.xml
| @@ -32,6 +32,56 @@ | @@ -32,6 +32,56 @@ | ||
| 32 | android:textSize="15sp" | 32 | android:textSize="15sp" |
| 33 | android:text="@string/checking"/> | 33 | android:text="@string/checking"/> |
| 34 | 34 | ||
| 35 | + <LinearLayout | ||
| 36 | + android:id="@+id/company_ly" | ||
| 37 | + android:layout_width="wrap_content" | ||
| 38 | + android:layout_height="wrap_content" | ||
| 39 | + android:layout_marginTop="15dp" | ||
| 40 | + android:orientation="vertical" | ||
| 41 | + android:visibility="gone" | ||
| 42 | + android:layout_gravity="center_horizontal"> | ||
| 43 | + | ||
| 44 | + <LinearLayout | ||
| 45 | + android:layout_width="wrap_content" | ||
| 46 | + android:layout_height="wrap_content" | ||
| 47 | + android:layout_gravity="center_horizontal" | ||
| 48 | + android:orientation="horizontal"> | ||
| 49 | + <TextView | ||
| 50 | + android:layout_width="wrap_content" | ||
| 51 | + android:layout_height="wrap_content" | ||
| 52 | + android:text="@string/please_copy" | ||
| 53 | + android:textColor="@color/color_999999" | ||
| 54 | + android:textSize="14sp"/> | ||
| 55 | + <TextView | ||
| 56 | + android:layout_width="wrap_content" | ||
| 57 | + android:layout_height="wrap_content" | ||
| 58 | + android:text="http://open.cnlive.com" | ||
| 59 | + android:textColor="#4CAAFC" | ||
| 60 | + android:textSize="14sp"/> | ||
| 61 | + </LinearLayout> | ||
| 62 | + | ||
| 63 | + <TextView | ||
| 64 | + android:layout_width="wrap_content" | ||
| 65 | + android:layout_height="wrap_content" | ||
| 66 | + android:layout_gravity="center_horizontal" | ||
| 67 | + android:layout_marginTop="10dp" | ||
| 68 | + android:text="@string/serch_pc" | ||
| 69 | + android:textColor="@color/color_999999" | ||
| 70 | + android:textSize="14sp"/> | ||
| 71 | + | ||
| 72 | + <TextView | ||
| 73 | + android:layout_width="wrap_content" | ||
| 74 | + android:layout_height="wrap_content" | ||
| 75 | + android:lineHeight="20dp" | ||
| 76 | + android:layout_gravity="center_horizontal" | ||
| 77 | + android:gravity="center_horizontal" | ||
| 78 | + android:layout_marginTop="90dp" | ||
| 79 | + android:text="@string/n_pc_n" | ||
| 80 | + android:textColor="@color/color_F56950" | ||
| 81 | + android:textSize="12sp"/> | ||
| 82 | + | ||
| 83 | + </LinearLayout> | ||
| 84 | + | ||
| 35 | <TextView | 85 | <TextView |
| 36 | android:id="@+id/resule_btn" | 86 | android:id="@+id/resule_btn" |
| 37 | android:layout_width="match_parent" | 87 | android:layout_width="match_parent" |
| @@ -43,7 +93,7 @@ | @@ -43,7 +93,7 @@ | ||
| 43 | android:textColor="@color/white" | 93 | android:textColor="@color/white" |
| 44 | android:textSize="18sp" | 94 | android:textSize="18sp" |
| 45 | android:background="@drawable/bg_apply_btn" | 95 | android:background="@drawable/bg_apply_btn" |
| 46 | - android:layout_marginTop="50dp"/> | 96 | + android:layout_marginTop="40dp"/> |
| 47 | </LinearLayout> | 97 | </LinearLayout> |
| 48 | 98 | ||
| 49 | </RelativeLayout> | 99 | </RelativeLayout> |
| 50 | \ No newline at end of file | 100 | \ No newline at end of file |
core/dentity_verfication/src/main/res/values/colors.xml
0 → 100644
core/dentity_verfication/src/main/res/values/strings.xml
| @@ -27,4 +27,7 @@ | @@ -27,4 +27,7 @@ | ||
| 27 | <string name="to_check">去认证</string> | 27 | <string name="to_check">去认证</string> |
| 28 | 28 | ||
| 29 | <string name="string_fill_in_company_data_license_tip">我同意并已阅读<font color="#4EABFD">《中国网+内容安全协议》</font></string> | 29 | <string name="string_fill_in_company_data_license_tip">我同意并已阅读<font color="#4EABFD">《中国网+内容安全协议》</font></string> |
| 30 | + <string name="please_copy">请复制链接:</string> | ||
| 31 | + <string name="serch_pc">到电脑浏览器打开查询</string> | ||
| 32 | + <string name="n_pc_n">-----查询须知:-----\n若您在PC端从未注册登录,注册时填写的手机号与\n网家家企业端的手机号保持一致,否则无法查询</string> | ||
| 30 | </resources> | 33 | </resources> |