|
@@ -79,10 +79,8 @@
|
|
|
<!-- 上拉 加载更多 -->
|
|
|
<view class="noMore" v-if="noMoreShow">没有更多数据</view>
|
|
|
<!-- 无数据空白页 -->
|
|
|
- <view class="nodataBox" v-if="shopData.length == 0">
|
|
|
- <image src="../../static/img/pic_empty_def.png" mode="widthFix" class="nodataImg"></image>
|
|
|
- <view class="noTxt">暂无数据</view>
|
|
|
- </view>
|
|
|
+
|
|
|
+ <nodata v-if="shopData.length==0"></nodata>
|
|
|
|
|
|
<timeChose ref="timepop" @returnDate="returnDate" :isShow="timeShow"></timeChose>
|
|
|
|
|
@@ -90,10 +88,12 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import timeChose from '@/components/timeChose/timeChose.vue'
|
|
|
+ import timeChose from '@/components/timeChose/timeChose.vue'
|
|
|
+ import nodata from '../../components/nodata/nodata.vue'
|
|
|
export default {
|
|
|
components: {
|
|
|
- timeChose
|
|
|
+ timeChose,
|
|
|
+ nodata
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -210,16 +210,19 @@
|
|
|
item[key] = this.$praseStrEmpty(item[key])
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
- if (this.page == 1 && list.length == 0) {
|
|
|
- this.noMoreShow = false
|
|
|
- } else if (list.length < 20) {
|
|
|
- this.noMoreShow = true
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
if (this.page == 1) {
|
|
|
this.shopData = list
|
|
|
} else {
|
|
|
this.shopData = this.shopData.concat(list)
|
|
|
+ }
|
|
|
+
|
|
|
+ if(list.length < 10){
|
|
|
+ this.noMoreShow = false
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.noMoreShow = true
|
|
|
}
|
|
|
|
|
|
})
|