Commit 5b4f0e4a by YKai

feat: 修改筛选框价格文案,价格筛选传值字段使用后端返回的字段

parent ef86e01f
...@@ -124,7 +124,7 @@ class ExpertSearchPresenter : SimplePresenter<IExpertSearchView>() { ...@@ -124,7 +124,7 @@ class ExpertSearchPresenter : SimplePresenter<IExpertSearchView>() {
if (!TextUtils.isEmpty(allFilter.priceRanges?.max_price)) { if (!TextUtils.isEmpty(allFilter.priceRanges?.max_price)) {
avgPriceMap["lte"] = allFilter.priceRanges?.max_price avgPriceMap["lte"] = allFilter.priceRanges?.max_price
} }
filterMap["avg_price"] = avgPriceMap filterMap[allFilter.priceRanges!!.key1] = avgPriceMap
} }
// 年龄 // 年龄
if (allFilter.ages.isNotEmpty()) { if (allFilter.ages.isNotEmpty()) {
......
...@@ -13,5 +13,7 @@ data class PriceRangesItem( ...@@ -13,5 +13,7 @@ data class PriceRangesItem(
@SerializedName("recommend_percent") @SerializedName("recommend_percent")
var recommend_percent: String? = null, var recommend_percent: String? = null,
var display_range:String? = null var display_range:String? = null,
var key1:String = "avg_price"
) )
\ No newline at end of file
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/platform_dp_28" android:layout_marginTop="@dimen/platform_dp_28"
android:text="服务均价" android:text="价格"
android:textColor="@color/platform_color_242424" android:textColor="@color/platform_color_242424"
android:textSize="@dimen/platform_dp_16" android:textSize="@dimen/platform_dp_16"
android:textStyle="bold" /> android:textStyle="bold" />
......
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