Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-04-29 09:36:17 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2fe5436b725b438002ec289887fa06c54f697059
2fe5436b
1 parent
ffa002aa
✨ feat(评论模块): 弹出展示效果调整
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
3 deletions
src/components/CommentBox/index.vue
src/components/CommentList/index.vue
src/components/DonateCert/index.vue
src/components/CommentBox/index.vue
View file @
2fe5436
...
...
@@ -3,7 +3,7 @@
v-model:show="show"
:close-on-click-overlay="false"
position="bottom"
:style="{ height: '
10
0%' }"
:style="{ height: '
4
0%' }"
>
<div class="van-hairline--bottom">
<van-row>
...
...
src/components/CommentList/index.vue
View file @
2fe5436
...
...
@@ -52,7 +52,7 @@
<p>是妮妮吖~</p>
<p>杨浦民办科技幼稚园</p>
</van-col>
<van-col span="4" style="text-align: center;">
<van-col span="4" style="text-align: center;"
@click="setComment('222', 'reply')"
>
<p style="color: #333333;">回复</p>
<p>2-25</p>
</van-col>
...
...
@@ -63,10 +63,15 @@
</van-col>
</van-row>
</div>
<comment-box :showPopup="showCommentBoxPopup" :type="commentType" @on-close="closeCommentBox"></comment-box>
</van-popup>
</template>
<script setup>
import CommentBox from '@/components/CommentBox/index.vue'
import icon_x from '@images/x.png'
import icon_y from '@images/y.png'
...
...
@@ -75,6 +80,23 @@ import { ref, reactive, onMounted } from 'vue'
// showPopup: Boolean
// })
// 回复评论控件
const showCommentBoxPopup = ref(false);
const commentType = ref('comment'); // 类型 comment 为评论/类型 reply 为回复
const flag = true; // 后台接口判断是否上传过作品
// 实际调试时,点击回复需要判断是否上传过作品
const setComment = (v, type) => { // 回复/评论
if (flag) {
showCommentBoxPopup.value = true;
commentType.value = type;
} else {
showNotice.value = true;
}
}
const closeCommentBox = (v) => { // 查看更多回复
showCommentBoxPopup.value = v;
}
onMounted(() => {
})
</script>
...
...
src/components/DonateCert/index.vue
View file @
2fe5436
...
...
@@ -114,7 +114,7 @@ export default {
}
.organizer {
margin: 1rem;
overflow:
auto
;
overflow:
hidden
;
.wrapper {
float: right;
font-size: 0.8rem;
...
...
Please
register
or
login
to post a comment