|
@@ -63,17 +63,17 @@ Page({
|
|
|
})
|
|
|
},
|
|
|
back: function () {
|
|
|
- wx.navigateBack({ url: '/pages/home/index' })
|
|
|
+ wx.navigateBack({ url: '/pages/team/index' })
|
|
|
},
|
|
|
|
|
|
out() {
|
|
|
+ var team_id = this.data.teamlist.id;
|
|
|
+ var user_id = this.data.user_id;
|
|
|
wx.showModal({
|
|
|
title: '',
|
|
|
content: '是否确认退出团队',
|
|
|
success(res) {
|
|
|
if (res.confirm) {
|
|
|
- var team_id = this.data.teamlist.id;
|
|
|
- var user_id = this.data.user_id;
|
|
|
wx.request({
|
|
|
url: `${app.globalData.publicUrl}/courtAdmin/api/team/leaves`,
|
|
|
method: 'get',
|
|
@@ -84,6 +84,7 @@ Page({
|
|
|
success(res) {
|
|
|
if (res.data.errcode == 0) {
|
|
|
wx.showToast({ title: `退出团队成功`, icon: 'success', duration: 2000 })
|
|
|
+ that.back()
|
|
|
} else {
|
|
|
wx.showToast({
|
|
|
title: res.data.errmsg,
|
|
@@ -171,17 +172,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 })
|
|
|
+ },
|
|
|
|
|
|
|
|
|
* 生命周期函数--监听页面初次渲染完成
|