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
b4779318
Commit
b4779318
authored
Jun 11, 2022
by
王雪伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[提交人]:王雪伟
[提交简述] :小象省钱 [实现方案] :加入话费支付结果弹窗
parent
eba5811b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
5 deletions
+28
-5
RounterApi.kt
cms/src/main/java/com/zxhl/cms/router/RounterApi.kt
+1
-1
JumpUtils.java
cms/src/main/java/com/zxhl/cms/utils/JumpUtils.java
+14
-1
PaySuccessActivity.kt
...n/java/com/zxbw/modulemain/activity/PaySuccessActivity.kt
+11
-1
RechargeActivity.kt
...ain/java/com/zxbw/modulemain/activity/RechargeActivity.kt
+1
-1
JgqQyAdapter.kt
...src/main/java/com/zxbw/modulemain/adapter/JgqQyAdapter.kt
+0
-1
layout_pay_suc.xml
moduleMain/src/main/res/layout/layout_pay_suc.xml
+1
-0
No files found.
cms/src/main/java/com/zxhl/cms/router/RounterApi.kt
View file @
b4779318
...
...
@@ -277,7 +277,7 @@ interface RounterApi {
fun
getIntentToPaySkill
():
Intent
@RounterUri
(
Constant
.
scheme
+
"://paysucess"
)
fun
getIntentPaySuccessSkill
():
Intent
fun
getIntentPaySuccessSkill
(
@RounterParam
(
"pay_type"
)
pay_type
:
String
):
Intent
@RounterUri
(
Constant
.
scheme
+
"://recharge"
)
fun
getIntentRecharge
():
Intent
...
...
cms/src/main/java/com/zxhl/cms/utils/JumpUtils.java
View file @
b4779318
...
...
@@ -441,6 +441,7 @@ public class JumpUtils {
Utils
.
showToast
(
AppContext
.
get
(),
"该版本暂不支持,请更新版本!"
);
}
}
public
static
void
ToPaySkillJump
()
{
try
{
Intent
intent
=
RounterBus
.
getRounter
(
RounterApi
.
class
).
getIntentToPaySkill
();
...
...
@@ -450,15 +451,27 @@ public class JumpUtils {
Utils
.
showToast
(
AppContext
.
get
(),
"该版本暂不支持,请更新版本!"
);
}
}
public
static
void
PaySuceessJump
()
{
try
{
Intent
intent
=
RounterBus
.
getRounter
(
RounterApi
.
class
).
getIntentPaySuccessSkill
();
Intent
intent
=
RounterBus
.
getRounter
(
RounterApi
.
class
).
getIntentPaySuccessSkill
(
""
);
intent
.
addFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
);
AppContext
.
get
().
startActivity
(
intent
);
}
catch
(
Exception
e
)
{
Utils
.
showToast
(
AppContext
.
get
(),
"该版本暂不支持,请更新版本!"
);
}
}
public
static
void
PaySuceessJump
(
String
pay_type
)
{
try
{
Intent
intent
=
RounterBus
.
getRounter
(
RounterApi
.
class
).
getIntentPaySuccessSkill
(
pay_type
);
intent
.
addFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
);
AppContext
.
get
().
startActivity
(
intent
);
}
catch
(
Exception
e
)
{
Utils
.
showToast
(
AppContext
.
get
(),
"该版本暂不支持,请更新版本!"
);
}
}
public
static
void
RechargeJump
()
{
try
{
Intent
intent
=
RounterBus
.
getRounter
(
RounterApi
.
class
).
getIntentRecharge
();
...
...
moduleMain/src/main/java/com/zxbw/modulemain/activity/PaySuccessActivity.kt
View file @
b4779318
...
...
@@ -7,19 +7,29 @@ import com.zxhl.cms.common.base.BaseActivity
import
com.zxhl.cms.utils.JumpUtils
import
kotlinx.android.synthetic.main.layout_pay_suc.*
class
PaySuccessActivity
:
BaseActivity
()
{
class
PaySuccessActivity
:
BaseActivity
()
{
var
type
=
""
override
fun
onClick
(
v
:
View
?)
{
}
override
fun
before
()
{
super
.
before
()
setStatusBarBackground
(
AppContext
.
get
().
resources
.
getColor
(
R
.
color
.
transparent
))
}
override
fun
layoutID
():
Int
{
return
R
.
layout
.
layout_pay_suc
}
override
fun
init
()
{
type
=
intent
?.
data
?.
getQueryParameter
(
"pay_type"
)
?:
""
if
(
type
.
equals
(
"2"
))
{
id_tv_desc_tips
.
text
=
"支付成功\n话费充值将在72小时到账!"
}
else
{
id_tv_desc_tips
.
text
=
"恭喜您\n本次交易成功!"
}
id_tv_btn_order
?.
setOnClickListener
{
JumpUtils
.
MyOrderJump
(
""
)
finish
()
...
...
moduleMain/src/main/java/com/zxbw/modulemain/activity/RechargeActivity.kt
View file @
b4779318
...
...
@@ -277,7 +277,7 @@ class RechargeActivity : BaseActivity(), OnRecycleItemClickListener<MemberEntity
SettingPreference
.
setOutTradeNo
(
""
)
showResultLoading
(
true
)
finish
()
JumpUtils
.
PaySuceessJump
()
JumpUtils
.
PaySuceessJump
(
"2"
)
}
override
fun
verifyOrderFail
(
errorMsg
:
String
)
{
...
...
moduleMain/src/main/java/com/zxbw/modulemain/adapter/JgqQyAdapter.kt
View file @
b4779318
...
...
@@ -36,7 +36,6 @@ class JgqQyAdapter : BaseRecyclerAdapter<JgqQyEntity, JgqQyAdapter.ViewHolder> {
override
fun
onBindViewHolder
(
holder
:
ViewHolder
,
position
:
Int
)
{
val
bean
=
mList
[
position
]
Glide
.
with
(
mContext
!!
).
load
(
bean
.
icon
)
.
apply
(
RequestOptions
.
bitmapTransform
(
CircleCrop
()))
.
into
(
holder
?.
id_icon
!!
)
...
...
moduleMain/src/main/res/layout/layout_pay_suc.xml
View file @
b4779318
...
...
@@ -32,6 +32,7 @@
android:textStyle=
"bold"
/>
<TextView
android:id=
"@+id/id_tv_desc_tips"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/id_img_back2"
...
...
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