// pages/club/club.js var Api = require('../../../utils/common.js'); var re = require('../../../utils/request.js'); Page({ /** * 页面的初始数据 */ data: { outList:[ {img:'../../../images/logo.jpg',name:'众行天下户外',mark:['徒步','登山','露营'],message:'我是个热爱旅游的小可爱,希望能寻找志同道合的人',people:'102'} ,{img:'../../../images/logo.jpg',name:'众行天下户外',mark:['徒步','登山','露营'],message:'我是个热爱旅游的小可爱,希望能寻找志同道合的人',people:'102'} ,{img:'../../../images/logo.jpg',name:'众行天下户外',mark:['徒步','登山','露营'],message:'我是个热爱旅游的小可爱,希望能寻找志同道合的人',people:'102'} ], secondList:[] }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { console.log(options); //跳转后需要只显示对应的内容 if(options.id!=''){ let data={ currentTarget:{ id:options.id } } console.log(data); this.TooldDetail(data) // e.currentTarget.id }else{ this.TooldDetail() } }, clubdetail:function(e){ var id = e.currentTarget.id wx.navigateTo({ url: '../clubDetail/clubDetail?id='+id+'' }) }, getclubCircle:function(){ var that = this; const imgUrl = wx.getStorageSync('imgUrl') var header = { token:wx.getStorageSync('token'), "Content-Type": "application/x-www-form-urlencoded" }; re.request(Api.getclubCircle(), '', header).then((res) => { let datas = res.data.data; for(let i=0;i { let datas = res.data.data; let lists=[]; for(let key in datas){ if(datas[key].length){ for(var i=0;i