콘텐츠 리스트, 콘텐츠 구매 창에 캔 아이콘 변경
This commit is contained in:
parent
89fd2f5f0d
commit
728510a72d
|
@ -77,7 +77,7 @@ struct ContentListItemView: View {
|
|||
|
||||
if item.price > 0 {
|
||||
HStack(spacing: 8) {
|
||||
Image("ic_coin_w")
|
||||
Image("ic_can")
|
||||
.resizable()
|
||||
.frame(width: 17, height: 17)
|
||||
|
||||
|
|
|
@ -29,8 +29,8 @@ final class ContentRepository {
|
|||
return api.requestPublisher(.registerComment(request: RegisterAudioContentCommentRequest(comment: comment, contentId: audioContentId, parentId: parentId)))
|
||||
}
|
||||
|
||||
func orderAudioContent(audioContentId: Int, orderType: OrderType) -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.orderAudioContent(request: OrderRequest(audioContentId: audioContentId, orderType: orderType)))
|
||||
func orderAudioContent(contentId: Int, orderType: OrderType) -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.orderAudioContent(request: OrderRequest(contentId: contentId, orderType: orderType)))
|
||||
}
|
||||
|
||||
func getOrderList(page: Int, size: Int) -> AnyPublisher<Response, MoyaError> {
|
||||
|
|
|
@ -280,7 +280,7 @@ final class ContentDetailViewModel: ObservableObject {
|
|||
isShowPreviewAlert = false
|
||||
isLoading = true
|
||||
|
||||
repository.orderAudioContent(audioContentId: contentId, orderType: orderType)
|
||||
repository.orderAudioContent(contentId: contentId, orderType: orderType)
|
||||
.sink { result in
|
||||
switch result {
|
||||
case .finished:
|
||||
|
|
|
@ -71,7 +71,7 @@ struct ContentOrderDialogView: View {
|
|||
Spacer()
|
||||
|
||||
HStack(spacing: 8) {
|
||||
Image("ic_coin_w")
|
||||
Image("ic_can")
|
||||
.resizable()
|
||||
.frame(width: 16.7, height: 16.7)
|
||||
|
||||
|
|
Loading…
Reference in New Issue