Commit 154aff46 by 刘鹏

feat : 海云上线当天!!提的优化,图文问诊下一步增加loading提示 rnm

parent 67c2e0bb
...@@ -11,7 +11,7 @@ ext { ...@@ -11,7 +11,7 @@ ext {
"m-user" : "0.0.61.90", "m-user" : "0.0.61.90",
"m-user-medical" : "0.0.61.99", "m-user-medical" : "0.0.61.99",
"m-home" : "0.0.22.70", "m-home" : "0.0.22.70",
"m-im-medical" : "0.0.21.23", "m-im-medical" : "0.0.21.24",
"m-im" : "0.0.20.76", "m-im" : "0.0.20.76",
"m-dynamic" : "0.0.7.28", "m-dynamic" : "0.0.7.28",
"m-article" : "0.0.0.10", "m-article" : "0.0.0.10",
...@@ -97,7 +97,7 @@ ext { ...@@ -97,7 +97,7 @@ ext {
"m-user" : "0.0.61.90", "m-user" : "0.0.61.90",
"m-user-medical" : "0.0.61.99", "m-user-medical" : "0.0.61.99",
"m-home" : "0.0.22.70", "m-home" : "0.0.22.70",
"m-im-medical" : "0.0.21.23", "m-im-medical" : "0.0.21.24",
"m-im" : "0.0.20.76", "m-im" : "0.0.20.76",
"m-dynamic" : "0.0.7.28", "m-dynamic" : "0.0.7.28",
"m-article" : "0.0.0.8", "m-article" : "0.0.0.8",
......
...@@ -111,6 +111,7 @@ class GraphicConsultationFlow1Activity : BaseActivity() { ...@@ -111,6 +111,7 @@ class GraphicConsultationFlow1Activity : BaseActivity() {
ToastUtil.toastShort("请最少填写10个字") ToastUtil.toastShort("请最少填写10个字")
return@setOnClickListener return@setOnClickListener
} else { } else {
showProgressDialog()
if (publishTrendImgs.size > 0) { if (publishTrendImgs.size > 0) {
var scope = CoroutineScope(Dispatchers.Default + Job()) var scope = CoroutineScope(Dispatchers.Default + Job())
scope.launch { scope.launch {
...@@ -127,6 +128,7 @@ class GraphicConsultationFlow1Activity : BaseActivity() { ...@@ -127,6 +128,7 @@ class GraphicConsultationFlow1Activity : BaseActivity() {
} else { } else {
//下一步 //下一步
dismissProgressDialog()
GraphicConsulttionFlow2Activity.start( GraphicConsulttionFlow2Activity.start(
this@GraphicConsultationFlow1Activity, this@GraphicConsultationFlow1Activity,
edit_input.text.toString(), "", mDoctorId, mDoctorUid edit_input.text.toString(), "", mDoctorId, mDoctorUid
...@@ -199,6 +201,7 @@ class GraphicConsultationFlow1Activity : BaseActivity() { ...@@ -199,6 +201,7 @@ class GraphicConsultationFlow1Activity : BaseActivity() {
upFileByNet(imgFiles) upFileByNet(imgFiles)
} }
} else { } else {
dismissProgressDialog()
runOnUiThread(Runnable() { runOnUiThread(Runnable() {
kotlin.run { kotlin.run {
YdlCommonOut.Companion.showToast("有图片已被删除"); YdlCommonOut.Companion.showToast("有图片已被删除");
...@@ -261,7 +264,7 @@ class GraphicConsultationFlow1Activity : BaseActivity() { ...@@ -261,7 +264,7 @@ class GraphicConsultationFlow1Activity : BaseActivity() {
} }
} }
} }
dismissProgressDialog()
//下一步 //下一步
GraphicConsulttionFlow2Activity.start( GraphicConsulttionFlow2Activity.start(
this@GraphicConsultationFlow1Activity, this@GraphicConsultationFlow1Activity,
...@@ -272,9 +275,11 @@ class GraphicConsultationFlow1Activity : BaseActivity() { ...@@ -272,9 +275,11 @@ class GraphicConsultationFlow1Activity : BaseActivity() {
) )
} }
} else { } else {
dismissProgressDialog()
ToastUtil.toastShort(response.msg) ToastUtil.toastShort(response.msg)
} }
}, { e -> }, { e ->
dismissProgressDialog()
ToastUtil.toastShort(e.message) ToastUtil.toastShort(e.message)
e.printStackTrace() e.printStackTrace()
......
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