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
fba5d5de
Commit
fba5d5de
authored
Aug 04, 2022
by
YKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 咨询未支付订单弹窗以及消息数量bug修复
parent
f2f0882b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
18 deletions
+37
-18
build.gradle
build.gradle
+1
-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 @
fba5d5de
...
@@ -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-user/src/main/java/com/yidianling/user/mine/MineFragment.kt
View file @
fba5d5de
...
@@ -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 @
fba5d5de
...
@@ -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 @
fba5d5de
...
@@ -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