Commit d5c66832 by 霍志良

feat:bug修改

parent 69ca47cc
...@@ -14,7 +14,8 @@ buildscript { ...@@ -14,7 +14,8 @@ 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.23-SNAPSHOT" componentVersion = "0.3.0.26-SNAPSHO*-" +
"T"
} }
repositories { repositories {
mavenCentral() mavenCentral()
......
...@@ -404,7 +404,7 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres ...@@ -404,7 +404,7 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
private fun initData(mIntent: Intent, isRefresh: Boolean) { private fun initData(mIntent: Intent, isRefresh: Boolean) {
fromPageType = mIntent.getIntExtra(EXTRA_FROM_PAGE, -1) fromPageType = mIntent.getIntExtra(EXTRA_FROM_PAGE, -1)
initCategory = mIntent.getStringExtra(EXTRA_CATEGORY) ?: "" initCategory = mIntent.getStringExtra(EXTRA_CATEGORY) ?: "0"
initShowType = mIntent.getIntExtra(EXTRA_SHOW_TYPE, 0) initShowType = mIntent.getIntExtra(EXTRA_SHOW_TYPE, 0)
//首页金刚位传递过来的动态Map参数 //首页金刚位传递过来的动态Map参数
if (mIntent.getSerializableExtra(GO_CRITERIA) != null) { if (mIntent.getSerializableExtra(GO_CRITERIA) != null) {
...@@ -424,7 +424,7 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres ...@@ -424,7 +424,7 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
allFilter.searchWord = searchWord allFilter.searchWord = searchWord
} }
mSign2 = mIntent.getStringExtra("sign2") ?: "" mSign2 = mIntent.getStringExtra("sign2") ?: ""
getRouterParam() // getRouterParam()
allFilter.showType.key = initShowType allFilter.showType.key = initShowType
if (!TextUtils.isEmpty(initCategory) && initCategory != "0") { if (!TextUtils.isEmpty(initCategory) && initCategory != "0") {
...@@ -1474,8 +1474,15 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres ...@@ -1474,8 +1474,15 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
locationRegionItem?.let { locationHistoryList?.add(0, it) } locationRegionItem?.let { locationHistoryList?.add(0, it) }
showAreaPoPup(agreeLocation) showAreaPoPup(agreeLocation)
} }
}, {}) }, {
ErrorLocate(false)
})
} else { } else {
ErrorLocate(agreeLocation)
}
}
private fun ErrorLocate(agreeLocation: Boolean) {
locationList?.clear() locationList?.clear()
subLocationItem?.code = null subLocationItem?.code = null
subLocationItem?.key = null subLocationItem?.key = null
...@@ -1493,7 +1500,6 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres ...@@ -1493,7 +1500,6 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
locationRegionItem?.let { locationHistoryList?.add(0, it) } locationRegionItem?.let { locationHistoryList?.add(0, it) }
showAreaPoPup(agreeLocation) showAreaPoPup(agreeLocation)
} }
}
private fun showAreaPoPup(isAgreeLocation: Boolean) { private fun showAreaPoPup(isAgreeLocation: Boolean) {
locationHistoryList?.addAll(headData?.region ?: ArrayList()) locationHistoryList?.addAll(headData?.region ?: ArrayList())
......
...@@ -51,7 +51,7 @@ class PricePopupWindow( ...@@ -51,7 +51,7 @@ class PricePopupWindow(
private var SeekBarRightValue = 0f private var SeekBarRightValue = 0f
private val maxPriceValue = 600 private val maxPriceValue = 600
private val infiniteText = "无限" private val infiniteText = "无限"
private var track = false
init { init {
val view = val view =
LayoutInflater.from(context).inflate(R.layout.consultant_ui_price_popup_window, null) LayoutInflater.from(context).inflate(R.layout.consultant_ui_price_popup_window, null)
...@@ -65,13 +65,13 @@ class PricePopupWindow( ...@@ -65,13 +65,13 @@ class PricePopupWindow(
ActionCountUtils.count(BOTTOM_ICON_CLICK, contentView.price_Confirm.text.toString()) ActionCountUtils.count(BOTTOM_ICON_CLICK, contentView.price_Confirm.text.toString())
if (max_Price == infiniteText) max_Price = "" if (max_Price == infiniteText) max_Price = ""
var priceRangesItem = PriceRangesItem(min_Price, max_Price) var priceRangesItem = PriceRangesItem(min_Price, max_Price)
tempFilter.priceRanges = priceRangesItem priceRangesItem.key1 = filterData.priceRanges[0].key1
tempFilter.priceRanges?.key1 = filterData.priceRanges[0].key1
onPriceItemSelectedListener.onPriceItemSelected(priceRangesItem) onPriceItemSelectedListener.onPriceItemSelected(priceRangesItem)
dismiss() dismiss()
} }
contentView.price_reset.setOnClickListener { contentView.price_reset.setOnClickListener {
ActionCountUtils.count(BOTTOM_ICON_CLICK, contentView.price_reset.text.toString()) ActionCountUtils.count(BOTTOM_ICON_CLICK, contentView.price_reset.text.toString())
//重置 //重置
contentView.range_price_seekbar.setProgress(0f, 100f) contentView.range_price_seekbar.setProgress(0f, 100f)
reset() reset()
...@@ -111,6 +111,7 @@ class PricePopupWindow( ...@@ -111,6 +111,7 @@ class PricePopupWindow(
rightValue: Float, rightValue: Float,
isFromUser: Boolean isFromUser: Boolean
) { ) {
if (track) {
max_Price = ((rightValue / 100) * maxPriceValue).toInt().toString() max_Price = ((rightValue / 100) * maxPriceValue).toInt().toString()
if (rightValue > 93) { if (rightValue > 93) {
max_Price = infiniteText max_Price = infiniteText
...@@ -119,14 +120,16 @@ class PricePopupWindow( ...@@ -119,14 +120,16 @@ class PricePopupWindow(
ActionCountUtils.count(PRICE_SLIDE_CLICK, "$min_Price-$max_Price") ActionCountUtils.count(PRICE_SLIDE_CLICK, "$min_Price-$max_Price")
contentView.tv_start_end_price.text = contentView.tv_start_end_price.text =
"$min_Price-$max_Price" "$min_Price-$max_Price"
}
} }
override fun onStartTrackingTouch(view: RangeSeekBar?, isLeft: Boolean) { override fun onStartTrackingTouch(view: RangeSeekBar?, isLeft: Boolean) {
track = true
reset() reset()
} }
override fun onStopTrackingTouch(view: RangeSeekBar?, isLeft: Boolean) { override fun onStopTrackingTouch(view: RangeSeekBar?, isLeft: Boolean) {
track = false
} }
}) })
...@@ -198,6 +201,9 @@ class PricePopupWindow( ...@@ -198,6 +201,9 @@ class PricePopupWindow(
textView.isSelected = false textView.isSelected = false
textView.paint.isFakeBoldText = false textView.paint.isFakeBoldText = false
tempFilter.priceRangesView = null tempFilter.priceRangesView = null
min_Price = ""
max_Price = ""
contentView.range_price_seekbar.setProgress(0f, 100f)
contentView.tv_start_end_price.text = "0-$infiniteText" contentView.tv_start_end_price.text = "0-$infiniteText"
} else { } else {
textView.background = textView.background =
...@@ -231,6 +237,7 @@ class PricePopupWindow( ...@@ -231,6 +237,7 @@ class PricePopupWindow(
} }
if (SeekBarRightValue > 100f) SeekBarRightValue = 100f if (SeekBarRightValue > 100f) SeekBarRightValue = 100f
contentView.range_price_seekbar.setProgress(SeekBarLeftValue, SeekBarRightValue) contentView.range_price_seekbar.setProgress(SeekBarLeftValue, SeekBarRightValue)
contentView.postDelayed(Runnable { }, 30)
if (max_Price == infiniteText) { if (max_Price == infiniteText) {
contentView.tv_start_end_price.text = "$min_Price-$max_Price" contentView.tv_start_end_price.text = "$min_Price-$max_Price"
} else { } else {
......
...@@ -272,14 +272,12 @@ open class HomeBaseImpl : IHomeBaseEvent { ...@@ -272,14 +272,12 @@ open class HomeBaseImpl : IHomeBaseEvent {
NewH5Activity.start(mContext, H5Params(data.goUrl.toString(), "")) NewH5Activity.start(mContext, H5Params(data.goUrl.toString(), ""))
} else if (data.goType.equals("special_categories")) { } else if (data.goType.equals("special_categories")) {
ARouter.getInstance().build("/consult/list") ARouter.getInstance().build("/consult/list")
.withString(IYDLRouterConstant.EXTRA_CATEID, "0")
.withInt(IYDLRouterConstant.EXTRA_SHOWTYPE, 0) .withInt(IYDLRouterConstant.EXTRA_SHOWTYPE, 0)
.withString(IYDLRouterConstant.EXTRA_CATETITLE, data.title) .withString(IYDLRouterConstant.EXTRA_CATETITLE, data.title)
.withSerializable(IYDLRouterConstant.GO_CRITERIA, data.goCriteriaMap) .withSerializable(IYDLRouterConstant.GO_CRITERIA, data.goCriteriaMap)
.navigation() .navigation()
} else { } else {
ARouter.getInstance().build("/consult/list") ARouter.getInstance().build("/consult/list")
.withString(IYDLRouterConstant.EXTRA_CATEID, data.id)
.withInt(IYDLRouterConstant.EXTRA_SHOWTYPE, 0) .withInt(IYDLRouterConstant.EXTRA_SHOWTYPE, 0)
.withString(IYDLRouterConstant.EXTRA_CATETITLE, data.title) .withString(IYDLRouterConstant.EXTRA_CATETITLE, data.title)
.withSerializable(IYDLRouterConstant.GO_CRITERIA, data.goCriteriaMap) .withSerializable(IYDLRouterConstant.GO_CRITERIA, data.goCriteriaMap)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/platform_dp_20" android:layout_marginBottom="@dimen/platform_dp_15"
android:gravity="center" android:gravity="center"
android:orientation="vertical"> android:orientation="vertical">
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/platform_dp_5" android:layout_marginTop="@dimen/platform_dp_5"
android:ellipsize="end"
android:singleLine="true"
android:textColor="#1c212d" android:textColor="#1c212d"
android:textSize="@dimen/platform_sp_12" /> android:textSize="@dimen/platform_sp_12" />
</LinearLayout> </LinearLayout>
\ No newline at end of file
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="horizontal" android:orientation="horizontal"
android:gravity="center_horizontal" android:gravity="center_horizontal"
android:paddingTop="@dimen/platform_dp_20"> android:paddingTop="@dimen/platform_dp_8">
<RelativeLayout <RelativeLayout
android:id="@+id/homeModuleButtonBannerFirst" android:id="@+id/homeModuleButtonBannerFirst"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment