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
ddf14c47
Commit
ddf14c47
authored
Aug 04, 2022
by
杨凯
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'd/v4.4.06' into 'release'
D/v4.4.06 See merge request app_android_lib/YDL-Component!288
parents
f2f0882b
67f3db0f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
19 deletions
+45
-19
build.gradle
build.gradle
+1
-1
ConfideBottomSheetDialogFragment.kt
m-confide/src/main/java/com/ydl/confide/home/ConfideBottomSheetDialogFragment.kt
+8
-1
MineFragment.kt
m-user/src/main/java/com/yidianling/user/mine/MineFragment.kt
+14
-8
AppLocal.kt
m-user/src/main/java/com/yidianling/user/mine/data/AppLocal.kt
+9
-5
AppLocalImpl.kt
m-user/src/main/java/com/yidianling/user/mine/data/AppLocalImpl.kt
+13
-4
No files found.
build.gradle
View file @
ddf14c47
...
@@ -14,7 +14,7 @@ buildscript {
...
@@ -14,7 +14,7 @@ buildscript {
ydlrouter_version
=
'1.2.3'
ydlrouter_version
=
'1.2.3'
constrait_support_version
=
'1.0.2'
constrait_support_version
=
'1.0.2'
componentVersion
=
"0.3.0.1
2-SNAPSHOT
"
componentVersion
=
"0.3.0.1
3
"
}
}
repositories
{
repositories
{
mavenCentral
()
mavenCentral
()
...
...
m-confide/src/main/java/com/ydl/confide/home/ConfideBottomSheetDialogFragment.kt
View file @
ddf14c47
...
@@ -54,7 +54,6 @@ import io.reactivex.android.schedulers.AndroidSchedulers
...
@@ -54,7 +54,6 @@ import io.reactivex.android.schedulers.AndroidSchedulers
import
io.reactivex.schedulers.Schedulers
import
io.reactivex.schedulers.Schedulers
import
java.io.UnsupportedEncodingException
import
java.io.UnsupportedEncodingException
import
java.net.URLDecoder
import
java.net.URLDecoder
import
java.util.*
import
kotlin.math.roundToInt
import
kotlin.math.roundToInt
class
ConfideBottomSheetDialogFragment
:
BottomSheetDialogFragment
()
{
class
ConfideBottomSheetDialogFragment
:
BottomSheetDialogFragment
()
{
...
@@ -97,6 +96,7 @@ class ConfideBottomSheetDialogFragment : BottomSheetDialogFragment() {
...
@@ -97,6 +96,7 @@ class ConfideBottomSheetDialogFragment : BottomSheetDialogFragment() {
var
shouldShow
:
Boolean
?
=
false
var
shouldShow
:
Boolean
?
=
false
var
uid
:
String
?
=
null
var
uid
:
String
?
=
null
var
listen_free
:
Boolean
=
false
var
listen_free
:
Boolean
=
false
private
var
hasOnResume
=
false
fun
showBottomSheetDialog
(
fun
showBottomSheetDialog
(
activity
:
FragmentActivity
,
activity
:
FragmentActivity
,
jumpUrl
:
String
,
jumpUrl
:
String
,
...
@@ -367,6 +367,7 @@ class ConfideBottomSheetDialogFragment : BottomSheetDialogFragment() {
...
@@ -367,6 +367,7 @@ class ConfideBottomSheetDialogFragment : BottomSheetDialogFragment() {
}
}
fun
onEventMainThread
(
event
:
ConfideDialogEvent
)
{
fun
onEventMainThread
(
event
:
ConfideDialogEvent
)
{
if
(!
hasOnResume
)
return
// 第一位表示拨打按钮,第二位代表再换一位按钮
// 第一位表示拨打按钮,第二位代表再换一位按钮
val
show
=
event
.
show
val
show
=
event
.
show
// if (show == 0) {
// if (show == 0) {
...
@@ -568,8 +569,14 @@ class ConfideBottomSheetDialogFragment : BottomSheetDialogFragment() {
...
@@ -568,8 +569,14 @@ class ConfideBottomSheetDialogFragment : BottomSheetDialogFragment() {
return
false
return
false
}
}
override
fun
onStop
()
{
super
.
onStop
()
hasOnResume
=
false
}
override
fun
onResume
()
{
override
fun
onResume
()
{
super
.
onResume
()
super
.
onResume
()
hasOnResume
=
true
if
(
doctorId
.
isNotBlank
()
&&
layoutCall
.
visibility
==
View
.
VISIBLE
)
{
if
(
doctorId
.
isNotBlank
()
&&
layoutCall
.
visibility
==
View
.
VISIBLE
)
{
onLoadDialStatus
(
doctorId
)
onLoadDialStatus
(
doctorId
)
}
}
...
...
m-user/src/main/java/com/yidianling/user/mine/MineFragment.kt
View file @
ddf14c47
...
@@ -218,23 +218,28 @@ class MineFragment : BaseFragment(), SwipeRefreshLayout.OnRefreshListener, View.
...
@@ -218,23 +218,28 @@ class MineFragment : BaseFragment(), SwipeRefreshLayout.OnRefreshListener, View.
"$orderNum"
"$orderNum"
}
}
iv_order_tip
.
text
=
numberStr
iv_order_tip
.
text
=
numberStr
getLocal
().
setConsult
(
orderNum
)
getLocal
().
setConsult
(
true
)
getLocal
().
setConsultNum
(
orderNum
)
}
else
{
}
else
{
iv_order_tip
.
visibility
=
View
.
GONE
iv_order_tip
.
visibility
=
View
.
GONE
getLocal
().
setConsult
(
0
)
getLocal
().
setConsult
(
false
)
getLocal
().
setConsultNum
(
0
)
}
}
}
else
{
}
else
{
getLocal
().
setConfide
(
false
)
getLocal
().
setConfide
(
false
)
getLocal
().
setConsult
(
0
)
getLocal
().
setConsult
(
false
)
getLocal
().
setConsultNum
(
0
)
}
}
}
else
{
}
else
{
getLocal
().
setConfide
(
false
)
getLocal
().
setConfide
(
false
)
getLocal
().
setConsult
(
0
)
getLocal
().
setConsult
(
false
)
getLocal
().
setConsultNum
(
0
)
}
}
},{
},{
getLocal
().
setConfide
(
false
)
getLocal
().
setConfide
(
false
)
getLocal
().
setConsult
(
0
)
getLocal
().
setConsult
(
false
)
getLocal
().
setConsultNum
(
0
)
})
})
}
}
...
@@ -246,7 +251,8 @@ class MineFragment : BaseFragment(), SwipeRefreshLayout.OnRefreshListener, View.
...
@@ -246,7 +251,8 @@ class MineFragment : BaseFragment(), SwipeRefreshLayout.OnRefreshListener, View.
private
fun
refreshCouponData
()
{
private
fun
refreshCouponData
()
{
getLocal
().
setCoupon
(
false
)
getLocal
().
setCoupon
(
false
)
getLocal
().
setConfide
(
false
)
getLocal
().
setConfide
(
false
)
getLocal
().
setConsult
(
0
)
getLocal
().
setConsult
(
false
)
getLocal
().
setConsultNum
(
0
)
val
userInfo
=
getUserInfo
()
val
userInfo
=
getUserInfo
()
...
...
m-user/src/main/java/com/yidianling/user/mine/data/AppLocal.kt
View file @
ddf14c47
...
@@ -18,15 +18,19 @@ interface AppLocal {
...
@@ -18,15 +18,19 @@ interface AppLocal {
fun
putUpdate
(
update
:
Boolean
)
fun
putUpdate
(
update
:
Boolean
)
fun
getCoupon
():
Boolean
fun
getCoupon
():
Boolean
fun
setCoupon
(
have
:
Boolean
)
fun
setCoupon
(
have
:
Boolean
)
fun
getConsult
():
Int
fun
getConsult
():
Boolean
fun
setConsult
(
have
:
Int
)
fun
setConsult
(
have
:
Boolean
)
fun
getConfide
():
Boolean
fun
getConsultNum
():
Int
fun
setConsultNum
(
num
:
Int
)
fun
getConfide
():
Boolean
fun
setConfide
(
have
:
Boolean
)
fun
setConfide
(
have
:
Boolean
)
...
...
m-user/src/main/java/com/yidianling/user/mine/data/AppLocalImpl.kt
View file @
ddf14c47
...
@@ -22,6 +22,7 @@ internal class AppLocalImpl private constructor(): AppLocal {
...
@@ -22,6 +22,7 @@ internal class AppLocalImpl private constructor(): AppLocal {
private
const
val
CONFIDE
=
"confide"
private
const
val
CONFIDE
=
"confide"
private
const
val
CONSULT
=
"consult"
private
const
val
CONSULT
=
"consult"
private
const
val
CONSULT_NUM
=
"consult_num"
private
const
val
COUPON
=
"coupon"
private
const
val
COUPON
=
"coupon"
}
}
...
@@ -50,12 +51,20 @@ internal class AppLocalImpl private constructor(): AppLocal {
...
@@ -50,12 +51,20 @@ internal class AppLocalImpl private constructor(): AppLocal {
getAppSP
().
edit
().
putBoolean
(
COUPON
,
have
).
apply
()
getAppSP
().
edit
().
putBoolean
(
COUPON
,
have
).
apply
()
}
}
override
fun
getConsult
():
Int
{
override
fun
getConsult
():
Boolean
{
return
getAppSP
().
get
Int
(
CONSULT
,
0
)
return
getAppSP
().
get
Boolean
(
CONSULT
,
false
)
}
}
override
fun
setConsult
(
have
:
Int
)
{
override
fun
setConsult
(
have
:
Boolean
)
{
getAppSP
().
edit
().
putInt
(
CONSULT
,
have
).
apply
()
getAppSP
().
edit
().
putBoolean
(
CONSULT
,
have
).
apply
()
}
override
fun
getConsultNum
():
Int
{
return
getAppSP
().
getInt
(
CONSULT_NUM
,
0
)
}
override
fun
setConsultNum
(
num
:
Int
)
{
getAppSP
().
edit
().
putInt
(
CONSULT_NUM
,
num
).
apply
()
}
}
override
fun
getConfide
():
Boolean
{
override
fun
getConfide
():
Boolean
{
...
...
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