|
@@ -6,73 +6,17 @@ Page({
|
|
|
* 页面的初始数据
|
|
|
*/
|
|
|
data: {
|
|
|
+ frameStyle: { useTop: false, name: '团队审核', leftArrow: true, useBar: false },
|
|
|
idjie: '',
|
|
|
ids: '',
|
|
|
src: '/image/adimges.jpg',
|
|
|
src1: '/image/head1.png',
|
|
|
- frameStyle: { useTop: false, name: '团队审核', leftArrow: true, useBar: false },
|
|
|
|
|
|
infoHeight: '',
|
|
|
list: [],
|
|
|
lists: [],
|
|
|
from: [],
|
|
|
},
|
|
|
-
|
|
|
- watchLogin: function () {
|
|
|
- var that = this;
|
|
|
- let id = that.ids;
|
|
|
- let ids = that.idjie;
|
|
|
- wx.getStorage({
|
|
|
- key: 'token',
|
|
|
- success: res => {
|
|
|
-
|
|
|
- wx.request({
|
|
|
- url: `${app.globalData.publicUrl}/courtAdmin/api/team/` + id,
|
|
|
- method: 'get',
|
|
|
- data: '',
|
|
|
- success(res) {
|
|
|
- if (res.data.errcode == 0) {
|
|
|
- let datas = res.data.data
|
|
|
- console.log('单解散', datas);
|
|
|
- that.setData({
|
|
|
- list: datas,
|
|
|
- });
|
|
|
- } else {
|
|
|
- wx.showToast({
|
|
|
- title: res.data.errmsg,
|
|
|
- icon: 'none',
|
|
|
- duration: 2000
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
-
|
|
|
- wx.request({
|
|
|
- url: `${app.globalData.publicUrl}/courtAdmin/api/dismissapply/` + ids,
|
|
|
- method: 'get',
|
|
|
- data: {},
|
|
|
- success(res) {
|
|
|
- console.log('resdis', res.data);
|
|
|
- if (res.data.errcode == 0) {
|
|
|
- let datas = res.data.data
|
|
|
- that.setData({
|
|
|
- from: datas,
|
|
|
- });
|
|
|
- } else {
|
|
|
- wx.showToast({
|
|
|
- title: res.data.errmsg,
|
|
|
- icon: 'none',
|
|
|
- duration: 2000
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
- fail: res => {
|
|
|
- return wx.redirectTo({ url: '/pages/login/index', })
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
back: function () {
|
|
|
wx.navigateBack({ url: '/pages/home/index' })
|
|
|
},
|
|
@@ -102,7 +46,7 @@ Page({
|
|
|
},
|
|
|
success(res) {
|
|
|
if (res.data.errcode == 0) {
|
|
|
- wx.showToast({ title: `修改团队状态拒绝成功`, icon: 'success', duration: 2000 })
|
|
|
+ wx.showToast({ title: `修改团队状态拒绝`, icon: 'success', duration: 2000 })
|
|
|
|
|
|
} else {
|
|
|
wx.showToast({
|
|
@@ -145,7 +89,7 @@ Page({
|
|
|
},
|
|
|
success(res) {
|
|
|
if (res.data.errcode == 0) {
|
|
|
- wx.showToast({ title: `修改团队状态通过成功`, icon: 'success', duration: 2000 })
|
|
|
+ wx.showToast({ title: `修改团队状态成功`, icon: 'success', duration: 2000 })
|
|
|
|
|
|
} else {
|
|
|
wx.showToast({
|
|
@@ -173,6 +117,62 @@ Page({
|
|
|
this.searchHeight()
|
|
|
|
|
|
this.watchLogin();
|
|
|
+ },
|
|
|
+
|
|
|
+ watchLogin: function () {
|
|
|
+ var that = this;
|
|
|
+ let id = that.ids;
|
|
|
+ let ids = that.idjie;
|
|
|
+ wx.getStorage({
|
|
|
+ key: 'token',
|
|
|
+ success: res => {
|
|
|
+
|
|
|
+ wx.request({
|
|
|
+ url: `${app.globalData.publicUrl}/courtAdmin/api/team/` + id,
|
|
|
+ method: 'get',
|
|
|
+ data: '',
|
|
|
+ success(res) {
|
|
|
+ if (res.data.errcode == 0) {
|
|
|
+ let datas = res.data.data
|
|
|
+ console.log('单解散', datas);
|
|
|
+ that.setData({
|
|
|
+ list: datas,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ wx.showToast({
|
|
|
+ title: res.data.errmsg,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ wx.request({
|
|
|
+ url: `${app.globalData.publicUrl}/courtAdmin/api/dismissapply/` + ids,
|
|
|
+ method: 'get',
|
|
|
+ data: {},
|
|
|
+ success(res) {
|
|
|
+ console.log('resdis', res.data);
|
|
|
+ if (res.data.errcode == 0) {
|
|
|
+ let datas = res.data.data
|
|
|
+ that.setData({
|
|
|
+ from: datas,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ wx.showToast({
|
|
|
+ title: res.data.errmsg,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ fail: res => {
|
|
|
+ return wx.redirectTo({ url: '/pages/login/index', })
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
|
|
|
searchHeight: function () {
|