Bladeren bron

no message

sys 1 jaar geleden
bovenliggende
commit
b6a0770468
1 gewijzigde bestanden met toevoegingen van 4 en 2 verwijderingen
  1. 4 2
      pages/my/set/blacklist.vue

+ 4 - 2
pages/my/set/blacklist.vue

@@ -2,7 +2,7 @@
   <view class="blacklist-box">
     <en-nav title="黑名单" :title-color="'#333'"   @navHeight="setNavHeight"></en-nav>
     <scroll-view  class="blacklist-list" :scroll-y="true"  :scroll-x="true" :style="{'height':'calc(100% - '+navHeight+'rpx)'}">
-      <view class="blacklist-item" v-for="(item,i) in 12">
+      <view class="blacklist-item" v-for="(item,i) in list">
         <view class="blacklist-left">
           <image class="blacklist-img" src="/static/img/temporary/4.png" mode="aspectFill"></image>
         </view>
@@ -20,6 +20,7 @@
         </view>
       </view>
     </scroll-view>
+    <en-blank v-if="list<=0"></en-blank>
     <uni-popup ref="alertDialog" type="dialog">
       <uni-popup-dialog type="center" cancelText="取消"
                         confirmText="确定" title="移除黑名单" content="是否移除黑名单"
@@ -33,8 +34,9 @@
 import EnNav from "@/components/en-utils/en-nav/en-nav";
 import {delBlackItem, getBlackList} from "@/api/my";
 import tools from "@/service/tools";
+import EnBlank from "@/components/en-utils/en-blank/en-blank";
 export default {
-  components: {EnNav},
+  components: {EnBlank, EnNav},
   data() {
     return {
       navHeight:0,