|
@@ -54,7 +54,10 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
+ <view v-if="nodata" class="empty">
|
|
|
+ <view class="bg"></view>
|
|
|
+ <text style="margin-top: 0rpx;font-size: 24rpx;color: #999999;">暂无数据</text>
|
|
|
+ </view>
|
|
|
<view class="list_item" v-for="(item,index) in list" :class="tab2 > 1?'state12':''">
|
|
|
<view class="item2">
|
|
|
<view class="left">
|
|
@@ -119,6 +122,7 @@
|
|
|
tab: 1,
|
|
|
tab2: 1,
|
|
|
list: [],
|
|
|
+ nodata:true,
|
|
|
|
|
|
}
|
|
|
},
|
|
@@ -248,7 +252,8 @@
|
|
|
success: (res) => {
|
|
|
console.log("----", res.data.list);
|
|
|
if (res.data.success == "yes") {
|
|
|
- that.list = res.data.list;
|
|
|
+ that.list = res.data.list || [];
|
|
|
+ that.nodata = !(that.list.length > 0)
|
|
|
}
|
|
|
},
|
|
|
complete: (com) => {
|