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
4838caf3
Commit
4838caf3
authored
Jun 10, 2022
by
王雪伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[提交人]:王雪伟
[提交简述] :小象省钱 [实现方案] :加入优惠券弹窗
parent
642edf32
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
6 deletions
+19
-6
HomeQyBannerAdapter.kt
...n/java/com/zxbw/modulemain/adapter/HomeQyBannerAdapter.kt
+7
-0
UserCenterFragment.kt
...n/java/com/zxbw/modulemain/fragment/UserCenterFragment.kt
+2
-4
DialogUtils.kt
...ain/src/main/java/com/zxbw/modulemain/view/DialogUtils.kt
+10
-2
No files found.
moduleMain/src/main/java/com/zxbw/modulemain/adapter/HomeQyBannerAdapter.kt
View file @
4838caf3
...
...
@@ -57,6 +57,13 @@ class HomeQyBannerAdapter : PagerAdapter {
}
else
{
JumpUtils
.
webJump
(
data
.
brand
,
data
.
remark
)
}
}
else
if
(
TextUtils
.
equals
(
data
.
rechargeType
,
"2"
))
{
if
(!
Constant
.
Switch
.
isOpenVip
)
{
JumpUtils
.
MemberOrderJump
()
}
else
{
//话费充值
JumpUtils
.
RechargeJump
()
}
}
else
{
JumpUtils
.
RightsDetailJump
(
data
.
brand
,
data
.
icon
)
}
...
...
moduleMain/src/main/java/com/zxbw/modulemain/fragment/UserCenterFragment.kt
View file @
4838caf3
...
...
@@ -30,11 +30,9 @@ class UserCenterFragment : BaseFragment(), AdCallback<String> {
}
id_img_kefu
?.
setOnClickListener
{
// JumpUtils.webJump("客服", NetConfig.H5.WEB_URL_CUSTOMER_SERVICE)
DialogUtils
.
showFetchAllCard
(
activity
!!
,
object
:
OnRecycleItemClickListener
<
Any
>{
override
fun
onItemClick
(
view
:
View
?,
position
:
Int
,
data
:
Any
?)
{
DialogUtils
.
showFetchAllCard
(
activity
!!
,
object
:
DialogUtils
.
OnFetchCardListener
{
override
fun
onSelectCoupons
()
{
}
})
}
...
...
moduleMain/src/main/java/com/zxbw/modulemain/view/DialogUtils.kt
View file @
4838caf3
...
...
@@ -446,8 +446,12 @@ object DialogUtils {
mDialog
.
show
()
}
interface
OnFetchCardListener
{
fun
onSelectCoupons
();
}
//话费优惠券列表
fun
showFetchAllCard
(
context
:
Activity
,
listener
:
On
RecycleItemClickListener
<
Any
>
)
{
fun
showFetchAllCard
(
context
:
Activity
,
listener
:
On
FetchCardListener
)
{
if
(
context
.
isDestroyed
)
return
val
mDialog
=
Dialog
(
context
,
R
.
style
.
CenterCompatDialogTheme
)
val
mDialogView
=
...
...
@@ -459,8 +463,12 @@ object DialogUtils {
Gravity
.
CENTER
)
val
youhuiList
=
mDialogView
.
findViewById
<
RecyclerView
>(
R
.
id
.
id_rcl_huafei_list
);
val
huafeiCouponsAdapter
=
HuafeiCouponsAdapter
(
context
,
object
:
OnRecycleItemClickListener
<
Any
>
{
override
fun
onItemClick
(
view
:
View
?,
position
:
Int
,
data
:
Any
?)
{
val
huafeiCouponsAdapter
=
HuafeiCouponsAdapter
(
context
,
listener
)
}
})
youhuiList
.
layoutManager
=
GridLayoutManager
(
context
,
2
)
youhuiList
.
adapter
=
huafeiCouponsAdapter
...
...
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