|
@@ -13,14 +13,7 @@ Page({
|
|
apply_time: '',
|
|
apply_time: '',
|
|
// 主体高度
|
|
// 主体高度
|
|
infoHeight: '',
|
|
infoHeight: '',
|
|
- form: {
|
|
|
|
- // team_id: '234', // 团队id
|
|
|
|
- // team_name: '我是第一队', // 团队名称
|
|
|
|
- // create_user: '李铁蛋', // 团队创建人
|
|
|
|
- // create_id: '23455', // 团队创建人id
|
|
|
|
- // apply_time: '', // 申请时间
|
|
|
|
- // resaon: '', // 解散团队原因
|
|
|
|
- },
|
|
|
|
|
|
+ form: {},
|
|
},
|
|
},
|
|
back: function () {
|
|
back: function () {
|
|
wx.navigateBack({ url: '/pages/me/index' })
|
|
wx.navigateBack({ url: '/pages/me/index' })
|
|
@@ -43,13 +36,13 @@ Page({
|
|
return false
|
|
return false
|
|
} else {
|
|
} else {
|
|
wx.request({
|
|
wx.request({
|
|
- url: `${app.globalData.publicUrl}/courtAdmin/api/dismissapply`, //接口地址
|
|
|
|
|
|
+ url: `${app.globalData.publicUrl}/courtAdmin/api/dismissapply`,
|
|
method: 'post',
|
|
method: 'post',
|
|
data: form,
|
|
data: form,
|
|
success(res) {
|
|
success(res) {
|
|
if (res.data.errcode == 0) {
|
|
if (res.data.errcode == 0) {
|
|
- wx.showToast({ title: `解散审核提交成功`, icon: 'success', duration: 2000 }) //登录成功提示
|
|
|
|
- wx.navigateTo({ url: '/pages/me/index' })// 跳转页面
|
|
|
|
|
|
+ wx.showToast({ title: `解散审核提交成功`, icon: 'success', duration: 2000 })
|
|
|
|
+ wx.navigateTo({ url: '/pages/me/index' })
|
|
} else {
|
|
} else {
|
|
wx.showToast({
|
|
wx.showToast({
|
|
title: res.data.errmsg,
|
|
title: res.data.errmsg,
|
|
@@ -65,14 +58,10 @@ Page({
|
|
* 生命周期函数--监听页面加载
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
*/
|
|
onLoad: function (options) {
|
|
onLoad: function (options) {
|
|
- this.setData({
|
|
|
|
- ids: options.id,
|
|
|
|
- });
|
|
|
|
|
|
+ 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({
|
|
|
|
- apply_time: apply_time,
|
|
|
|
- });
|
|
|
|
|
|
+ this.setData({apply_time: apply_time,});
|
|
// 计算高度
|
|
// 计算高度
|
|
this.searchHeight();
|
|
this.searchHeight();
|
|
// 监听用户是否登录
|
|
// 监听用户是否登录
|
|
@@ -93,15 +82,13 @@ Page({
|
|
success: res => {
|
|
success: res => {
|
|
var that = this;
|
|
var that = this;
|
|
wx.request({
|
|
wx.request({
|
|
- url: `${app.globalData.publicUrl}/courtAdmin/api/team/` + that.data.ids, //接口地址
|
|
|
|
|
|
+ url: `${app.globalData.publicUrl}/courtAdmin/api/team/` + that.data.ids,
|
|
method: 'get',
|
|
method: 'get',
|
|
data: '',
|
|
data: '',
|
|
success(res) {
|
|
success(res) {
|
|
if (res.data.errcode == 0) {
|
|
if (res.data.errcode == 0) {
|
|
let datas = res.data.data
|
|
let datas = res.data.data
|
|
- that.setData({
|
|
|
|
- form: datas,
|
|
|
|
- });
|
|
|
|
|
|
+ that.setData({ form: datas,});
|
|
} else {
|
|
} else {
|
|
wx.showToast({
|
|
wx.showToast({
|
|
title: res.data.errmsg,
|
|
title: res.data.errmsg,
|