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
56fed7ff
Commit
56fed7ff
authored
Aug 18, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:UI修改BUG修改
parent
f1271f4c
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
35 additions
and
19 deletions
+35
-19
DemoGlobalConfig.java
app/src/main/java/com/ydl/component/base/DemoGlobalConfig.java
+2
-2
ExpertSearchActivity.kt
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchActivity.kt
+3
-1
ExpertSearchPresenter.kt
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchPresenter.kt
+3
-0
SubItem.kt
m-consultant/src/main/java/com/yidianling/consultant/model/bean/SubItem.kt
+3
-1
AreaPopupWindow.kt
m-consultant/src/main/java/com/yidianling/consultant/ui/view/AreaPopupWindow.kt
+3
-0
PricePopupWindow.kt
m-consultant/src/main/java/com/yidianling/consultant/ui/view/PricePopupWindow.kt
+1
-2
EightCategoryView.kt
m-consultant/src/main/java/com/yidianling/consultant/ui/view/topView/EightCategoryView.kt
+17
-11
eight_category_detail_item_item.xml
m-consultant/src/main/res/layout/eight_category_detail_item_item.xml
+2
-2
home_button_banner_view.xml
m-home/src/ydl/res/layout/home_button_banner_view.xml
+1
-0
No files found.
app/src/main/java/com/ydl/component/base/DemoGlobalConfig.java
View file @
56fed7ff
...
...
@@ -20,8 +20,8 @@ import java.util.List;
*/
public
final
class
DemoGlobalConfig
implements
IConfigModule
{
String
APP_DOMAIN
=
"https://api.github.com/"
;
//
public static String appEnv = YDLConstants.ENV_TEST;
public
static
String
appEnv
=
YDLConstants
.
ENV_PROD
;
public
static
String
appEnv
=
YDLConstants
.
ENV_TEST
;
//
public static String appEnv = YDLConstants.ENV_PROD;
// public static String appEnv = YDLConstants.ENV_NEW_TEST;//配置未上传到maven库
@Override
...
...
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchActivity.kt
View file @
56fed7ff
...
...
@@ -128,6 +128,7 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
const
val
EXTRA_CATEGORY_NAME
=
"category_name"
const
val
EXTRA_SHOW_TYPE
=
"showType"
const
val
EXTRA_FROM_PAGE
=
"fromPage"
const
val
CATEID3IN
=
"cateid3in"
const
val
HOT_SEARCH_DOCTOR_NAME
=
"hot_search_doctor_name"
private
const
val
EXTRA_IS_SHOW_HOT
=
"isInitShowHot"
private
const
val
EXTRA_SEARCH_WORD
=
"searchWord"
...
...
@@ -414,7 +415,7 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
mapFilter
=
mIntent
.
getSerializableExtra
(
GO_CRITERIA
)
as
HashMap
<
String
,
Any
>
}
initCategory
=
mIntent
.
getStringExtra
(
"cateId"
)
?:
""
initCategoryCateid3
=
mIntent
.
getStringExtra
(
"cateid3in"
)
?:
""
initCategoryCateid3
=
mIntent
.
getStringExtra
(
CATEID3IN
)
?:
""
if
(!
TextUtils
.
isEmpty
(
initCategoryCateid3
)
&&
initCategoryCateid3
!=
"0"
)
{
allFilter
.
categoryId3List
.
add
(
initCategoryCateid3
)
}
...
...
@@ -1694,6 +1695,7 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
* 新增逻辑:当主题选择后,需要判断热门筛选中是否也有该主题,如果有,也需要同步更新选中状态
*/
override
fun
onCategoriesSelected
(
signLit
:
ArrayList
<
String
>)
{
eightcategoryPopup
.
dismiss
()
if
(
signLit
.
isNotEmpty
())
{
val
sign1
=
signLit
.
joinToString
(
","
)
{
it
}
ActionCountUtils
.
baiDuCountSign3
(
...
...
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchPresenter.kt
View file @
56fed7ff
...
...
@@ -127,6 +127,9 @@ class ExpertSearchPresenter : SimplePresenter<IExpertSearchView>() {
}
if
(
allFilter
.
sub
.
code
!=
null
&&
allFilter
.
sub
.
code
!=
allFilter
.
region
.
code
)
{
filterMap
[
"city_code"
]
=
allFilter
.
sub
.
code
if
(
allFilter
.
sub
.
provinceCode
.
isNotEmpty
())
{
filterMap
[
"province_code"
]
=
allFilter
.
sub
.
provinceCode
}
}
}
// 咨询方式
...
...
m-consultant/src/main/java/com/yidianling/consultant/model/bean/SubItem.kt
View file @
56fed7ff
...
...
@@ -15,5 +15,6 @@ data class SubItem(
@field
:
SerializedName
(
"code"
)
var
code
:
String
?
=
null
,
var
locationCode
:
String
?
=
""
var
locationCode
:
String
?
=
""
,
var
provinceCode
:
String
=
""
)
:
Parcelable
\ No newline at end of file
m-consultant/src/main/java/com/yidianling/consultant/ui/view/AreaPopupWindow.kt
View file @
56fed7ff
...
...
@@ -140,6 +140,9 @@ class AreaPopupWindow(
//倒序保留最近五次的搜索历史记录并去重
private
fun
saveCitySearchRecord
(
data
:
SubItem
)
{
if
(
data
.
value
==
"不限"
)
return
if
(
selectedRegion
.
code
.
toString
()
!=
"0"
)
data
.
provinceCode
=
selectedRegion
.
code
.
toString
()
recentCityBean
?.
let
{
if
(
it
.
recentCity
.
size
<
5
)
{
it
.
recentCity
.
add
(
0
,
data
)
...
...
m-consultant/src/main/java/com/yidianling/consultant/ui/view/PricePopupWindow.kt
View file @
56fed7ff
...
...
@@ -28,8 +28,7 @@ import kotlinx.android.synthetic.main.consultant_ui_price_popup_window.view.*
/**
* 排序弹窗
* Created by zqk on 17-9-15.
* 价格筛选弹窗
*/
class
PricePopupWindow
(
val
context
:
Context
,
...
...
m-consultant/src/main/java/com/yidianling/consultant/ui/view/topView/EightCategoryView.kt
View file @
56fed7ff
...
...
@@ -13,6 +13,7 @@ import com.alibaba.android.arouter.launcher.ARouter
import
com.ydl.ydlcommon.base.BaseActivity
import
com.ydl.ydlcommon.router.IYDLRouterConstant
import
com.yidianling.common.tools.RxImageTool
import
com.yidianling.consultant.ExpertSearchActivity
import
com.yidianling.consultant.R
import
com.yidianling.consultant.adapter.CategoryDetailAdapter
import
com.yidianling.consultant.adapter.EightCategoryAdapter
...
...
@@ -233,31 +234,36 @@ class EightCategoryView : LinearLayout, CategoryDetailAdapter.OutAdapterClicklis
signList
.
remove
(
mutableList
?.
get
(
outPosition
)
?.
get
(
inPosition
)
?.
cate_name
)
}
}
mutableList
?.
forEachIndexed
{
index
,
mutableList
->
eightCategoryListBean
.
get
(
index
).
hasData
=
false
mutableList
.
forEachIndexed
{
indexin
,
childrenBean
->
if
(
childrenBean
.
isSelected
)
{
eightCategoryListBean
.
get
(
index
).
hasData
=
true
return
@forEachIndexed
}
}
}
leftHasData
()
eightCategoryAdapter
.
notifyDataSetChanged
()
categoryRightAdapter
.
notifyDataSetChanged
()
}
else
{
//单选跳转咨询列表页
ARouter
.
getInstance
().
build
(
"/consult/list"
)
.
withInt
(
IYDLRouterConstant
.
EXTRA_SHOWTYPE
,
0
)
.
withString
(
"cateid3in"
,
mutableList
?.
get
(
outPosition
)
?.
get
(
inPosition
)
?.
cate_id
)
.
withString
(
ExpertSearchActivity
.
CATEID3IN
,
mutableList
?.
get
(
outPosition
)
?.
get
(
inPosition
)
?.
cate_id
)
.
withString
(
IYDLRouterConstant
.
EXTRA_CATETITLE
,
mutableList
?.
get
(
outPosition
)
?.
get
(
inPosition
)
?.
cate_name
)
.
navigation
()
(
context
as
BaseActivity
).
finish
()
}
}
private
fun
leftHasData
()
{
mutableList
?.
forEachIndexed
{
index
,
mutableList
->
eightCategoryListBean
.
get
(
index
).
hasData
=
false
mutableList
.
forEachIndexed
{
indexin
,
childrenBean
->
if
(
childrenBean
.
isSelected
)
{
eightCategoryListBean
.
get
(
index
).
hasData
=
true
return
@leftHasData
}
}
}
}
override
fun
onLeftClick
(
leftPosition
:
Int
)
{
...
...
m-consultant/src/main/res/layout/eight_category_detail_item_item.xml
View file @
56fed7ff
...
...
@@ -9,9 +9,9 @@
android:background=
"@drawable/consult_price_expert_unseleted"
android:gravity=
"center"
android:minHeight=
"@dimen/platform_dp_40"
android:paddingStart=
"@dimen/platform_dp_1
8
"
android:paddingStart=
"@dimen/platform_dp_1
5
"
android:paddingTop=
"@dimen/platform_dp_6"
android:paddingRight=
"@dimen/platform_dp_1
8
"
android:paddingRight=
"@dimen/platform_dp_1
5
"
android:paddingBottom=
"@dimen/platform_dp_6"
android:textColor=
"@color/platform_color_333333"
android:textSize=
"@dimen/platform_sp_12"
...
...
m-home/src/ydl/res/layout/home_button_banner_view.xml
View file @
56fed7ff
...
...
@@ -165,6 +165,7 @@
android:layout_width=
"45dp"
android:layout_height=
"@dimen/platform_dp_22"
android:visibility=
"visible"
android:layout_marginStart=
"@dimen/platform_dp_8"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
...
...
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