Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
X
xxsq
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王雪伟
xxsq
Commits
01ac5f02
Commit
01ac5f02
authored
Jun 10, 2022
by
王雪伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[提交人]:王雪伟
[提交简述] :小象省钱 [实现方案] :加入优惠券弹窗
parent
e91d279d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
RechargeActivity.kt
...ain/java/com/zxbw/modulemain/activity/RechargeActivity.kt
+1
-1
HuafeiCouponsAdapter.kt
.../java/com/zxbw/modulemain/adapter/HuafeiCouponsAdapter.kt
+9
-1
No files found.
moduleMain/src/main/java/com/zxbw/modulemain/activity/RechargeActivity.kt
View file @
01ac5f02
...
...
@@ -48,7 +48,7 @@ class RechargeActivity : BaseActivity(), OnRecycleItemClickListener<MemberEntity
//如果有默认选中,传入默认选中的优惠券
DialogUtils
.
showFetchAllCard
(
this
,
""
,
"
100
"
,
null
,
mCouponsResult
,
object
:
DialogUtils
.
OnFetchCardListener
{
...
...
moduleMain/src/main/java/com/zxbw/modulemain/adapter/HuafeiCouponsAdapter.kt
View file @
01ac5f02
...
...
@@ -55,9 +55,17 @@ class HuafeiCouponsAdapter : BaseRecyclerAdapter<CouponsEntity, HuafeiCouponsAda
Utils
.
showToast
(
mContext
,
"无法使用此优惠券"
)
return
@setOnClickListener
}
else
if
(
originalPrice
==
"100"
)
{
if
(
couponsEntity
.
amount
!=
"5"
)
{
if
(
couponsEntity
.
amount
!=
"5
.0
"
)
{
Utils
.
showToast
(
mContext
,
"无法使用此优惠券"
)
return
@setOnClickListener
}
else
{
if
(
mSelectPos
!=
position
)
{
mSelectPos
=
position
listener
.
onItemClick
(
it
,
position
,
couponsEntity
)
}
else
{
mSelectPos
=
-
1
;
listener
.
onItemClick
(
it
,
position
,
null
)
}
}
}
else
{
if
(
mSelectPos
!=
position
)
{
...
...
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