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
40cee98e
Commit
40cee98e
authored
Jun 30, 2022
by
fengquan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 测评搜索
parent
903c3a2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
TestSearchKeyActivity.kt
m-tests/src/main/java/com/yidianling/tests/search/TestSearchKeyActivity.kt
+6
-9
No files found.
m-tests/src/main/java/com/yidianling/tests/search/TestSearchKeyActivity.kt
View file @
40cee98e
...
...
@@ -69,15 +69,6 @@ class TestSearchKeyActivity : BaseMvpActivity<TestSearchView, TestSearchPresente
initRecyclerView
()
tv_search_key_empty
?.
text
=
String
.
format
(
"为您找到以下跟“%s”有关的内容"
,
keyWord
)
etKeySearch
?.
setText
(
keyWord
)
initData
()
}
private
fun
initData
()
{
var
lastCouponMoney
=
SharedPreferencesEditor
.
getString
(
TestHomeUtils
.
TEST_MAX_COUPON_MONEY_SP_KEY
)
if
(!
TextUtils
.
isEmpty
(
lastCouponMoney
))
{
searchAdapter
?.
couponMoney
=
lastCouponMoney
}
}
private
fun
initView
()
{
...
...
@@ -95,6 +86,12 @@ class TestSearchKeyActivity : BaseMvpActivity<TestSearchView, TestSearchPresente
TestListRecyclerAdapter
.
PAGE_TYPE_SEARCH
)
var
lastCouponMoney
=
SharedPreferencesEditor
.
getString
(
TestHomeUtils
.
TEST_MAX_COUPON_MONEY_SP_KEY
)
if
(!
TextUtils
.
isEmpty
(
lastCouponMoney
))
{
searchAdapter
?.
couponMoney
=
lastCouponMoney
}
searchAdapter
?.
onItemClickListener
=
MyBaseAdapter
.
OnItemClickListener
{
_
,
_
,
data
->
TestsIn
.
getTestsImpl
().
testDetailH5
(
data
.
id
.
toString
())
}
...
...
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