Showing
3 changed files
with
25 additions
and
3 deletions
| ... | @@ -3,7 +3,7 @@ | ... | @@ -3,7 +3,7 @@ |
| 3 | v-model:show="show" | 3 | v-model:show="show" |
| 4 | :close-on-click-overlay="false" | 4 | :close-on-click-overlay="false" |
| 5 | position="bottom" | 5 | position="bottom" |
| 6 | - :style="{ height: '100%' }" | 6 | + :style="{ height: '40%' }" |
| 7 | > | 7 | > |
| 8 | <div class="van-hairline--bottom"> | 8 | <div class="van-hairline--bottom"> |
| 9 | <van-row> | 9 | <van-row> | ... | ... |
| ... | @@ -52,7 +52,7 @@ | ... | @@ -52,7 +52,7 @@ |
| 52 | <p>是妮妮吖~</p> | 52 | <p>是妮妮吖~</p> |
| 53 | <p>杨浦民办科技幼稚园</p> | 53 | <p>杨浦民办科技幼稚园</p> |
| 54 | </van-col> | 54 | </van-col> |
| 55 | - <van-col span="4" style="text-align: center;"> | 55 | + <van-col span="4" style="text-align: center;" @click="setComment('222', 'reply')"> |
| 56 | <p style="color: #333333;">回复</p> | 56 | <p style="color: #333333;">回复</p> |
| 57 | <p>2-25</p> | 57 | <p>2-25</p> |
| 58 | </van-col> | 58 | </van-col> |
| ... | @@ -63,10 +63,15 @@ | ... | @@ -63,10 +63,15 @@ |
| 63 | </van-col> | 63 | </van-col> |
| 64 | </van-row> | 64 | </van-row> |
| 65 | </div> | 65 | </div> |
| 66 | + <comment-box :showPopup="showCommentBoxPopup" :type="commentType" @on-close="closeCommentBox"></comment-box> | ||
| 66 | </van-popup> | 67 | </van-popup> |
| 68 | + | ||
| 69 | + | ||
| 67 | </template> | 70 | </template> |
| 68 | 71 | ||
| 69 | <script setup> | 72 | <script setup> |
| 73 | +import CommentBox from '@/components/CommentBox/index.vue' | ||
| 74 | + | ||
| 70 | import icon_x from '@images/x.png' | 75 | import icon_x from '@images/x.png' |
| 71 | import icon_y from '@images/y.png' | 76 | import icon_y from '@images/y.png' |
| 72 | 77 | ||
| ... | @@ -75,6 +80,23 @@ import { ref, reactive, onMounted } from 'vue' | ... | @@ -75,6 +80,23 @@ import { ref, reactive, onMounted } from 'vue' |
| 75 | // showPopup: Boolean | 80 | // showPopup: Boolean |
| 76 | // }) | 81 | // }) |
| 77 | 82 | ||
| 83 | +// 回复评论控件 | ||
| 84 | +const showCommentBoxPopup = ref(false); | ||
| 85 | +const commentType = ref('comment'); // 类型 comment 为评论/类型 reply 为回复 | ||
| 86 | +const flag = true; // 后台接口判断是否上传过作品 | ||
| 87 | +// 实际调试时,点击回复需要判断是否上传过作品 | ||
| 88 | +const setComment = (v, type) => { // 回复/评论 | ||
| 89 | + if (flag) { | ||
| 90 | + showCommentBoxPopup.value = true; | ||
| 91 | + commentType.value = type; | ||
| 92 | + } else { | ||
| 93 | + showNotice.value = true; | ||
| 94 | + } | ||
| 95 | +} | ||
| 96 | +const closeCommentBox = (v) => { // 查看更多回复 | ||
| 97 | + showCommentBoxPopup.value = v; | ||
| 98 | +} | ||
| 99 | + | ||
| 78 | onMounted(() => { | 100 | onMounted(() => { |
| 79 | }) | 101 | }) |
| 80 | </script> | 102 | </script> | ... | ... |
| ... | @@ -114,7 +114,7 @@ export default { | ... | @@ -114,7 +114,7 @@ export default { |
| 114 | } | 114 | } |
| 115 | .organizer { | 115 | .organizer { |
| 116 | margin: 1rem; | 116 | margin: 1rem; |
| 117 | - overflow: auto; | 117 | + overflow: hidden; |
| 118 | .wrapper { | 118 | .wrapper { |
| 119 | float: right; | 119 | float: right; |
| 120 | font-size: 0.8rem; | 120 | font-size: 0.8rem; | ... | ... |
-
Please register or login to post a comment