中建365-兑换码
parent
417542f6ad
commit
abc608e326
@ -0,0 +1,4 @@
|
|||||||
|
package com.xty.common.event
|
||||||
|
|
||||||
|
class BackGroundEvent(var isBackGround:Boolean) {
|
||||||
|
}
|
@ -0,0 +1,35 @@
|
|||||||
|
package com.zj365.health.act
|
||||||
|
|
||||||
|
import android.view.View
|
||||||
|
import com.alibaba.android.arouter.facade.annotation.Route
|
||||||
|
import com.xty.base.act.IBaseAct
|
||||||
|
import com.xty.common.arouter.ARouterUrl
|
||||||
|
import com.xty.common.setImage
|
||||||
|
import com.xty.common.setRoundImage
|
||||||
|
import com.zj365.health.databinding.ActNsuanHowOpenBinding
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 尿酸如何获取兑换码 显示加载
|
||||||
|
*/
|
||||||
|
@Route(path = ARouterUrl.NS_HOW_OPEN)
|
||||||
|
class NSuanHowOpenAct : IBaseAct() {
|
||||||
|
|
||||||
|
val binding by lazy { ActNsuanHowOpenBinding.inflate(layoutInflater) }
|
||||||
|
override fun setLayout(): View = binding.root
|
||||||
|
|
||||||
|
private var url = ""
|
||||||
|
private var titleName = "如何获取兑换码"
|
||||||
|
|
||||||
|
override fun initData() {
|
||||||
|
super.initData()
|
||||||
|
isDarkBar = true
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun initView() {
|
||||||
|
super.initView()
|
||||||
|
statusBar(binding.title.mView)
|
||||||
|
binding.title.mIvBack.setOnClickListener { finish() }
|
||||||
|
binding.title.mTvTitle.text = titleName
|
||||||
|
binding.imgDesc.setImage(this,"https://image.zhongjian365.com/images/fwk/ns.png")
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,40 @@
|
|||||||
|
package com.zj365.health.act
|
||||||
|
|
||||||
|
import com.alibaba.android.arouter.facade.annotation.Route
|
||||||
|
import com.xty.base.act.IBaseAct
|
||||||
|
import com.xty.common.arouter.ARouterUrl
|
||||||
|
import com.xty.common.setImage
|
||||||
|
import com.xty.common.setRoundImage
|
||||||
|
import com.zj365.health.databinding.ActXtangHowOpenBinding
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 血糖如何获取兑换码 显示加载
|
||||||
|
*/
|
||||||
|
@Route(path = ARouterUrl.XT_HOW_OPEN)
|
||||||
|
class XTangHowOpenAct : IBaseAct() {
|
||||||
|
val binding by lazy { ActXtangHowOpenBinding.inflate(layoutInflater) }
|
||||||
|
override fun setLayout() = binding.root
|
||||||
|
private var url = ""
|
||||||
|
private var titleName = "如何获取兑换码"
|
||||||
|
override fun initData() {
|
||||||
|
super.initData()
|
||||||
|
isDarkBar = true
|
||||||
|
// intent.extras?.let {
|
||||||
|
// url = it.getString("url", "")
|
||||||
|
// titleName = it.getString("title", "")
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun initView() {
|
||||||
|
super.initView()
|
||||||
|
statusBar(binding.title.mView)
|
||||||
|
binding.title.mIvBack.setOnClickListener { finish() }
|
||||||
|
binding.title.mTvTitle.text = titleName
|
||||||
|
binding.imgDesc.setImage(this,"https://image.zhongjian365.com/images/fwk/xt.png")
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,36 @@
|
|||||||
|
package com.zj365.health.act
|
||||||
|
|
||||||
|
import android.view.View
|
||||||
|
import com.alibaba.android.arouter.facade.annotation.Route
|
||||||
|
import com.xty.base.act.IBaseAct
|
||||||
|
import com.xty.common.arouter.ARouterUrl
|
||||||
|
import com.xty.common.setImage
|
||||||
|
import com.xty.common.setRoundImage
|
||||||
|
import com.zj365.health.databinding.ActXzhiHowOpenBinding
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 尿酸如何获取兑换码 显示加载
|
||||||
|
*/
|
||||||
|
@Route(path = ARouterUrl.XZ_HOW_OPEN)
|
||||||
|
class XZhiHowOpenAct : IBaseAct() {
|
||||||
|
|
||||||
|
val binding by lazy { ActXzhiHowOpenBinding.inflate(layoutInflater) }
|
||||||
|
override fun setLayout(): View = binding.root
|
||||||
|
|
||||||
|
private var url = ""
|
||||||
|
private var titleName = "如何获取兑换码"
|
||||||
|
|
||||||
|
override fun initData() {
|
||||||
|
super.initData()
|
||||||
|
isDarkBar = true
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun initView() {
|
||||||
|
super.initView()
|
||||||
|
statusBar(binding.title.mView)
|
||||||
|
binding.title.mIvBack.setOnClickListener { finish() }
|
||||||
|
binding.title.mTvTitle.text = titleName
|
||||||
|
binding.imgDesc.setImage(this,"https://image.zhongjian365.com/images/fwk/xz.png")
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,53 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:background="#F2F6F7"
|
||||||
|
tools:ignore="MissingDefaultResource">
|
||||||
|
|
||||||
|
<include
|
||||||
|
android:id="@+id/title"
|
||||||
|
layout="@layout/white_title_dark_bar" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/dp_13"
|
||||||
|
android:layout_marginStart="@dimen/dp_14"
|
||||||
|
android:layout_marginEnd="@dimen/dp_14"
|
||||||
|
android:layout_marginBottom="@dimen/dp_12"
|
||||||
|
android:background="@drawable/shape_round_white"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:padding="@dimen/dp_24">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="@dimen/dp_21"
|
||||||
|
android:drawableStart="@drawable/shape_head_tip_new"
|
||||||
|
android:drawablePadding="@dimen/dp_10"
|
||||||
|
android:text="如何获取兑换码 "
|
||||||
|
android:textColor="@color/col_313"
|
||||||
|
android:textSize="@dimen/sp_17"
|
||||||
|
tools:ignore="HardcodedText,UseCompatTextViewDrawableXml" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/nsuan_how_open" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/img_desc"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:scaleType="matrix"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:layout_marginLeft="@dimen/dp_14"
|
||||||
|
android:layout_marginRight="@dimen/dp_14"
|
||||||
|
/>
|
||||||
|
|
||||||
|
</LinearLayout>
|
@ -0,0 +1,48 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:orientation="vertical"
|
||||||
|
tools:ignore="MissingDefaultResource">
|
||||||
|
|
||||||
|
<include
|
||||||
|
android:id="@+id/title"
|
||||||
|
layout="@layout/title_dark_bar" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_margin="@dimen/dp_12"
|
||||||
|
android:background="@drawable/shape_round_white"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:padding="@dimen/dp_24">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="@dimen/dp_18"
|
||||||
|
android:drawableLeft="@drawable/shape_head_tip_new"
|
||||||
|
android:drawablePadding="@dimen/dp_10"
|
||||||
|
android:text="如何获取兑换码 "
|
||||||
|
android:textColor="@color/col_313"
|
||||||
|
android:textSize="@dimen/dp_16" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/xtang_how_open" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/img_desc"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:scaleType="matrix"
|
||||||
|
android:layout_marginLeft="@dimen/dp_16"
|
||||||
|
android:layout_marginRight="@dimen/dp_16"
|
||||||
|
|
||||||
|
android:layout_gravity="center"
|
||||||
|
/>
|
||||||
|
|
||||||
|
</LinearLayout>
|
@ -0,0 +1,53 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:background="#F2F6F7"
|
||||||
|
tools:ignore="MissingDefaultResource">
|
||||||
|
|
||||||
|
<include
|
||||||
|
android:id="@+id/title"
|
||||||
|
layout="@layout/white_title_dark_bar" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/dp_13"
|
||||||
|
android:layout_marginStart="@dimen/dp_14"
|
||||||
|
android:layout_marginEnd="@dimen/dp_14"
|
||||||
|
android:layout_marginBottom="@dimen/dp_12"
|
||||||
|
android:background="@drawable/shape_round_white"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:padding="@dimen/dp_24">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="@dimen/dp_21"
|
||||||
|
android:drawableStart="@drawable/shape_head_tip_new"
|
||||||
|
android:drawablePadding="@dimen/dp_10"
|
||||||
|
android:text="如何获取兑换码 "
|
||||||
|
android:textColor="@color/col_313"
|
||||||
|
android:textSize="@dimen/sp_17"
|
||||||
|
tools:ignore="HardcodedText,UseCompatTextViewDrawableXml" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/xzhi_how_open" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/img_desc"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:scaleType="matrix"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:layout_marginLeft="@dimen/dp_14"
|
||||||
|
android:layout_marginRight="@dimen/dp_14"
|
||||||
|
/>
|
||||||
|
|
||||||
|
</LinearLayout>
|
@ -0,0 +1,140 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:id="@+id/home_coordinatorLayout"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="@color/white"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<include
|
||||||
|
android:id="@+id/title"
|
||||||
|
layout="@layout/white_title_dark_bar" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="@dimen/dp_40"
|
||||||
|
android:layout_marginTop="@dimen/dp_16"
|
||||||
|
android:layout_marginLeft="@dimen/dp_24"
|
||||||
|
android:layout_marginRight="@dimen/dp_24"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:gravity="center|start"
|
||||||
|
android:text="兑换码开通"
|
||||||
|
android:textColor="@color/col_313"
|
||||||
|
android:textSize="@dimen/sp_16"
|
||||||
|
tools:ignore="HardcodedText" />
|
||||||
|
|
||||||
|
<!-- 获取兑换码 -->
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/mTvConvert"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="@drawable/text_underline"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="如何获取兑换码?"
|
||||||
|
android:textColor="@color/col_25C"
|
||||||
|
android:textSize="@dimen/sp_12"
|
||||||
|
tools:ignore="HardcodedText" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<!-- 激活码 -->
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/dp_28"
|
||||||
|
android:layout_marginEnd="@dimen/dp_24"
|
||||||
|
android:layout_marginStart="@dimen/dp_24"
|
||||||
|
android:background="@drawable/shape_btn_select_bg_inside_white"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<EditText
|
||||||
|
android:id="@+id/mTvActCode"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="@dimen/dp_24"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:background="@null"
|
||||||
|
android:hint="请填写激活码"
|
||||||
|
android:paddingStart="@dimen/dp_12"
|
||||||
|
android:paddingTop="@dimen/dp_14"
|
||||||
|
android:paddingBottom="@dimen/dp_14"
|
||||||
|
android:textColor="@color/col_3b4"
|
||||||
|
android:textColorHint="@color/col_6B6"
|
||||||
|
android:textSize="@dimen/sp_13"
|
||||||
|
tools:ignore="HardcodedText,RtlSymmetry" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/llScan"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="@dimen/dp_20"
|
||||||
|
android:layout_height="@dimen/dp_20"
|
||||||
|
android:layout_gravity="center_vertical"
|
||||||
|
android:layout_marginEnd="@dimen/dp_5"
|
||||||
|
android:background="@mipmap/ic_scan" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="@dimen/dp_20"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:text="去扫码"
|
||||||
|
android:textColor="@color/col_8D0"
|
||||||
|
android:textSize="@dimen/sp_12"
|
||||||
|
android:textStyle="bold"
|
||||||
|
tools:ignore="HardcodedText" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<!-- 分割线 -->
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="@dimen/dp_1"
|
||||||
|
android:layout_marginLeft="@dimen/dp_16"
|
||||||
|
android:layout_marginRight="@dimen/dp_16"
|
||||||
|
android:background="@color/col_e4e4"
|
||||||
|
android:visibility="gone" />
|
||||||
|
|
||||||
|
<!-- 开通须知 -->
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/mPrivate"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:layout_marginLeft="@dimen/dp_24"
|
||||||
|
android:layout_marginTop="@dimen/dp_31"
|
||||||
|
android:layout_marginRight="@dimen/dp_24"
|
||||||
|
android:drawableStart="@drawable/selctor_check_sel"
|
||||||
|
android:drawablePadding="@dimen/dp_6"
|
||||||
|
android:text="开通须知:此兑换码仅限本人使用,开通完成之后,无法二次兑换。"
|
||||||
|
android:textColor="@color/col_c2c"
|
||||||
|
android:textSize="@dimen/sp_15"
|
||||||
|
tools:ignore="HardcodedText,UseCompatTextViewDrawableXml" />
|
||||||
|
|
||||||
|
<!-- 确定兑换 -->
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/mConfirm"
|
||||||
|
android:layout_width="@dimen/dp_172"
|
||||||
|
android:layout_height="@dimen/dp_50"
|
||||||
|
android:layout_gravity="center_horizontal"
|
||||||
|
android:layout_marginTop="@dimen/dp_135"
|
||||||
|
android:background="@drawable/selector_login_btn"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="下一步"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="@dimen/sp_18"
|
||||||
|
tools:ignore="HardcodedText" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
@ -1,4 +1,5 @@
|
|||||||
<resources>
|
<resources>
|
||||||
<!-- TODO: Remove or change this placeholder text -->
|
<!-- TODO: Remove or change this placeholder text -->
|
||||||
<string name="hello_blank_fragment">Hello blank fragment</string>
|
<string name="hello_blank_fragment">Hello blank fragment</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
Loading…
Reference in New Issue