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
31b9573c
Commit
31b9573c
authored
May 31, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 1.UI还原 2.拨打加入绑定手机号逻辑 3. 支付弹窗样式修改
parent
6afdceff
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
45 additions
and
13 deletions
+45
-13
config.gradle
config.gradle
+2
-2
ConfideBottomSheetDialogFragment.kt
m-confide/src/main/java/com/ydl/confide/home/ConfideBottomSheetDialogFragment.kt
+6
-4
ConfideWebServiceImpl.kt
m-confide/src/main/java/com/ydl/confide/home/modular/service/ConfideWebServiceImpl.kt
+27
-2
confide_back.png
m-confide/src/main/res/drawable-xhdpi/confide_back.png
+0
-0
activity_expert_intro.xml
m-confide/src/main/res/layout/activity_expert_intro.xml
+2
-1
confide_home_activity.xml
m-confide/src/main/res/layout/confide_home_activity.xml
+2
-1
confide_recommend_view_new.xml
m-confide/src/main/res/layout/confide_recommend_view_new.xml
+5
-3
confide_webview.xml
m-confide/src/main/res/layout/confide_webview.xml
+1
-0
No files found.
config.gradle
View file @
31b9573c
...
...
@@ -5,7 +5,7 @@ ext {
ydlPublishVersion
=
[
// -------------- 业务模块 --------------
//第三步 若干
"m-confide"
:
"0.0.
49.98
"
,
"m-confide"
:
"0.0.
50.01
"
,
"m-consultant"
:
"0.0.60.27"
,
"m-fm"
:
"0.0.30.09"
,
"m-user"
:
"0.0.62.26"
,
...
...
@@ -90,7 +90,7 @@ ext {
// -------------- 业务模块 --------------
//第三步 若干
"m-confide"
:
"0.0.
49.98
"
,
"m-confide"
:
"0.0.
50.01
"
,
"m-consultant"
:
"0.0.60.27"
,
"m-fm"
:
"0.0.30.09"
,
"m-user"
:
"0.0.62.26"
,
...
...
m-confide/src/main/java/com/ydl/confide/home/ConfideBottomSheetDialogFragment.kt
View file @
31b9573c
...
...
@@ -239,7 +239,7 @@ class ConfideBottomSheetDialogFragment : BottomSheetDialogFragment() {
if
(
jumpUrl
?.
contains
(
"payPage=1"
)){
//支付70%高度
setMaxHeight
(
RxImageTool
.
dp2px
(
4
95
f
))
setMaxHeight
(
RxImageTool
.
dp2px
(
4
80
f
))
}
else
{
setMaxHeight
(
resources
.
displayMetrics
.
heightPixels
)
}
...
...
@@ -293,9 +293,11 @@ class ConfideBottomSheetDialogFragment : BottomSheetDialogFragment() {
fun
onEventMainThread
(
event
:
ConfideDialogEvent
)
{
// 第一位表示拨打按钮,第二位代表再换一位按钮
val
show
=
event
.
show
if
(
show
==
0
)
{
behavior
?.
state
=
BottomSheetBehavior
.
STATE_EXPANDED
}
// if (show == 0) {
// behavior?.state = BottomSheetBehavior.STATE_EXPANDED
// }
setMaxHeight
(
RxImageTool
.
dp2px
(
480f
))
layoutCall
.
visibility
=
if
(
show
and
0
x01
==
0
x01
)
View
.
VISIBLE
else
View
.
GONE
layoutChange
.
visibility
=
if
(
show
and
0
x02
==
0
x01
)
View
.
VISIBLE
else
View
.
GONE
}
...
...
m-confide/src/main/java/com/ydl/confide/home/modular/service/ConfideWebServiceImpl.kt
View file @
31b9573c
...
...
@@ -173,7 +173,26 @@ class ConfideWebServiceImpl {
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
({
Loading
.
close
()
if
(
"200"
==
it
.
code
&&
0
==
it
.
data
?.
dialDetail
?.
dialStatus
&&
it
.
data
?.
dialDetail
?.
callConnectType
==
3
)
{
if
(
"200"
==
it
.
code
)
{
if
(
it
.
data
?.
dialDetail
?.
dialStatus
!=
null
)
{
if
(
100007
==
it
.
data
?.
dialDetail
?.
dialStatus
)
{
//支付弹窗
otherwise
?.
invoke
()
}
else
if
(
100008
==
it
.
data
?.
dialDetail
?.
dialStatus
)
{
CommonDialog
(
activity
)
.
setCancelAble
(
false
)
.
setMessage
(
FinalString
.
TEL_BINDPHONE
)
.
setLeftOnclick
(
"忍痛放弃"
,
null
)
.
setRightClick
(
"果断绑定"
)
{
view
->
try
{
ModularServiceManager
.
provide
(
IUserService
::
class
.
java
)
.
wxBindToInputhonePage
(
activity
as
Activity
)
}
catch
(
e
:
Exception
)
{
}
}
.
show
()
}
else
if
(
0
==
it
.
data
?.
dialDetail
?.
dialStatus
&&
it
.
data
?.
dialDetail
?.
callConnectType
==
3
)
{
it
.
data
?.
dialDetail
?.
agoraExpertInfo
?:
return
@subscribe
if
(!
YDLavManager
.
isOnlineRtm
)
{
// 判断如果账号在其它设备登录rtm是否在线
ToastUtil
.
toastShort
(
"网络通话错误代码001"
)
...
...
@@ -190,7 +209,13 @@ class ConfideWebServiceImpl {
it
.
data
?.
dialDetail
?.
dialStatus
.
toString
()
)
}
else
{
otherwise
?.
invoke
()
ToastHelper
.
show
(
it
.
data
?.
dialDetail
?.
dialReason
?:
"连接失败"
)
}
}
else
{
ToastHelper
.
show
(
it
.
data
?.
dialDetail
?.
dialReason
?:
"连接失败"
)
}
}
else
{
ToastHelper
.
show
(
it
.
msg
)
}
},
{
ToastHelper
.
show
(
it
.
message
?:
"连接失败"
)
...
...
m-confide/src/main/res/drawable-xhdpi/confide_back.png
View replaced file @
6afdceff
View file @
31b9573c
3.88 KB
|
W:
|
H:
2.22 KB
|
W:
|
H:
2-up
Swipe
Onion skin
m-confide/src/main/res/layout/activity_expert_intro.xml
View file @
31b9573c
...
...
@@ -23,7 +23,8 @@
android:layout_height=
"36dp"
android:layout_marginLeft=
"12dp"
android:layout_marginTop=
"24dp"
android:padding=
"12dp"
android:padding=
"4dp"
android:scaleType=
"fitXY"
android:src=
"@drawable/confide_back"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
...
...
m-confide/src/main/res/layout/confide_home_activity.xml
View file @
31b9573c
...
...
@@ -142,7 +142,8 @@
android:layout_width=
"match_parent"
android:layout_height=
"48dp"
android:background=
"@color/white"
android:visibility=
"gone"
/>
android:visibility=
"gone"
tools:visibility=
"gone"
/>
<View
android:id=
"@+id/vFilterLine"
...
...
m-confide/src/main/res/layout/confide_recommend_view_new.xml
View file @
31b9573c
...
...
@@ -51,7 +51,7 @@
android:id=
"@+id/tv_name"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"1
4
dp"
android:layout_marginStart=
"1
2
dp"
android:textColor=
"@color/platform_color_333333"
android:textSize=
"@dimen/platform_sp_16"
android:textStyle=
"bold"
...
...
@@ -64,7 +64,7 @@
android:id=
"@+id/ll_confide_data"
app:layout_constraintTop_toBottomOf=
"@id/tv_name"
app:layout_constraintStart_toEndOf=
"@id/img_bg"
android:layout_marginStart=
"1
4
dp"
android:layout_marginStart=
"1
2
dp"
android:orientation=
"horizontal"
>
<LinearLayout
...
...
@@ -152,9 +152,11 @@
android:id=
"@+id/flowlayout_tag"
android:layout_width=
"0dp"
android:layout_height=
"16dp"
android:layout_marginStart=
"1
4
dp"
android:layout_marginStart=
"1
2
dp"
android:layout_marginEnd=
"12dp"
android:textColor=
"#9495A0"
android:maxLines=
"1"
android:ellipsize=
"end"
android:textSize=
"12sp"
app:layout_constraintBottom_toBottomOf=
"@+id/img_bg"
app:layout_constraintEnd_toStartOf=
"@+id/price_content"
...
...
m-confide/src/main/res/layout/confide_webview.xml
View file @
31b9573c
...
...
@@ -47,6 +47,7 @@
android:id=
"@+id/wv_content"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/white"
android:layout_below=
"@id/rl_title"
/>
...
...
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