|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="tag-view" v-show="canShow">
|
|
|
<!-- <div class="tag-view-content" :style="{ height: height + 'px' }"> -->
|
|
|
- <div class="tag-view-content">
|
|
|
+ <div class="tag-view-content" :class="!isLogin ? 'no-comment' : ''">
|
|
|
<header>
|
|
|
<span>{{ notify.title }}</span>
|
|
|
<!-- <i class="iconfont icon-close" @click="emits('action', null)"></i> -->
|
|
@@ -9,7 +9,7 @@
|
|
|
</header>
|
|
|
<article>
|
|
|
<TagMsg @setShow="setShow"></TagMsg>
|
|
|
- <Comment :slideHeigt="slideHeigt"></Comment>
|
|
|
+ <Comment v-if="isLogin" :slideHeigt="slideHeigt"></Comment>
|
|
|
</article>
|
|
|
<!-- <footer></footer> -->
|
|
|
</div>
|
|
@@ -21,6 +21,8 @@ import { ref, onMounted, onBeforeUnmount, computed, inject } from 'vue'
|
|
|
import TagMsg from './content/TagMsg.vue'
|
|
|
import Comment from './content/Comment.vue'
|
|
|
import { nextTick } from 'process'
|
|
|
+
|
|
|
+const isLogin = inject('isLogin')
|
|
|
const notify = inject('notify')
|
|
|
const emits = defineEmits(['action'])
|
|
|
const height = ref(0)
|
|
@@ -281,6 +283,9 @@ onBeforeUnmount(() => {
|
|
|
border: 1px solid #000000;
|
|
|
backdrop-filter: blur(4px);
|
|
|
color: #fff;
|
|
|
+ &.no-comment {
|
|
|
+ width: 400px;
|
|
|
+ }
|
|
|
|
|
|
header {
|
|
|
padding: 0 20px;
|
|
@@ -306,7 +311,7 @@ onBeforeUnmount(() => {
|
|
|
overflow: hidden;
|
|
|
> div {
|
|
|
width: 50%;
|
|
|
-
|
|
|
+
|
|
|
// &.left-item {
|
|
|
// border-right: solid 1px rgba(255, 255, 255, 0.16);
|
|
|
// }
|