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
213c6ba2
Commit
213c6ba2
authored
May 25, 2022
by
万齐军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 再换一位处理
parent
432a724d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
ConfideBottomSheetDialogFragment.kt
m-confide/src/main/java/com/ydl/confide/home/ConfideBottomSheetDialogFragment.kt
+7
-7
WebUrlParamsUtils.java
ydl-webview/src/main/java/com/ydl/utils/WebUrlParamsUtils.java
+2
-0
No files found.
m-confide/src/main/java/com/ydl/confide/home/ConfideBottomSheetDialogFragment.kt
View file @
213c6ba2
...
...
@@ -67,12 +67,12 @@ class ConfideBottomSheetDialogFragment : BottomSheetDialogFragment() {
activity
:
FragmentActivity
,
jumpUrl
:
String
,
doctorId
:
String
,
shouldShow
:
Boolean
?
=
false
shouldShow
:
Boolean
=
false
)
{
arguments
=
Bundle
().
apply
{
putString
(
KEY_JUMP_URL
,
jumpUrl
)
putString
(
KEY_DOCTOR_ID
,
doctorId
)
shouldShow
?.
let
{
putBoolean
(
KEY_SHOULD_SHOW
,
it
)
}
putBoolean
(
KEY_SHOULD_SHOW
,
shouldShow
)
}
show
(
activity
.
supportFragmentManager
,
"confide_bottom_showdialog"
)
}
...
...
@@ -145,11 +145,6 @@ class ConfideBottomSheetDialogFragment : BottomSheetDialogFragment() {
first_order
=
itemView
.
findViewById
<
TextView
>(
R
.
id
.
first_order
)
val
isLogin
=
findRouteService
(
IUserService
::
class
.
java
)
?.
isLogin
()
?:
false
first_order
.
visibility
=
if
(
isLogin
)
View
.
GONE
else
View
.
VISIBLE
if
(
shouldShow
==
true
)
{
layoutChange
.
visibility
=
View
.
VISIBLE
}
else
{
layoutChange
.
visibility
=
View
.
GONE
}
layoutCall
.
setOnClickListener
{
callJsFun
(
wv_content
,
"listenCallClick()"
)
}
...
...
@@ -165,6 +160,11 @@ class ConfideBottomSheetDialogFragment : BottomSheetDialogFragment() {
val
dialog
=
super
.
onCreateDialog
(
savedInstanceState
)
as
BottomSheetDialog
onShowReady
()
dialog
.
setOnShowListener
{
if
(
shouldShow
==
true
)
{
layoutChange
.
visibility
=
View
.
VISIBLE
}
else
{
layoutChange
.
visibility
=
View
.
GONE
}
val
layoutParams
=
FrameLayout
.
LayoutParams
(
FrameLayout
.
LayoutParams
.
WRAP_CONTENT
,
FrameLayout
.
LayoutParams
.
WRAP_CONTENT
...
...
ydl-webview/src/main/java/com/ydl/utils/WebUrlParamsUtils.java
View file @
213c6ba2
...
...
@@ -127,6 +127,8 @@ public class WebUrlParamsUtils {
if
(
userInfo
!=
null
)
{
mTree
.
put
(
"uid"
,
userInfo
.
getUserId
());
mTree
.
put
(
"accessToken"
,
userInfo
.
getToken
());
}
else
{
mTree
.
put
(
"uid"
,
"0"
);
}
mTree
.
put
(
"v"
,
RxAppTool
.
getAppVersionName
(
BaseApp
.
Companion
.
getApp
()));
mTree
.
put
(
"isFromApp"
,
"1"
);
//1表示用户版调用接口
...
...
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