|
|
|
@ -13,7 +13,8 @@ Page({
|
|
|
|
|
array: ['微信支付','线下支付'], |
|
|
|
|
index:'', |
|
|
|
|
payType:'1', |
|
|
|
|
company:'' |
|
|
|
|
company:'', |
|
|
|
|
groups:[] |
|
|
|
|
}, |
|
|
|
|
/** |
|
|
|
|
* 生命周期函数--监听页面加载 |
|
|
|
@ -31,6 +32,23 @@ Page({
|
|
|
|
|
}) |
|
|
|
|
that.getOrderDetail(options.id) |
|
|
|
|
}, |
|
|
|
|
getPeople(id){ |
|
|
|
|
var that = this; |
|
|
|
|
var postData = { |
|
|
|
|
orderSerial:id, |
|
|
|
|
}; |
|
|
|
|
var header = { |
|
|
|
|
token: wx.getStorageSync('token'), |
|
|
|
|
"Content-Type": "application/x-www-form-urlencoded" |
|
|
|
|
}; |
|
|
|
|
re.request(Api.getOrderPeople(), postData, header).then((res) => { |
|
|
|
|
// console.log('==>',res)
|
|
|
|
|
that.setData({ |
|
|
|
|
groups: res.data.data |
|
|
|
|
}); |
|
|
|
|
//this.getOrderDetail(res.data.data[0].orderId);
|
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
getOrderDetail:function(id){ |
|
|
|
|
var that = this; |
|
|
|
|
var postData = { |
|
|
|
@ -42,10 +60,10 @@ Page({
|
|
|
|
|
}; |
|
|
|
|
re.request(Api.getOrderDetailSer(), postData, header).then((res) => { |
|
|
|
|
console.log(res.data.data) |
|
|
|
|
that.getactiveInfo(res.data.data) |
|
|
|
|
that.getactiveInfo(res.data.data, id) |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
getactiveInfo:function(val){ |
|
|
|
|
getactiveInfo:function(val,id){ |
|
|
|
|
var that = this; |
|
|
|
|
const imgUrl = wx.getStorageSync('imgUrl') |
|
|
|
|
var header = { |
|
|
|
@ -65,6 +83,8 @@ Page({
|
|
|
|
|
datas.cost = val.cost; |
|
|
|
|
datas.createdTime = val.createdTime; |
|
|
|
|
datas.orderId = val.orderId; |
|
|
|
|
datas.people = val.totalRegister; |
|
|
|
|
datas.payType = val.payType; |
|
|
|
|
|
|
|
|
|
datas.startRegisterTime = that.timeFormat(datas.startRegisterTime, 'yyyy-MM-dd HH:mm'); |
|
|
|
|
datas.endRegisterTime = that.timeFormat(datas.endRegisterTime, 'yyyy-MM-dd HH:mm'); |
|
|
|
@ -74,6 +94,7 @@ Page({
|
|
|
|
|
val:datas |
|
|
|
|
}) |
|
|
|
|
that.getClubInfo(datas.clubId); |
|
|
|
|
that.getPeople(id); |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
timeFormat(d, format = 'yyyy-MM-dd HH:mm:ss'){ |
|
|
|
@ -81,7 +102,7 @@ Page({
|
|
|
|
|
let date = new Date(d); |
|
|
|
|
let result = format.replace('yyyy', date.getFullYear()); |
|
|
|
|
result = result.replace('MM', fnumber(date.getMonth() + 1)); |
|
|
|
|
result = result.replace('dd', fnumber(date.getDay())); |
|
|
|
|
result = result.replace('dd', fnumber(date.getDate())); |
|
|
|
|
result = result.replace('HH', fnumber(date.getHours())); |
|
|
|
|
result = result.replace('mm', fnumber(date.getMinutes())); |
|
|
|
|
result = result.replace('ss', fnumber(date.getSeconds())); |
|
|
|
|