Commit 15b3c7f4 by 罗翻

审核页面修改

parent f2254e50
......@@ -26,7 +26,8 @@ import static com.dayu.utils.UtilsDate.LONG_TIME_FORMAT_TWO;
import static com.dayu.utils.UtilsDate.SHORT_DATE_FORMAT;
/**
* Created by luofan on 2017/12/12.
* Created by luofan
* on 2017/12/12.
*/
public class BindingUtils {
......
......@@ -370,7 +370,7 @@
<string name="commite_pic_one">已上传1/1张</string>
<string name="one_pic_most">最多只能选择一张照片</string>
<string name="reminder">温馨提示</string>
<string name="reminder_content">请上传真实清晰完整的手持身份证照片\n·若认证失败,可修改认证信息后再次提交"</string>
<string name="reminder_content">确保身份证上的信息没有被遮挡\n·避免证件与头部重叠\n·确保身份证内容完整清晰可见"</string>
<string name="name_not_empty">真实姓名不能为空</string>
<string name="identity_not_empty">身份证号不能为空</string>
<string name="identity_error">请输入正确的身份证号码</string>
......
......@@ -6,7 +6,8 @@ import com.dayu.common.BaseView;
import com.dayu.widgets.listener.OnCloseListener;
/**
* Created by luo on 2016/8/4.
* Created by luo
* on 2016/8/4.
*/
public interface ModifyPersonContract {
......@@ -24,8 +25,6 @@ public interface ModifyPersonContract {
public abstract void showSubmiteDialog();
public abstract void deletePic();
public abstract void uploadPic(String path);
public abstract void modifyUserInfo(String realName, String identity, String identityUrl);
......
......@@ -80,11 +80,6 @@ public class ModifyPersonPresenter extends ModifyPersonContract.Presenter {
}
@Override
public void deletePic() {
mIdentityUrl.set("");
}
@Override
public void uploadPic(String path) {
File file = new File(path);
RequestBody requestFile = RequestBody.create(MediaType.parse("multipart/form-data"), file);
......
......@@ -2,14 +2,12 @@ package com.dayu.usercenter.ui.activity;
import android.content.Intent;
import android.os.Environment;
import android.text.TextUtils;
import com.dayu.base.ui.activity.BaseActivity;
import com.dayu.usercenter.R;
import com.dayu.usercenter.databinding.ActivityModifyPersonActivityBinding;
import com.dayu.usercenter.presenter.modifyperson.ModifyPersonContract;
import com.dayu.usercenter.presenter.modifyperson.ModifyPersonPresenter;
import com.dayu.utils.ToastUtils;
import com.dayu.widgets.CustomDialog;
import com.dayu.widgets.listener.OnCloseListener;
import com.luck.picture.lib.PictureSelectionModel;
......@@ -23,7 +21,8 @@ import java.io.File;
import java.util.List;
/**
* Created by luofan on 2017/12/25.
* Created by luofan
* on 2017/12/25.
*/
public class ModifyPersonInfoActivity extends BaseActivity<ModifyPersonPresenter, ActivityModifyPersonActivityBinding> implements ModifyPersonContract.View {
......@@ -45,10 +44,6 @@ public class ModifyPersonInfoActivity extends BaseActivity<ModifyPersonPresenter
@Override
public void showPicDialog() {
if (!TextUtils.isEmpty(mPresenter.mIdentityUrl.get())) {
ToastUtils.showShortToast(R.string.one_pic_most);
return;
}
PictureSelectionModel selector = PictureSelector.create(mActivity)
.openGallery(PictureMimeType.ofImage())//全部.PictureMimeType.ofAll()、图片.ofImage()、视频.ofVideo()
.maxSelectNum(1)// 最大图片选择数量 int
......
......@@ -74,8 +74,8 @@
android:layout_marginLeft="35dp"
android:background="@null"
android:hint="@string/input_real_name"
android:textColor="@color/default_editext_color"
android:text="@={presenter.mRealName}"
android:textColor="@color/default_editext_color"
android:textSize="15sp" />
</LinearLayout>
......@@ -134,8 +134,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="15dp"
android:textColor="@color/default_editext_color"
android:text='@{presenter.mIdentityUrl==""?@string/commite_pic_zero:@string/commite_pic_one}'
android:textColor="@color/default_editext_color"
android:textSize="15sp" />
</LinearLayout>
......@@ -155,24 +155,25 @@
android:id="@+id/rl_header"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_marginLeft="15dp"
android:visibility='@{presenter.mIdentityUrl==""?View.GONE:View.VISIBLE}'>
android:layout_marginLeft="15dp">
<ImageView
android:id="@+id/iv_header"
imagecornUrl="@{presenter.mIdentityUrl}"
android:layout_width="100dp"
android:layout_height="100dp" />
android:layout_height="100dp"
android:onClick="@{()->presenter.showPicDialog()}"
android:src="@drawable/icon_submit_photo" />
<ImageView
android:id="@+id/iv_delete"
android:layout_width="18dp"
android:layout_height="18dp"
android:layout_alignParentRight="true"
android:onClick="@{()->presenter.deletePic()}"
android:src="@drawable/img_photo_delete" />
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:src="@drawable/icon_replace"
android:visibility='@{presenter.mIdentityUrl==""?View.GONE:View.VISIBLE}'
/>
</RelativeLayout>
<ImageView
......@@ -180,7 +181,6 @@
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_marginLeft="15dp"
android:onClick="@{()->presenter.showPicDialog()}"
android:src="@drawable/icon_identity_default" />
</LinearLayout>
......@@ -201,6 +201,6 @@
android:layout_marginTop="10dp"
android:text="@string/reminder_content"
android:textColor="#FF8B9198"
android:textSize="12sp" />
android:textSize="13sp" />
</LinearLayout>
</layout>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment