Commit 377086b0 by 刘鹏

feat : 支付成功加入跳转药品订单列表功能

parent 74e60255
...@@ -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.22", "ydl-medical-pay" : "0.0.01.23",
"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.22", "ydl-medical-pay" : "0.0.01.23",
"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",
......
...@@ -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)
......
...@@ -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("支付成功")
} }
......
...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment