From c846c494e58c78f455939b5308b9441f8271a69a Mon Sep 17 00:00:00 2001 From: al Date: Mon, 9 Sep 2024 15:56:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9search=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/search/page.js | 29 ++++++++++++++--------------- components/MySlider/index.jsx | 6 +++--- 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/app/search/page.js b/app/search/page.js index b10e9a9..a058b85 100644 --- a/app/search/page.js +++ b/app/search/page.js @@ -81,11 +81,11 @@ export default function Search() { upper_bound: 200, lower_bound: 1, default: 24, - step: 200 / 10, + step: 200 / 9, type: "slider", unit: "万", key: "fans", - stepValues: [1, 3, 5, 10, 20, 50, 75, 100, 150, 200, 1000], + stepValues: [1, 5, 10, 20, 50, 75, 100, 150, 200, 1000], }, { name: "身高", @@ -121,7 +121,6 @@ export default function Search() { step: 1, type: "select", items: [ - "不限", "北京市", "天津市", "河北省", @@ -168,7 +167,6 @@ export default function Search() { type: "select", key: "constellation", items: [ - "不限", "白羊座", "‌金牛座", "‌双子座", @@ -196,25 +194,26 @@ export default function Search() { const priceFilters = [ { name: "空间价格", - upper_bound: 200, + upper_bound: 300, lower_bound: 0, default: 24, - step: 200 / 7, + step: 300 / 7, type: "slider", unit: "¥", key: "zone", - stepValues: [0, 1, 10, 50, 100, 150, 200, 4000], + stepValues: [0, 10, 50, 100, 150, 200, 300, 4000], }, { name: "微信价格", - upper_bound: 10000, + desc: "10金币=¥1", + upper_bound: 30000, lower_bound: 0, default: 24, - step: 10000 / 8, + step: 30000 / 9, type: "slider", unit: "金币", key: "wechat", - stepValues: [0, 10, 100, 200, 500, 1000, 5000, 10000, 100000], + stepValues: [0, 100, 300, 500, 1000, 5000, 10000, 20000, 30000, 100000], }, ]; useEffect(() => { @@ -549,7 +548,7 @@ export default function Search() { closeOnMaskClick={true} maskStyle={{ backgroundColor: "#0000004d" }} visible={isFilterVisible.comprehensive} - bodyStyle={{ height: "calc(100vh - 64px)" }} + bodyStyle={{ height: "calc(100vh - 110px)" }} onMaskClick={() => setIsFilterVisible({ zone_admission_price: false, @@ -559,7 +558,7 @@ export default function Search() { >
{filters.map((item, index) => (
setIsFilterVisible({ zone_admission_price: false, @@ -798,7 +797,7 @@ export default function Search() { >
{priceFilters.map((item, index) => (
- + {!streamers.length && !recommList.length && (
- {hasInfinity && leftProcess == 1 ? ">" + upper_bound : leftValue} + {hasInfinity && leftProcess == 1 ? "∞" : leftValue} - {hasInfinity && rightProcess >= 1 ? ">" + upper_bound : rightValue} + {hasInfinity && rightProcess >= 1 ? "∞" : rightValue} {unitSite == "right" && ( - {hasInfinity ? ">" + upper_bound : upper_bound} + {hasInfinity ? "∞" : upper_bound}