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
e91d279d
Commit
e91d279d
authored
Jun 10, 2022
by
王雪伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[提交人]:王雪伟
[提交简述] :小象省钱 [实现方案] :加入优惠券弹窗
parent
e4d67352
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
HuafeiCouponsAdapter.kt
.../java/com/zxbw/modulemain/adapter/HuafeiCouponsAdapter.kt
+7
-11
No files found.
moduleMain/src/main/java/com/zxbw/modulemain/adapter/HuafeiCouponsAdapter.kt
View file @
e91d279d
...
@@ -59,20 +59,16 @@ class HuafeiCouponsAdapter : BaseRecyclerAdapter<CouponsEntity, HuafeiCouponsAda
...
@@ -59,20 +59,16 @@ class HuafeiCouponsAdapter : BaseRecyclerAdapter<CouponsEntity, HuafeiCouponsAda
Utils
.
showToast
(
mContext
,
"无法使用此优惠券"
)
Utils
.
showToast
(
mContext
,
"无法使用此优惠券"
)
return
@setOnClickListener
return
@setOnClickListener
}
}
}
else
if
(
originalPrice
==
"200"
)
{
}
else
{
if
(
couponsEntity
.
amount
!=
"10"
)
{
if
(
mSelectPos
!=
position
)
{
Utils
.
showToast
(
mContext
,
"无法使用此优惠券"
)
mSelectPos
=
position
return
@setOnClickListener
listener
.
onItemClick
(
it
,
position
,
couponsEntity
)
}
else
{
mSelectPos
=
-
1
;
listener
.
onItemClick
(
it
,
position
,
null
)
}
}
}
}
if
(
mSelectPos
!=
position
)
{
mSelectPos
=
position
listener
.
onItemClick
(
it
,
position
,
couponsEntity
)
}
else
{
mSelectPos
=
-
1
;
listener
.
onItemClick
(
it
,
position
,
null
)
}
notifyDataSetChanged
()
notifyDataSetChanged
()
}
}
}
}
...
...
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