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
9e0d1b18
Commit
9e0d1b18
authored
Jun 28, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:增加进度条,移除loading
parent
60a45ede
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
JsMethod.kt
app/src/main/java/com/ydl/component/service/web/JsMethod.kt
+3
-3
ConfideBottomSheetDialogFragment.kt
m-confide/src/main/java/com/ydl/confide/home/ConfideBottomSheetDialogFragment.kt
+8
-1
No files found.
app/src/main/java/com/ydl/component/service/web/JsMethod.kt
View file @
9e0d1b18
...
@@ -36,12 +36,12 @@ class JsMethod {
...
@@ -36,12 +36,12 @@ class JsMethod {
return
true
return
true
}
}
"show_loading"
->
{
"show_loading"
->
{
val
topActivity
=
BaseActivityMgr
.
INST
.
getTopActivity
()
//
val topActivity = BaseActivityMgr.INST.getTopActivity()
Loading
.
show
(
topActivity
)
//
Loading.show(topActivity)
return
true
return
true
}
}
"close_loading"
->
{
"close_loading"
->
{
Loading
.
close
()
//
Loading.close()
return
true
return
true
}
}
"open_app_eval_list"
->{
"open_app_eval_list"
->{
...
...
m-confide/src/main/java/com/ydl/confide/home/ConfideBottomSheetDialogFragment.kt
View file @
9e0d1b18
...
@@ -145,7 +145,6 @@ class ConfideBottomSheetDialogFragment : BottomSheetDialogFragment() {
...
@@ -145,7 +145,6 @@ class ConfideBottomSheetDialogFragment : BottomSheetDialogFragment() {
uid
=
arguments
?.
getString
(
KEY_UID
)
uid
=
arguments
?.
getString
(
KEY_UID
)
listen_free
=
arguments
?.
getBoolean
(
KEY_LISTEN_FREE
)
?:
false
listen_free
=
arguments
?.
getBoolean
(
KEY_LISTEN_FREE
)
?:
false
onLoadDialStatus
(
doctorId
)
onLoadDialStatus
(
doctorId
)
// +
wv_content
=
view
.
findViewById
<
ProgressWebView
>(
com
.
ydl
.
webview
.
R
.
id
.
wv_content
)
wv_content
=
view
.
findViewById
<
ProgressWebView
>(
com
.
ydl
.
webview
.
R
.
id
.
wv_content
)
wv_content
.
progressbar
.
visibility
=
View
.
GONE
wv_content
.
progressbar
.
visibility
=
View
.
GONE
close_webview_Icon
=
view
.
findViewById
<
View
>(
R
.
id
.
close_webview_Icon
)
close_webview_Icon
=
view
.
findViewById
<
View
>(
R
.
id
.
close_webview_Icon
)
...
@@ -449,6 +448,14 @@ class ConfideBottomSheetDialogFragment : BottomSheetDialogFragment() {
...
@@ -449,6 +448,14 @@ class ConfideBottomSheetDialogFragment : BottomSheetDialogFragment() {
override
fun
onProgressChanged
(
view
:
WebView
,
newProgress
:
Int
)
{
override
fun
onProgressChanged
(
view
:
WebView
,
newProgress
:
Int
)
{
if
(
newProgress
==
100
)
{
if
(
newProgress
==
100
)
{
wv_content
.
progressbar
.
visibility
=
View
.
GONE
}
else
{
if
(
wv_content
.
progressbar
.
visibility
==
View
.
GONE
)
{
wv_content
.
progressbar
.
visibility
=
View
.
VISIBLE
}
wv_content
.
progressbar
.
progress
=
newProgress
}
if
(
newProgress
==
100
)
{
callJsFun
(
wv_content
,
"setUnRead(${uid?.let { getUnReadByUid(uid = it) }})"
)
callJsFun
(
wv_content
,
"setUnRead(${uid?.let { getUnReadByUid(uid = it) }})"
)
}
}
super
.
onProgressChanged
(
view
,
newProgress
)
super
.
onProgressChanged
(
view
,
newProgress
)
...
...
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