var Api = require('../../../utils/common.js'); var re = require('../../../utils/request.js'); Page({ /** * 页面的初始数据 */ data: { logo:'../../../images/logo.jpg', fourImages:[], circleId:'' }, toactiveDetail:function(e){ console.log(e); wx.navigateTo({ url: '../activeDetail/activeDetail?id='+e.currentTarget.dataset.id+'' }) }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { this.setData({ circleId:options.id }) }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady: function () { }, /** * 生命周期函数--监听页面显示 */ onShow: function () { this.getmoreClubList(); }, getmoreClubList:function(){ var that = this; const imgUrl = wx.getStorageSync('imgUrl') var header = { token:wx.getStorageSync('token'), "Content-Type": "application/x-www-form-urlencoded" }; var pastData = { clubCircle:that.data.circleId } re.request(Api.getmoreClubList(), pastData, header).then((res) => { let datas = res.data.data; that.getactiveInfo(datas.activityId) for(let i=0;i