diff --git a/pages/club/club.wxml b/pages/club/club.wxml index 38a6649..1d08856 100644 --- a/pages/club/club.wxml +++ b/pages/club/club.wxml @@ -10,7 +10,7 @@ - + + diff --git a/pages/club/clubgroups/clubgroups.js b/pages/club/clubgroups/clubgroups.js index ed57b5f..ea71939 100644 --- a/pages/club/clubgroups/clubgroups.js +++ b/pages/club/clubgroups/clubgroups.js @@ -180,18 +180,12 @@ Page({ re.request(Api.clubMember(), postData, header).then((res) => { let datas = res.data.data; console.log(datas); - - - - - - let obj = {} let newdatas = datas.reduce((x, item) => { obj[item.userId] ? "" : obj[item.userId] = true && x.push(item) return x }, []) - +console.log(newdatas) that.setData({ personList: newdatas }) diff --git a/pages/index/activeDetail/activeDetail.js b/pages/index/activeDetail/activeDetail.js index 38163d5..9bff1b0 100644 --- a/pages/index/activeDetail/activeDetail.js +++ b/pages/index/activeDetail/activeDetail.js @@ -152,6 +152,14 @@ tojion:function(){ console.log(datas); }) }, + //打电话 + phone: function(e){ + wx.makePhoneCall({ + phoneNumber: e.target.dataset.phonenumber, + success(){}, + fail(){} + }) + }, getOtherActive:function(){ var that = this; const imgUrl = wx.getStorageSync('imgUrl'); diff --git a/pages/index/activeDetail/activeDetail.wxml b/pages/index/activeDetail/activeDetail.wxml index bbd7fd7..9dc2b41 100644 --- a/pages/index/activeDetail/activeDetail.wxml +++ b/pages/index/activeDetail/activeDetail.wxml @@ -66,10 +66,10 @@ {{company.clubIntroduction}} - + 联系俱乐部 - + 加入 已加入 @@ -133,10 +133,10 @@ 分享 -