Browse Source

优化

master
zhaoyongnian 5 years ago
parent
commit
40d19b05a2
  1. 11
      subpages/associationNew/pages/eventlist/eventlist.js
  2. 1
      subpages/associationNew/pages/eventlist/eventlist.wxss

11
subpages/associationNew/pages/eventlist/eventlist.js

@ -27,6 +27,7 @@ Page({
index: 0,//点击的第几条数据,用于评论的局部刷新用
infoCompleted: 0,
completeInfoDialogVisible: false,
ifpreviewImage:false,//解决图片放大刷新列表的问题
},
/**
* 生命周期函数--监听页面加载
@ -58,6 +59,7 @@ Page({
timestamp: getTimestamp(),
topicType: this.data.topicType,
partyGroupId: this.data.partyGroupId, //党群id
partyTopicId:''
}
topiclist(para).then(res => {
wx.stopPullDownRefresh();
@ -106,6 +108,11 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function () {
if(this.data.ifpreviewImage){
this.setData({
ifpreviewImage:false
})
} else {
this.setData({
pageIndex: 1,
pageSize: 10,
@ -115,6 +122,7 @@ Page({
topiclist: [],
})
this.topiclist()
}
},
/**
@ -274,6 +282,9 @@ Page({
},
//列表照片的放大查看
previewImage(e) {
this.setData({
ifpreviewImage:true
})
app.globalData.previewImage = true
wx.previewImage({
urls: e.currentTarget.dataset.imgarry,

1
subpages/associationNew/pages/eventlist/eventlist.wxss

@ -17,6 +17,7 @@ page {
}
.user-info image {
border-radius: 50rpx;
width: 64rpx;
height: 64rpx;
}

Loading…
Cancel
Save