Commit 547da381 by han xu

改为圆角

parent c3fd65c0
......@@ -295,13 +295,14 @@ public class BusinessDetailActivity extends BaseActivity<BusinessDetailPresenter
mBind.btnCommit.setClickable(false);
if (1 == data.getLicenceStatus()){
mBind.btnCommit.setText("商家已认证");
mBind.btnCommit.setBackgroundColor(ContextCompat.getColor(mActivity,R.color.text_common_green));
// mBind.btnCommit.setBackgroundColor(ContextCompat.getColor(mActivity,R.color.text_common_green));
mBind.btnCommit.setBackgroundResource(R.drawable.btn_green_commom);
}else if (2 == data.getLicenceStatus()){
mBind.btnCommit.setClickable(true);
mBind.btnCommit.setText("申请商家认证");
mBind.btnCommit.setBackgroundColor(ContextCompat.getColor(mActivity,R.color.cl_receiving_order_item_data));
// mBind.btnCommit.setBackgroundColor(ContextCompat.getColor(mActivity,R.color.cl_receiving_order_item_data));
mBind.btnCommit.setBackgroundResource(R.drawable.btn_blue_react_4);
mBind.btnCommit.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
......@@ -313,7 +314,7 @@ public class BusinessDetailActivity extends BaseActivity<BusinessDetailPresenter
Api.getService(UserService2.class).finishedStudyApply(finishedStudyData).compose(Api.applySchedulers())
.subscribe(mPresenter.baseObserver(data -> {
//TODO 认证成功:刷新按钮 ( 变为商家已认证) 如果失败:弹出失败信息
//TODO 认证成功:刷新按钮 ( 变为商家已认证)
}));
......@@ -321,7 +322,8 @@ public class BusinessDetailActivity extends BaseActivity<BusinessDetailPresenter
});
}else if (2 == data.getLicenceStatus()){
mBind.btnCommit.setText("商家认证申请中");
mBind.btnCommit.setBackgroundColor(ContextCompat.getColor(mActivity,R.color.text_common_green));
// mBind.btnCommit.setBackgroundColor(ContextCompat.getColor(mActivity,R.color.text_common_green));
mBind.btnCommit.setBackgroundResource(R.drawable.btn_green_commom);
}
hideDialog();
......
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