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

develop
wlh 1 year ago
parent 423c32ae16
commit 9fa56534b6

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

@ -100,38 +100,6 @@ class PrevDialog(context: Context, private var agree: () -> Unit, private var gi
} }
}, 79, 85, Spanned.SPAN_INCLUSIVE_INCLUSIVE) }, 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.text = span
binding.mContent.highlightColor = Color.TRANSPARENT binding.mContent.highlightColor = Color.TRANSPARENT

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

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

Loading…
Cancel
Save