|
@@ -17,7 +17,9 @@ Page({
|
|
isshow: true,
|
|
isshow: true,
|
|
// 主体高度
|
|
// 主体高度
|
|
infoHeight: '',
|
|
infoHeight: '',
|
|
|
|
+ //团队详情
|
|
teamlist: [],
|
|
teamlist: [],
|
|
|
|
+ //加入团队列表
|
|
addlist: [],
|
|
addlist: [],
|
|
},
|
|
},
|
|
tabPath(e) {
|
|
tabPath(e) {
|
|
@@ -100,6 +102,7 @@ Page({
|
|
* 生命周期函数--监听页面加载
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
*/
|
|
onLoad: function (options) {
|
|
onLoad: function (options) {
|
|
|
|
+ this.setData({ ids: options.id });
|
|
//获取当前时间
|
|
//获取当前时间
|
|
let apply_time = moment().format('YYYY-MM-DD HH:mm:ss');
|
|
let apply_time = moment().format('YYYY-MM-DD HH:mm:ss');
|
|
this.setData({
|
|
this.setData({
|
|
@@ -107,25 +110,24 @@ Page({
|
|
});
|
|
});
|
|
// 计算高度
|
|
// 计算高度
|
|
this.searchHeight()
|
|
this.searchHeight()
|
|
- this.ids = options.id;
|
|
|
|
// 监听用户是否登录
|
|
// 监听用户是否登录
|
|
this.watchLogin();
|
|
this.watchLogin();
|
|
},
|
|
},
|
|
// 监听用户是否登录
|
|
// 监听用户是否登录
|
|
watchLogin: function () {
|
|
watchLogin: function () {
|
|
var that = this;
|
|
var that = this;
|
|
- let id = that.ids
|
|
|
|
|
|
+ let id = that.data.ids
|
|
wx.getStorage({
|
|
wx.getStorage({
|
|
key: 'token',
|
|
key: 'token',
|
|
success: res => {
|
|
success: res => {
|
|
- this.setData({
|
|
|
|
|
|
+ that.setData({
|
|
user_id: res.data.id,
|
|
user_id: res.data.id,
|
|
user_name: res.data.nickname
|
|
user_name: res.data.nickname
|
|
})
|
|
})
|
|
let user_id = res.data.id;
|
|
let user_id = res.data.id;
|
|
//查询数据
|
|
//查询数据
|
|
wx.request({
|
|
wx.request({
|
|
- url: `${app.globalData.publicUrl}/courtAdmin/api/team/` + id, //接口地址
|
|
|
|
|
|
+ url: `${app.globalData.publicUrl}/courtAdmin/api/team/${id}`, //接口地址
|
|
method: 'get',
|
|
method: 'get',
|
|
data: '',
|
|
data: '',
|
|
success(res) {
|
|
success(res) {
|