Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
377086b0
Commit
377086b0
authored
Mar 10, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat : 支付成功加入跳转药品订单列表功能
parent
74e60255
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
4 deletions
+17
-4
config.gradle
config.gradle
+2
-2
MedicalPayIn.kt
ydl-medical-pay/src/main/java/com/medical/ydl/medical/modular/MedicalPayIn.kt
+9
-1
MedicalPayActivity.kt
ydl-medical-pay/src/main/java/com/medical/ydl/medical/pay/MedicalPayActivity.kt
+1
-1
MedicalPaySuccessActivity.kt
ydl-medical-pay/src/main/java/com/medical/ydl/medical/pay/MedicalPaySuccessActivity.kt
+5
-0
No files found.
config.gradle
View file @
377086b0
...
@@ -41,7 +41,7 @@ ext {
...
@@ -41,7 +41,7 @@ ext {
"ydl-webview"
:
"0.0.38.57"
,
"ydl-webview"
:
"0.0.38.57"
,
"ydl-media"
:
"0.0.21.10"
,
"ydl-media"
:
"0.0.21.10"
,
"ydl-pay"
:
"0.0.18.19"
,
"ydl-pay"
:
"0.0.18.19"
,
"ydl-medical-pay"
:
"0.0.01.2
2
"
,
"ydl-medical-pay"
:
"0.0.01.2
3
"
,
"m-audioim"
:
"0.0.49.29.37"
,
"m-audioim"
:
"0.0.49.29.37"
,
"ydl-flutter-base"
:
"0.0.14.26"
,
"ydl-flutter-base"
:
"0.0.14.26"
,
...
@@ -126,7 +126,7 @@ ext {
...
@@ -126,7 +126,7 @@ ext {
"ydl-webview"
:
"0.0.38.57"
,
"ydl-webview"
:
"0.0.38.57"
,
"ydl-media"
:
"0.0.21.10"
,
"ydl-media"
:
"0.0.21.10"
,
"ydl-pay"
:
"0.0.18.19"
,
"ydl-pay"
:
"0.0.18.19"
,
"ydl-medical-pay"
:
"0.0.01.2
2
"
,
"ydl-medical-pay"
:
"0.0.01.2
3
"
,
"m-audioim"
:
"0.0.49.29.37"
,
"m-audioim"
:
"0.0.49.29.37"
,
"ydl-flutter-base"
:
"0.0.14.26"
,
"ydl-flutter-base"
:
"0.0.14.26"
,
...
...
ydl-medical-pay/src/main/java/com/medical/ydl/medical/modular/MedicalPayIn.kt
View file @
377086b0
...
@@ -92,7 +92,7 @@ object MedicalPayIn {
...
@@ -92,7 +92,7 @@ object MedicalPayIn {
getAppService
().
mainIntent
(
context
,
selectTab
,
false
)
getAppService
().
mainIntent
(
context
,
selectTab
,
false
)
}
}
fun
mainIntentMessage
(
context
:
Context
,
docotrUid
:
String
)
{
fun
mainIntentMessage
(
docotrUid
:
String
)
{
val
bundle
=
Bundle
()
val
bundle
=
Bundle
()
bundle
.
putInt
(
"selectTab"
,
2
)
bundle
.
putInt
(
"selectTab"
,
2
)
...
@@ -103,6 +103,14 @@ object MedicalPayIn {
...
@@ -103,6 +103,14 @@ object MedicalPayIn {
.
navigation
()
.
navigation
()
}
}
fun
mainIntentToWebView
(
type
:
String
)
{
val
bundle
=
Bundle
();
bundle
.
putString
(
"webView"
,
type
)
ARouter
.
getInstance
().
build
(
"/main/main"
)
.
withBundle
(
"webView"
,
bundle
)
.
navigation
()
}
fun
feedBackIntent
(
activity
:
Activity
)
{
fun
feedBackIntent
(
activity
:
Activity
)
{
getAppService
().
feedBackIntent
(
activity
)
getAppService
().
feedBackIntent
(
activity
)
...
...
ydl-medical-pay/src/main/java/com/medical/ydl/medical/pay/MedicalPayActivity.kt
View file @
377086b0
...
@@ -306,7 +306,7 @@ class MedicalPayActivity : BaseActivity() {
...
@@ -306,7 +306,7 @@ class MedicalPayActivity : BaseActivity() {
if
(
mPayBizType
==
MEDICAL_ORDER_TYPE
)
{
if
(
mPayBizType
==
MEDICAL_ORDER_TYPE
)
{
MedicalPaySuccessActivity
.
start
(
this
@MedicalPayActivity
,
mPrice
,
mOrderId
)
MedicalPaySuccessActivity
.
start
(
this
@MedicalPayActivity
,
mPrice
,
mOrderId
)
}
else
if
(
mPayBizType
==
INQUIRY_ORDER_TYPE
)
{
}
else
if
(
mPayBizType
==
INQUIRY_ORDER_TYPE
)
{
MedicalPayIn
.
mainIntentMessage
(
this
@MedicalPayActivity
,
mDoctorUid
)
MedicalPayIn
.
mainIntentMessage
(
mDoctorUid
)
ToastUtil
.
toastShort
(
"支付成功"
)
ToastUtil
.
toastShort
(
"支付成功"
)
}
}
...
...
ydl-medical-pay/src/main/java/com/medical/ydl/medical/pay/MedicalPaySuccessActivity.kt
View file @
377086b0
...
@@ -2,6 +2,7 @@ package com.medical.ydl.medical.pay
...
@@ -2,6 +2,7 @@ package com.medical.ydl.medical.pay
import
android.content.Context
import
android.content.Context
import
android.content.Intent
import
android.content.Intent
import
com.medical.ydl.medical.modular.MedicalPayIn
import
com.ydl.webview.H5Params
import
com.ydl.webview.H5Params
import
com.ydl.webview.NewH5Activity
import
com.ydl.webview.NewH5Activity
import
com.ydl.ydlcommon.base.BaseActivity
import
com.ydl.ydlcommon.base.BaseActivity
...
@@ -16,6 +17,8 @@ import java.util.*
...
@@ -16,6 +17,8 @@ import java.util.*
class
MedicalPaySuccessActivity
:
BaseActivity
()
{
class
MedicalPaySuccessActivity
:
BaseActivity
()
{
companion
object
{
companion
object
{
//跳转药品订单列表
private
const
val
MEDICAL_ORDER_LIST_KEY
=
"medical_order_list"
private
const
val
PRICE_KEY
=
"price"
private
const
val
PRICE_KEY
=
"price"
private
const
val
ORDER_KEY
=
"orderId"
private
const
val
ORDER_KEY
=
"orderId"
private
lateinit
var
mPrice
:
String
private
lateinit
var
mPrice
:
String
...
@@ -46,6 +49,8 @@ class MedicalPaySuccessActivity : BaseActivity() {
...
@@ -46,6 +49,8 @@ class MedicalPaySuccessActivity : BaseActivity() {
iv_back
.
setOnClickListener
{
iv_back
.
setOnClickListener
{
MedicalPayIn
.
mainIntentToWebView
(
MEDICAL_ORDER_LIST_KEY
)
finish
()
finish
()
}
}
to_order
.
setOnClickListener
{
to_order
.
setOnClickListener
{
...
...
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