|
@@ -1,4 +1,3 @@
|
|
-// pages/login/login.js
|
|
|
|
import WxValidate from '../../utils/wxValidate'
|
|
import WxValidate from '../../utils/wxValidate'
|
|
const app = getApp()
|
|
const app = getApp()
|
|
Page({
|
|
Page({
|
|
@@ -13,19 +12,37 @@ Page({
|
|
//加入团队列表
|
|
//加入团队列表
|
|
list: [],
|
|
list: [],
|
|
menbers: [],
|
|
menbers: [],
|
|
- id: ''
|
|
|
|
|
|
+ id: '',
|
|
|
|
+ show: false,
|
|
|
|
+ show1: false
|
|
},
|
|
},
|
|
|
|
|
|
back: function () {
|
|
back: function () {
|
|
wx.navigateBack({ url: '/pages/me/index' })
|
|
wx.navigateBack({ url: '/pages/me/index' })
|
|
},
|
|
},
|
|
|
|
+ chickme: function (e) {
|
|
|
|
+ this.setData({
|
|
|
|
+ show: true ,
|
|
|
|
+ id1:e.currentTarget.dataset.id1
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ chickme1: function (e) {
|
|
|
|
+ this.setData({
|
|
|
|
+ show1: true,
|
|
|
|
+ id1:e.currentTarget.dataset.id1
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ onClose() {
|
|
|
|
+ this.setData({ show: false })
|
|
|
|
+ },
|
|
//通过
|
|
//通过
|
|
adopt: function (e) {
|
|
adopt: function (e) {
|
|
const that = this;
|
|
const that = this;
|
|
let id = e.currentTarget.dataset.id;
|
|
let id = e.currentTarget.dataset.id;
|
|
//修改状态-加入团队修改
|
|
//修改状态-加入团队修改
|
|
wx.request({
|
|
wx.request({
|
|
- url: `${app.globalData.publicUrl}/courtAdmin/api/joinapply/${id}`,
|
|
|
|
|
|
+ url: `${app.globalData.publicUrl}/courtAdmin/api/joinapply/${id}`,
|
|
method: "post",
|
|
method: "post",
|
|
data: { status: '1' },
|
|
data: { status: '1' },
|
|
header: {},
|
|
header: {},
|
|
@@ -49,12 +66,12 @@ Page({
|
|
data: {},
|
|
data: {},
|
|
header: {},
|
|
header: {},
|
|
success: res => {
|
|
success: res => {
|
|
- let id_1 = this.data.id
|
|
|
|
|
|
+ let id_1 = that.data.id
|
|
let members = [];
|
|
let members = [];
|
|
members.push({ id: res.data.data.id, nickname: res.data.data.nickname, icon: res.data.data.icon })
|
|
members.push({ id: res.data.data.id, nickname: res.data.data.nickname, icon: res.data.data.icon })
|
|
that.setData({ members: members })
|
|
that.setData({ members: members })
|
|
wx.request({
|
|
wx.request({
|
|
- url: `${app.globalData.publicUrl}/courtAdmin/api/team/${id_1}`,
|
|
|
|
|
|
+ url: `${app.globalData.publicUrl}/courtAdmin/api/team/${id_1}`,
|
|
method: "post",
|
|
method: "post",
|
|
data: { members: members },
|
|
data: { members: members },
|
|
header: {},
|
|
header: {},
|
|
@@ -74,13 +91,12 @@ Page({
|
|
error: err => {
|
|
error: err => {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
-
|
|
|
|
},
|
|
},
|
|
//驳回
|
|
//驳回
|
|
reject: function (e) {
|
|
reject: function (e) {
|
|
let { id } = e.currentTarget.dataset;
|
|
let { id } = e.currentTarget.dataset;
|
|
wx.request({
|
|
wx.request({
|
|
- url: `${app.globalData.publicUrl}/courtAdmin/api/joinapply/${id}`,
|
|
|
|
|
|
+ url: `${app.globalData.publicUrl}/courtAdmin/api/joinapply/${id}`,
|
|
method: "post",
|
|
method: "post",
|
|
data: { status: '-1' },
|
|
data: { status: '-1' },
|
|
header: {},
|
|
header: {},
|
|
@@ -132,17 +148,17 @@ Page({
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- // 计算高度
|
|
|
|
- searchHeight: function () {
|
|
|
|
- let frameStyle = this.data.frameStyle;
|
|
|
|
- let client = app.globalData.client;
|
|
|
|
- let infoHeight = client.windowHeight;
|
|
|
|
- // 是否去掉状态栏
|
|
|
|
- if (frameStyle.useTop) infoHeight = infoHeight - (client.statusBarHeight + client.getMenu.height + (client.getMenu.top - client.statusBarHeight) * 2);
|
|
|
|
- // 是否减去底部菜单
|
|
|
|
- if (frameStyle.useBar) infoHeight = infoHeight - 50;
|
|
|
|
- if (infoHeight) this.setData({ infoHeight: infoHeight })
|
|
|
|
-},
|
|
|
|
|
|
+ // 计算高度
|
|
|
|
+ searchHeight: function () {
|
|
|
|
+ let frameStyle = this.data.frameStyle;
|
|
|
|
+ let client = app.globalData.client;
|
|
|
|
+ let infoHeight = client.windowHeight;
|
|
|
|
+ // 是否去掉状态栏
|
|
|
|
+ if (frameStyle.useTop) infoHeight = infoHeight - (client.statusBarHeight + client.getMenu.height + (client.getMenu.top - client.statusBarHeight) * 2);
|
|
|
|
+ // 是否减去底部菜单
|
|
|
|
+ if (frameStyle.useBar) infoHeight = infoHeight - 50;
|
|
|
|
+ if (infoHeight) this.setData({ infoHeight: infoHeight })
|
|
|
|
+ },
|
|
/**
|
|
/**
|
|
* 生命周期函数--监听页面初次渲染完成
|
|
* 生命周期函数--监听页面初次渲染完成
|
|
*/
|
|
*/
|