|
@@ -2,7 +2,8 @@
|
|
|
<div class="hotspot" :class="{ full: smBtn }">
|
|
|
<div class="top">热点列表</div>
|
|
|
<div class="main">
|
|
|
- <div class="txt">
|
|
|
+ <div class="txtNone" v-if="data.length===0">暂无热点</div>
|
|
|
+ <div class="txt" v-else>
|
|
|
<span
|
|
|
:class="{ active: hotInd === index }"
|
|
|
@click="openHot(item, index)"
|
|
@@ -84,6 +85,14 @@ export default {
|
|
|
width: 100%;
|
|
|
height: calc(100% - 100px);
|
|
|
background-color: rgba(255, 246, 210, 1);
|
|
|
+ .txtNone{
|
|
|
+ height: 90%;
|
|
|
+ color: #7e522f;
|
|
|
+ font-size: 24px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ }
|
|
|
.txt {
|
|
|
padding: 20px;
|
|
|
height: 90%;
|