...
|
...
|
@@ -59,7 +59,7 @@ Page({ |
|
|
// 审核用户信息是否通过
|
|
|
examine(e){
|
|
|
let that = this
|
|
|
let id = e.currentTarget.dataset.id
|
|
|
let id = that.data.btn_type?2:e.currentTarget.dataset.id
|
|
|
let url = 'index/member_center/adminApprove';
|
|
|
let head = {
|
|
|
'XX-Token': wx.getStorageSync('token')
|
...
|
...
|
@@ -68,6 +68,9 @@ Page({ |
|
|
id: that.data.info.id,
|
|
|
status: id
|
|
|
}
|
|
|
if (that.data.btn_type){
|
|
|
params.refund_reason = that.data.word
|
|
|
}
|
|
|
app.post(url, params, head).then((res) => {
|
|
|
wx.showToast({
|
|
|
title: '操作成功',
|
...
|
...
|
@@ -75,7 +78,8 @@ Page({ |
|
|
duration: 1000,
|
|
|
success: () => {
|
|
|
that.setData({
|
|
|
two_type: true
|
|
|
two_type: true ,
|
|
|
cover_type: false
|
|
|
})
|
|
|
}
|
|
|
})
|
...
|
...
|
@@ -110,7 +114,8 @@ Page({ |
|
|
// 改变弹窗状态
|
|
|
change_cover(e) {
|
|
|
this.setData({
|
|
|
cover_type: !this.data.cover_type
|
|
|
cover_type: !this.data.cover_type,
|
|
|
btn_type: e.currentTarget.dataset.id?true:false
|
|
|
})
|
|
|
},
|
|
|
// 添加时间
|
...
|
...
|
@@ -352,7 +357,7 @@ Page({ |
|
|
|
|
|
|
|
|
//信息判断过滤
|
|
|
submit() {
|
|
|
submit(e) {
|
|
|
let that = this
|
|
|
if (!that.data.type_id) {
|
|
|
wx.showToast({
|
...
|
...
|
@@ -389,14 +394,18 @@ Page({ |
|
|
})
|
|
|
return
|
|
|
}
|
|
|
that.push()
|
|
|
that.push(e.detail.formId)
|
|
|
},
|
|
|
//提交
|
|
|
push() {
|
|
|
push(form_id) {
|
|
|
wx.showLoading({
|
|
|
title: '提交中',
|
|
|
})
|
|
|
let that = this
|
|
|
let url = that.data.page_type ?'index/index/editApply ':'index/index/applyJoin'
|
|
|
let url = that.data.page_type ?'index/index/editApply':'index/index/applyJoin'
|
|
|
let params = {
|
|
|
id: that.data.id,
|
|
|
form_id: form_id,
|
|
|
type: that.data.type_id,
|
|
|
work_content: that.data.check_id,
|
|
|
select_time: JSON.stringify(that.data.t_arr),
|
...
|
...
|
@@ -407,6 +416,7 @@ Page({ |
|
|
'XX-Token': wx.getStorageSync('token')
|
|
|
}
|
|
|
app.post(url, params, header).then((res) => {
|
|
|
wx.hideLoading()
|
|
|
wx.showToast({
|
|
|
title: '报名成功',
|
|
|
duration: 1000,
|
...
|
...
|
@@ -421,6 +431,32 @@ Page({ |
|
|
})
|
|
|
})
|
|
|
},
|
|
|
|
|
|
//管理员端的信息
|
|
|
adimin_info(id){
|
|
|
let url = 'index/member_center/adminGetApplyInfo'
|
|
|
let params = {
|
|
|
join_id: id
|
|
|
}
|
|
|
let header = {
|
|
|
'XX-Token': wx.getStorageSync('token')
|
|
|
}
|
|
|
app.post(url, params, header).then((res) => {
|
|
|
this.setData({
|
|
|
info: res,
|
|
|
date_arr: res.time, //活动日期
|
|
|
type_id: res.work_type ? res.work_type : null,
|
|
|
type: res.work_type ? this.data.enroll_arr[Number(res.work_type) - 1] : null,
|
|
|
check_id: res.work_content ? res.work_content : null,
|
|
|
check: res.work_content ? this.data.check_arr[Number(res.work_content) - 1] : null,
|
|
|
t_arr: res.select_time ? res.select_time : this.data.t_arr,
|
|
|
z_arr: res.apply_stay ? res.apply_stay : this.data.z_arr,
|
|
|
e_arr: res.apply_food ? res.apply_food : this.data.e_arr,
|
|
|
t_type: res.select_time ? true : false
|
|
|
})
|
|
|
|
|
|
})
|
|
|
},
|
|
|
/**
|
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|
...
|
...
|
@@ -436,7 +472,12 @@ Page({ |
|
|
status: options.status ? options.status : null,
|
|
|
user_id: options.user_id ? options.user_id : null
|
|
|
})
|
|
|
if (options.join_id){
|
|
|
this.adimin_info(options.join_id)
|
|
|
} else {
|
|
|
this.get_info(options.id)
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
/**
|
...
|
...
|
|