刷脸认证成功页面优化
This commit is contained in:
parent
7a02706b75
commit
83fc537c8d
@ -32,11 +32,11 @@ public class FaceSuccActivity extends BaseAppCompatActivity {
|
||||
Button btnAddCar = findViewById(R.id.btnAddCar);
|
||||
boolean isGoCar = getIntent().getBooleanExtra("isGoCar", false);
|
||||
if (isGoCar){
|
||||
btnHome.setText("返回");
|
||||
btnAddCar.setVisibility(View.GONE);
|
||||
}else{
|
||||
btnHome.setText("返回首页");
|
||||
btnAddCar.setVisibility(View.VISIBLE);
|
||||
}else{
|
||||
btnHome.setText("返回");
|
||||
btnAddCar.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
btnHome.setOnClickListener(v -> finish());
|
||||
@ -44,6 +44,7 @@ public class FaceSuccActivity extends BaseAppCompatActivity {
|
||||
Intent in = new Intent(con, CertificatesActivity.class);
|
||||
in.putExtra("index", 2);
|
||||
startActivity(in);
|
||||
finish();
|
||||
});
|
||||
|
||||
}
|
||||
|
@ -13,6 +13,7 @@ import android.widget.Toast;
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.arpa.hndahesudintocctmsdriver.parts.ConfigParts;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.web.WebOnlyOneActivity;
|
||||
import com.google.gson.Gson;
|
||||
import com.lxj.xpopup.XPopup;
|
||||
import com.arpa.hndahesudintocctmsdriver.R;
|
||||
@ -94,19 +95,19 @@ public class SetupActivity extends BaseActivity {
|
||||
public void initView(Object obj) {
|
||||
super.initView(obj);
|
||||
r1.setOnClickListener(v12 -> {
|
||||
Intent in=new Intent(con,WebActivity.class);
|
||||
Intent in=new Intent(con, WebOnlyOneActivity.class);
|
||||
in.putExtra("title","隐私政策");
|
||||
in.putExtra("url",url2);
|
||||
startActivity(in);
|
||||
});
|
||||
r2.setOnClickListener(v12 -> {
|
||||
Intent in=new Intent(con,WebActivity.class);
|
||||
Intent in=new Intent(con,WebOnlyOneActivity.class);
|
||||
in.putExtra("title","用户协议");
|
||||
in.putExtra("url",url1);
|
||||
startActivity(in);
|
||||
});
|
||||
r3.setOnClickListener(v12 -> {
|
||||
Intent in=new Intent(con,WebActivity.class);
|
||||
Intent in=new Intent(con,WebOnlyOneActivity.class);
|
||||
in.putExtra("title","运输安全责任书");
|
||||
in.putExtra("url",url3);
|
||||
startActivity(in);
|
||||
@ -121,7 +122,7 @@ public class SetupActivity extends BaseActivity {
|
||||
startActivity(in);
|
||||
});
|
||||
r8.setOnClickListener(v12 -> {
|
||||
Intent in=new Intent(con,WebActivity.class);
|
||||
Intent in=new Intent(con,WebOnlyOneActivity.class);
|
||||
in.putExtra("title","交易规则");
|
||||
in.putExtra("url","http://agreement.dahehuoyun.com/rule/transactionRules/dist/index.html#/");
|
||||
startActivity(in);
|
||||
|
@ -6,7 +6,7 @@
|
||||
android:startColor="#0b64f6 " android:endColor="#5cb3fd"
|
||||
android:centerX="0" android:centerY="0"
|
||||
android:gradientRadius="@dimen/dp_63" />
|
||||
<corners android:radius="@dimen/dp_16" />
|
||||
<corners android:radius="@dimen/dp_19" />
|
||||
</shape>
|
||||
|
||||
</item>
|
||||
|
@ -3,7 +3,7 @@
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="#E1ECFF" />
|
||||
<corners android:radius="@dimen/dp_16" />
|
||||
<corners android:radius="@dimen/dp_19" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
@ -46,15 +46,15 @@
|
||||
<LinearLayout
|
||||
android:layout_marginTop="@dimen/dp_10"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="@dimen/dp_46"
|
||||
android:layout_below="@+id/tvTitle"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnHome"
|
||||
android:layout_width="@dimen/dp_100"
|
||||
android:layout_height="@dimen/dp_32"
|
||||
android:layout_width="@dimen/dp_110"
|
||||
android:layout_height="@dimen/dp_38"
|
||||
android:background="@drawable/bg_btn_green16"
|
||||
android:text="返回首页"
|
||||
android:textColor="#0966FF" />
|
||||
@ -63,8 +63,8 @@
|
||||
android:layout_marginLeft="@dimen/dp_20"
|
||||
android:id="@+id/btnAddCar"
|
||||
android:textColor="@color/white"
|
||||
android:layout_width="@dimen/dp_100"
|
||||
android:layout_height="@dimen/dp_32"
|
||||
android:layout_width="@dimen/dp_110"
|
||||
android:layout_height="@dimen/dp_38"
|
||||
android:background="@drawable/bg_btn_deepgreen16"
|
||||
android:text="添加车辆" />
|
||||
</LinearLayout>
|
||||
|
Loading…
Reference in New Issue
Block a user