Skip to content

Commit

Permalink
[Merge] 앱 첫 진입 후 POST시 거리, 가격이 잘못 보내지는 것 수정 (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
yurim830 authored Jan 31, 2025
2 parents 0bb9b71 + e17437e commit 3c4f22f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ class SpotListViewModel {

var walkingTime: SpotType.WalkingDistanceType = .fifteen

var restaurantPrice: SpotType.RestaurantPriceType = .tenThousand
var restaurantPrice: SpotType.RestaurantPriceType = .aboveFiftyThousand

var cafePrice: SpotType.CafePriceType = .fiveThousand
var cafePrice: SpotType.CafePriceType = .aboveTenThousand


// MARK: - Methods
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,15 +196,15 @@ enum SpotType {

enum RestaurantPriceType: CaseIterable {

case fiveThousand, tenThousand, thirtyThousand, fiftyThousand, fiftyThousandAbove
case fiveThousand, tenThousand, thirtyThousand, fiftyThousand, aboveFiftyThousand

var text: String {
switch self {
case .fiveThousand: return "5천원 이하"
case .tenThousand: return "1만원"
case .thirtyThousand: return "3만원"
case .fiftyThousand: return "5만원"
case .fiftyThousandAbove: return "5만원 이상"
case .aboveFiftyThousand: return "5만원 이상"
}
}

Expand All @@ -214,7 +214,7 @@ enum SpotType {
case .tenThousand: return 10000
case .thirtyThousand: return 30000
case .fiftyThousand: return 50000
case .fiftyThousandAbove: return -1
case .aboveFiftyThousand: return -1
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ class SpotListFilterView: GlassmorphismView {

let restaurantPriceSlider = CustomSlider(
indicators: SpotType.RestaurantPriceType.allCases.map { return $0.text },
startIndex: 1)
startIndex: 4)

let cafePriceSlider = CustomSlider(
indicators: SpotType.CafePriceType.allCases.map { return $0.text },
startIndex: 1)
startIndex: 2)


// MARK: - Lifecycle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class SpotListFilterViewController: BaseViewController {

var walkingTime: SpotType.WalkingDistanceType = .twentyFive

var restaurantPrice: SpotType.RestaurantPriceType = .fiftyThousandAbove
var restaurantPrice: SpotType.RestaurantPriceType = .aboveFiftyThousand

var cafePrice: SpotType.CafePriceType = .aboveTenThousand

Expand Down Expand Up @@ -184,7 +184,7 @@ private extension SpotListFilterViewController {

$0.resetAllTagSelection()

$0.resetSliderPosition(animated: false)
$0.resetSliderPosition()
}
}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
## 🐿️ Developers
| [이수민](https://github.com/cirtuare) | [김유림](https://github.com/yurim830) | [안재현](https://github.com/Ohjackson) |
| --- | --- | --- |
| <img src="https://github.com/user-attachments/assets/b4ff5177-333e-48c5-9295-95154c7b5275" width="333"/> | <img src="https://github.com/user-attachments/assets/10e57e7b-610a-4d74-b316-79259a55782e" width="333"/> | <img src="https://github.com/user-attachments/assets/55e7f196-623e-4cb4-b800-2cd40c77f8d5" width="333"/> |
| <img src="https://github.com/user-attachments/assets/b4ff5177-333e-48c5-9295-95154c7b5275" width="333"/> | <img src="https://github.com/user-attachments/assets/5f7a3082-89c2-4bc3-9b7f-10e8ce0c7fa0" width="333"/> | <img src="https://github.com/user-attachments/assets/55e7f196-623e-4cb4-b800-2cd40c77f8d5" width="333"/> |
| <p align="center">`스플래시/로그인` `동네인증` <br>`업로드` `장소 상세`</p> | <p align="center">`장소탐색` <br>`필터링`</p> | <p align="center">`취향탐색` <br>`알럿`</p> |

<br/>
Expand Down

0 comments on commit 3c4f22f

Please sign in to comment.