Commit 3f501e95 authored by 赵鹏翔's avatar 赵鹏翔

匡威手持添加通联支付方式,具体code待添加

parent 42dc7380
......@@ -54,13 +54,15 @@ class SearchOrderActivity : BaseActivity() {
binding.vpPage.adapter = object : FragmentStateAdapter(this) {
override fun getItemCount(): Int {
return 2
return 3
}
override fun createFragment(position: Int): Fragment {
return when (position) {
0 -> SearchOrderFragment(MiYaPayPlantformPayWayEnum.MiyaPayType.WEIXIN)
else -> SearchOrderFragment(MiYaPayPlantformPayWayEnum.MiyaPayType.ALIPAY)
1 -> SearchOrderFragment(MiYaPayPlantformPayWayEnum.MiyaPayType.ALIPAY)
else ->
SearchOrderFragment(MiYaPayPlantformPayWayEnum.MiyaPayType.TONGLIANZHIFU)
}
}
}
......@@ -72,6 +74,7 @@ class SearchOrderActivity : BaseActivity() {
when (position) {
0 -> tab.text = "微信"
1 -> tab.text = "支付宝"
2 -> tab.text = "通联支付"
else -> tab.text = ""
}
}.attach()
......
......@@ -16,7 +16,7 @@
android:background="@color/white"
app:layout_constraintTop_toTopOf="parent"
app:tabGravity="fill"
app:tabIndicatorColor="#FF4B8A"
app:tabIndicatorColor="@color/color_FF4B8A"
app:tabIndicatorFullWidth="false"
app:tabIndicatorHeight="5dp"
app:tabMode="fixed"
......
......@@ -25,6 +25,7 @@
<color name="color_141C30">#141C30</color>
<color name="color_D1D1DC">#D1D1DC</color>
<color name="color_323233">#323233</color>
<color name="color_FF4B8A">#FF4B8A</color>
<color name="lfile_colorAccent">#FF8000</color>
<color name="lfile_colorPrimary">#FF8000</color>
......
......@@ -28,7 +28,9 @@ public class MiYaPayPlantformPayWayEnum {
RUNQIANBAO("T", "润钱包"),
YIDONG("U", "移动钱包"),
MINSHENG("S", "民生银行"),
YINLIANSHANGWU("Q", "银联商务");
YINLIANSHANGWU("Q", "银联商务"),
//todo:待确定具体的code
TONGLIANZHIFU("", "通联支付");
/**
* 资源id
......@@ -69,9 +71,4 @@ public class MiYaPayPlantformPayWayEnum {
}
}
}
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 to comment