|
@@ -43,7 +43,7 @@
|
43
|
43
|
</view>
|
44
|
44
|
<view class="List" v-if="ActivityList.length">
|
45
|
45
|
<view class="Item" v-for="(item, index) in ActivityList" :key="index">
|
46
|
|
- <navigator class="Img" :url="`./ActivityList/ActivityDetail/index?id=${item.activityId}`" hover-class="other-navigator-hover">
|
|
46
|
+ <navigator class="Img" :url="`./ActivityList/ActivityDetail/index?id=${item.activityId}&from=life`" hover-class="other-navigator-hover">
|
47
|
47
|
<view class="MainItemImg">
|
48
|
48
|
<image mode="aspectFill" :src="item.thumb"></image>
|
49
|
49
|
</view>
|
|
@@ -52,8 +52,8 @@
|
52
|
52
|
<text>{{item.name}}</text>
|
53
|
53
|
<view class="flex-h">
|
54
|
54
|
<text class="flex-item">参与截止时间:{{ToolClass.DateFormat(new Date(item.enrollEnd).getTime())}}</text>
|
55
|
|
- <navigator :url="`./ActivityList/ActivityDetail/index?id=${item.activityId}`" hover-class="other-navigator-hover" class="Btn" v-if="item.isEnroll">立即报名</navigator>
|
56
|
|
- <navigator :url="`./ActivityList/ActivityDetail/index?id=${item.activityId}`" hover-class="other-navigator-hover" class="Btn" v-if="item.isVote">立即投票</navigator>
|
|
55
|
+ <navigator :url="`./ActivityList/ActivityDetail/index?id=${item.activityId}&from=life`" hover-class="other-navigator-hover" class="Btn" v-if="item.isEnroll">立即报名</navigator>
|
|
56
|
+ <navigator :url="`./ActivityList/ActivityDetail/index?id=${item.activityId}&from=life`" hover-class="other-navigator-hover" class="Btn" v-if="item.isVote">立即投票</navigator>
|
57
|
57
|
<view v-if="new Date(item.endDate).getTime() <= Date.now()">已结束</view>
|
58
|
58
|
</view>
|
59
|
59
|
</view>
|
|
@@ -81,6 +81,7 @@ export default {
|
81
|
81
|
name: 'HuiShengHuo',
|
82
|
82
|
data () {
|
83
|
83
|
return {
|
|
84
|
+ PhotoUrlArr: [],
|
84
|
85
|
ShowBigImg: false,
|
85
|
86
|
BigImgUrl: null,
|
86
|
87
|
PageActivityList: [],
|
|
@@ -144,6 +145,10 @@ export default {
|
144
|
145
|
this.CheckRequestNum(3) // 判断请求接口个数
|
145
|
146
|
})
|
146
|
147
|
this.GetPhotoList({ queryData: { pageNum: 1, pageSize: 10 } }).then(() => { // 获取照片墙列表
|
|
148
|
+ this.PhotoUrlArr = []
|
|
149
|
+ this.PhotoList.map((item) => {
|
|
150
|
+ this.PhotoUrlArr.push(item.imgUrl)
|
|
151
|
+ })
|
147
|
152
|
this.CheckRequestNum(3) // 判断请求接口个数
|
148
|
153
|
}).catch(() => {
|
149
|
154
|
this.CheckRequestNum(3) // 判断请求接口个数
|
|
@@ -156,8 +161,10 @@ export default {
|
156
|
161
|
})
|
157
|
162
|
},
|
158
|
163
|
CheckBigImg (url) { // 查看大图
|
159
|
|
- this.BigImgUrl = url
|
160
|
|
- this.ShowBigImg = true
|
|
164
|
+ wx.previewImage({
|
|
165
|
+ current: url, // 当前显示图片的http链接
|
|
166
|
+ urls: this.PhotoUrlArr // 需要预览的图片http链接列表
|
|
167
|
+ })
|
161
|
168
|
},
|
162
|
169
|
CheckRequestNum (num) { // 判断请求接口个数
|
163
|
170
|
this.RequestNum += 1
|