中建365-二期开发-优化相关页面

develop
wlh 1 year ago
parent 423c32ae16
commit 9fa56534b6

@ -112,7 +112,7 @@ class RegisterAct : BaseVmAct<RegisterVm>() {
pwd
)
}
binding.mPrivate.setOnClickListener {
binding.seleck.setOnClickListener {
it.isSelected = !it.isSelected
}
setPrv()

@ -100,38 +100,6 @@ class PrevDialog(context: Context, private var agree: () -> Unit, private var gi
}
}, 79, 85, Spanned.SPAN_INCLUSIVE_INCLUSIVE)
/*span.setSpan(object : ClickableSpan() {
override fun onClick(widget: View) {
val bundle = Bundle()
bundle.putString("title", "隐私政策")
bundle.putString("url", "https://auprty.com/app/static/app/privacy.html")
RouteManager.goAct(ARouterUrl.AGREEMNT_READ_WEB_ACT, bundle)
}
override fun updateDrawState(ds: TextPaint) {
super.updateDrawState(ds)
ds.color = txtCol
ds.isUnderlineText = false
ds.clearShadowLayer()
}
}, 92, 98, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE)
span.setSpan(object : ClickableSpan() {
override fun onClick(widget: View) {
val bundle = Bundle()
bundle.putString("title", "中健三六五健康 APP 权限列表")
bundle.putString("url", "https://auprty.com/app/static/app/permission.html")
RouteManager.goAct(ARouterUrl.AGREEMNT_READ_WEB_ACT, bundle)
}
override fun updateDrawState(ds: TextPaint) {
super.updateDrawState(ds)
ds.color = txtCol
ds.isUnderlineText = false
ds.clearShadowLayer()
}
}, 99, 114, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE)*/
binding.mContent.text = span
binding.mContent.highlightColor = Color.TRANSPARENT

@ -149,20 +149,32 @@
android:textStyle="bold"
android:layout_marginTop="@dimen/dp_57"
android:textSize="@dimen/sp_18" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_12"
android:gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:id="@+id/seleck"
android:layout_width="@dimen/dp_15"
android:layout_height="@dimen/dp_15"
android:background="@drawable/selctor_check_sel"
android:padding="@dimen/dp_10" />
<TextView
android:id="@+id/mPrivate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_marginTop="@dimen/dp_17"
android:drawableLeft="@drawable/selctor_check_sel"
android:drawablePadding="@dimen/dp_6"
android:layout_gravity="center"
android:layout_marginLeft="@dimen/dp_8"
android:gravity="center"
android:textSize="@dimen/sp_13"
android:text="隐私条款"
android:textColor="@color/col_7c7"
android:textSize="@dimen/sp_12"
tools:ignore="UseCompatTextViewDrawableXml" />
android:textColor="@color/col_c7c" />
</LinearLayout>
<TextView

@ -29,15 +29,13 @@ class AgreementAct : IBaseAct() {
binding.mTvAgree1.setOnClickListener {
bundle.clear()
bundle.putString("title", "用户协议")
bundle.putInt("type", Const.AGREEMENT_1)
bundle.putBoolean("isAgree", false)
RouteManager.goAct(ARouterUrl.RICH_TEXT, bundle)
bundle.putString("url", "https://dc.zhongjian365.com/agreement.html")
RouteManager.goAct(ARouterUrl.AGREEMNT_READ_WEB_ACT, bundle)
}
binding.mTvAgree2.setOnClickListener {
bundle.clear()
bundle.putString("title", "隐私政策")
bundle.putBoolean("isAgree", false)
bundle.putString("url","https://auprty.com/app/static/app/privacy.html")
bundle.putString("url", "https://dc.zhongjian365.com/privacy.html")
RouteManager.goAct(ARouterUrl.AGREEMNT_READ_WEB_ACT, bundle)
}

Loading…
Cancel
Save