|
@@ -16,6 +16,10 @@
|
16
|
16
|
<ScrollY :IsRefreshing="IsRefreshing" @Refresh="Refresh" @ScrollBottom="ScrollBottom">
|
17
|
17
|
|
18
|
18
|
<view class="ActivityList">
|
|
19
|
+ <view class="NoData" v-show="NoData">
|
|
20
|
+ <image mode="widthFix" src="https://cjgw.oss-cn-hangzhou.aliyuncs.com/ygcxxfb/image/nodata.png"></image>
|
|
21
|
+ <text>暂无内容</text>
|
|
22
|
+ </view>
|
19
|
23
|
<view class="List">
|
20
|
24
|
<view class="Item" v-for="(item, index) in PageList" :key="index">
|
21
|
25
|
<navigator class="Img" :url="`./ActivityDetail/index?id=${item.activityId}`" hover-class="other-navigator-hover">
|
|
@@ -49,6 +53,7 @@ export default {
|
49
|
53
|
name: 'JingCaiHuoDong',
|
50
|
54
|
data () {
|
51
|
55
|
return {
|
|
56
|
+ NoData: false,
|
52
|
57
|
PageData: {
|
53
|
58
|
pageNum: 1,
|
54
|
59
|
pageSize: 15
|
|
@@ -121,6 +126,7 @@ export default {
|
121
|
126
|
},
|
122
|
127
|
ToGetPageList () { // 获取列表
|
123
|
128
|
this.GetActivityList({ queryData: { ...this.PageData, typeId: this.CurrentNavId } }).then((res) => { // 获取活动列表
|
|
129
|
+ this.NoData = !this.ActivityList.length
|
124
|
130
|
this.PageList = [...this.ActivityList]
|
125
|
131
|
this.HasNextPage = res.data.data.current < res.data.data.pages
|
126
|
132
|
this.DataLock = false
|