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-05-14 17:16:38 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
52ddc23aae72fa16ffe71eca8a0e058b21a16474
52ddc23a
1 parent
a19a40c8
✨ feat(回复功能): 留言操作时,未实名认证提示弹框逻辑优化
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
8 deletions
src/components/CommentList/index.vue
src/views/client/videoDetailComment.vue
src/components/CommentList/index.vue
View file @
52ddc23
...
...
@@ -51,11 +51,18 @@
@on-submit="submitCommentBox" @on-close="closeCommentBox"></comment-box>
</van-popup>
<!-- 写评论时,如果没有实名认证提示弹框 -->
<notice-overlay :show="showNotice" text="前往认证" @on-submit="onSubmit" @on-close="onClose">
<div style="color: #333333;">
<p>您还没有实名认证</p>
<p>请前往个人中心进行实名认证</p>
</div>
</notice-overlay>
</template>
<script setup>
import CommentBox from '@/components/CommentBox/index.vue'
import NoticeOverlay from '@/components/NoticeOverlay/index.vue'
import icon_x from '@images/x.png'
import icon_y from '@images/y.png'
...
...
@@ -90,12 +97,13 @@ const commentType = ref('comment'); // 类型 comment 为评论/类型 reply 为
const commentId = ref('')
const replayUser = ref('')
const setComment = (v, type) => { //
if (validIdCard.can_use) {
if (
!
validIdCard.can_use) {
showCommentBoxPopup.value = true;
commentType.value = type;
replayUser.value = v.name;
commentId.value = props.data.id;
} else {
closeBtn();
showNotice.value = true;
}
}
...
...
@@ -145,9 +153,16 @@ const closeCommentBox = (v) => { // 关闭留言框
}
/******** 留言框相关操作 START *******/
onMounted(() => {
})
const showNotice = ref(false)
const onClose = () => { // 关闭提示框回调
showNotice.value = false;
}
// 跳转个人中心
const onSubmit = () => {
$router.push({
path: '/me/index'
});
}
const show = ref(false);
const listTotal = ref(0)
const replyList = ref([])
...
...
@@ -194,9 +209,9 @@ const onReload = () => {
offset.value = 0;
onLoad();
}
const onClose = () => {
show.value = false;
}
//
const onClose = () => {
//
show.value = false;
//
}
// 监听弹出框
watch(() => props.showPopup, (v) => {
...
...
src/views/client/videoDetailComment.vue
View file @
52ddc23
...
...
@@ -177,6 +177,7 @@ const setComment = (v, type) => {
replayUser.value = v.name;
commentId.value = v.id;
} else {
closeBtn();
showNotice.value = true;
}
}
...
...
Please
register
or
login
to post a comment