|
@@ -3,25 +3,38 @@
|
|
|
<div :class="showStatus ? 'content noneContent' : 'content haveContnet'">
|
|
|
<div class="headerTittle titleText">通知确认</div>
|
|
|
<el-scrollbar class="itemScrollbar">
|
|
|
- <div class="item" v-for="(item, index) in messages" :key="index">
|
|
|
- <div class="itemContent">
|
|
|
- <div>{{ item.created }}</div>
|
|
|
- <div>{{ item.title }}</div>
|
|
|
- <div>{{ item.content }}</div>
|
|
|
+ <TransitionGroup name="list">
|
|
|
+ <div class="item" v-for="(item, index) in messages" :key="index">
|
|
|
+ <div class="itemContent">
|
|
|
+ <div>{{ item.created }}</div>
|
|
|
+ <div>{{ item.title }}</div>
|
|
|
+ <div>{{ item.content }}</div>
|
|
|
+ </div>
|
|
|
+ <div class="btns">
|
|
|
+ <el-button type="primary" class="btn" @click="submit(item, index)"
|
|
|
+ >收到</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div class="btns">
|
|
|
- <el-button type="primary" class="btn" @click="submit(item, index)">收到</el-button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ </TransitionGroup>
|
|
|
<div class="describeText">
|
|
|
- {{ messages.length < 1 ? "暂无数据" : "已到最底端~~~" }} </div>
|
|
|
+ {{ messages.length < 1 ? "暂无数据" : "已到最底端~~~" }}
|
|
|
+ </div>
|
|
|
</el-scrollbar>
|
|
|
</div>
|
|
|
<div class="iconBox">
|
|
|
- <el-icon class="icon" :size="40" @click="changePop">
|
|
|
- <Expand v-if="showStatus" />
|
|
|
- <Fold v-else />
|
|
|
- </el-icon>
|
|
|
+ <el-tooltip
|
|
|
+ effect="dark"
|
|
|
+ content="点击打开通知"
|
|
|
+ :disabled="!showStatus"
|
|
|
+ placement="right"
|
|
|
+ trigger="hover"
|
|
|
+ >
|
|
|
+ <el-icon class="icon" :size="40" @click="changePop">
|
|
|
+ <Expand v-if="showStatus" />
|
|
|
+ <Fold v-else />
|
|
|
+ </el-icon>
|
|
|
+ </el-tooltip>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -91,6 +104,8 @@ ws.onclose = () => {
|
|
|
height: 100%;
|
|
|
background-color: white;
|
|
|
overflow: hidden;
|
|
|
+ border-radius: 0 16px 16px 0;
|
|
|
+ border-right: 1px solid #f1f3f5;
|
|
|
|
|
|
.headerTittle {
|
|
|
height: 40px;
|
|
@@ -107,7 +122,6 @@ ws.onclose = () => {
|
|
|
}
|
|
|
|
|
|
.item {
|
|
|
- border: 2px solid #ff000070;
|
|
|
border-radius: 16px;
|
|
|
width: 100%;
|
|
|
min-height: 80px;
|
|
@@ -115,19 +129,25 @@ ws.onclose = () => {
|
|
|
justify-content: space-between;
|
|
|
padding: 20px;
|
|
|
margin-bottom: 20px;
|
|
|
+ background-color: #f1f3f5;
|
|
|
|
|
|
.itemContent {
|
|
|
height: 100%;
|
|
|
- border: 2px solid #ff000070;
|
|
|
border-radius: 16px;
|
|
|
padding: 20px;
|
|
|
+ background-color: white;
|
|
|
+ font-size: $f20;
|
|
|
}
|
|
|
|
|
|
.btns {
|
|
|
- width: 40px;
|
|
|
+ width: 60px;
|
|
|
@include flex;
|
|
|
- height: 100%;
|
|
|
margin-left: 20px;
|
|
|
+ .btn {
|
|
|
+ height: 100%;
|
|
|
+ border-radius: 16px;
|
|
|
+ font-size: $f20;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -135,12 +155,13 @@ ws.onclose = () => {
|
|
|
|
|
|
.noneContent {
|
|
|
width: 0vw;
|
|
|
- transition: width 0.5s;
|
|
|
+ transition: 0.5s;
|
|
|
+ transform: translateX(-30vw);
|
|
|
}
|
|
|
|
|
|
.haveContnet {
|
|
|
width: 30vw;
|
|
|
- transition: width 0.5s;
|
|
|
+ transition: 0.5s;
|
|
|
}
|
|
|
|
|
|
.iconBox {
|