Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MiYaFastCashier
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiangjiantao
MiYaFastCashier
Commits
3f501e95
Commit
3f501e95
authored
Oct 21, 2022
by
赵鹏翔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
匡威手持添加通联支付方式,具体code待添加
parent
42dc7380
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
9 deletions
+10
-9
SearchOrderActivity.kt
.../main/java/com/miya/fastcashier/ui/SearchOrderActivity.kt
+5
-2
activity_search_order.xml
app/src/main/res/layout/activity_search_order.xml
+1
-1
colors.xml
app/src/main/res/values/colors.xml
+1
-0
MiYaPayPlantformPayWayEnum.java
...r/lib_common/function/pay/MiYaPayPlantformPayWayEnum.java
+3
-6
No files found.
app/src/main/java/com/miya/fastcashier/ui/SearchOrderActivity.kt
View file @
3f501e95
...
...
@@ -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
()
...
...
app/src/main/res/layout/activity_search_order.xml
View file @
3f501e95
...
...
@@ -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"
...
...
app/src/main/res/values/colors.xml
View file @
3f501e95
...
...
@@ -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>
...
...
lib_common/src/main/java/com/fastcashier/lib_common/function/pay/MiYaPayPlantformPayWayEnum.java
View file @
3f501e95
...
...
@@ -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 {
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment