From 3432af8e24880ec480f5b237ed695d3631b6e68c Mon Sep 17 00:00:00 2001 From: Yu Sung <hwchon1234@gmail.com> Date: Tue, 22 Apr 2025 21:26:03 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BD=98=ED=85=90=EC=B8=A0=20=EB=93=B1?= =?UTF-8?q?=EB=A1=9D/=EC=88=98=EC=A0=95=20-=20=ED=8F=AC=EC=9D=B8=ED=8A=B8?= =?UTF-8?q?=20=EC=82=AC=EC=9A=A9=20=EA=B0=80=EB=8A=A5=20=EC=97=AC=EB=B6=80?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Content/ContentList.vue | 42 ++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/src/views/Content/ContentList.vue b/src/views/Content/ContentList.vue index 2b36f9b..5517850 100644 --- a/src/views/Content/ContentList.vue +++ b/src/views/Content/ContentList.vue @@ -14,7 +14,7 @@ <v-col> <v-btn block - color="#9970ff" + color="#3bb9f1" dark depressed @click="showWriteDialog" @@ -273,6 +273,22 @@ </v-col> </v-row> </v-card-text> + <v-card-text> + <v-row> + <v-col cols="4"> + 포인트 사용 가능 + </v-col> + <v-col + cols="8" + align="left" + > + <input + v-model="audio_content.is_point_available" + type="checkbox" + > + </v-col> + </v-row> + </v-card-text> <v-card-actions v-show="!is_loading"> <v-spacer /> <v-btn @@ -615,6 +631,22 @@ </v-col> </v-row> </v-card-text> + <v-card-text> + <v-row> + <v-col cols="4"> + 포인트 사용 가능 + </v-col> + <v-col + cols="8" + align="left" + > + <input + v-model="audio_content.is_point_available" + type="checkbox" + > + </v-col> + </v-row> + </v-card-text> <v-card-actions v-show="!is_loading"> <v-spacer /> <v-btn @@ -700,6 +732,7 @@ export default { audio_content: { price: 0, is_adult: false, + is_point_available: false, is_generate_preview: false, is_comment_available: true, is_full_detail_visible: true, @@ -748,6 +781,7 @@ export default { this.audio_content.detail = item.detail this.audio_content.price = item.price this.audio_content.is_adult = item.isAdult + this.audio_content.is_point_available = item.isPointAvailable this.audio_content.is_comment_available = item.isCommentAvailable this.audio_content.cover_image_url = item.coverImageUrl this.show_modify_dialog = true @@ -758,6 +792,7 @@ export default { this.audio_content = { price: 0, is_adult: false, + is_point_available: false, is_comment_available: true, is_full_detail_visible: true, purchase_option: 'BOTH', @@ -869,6 +904,7 @@ export default { isAdult: this.audio_content.is_adult, isGeneratePreview: this.audio_content.price > 0 ? this.audio_content.is_generate_preview : false, purchaseOption: this.audio_content.purchase_option, + isPointAvailable: this.audio_content.is_point_available, isCommentAvailable: this.audio_content.is_comment_available, isFullDetailVisible: this.audio_content.is_full_detail_visible } @@ -1010,6 +1046,10 @@ export default { request.isAdult = this.audio_content.is_adult } + if (this.selected_audio_content.isPointAvailable !== this.audio_content.is_point_available) { + request.isPointAvailable = this.audio_content.is_point_available + } + if (this.selected_audio_content.isCommentAvailable !== this.audio_content.is_comment_available) { request.isCommentAvailable = this.audio_content.is_comment_available } -- 2.40.1