Browse Source

消息列表 添加无数据提示

master
邓宏 2 years ago
parent
commit
91ceddbf9f
  1. 1
      pages/home/news.vue
  2. 2
      uni_modules/d-search/components/d-search/d-search.vue

1
pages/home/news.vue

@ -227,6 +227,7 @@
<text class="date">{{new Date(v.sendTime).format('yyyy/MM/dd')}}</text> <text class="date">{{new Date(v.sendTime).format('yyyy/MM/dd')}}</text>
</view> </view>
</view> </view>
<u-empty :show="list.length<=0" text="为查询到相关信息" width="50%" icon="/static/noData.png"/>
</scroll-view> </scroll-view>
</view> </view>
</template> </template>

2
uni_modules/d-search/components/d-search/d-search.vue

@ -52,7 +52,7 @@
width:100%; width:100%;
height:100%; height:100%;
background:rgba(0, 0, 0, 0.2); background:rgba(0, 0, 0, 0.2);
z-index: -1; z-index: -100;
transition: all 0.4s; transition: all 0.4s;
opacity:0; opacity:0;
&.show{ &.show{

Loading…
Cancel
Save