소장만 기능 추가

This commit is contained in:
Yu Sung 2024-11-12 23:11:43 +09:00
parent 21cfd00c92
commit 1c45a30f59
1 changed files with 24 additions and 14 deletions

View File

@ -534,18 +534,29 @@
</v-row> </v-row>
</v-card-text> </v-card-text>
<v-card-text v-show="audio_content.price > 0 && is_limited_edition === false"> <v-card-text v-show="audio_content.price > 0 && is_limited_edition === false">
<v-row> <v-row align="center">
<v-col cols="4"> <v-col cols="4">
대여만 가능 소장 설정
</v-col> </v-col>
<v-col <v-col cols="8">
cols="8" <v-radio-group
align="left" v-model="audio_content.purchase_option"
> row
<input
v-model="audio_content.is_only_rental"
type="checkbox"
> >
<v-radio
value="BOTH"
label="소장/대여"
/>
<v-radio
value="BUY_ONLY"
label="소장만"
/>
<v-radio
value="RENT_ONLY"
label="대여만"
/>
<v-spacer />
</v-radio-group>
</v-col> </v-col>
</v-row> </v-row>
</v-card-text> </v-card-text>
@ -668,13 +679,11 @@ export default {
is_adult: false, is_adult: false,
is_generate_preview: false, is_generate_preview: false,
is_comment_available: true, is_comment_available: true,
purchase_option: 'BOTH',
}, },
audio_contents: [], audio_contents: [],
themeList: [], themeList: [],
selected_audio_content: {}, selected_audio_content: {},
utm_source: '',
utm_medium: '',
utm_campaign: '',
} }
}, },
@ -726,6 +735,7 @@ export default {
price: 0, price: 0,
is_adult: false, is_adult: false,
is_comment_available: true, is_comment_available: true,
purchase_option: 'BOTH',
} }
this.reservation_time = '' this.reservation_time = ''
this.reservation_time = '' this.reservation_time = ''
@ -833,12 +843,12 @@ export default {
themeId: this.audio_content.theme_id, themeId: this.audio_content.theme_id,
isAdult: this.audio_content.is_adult, isAdult: this.audio_content.is_adult,
isGeneratePreview: this.audio_content.price > 0 ? this.audio_content.is_generate_preview : false, isGeneratePreview: this.audio_content.price > 0 ? this.audio_content.is_generate_preview : false,
isOnlyRental: this.audio_content.is_only_rental, purchaseOption: this.audio_content.purchase_option,
isCommentAvailable: this.audio_content.is_comment_available isCommentAvailable: this.audio_content.is_comment_available
} }
if (this.audio_content.limited > 0) { if (this.audio_content.limited > 0) {
request.isOnlyRental = false request.purchaseOption = 'BUY_ONLY'
} }
if (this.audio_content.price > 0 && this.is_limited_edition === true) { if (this.audio_content.price > 0 && this.is_limited_edition === true) {