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
0ce62189
Commit
0ce62189
authored
Jun 30, 2022
by
maxiaoliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
cafe7e84
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
406 additions
and
11 deletions
+406
-11
NetConfig.java
cms/src/main/java/com/zxhl/cms/common/NetConfig.java
+1
-0
RechargeActivity.kt
...ain/java/com/zxbw/modulemain/activity/RechargeActivity.kt
+6
-1
SplashActivity.kt
.../main/java/com/zxbw/modulemain/activity/SplashActivity.kt
+1
-0
DialogUtils.kt
...ain/src/main/java/com/zxbw/modulemain/view/DialogUtils.kt
+92
-10
button_tixian.png
moduleMain/src/main/res/drawable-xhdpi/button_tixian.png
+0
-0
icon_close_dialog.png
moduleMain/src/main/res/drawable-xhdpi/icon_close_dialog.png
+0
-0
icon_daichahongbao.png
...leMain/src/main/res/drawable-xhdpi/icon_daichahongbao.png
+0
-0
icon_jixulingqu.png
moduleMain/src/main/res/drawable-xhdpi/icon_jixulingqu.png
+0
-0
icon_qutixian.png
moduleMain/src/main/res/drawable-xhdpi/icon_qutixian.png
+0
-0
icopn_yihanweihuode.png
...eMain/src/main/res/drawable-xhdpi/icopn_yihanweihuode.png
+0
-0
image_huang.png
moduleMain/src/main/res/drawable-xhdpi/image_huang.png
+0
-0
image_tuxiang.png
moduleMain/src/main/res/drawable-xhdpi/image_tuxiang.png
+0
-0
imgge_wenan.png
moduleMain/src/main/res/drawable-xhdpi/imgge_wenan.png
+0
-0
dialog_layout_with_draw.xml
moduleMain/src/main/res/layout/dialog_layout_with_draw.xml
+306
-0
No files found.
cms/src/main/java/com/zxhl/cms/common/NetConfig.java
View file @
0ce62189
...
...
@@ -3,6 +3,7 @@ package com.zxhl.cms.common;
import
com.zxhl.cms.AppContext
;
import
com.zxhl.cms.R
;
import
static
com
.
zxhl
.
cms
.
common
.
NetConfig
.
Environment
.
DEV
;
import
static
com
.
zxhl
.
cms
.
common
.
NetConfig
.
Environment
.
PRODUCT
;
/**
...
...
moduleMain/src/main/java/com/zxbw/modulemain/activity/RechargeActivity.kt
View file @
0ce62189
...
...
@@ -292,11 +292,16 @@ class RechargeActivity : BaseActivity(), OnRecycleItemClickListener<MemberEntity
}
override
fun
setPayList
(
result
:
MemberEntity
)
{
for
(
i
in
result
?.
goodsList
!!
){
if
(
i
.
originalPrice
.
equals
(
"50"
)){
}
}
mAdapter
?.
clear
()
mAdapter
?.
appendToList
(
result
?.
goodsList
)
mAdapter
?.
notifyDataSetChanged
()
if
(!
result
.
goodsList
.
isNullOrEmpty
())
{
if
(
result
.
goodsList
!!
.
size
>=
3
)
{
if
(
result
.
goodsList
!!
.
size
>=
0
)
{
useCoupn
(
0
,
0
)
}
}
...
...
moduleMain/src/main/java/com/zxbw/modulemain/activity/SplashActivity.kt
View file @
0ce62189
...
...
@@ -78,6 +78,7 @@ class SplashActivity : BaseActivity(), SplashContract.View {
}
override
fun
onError
(
errorMsg
:
String
?)
{
Log
.
e
(
"MXL"
,
"MSG:"
+
errorMsg
)
jumpMainPage
()
}
})
...
...
moduleMain/src/main/java/com/zxbw/modulemain/view/DialogUtils.kt
View file @
0ce62189
package
com.zxbw.modulemain.view
import
android.animation.Animator
import
android.animation.AnimatorListenerAdapter
import
android.animation.ObjectAnimator
import
android.app.Activity
import
android.app.Dialog
import
android.content.Context
import
android.graphics.Color
import
android.view.Gravity
import
android.view.View
import
android.widget.*
import
android.view.animation.AccelerateInterpolator
import
android.widget.ImageView
import
android.widget.LinearLayout
import
android.widget.RelativeLayout
import
android.widget.TextView
import
androidx.core.content.ContextCompat
import
androidx.recyclerview.widget.GridLayoutManager
import
androidx.recyclerview.widget.RecyclerView
...
...
@@ -18,8 +25,10 @@ import com.zxbw.modulemain.box.adapter.SelectBoxAdapter
import
com.zxhl.cms.AppContext
import
com.zxhl.cms.net.SettingPreference
import
com.zxhl.cms.net.model.qy.CouponsEntity
import
com.zxhl.cms.utils.*
import
java.util.*
import
com.zxhl.cms.utils.AdCallback
import
com.zxhl.cms.utils.EventUtils
import
com.zxhl.cms.utils.PhoneUtils
import
com.zxhl.cms.utils.Utils
object
DialogUtils
{
...
...
@@ -544,6 +553,7 @@ object DialogUtils {
mDialog
.
setCancelable
(
false
)
mDialog
.
show
()
}
//话费券提示
fun
showifshowCoup
(
context
:
Activity
,
...
...
@@ -560,20 +570,20 @@ object DialogUtils {
0
,
Gravity
.
CENTER
)
var
fiveNums
:
Int
=
0
var
tenNUms
:
Int
=
0
for
(
i
in
result
!!
)
{
if
(
i
.
amount
.
equals
(
"5.0"
))
{
var
fiveNums
:
Int
=
0
var
tenNUms
:
Int
=
0
for
(
i
in
result
!!
)
{
if
(
i
.
amount
.
equals
(
"5.0"
))
{
fiveNums
++
}
if
(
i
.
amount
.
equals
(
"10.0"
))
{
if
(
i
.
amount
.
equals
(
"10.0"
))
{
tenNUms
++
}
}
val
tenTvnums
=
mDialogView
.
findViewById
<
TextView
>(
R
.
id
.
id_tv_ten_nums
)
val
fiveTvnums
=
mDialogView
.
findViewById
<
TextView
>(
R
.
id
.
id_five_ten_nums
)
tenTvnums
.
text
=
"x${tenNUms}"
fiveTvnums
.
text
=
"x${fiveNums}"
tenTvnums
.
text
=
"x${tenNUms}"
fiveTvnums
.
text
=
"x${fiveNums}"
mDialogView
.
findViewById
<
ImageView
>(
R
.
id
.
id_img_close_dialog
).
setOnClickListener
{
mDialog
.
dismiss
()
}
...
...
@@ -587,4 +597,76 @@ object DialogUtils {
mDialog
.
show
()
SettingPreference
.
setShowCoups
(
"1"
)
}
//提现弹窗
fun
showWithDraw
(
context
:
Activity
,
listener
:
View
.
OnClickListener
)
{
if
(
context
.
isDestroyed
)
return
val
mDialog
=
Dialog
(
context
,
R
.
style
.
CenterCompatDialogTheme
)
val
mDialogView
=
showBottomDialog
(
R
.
layout
.
dialog_layout_with_draw
,
context
,
mDialog
,
0
,
Gravity
.
CENTER
)
val
id_img_one_front
=
mDialogView
.
findViewById
<
ImageView
>(
R
.
id
.
id_img_one_front
)
val
id_img_one_no_have
=
mDialogView
.
findViewById
<
ImageView
>(
R
.
id
.
id_img_one_no_have
)
val
id_ll_one_back
=
mDialogView
.
findViewById
<
LinearLayout
>(
R
.
id
.
id_ll_one_back
)
val
id_img_two_front
=
mDialogView
.
findViewById
<
ImageView
>(
R
.
id
.
id_img_two_front
)
val
id_img_two_no_have
=
mDialogView
.
findViewById
<
ImageView
>(
R
.
id
.
id_img_two_no_have
)
val
id_ll_two_back
=
mDialogView
.
findViewById
<
LinearLayout
>(
R
.
id
.
id_ll_two_back
)
val
id_img_three_front
=
mDialogView
.
findViewById
<
ImageView
>(
R
.
id
.
id_img_three_front
)
val
id_img_three_no_have
=
mDialogView
.
findViewById
<
ImageView
>(
R
.
id
.
id_img_three_no_have
)
val
id_ll_three_back
=
mDialogView
.
findViewById
<
LinearLayout
>(
R
.
id
.
id_ll_three_back
)
val
id_img_four_front
=
mDialogView
.
findViewById
<
ImageView
>(
R
.
id
.
id_img_four_front
)
val
id_img_four_no_have
=
mDialogView
.
findViewById
<
ImageView
>(
R
.
id
.
id_img_four_no_have
)
val
id_ll_four_back
=
mDialogView
.
findViewById
<
LinearLayout
>(
R
.
id
.
id_ll_four_back
)
mDialogView
.
findViewById
<
ImageView
>(
R
.
id
.
id_img_close_dialog
).
setOnClickListener
{
mDialog
.
dismiss
()
}
id_img_one_front
?.
setOnClickListener
{
flipAnimation
(
id_img_one_front
,
id_ll_one_back
)
}
id_img_two_front
?.
setOnClickListener
{
flipAnimation
(
id_img_two_front
,
id_ll_two_back
)
}
id_img_three_front
?.
setOnClickListener
{
flipAnimation
(
id_img_three_front
,
id_ll_three_back
)
}
id_img_four_front
?.
setOnClickListener
{
flipAnimation
(
id_img_four_front
,
id_ll_four_back
)
}
mDialog
.
setCanceledOnTouchOutside
(
false
)
mDialog
.
setCancelable
(
false
)
mDialog
.
show
()
}
fun
flipAnimation
(
imageView
:
ImageView
,
layout
:
LinearLayout
)
{
// if (imageView.getVisibility() == View.GONE) {
// visibletext = textview2;
// invisibletext = textview1;
// } else {
// invisibletext = textview2;
// visibletext = textview1;
// }
var
visToInvis
=
ObjectAnimator
.
ofFloat
(
imageView
,
"rotationY"
,
0f
,
90f
)
visToInvis
.
setDuration
(
500
)
visToInvis
.
interpolator
=
AccelerateInterpolator
()
var
invisToVis
=
ObjectAnimator
.
ofFloat
(
layout
,
"rotationY"
,
-
90f
,
0f
)
invisToVis
.
setDuration
(
500
)
invisToVis
.
interpolator
=
AccelerateInterpolator
()
visToInvis
?.
addListener
(
object
:
AnimatorListenerAdapter
()
{
override
fun
onAnimationEnd
(
animation
:
Animator
?)
{
imageView
.
setVisibility
(
View
.
GONE
)
invisToVis
.
start
()
layout
.
setVisibility
(
View
.
VISIBLE
)
}
})
visToInvis
?.
start
()
}
}
\ No newline at end of file
moduleMain/src/main/res/drawable-xhdpi/button_tixian.png
0 → 100644
View file @
0ce62189
8.65 KB
moduleMain/src/main/res/drawable-xhdpi/icon_close_dialog.png
0 → 100644
View file @
0ce62189
1.97 KB
moduleMain/src/main/res/drawable-xhdpi/icon_daichahongbao.png
0 → 100644
View file @
0ce62189
15.2 KB
moduleMain/src/main/res/drawable-xhdpi/icon_jixulingqu.png
0 → 100644
View file @
0ce62189
48.4 KB
moduleMain/src/main/res/drawable-xhdpi/icon_qutixian.png
0 → 100644
View file @
0ce62189
44.9 KB
moduleMain/src/main/res/drawable-xhdpi/icopn_yihanweihuode.png
0 → 100644
View file @
0ce62189
45.4 KB
moduleMain/src/main/res/drawable-xhdpi/image_huang.png
0 → 100644
View file @
0ce62189
448 KB
moduleMain/src/main/res/drawable-xhdpi/image_tuxiang.png
0 → 100644
View file @
0ce62189
141 KB
moduleMain/src/main/res/drawable-xhdpi/imgge_wenan.png
0 → 100644
View file @
0ce62189
57 KB
moduleMain/src/main/res/layout/dialog_layout_with_draw.xml
0 → 100644
View file @
0ce62189
This diff is collapsed.
Click to expand it.
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