|
|
|
@ -158,7 +158,8 @@
|
|
|
|
numChange(val) {
|
|
|
|
numChange(val) {
|
|
|
|
console.log(val)
|
|
|
|
console.log(val)
|
|
|
|
this.activity_number_id = val
|
|
|
|
this.activity_number_id = val
|
|
|
|
console.log("book?type=" + this.teamType + "&activity_id=" + this.id + "&activity_number_id="+this.activity_number_id)
|
|
|
|
console.log("book?type=" + this.teamType + "&activity_id=" + this.id + "&activity_number_id=" + this
|
|
|
|
|
|
|
|
.activity_number_id)
|
|
|
|
// uni.navigateTo({
|
|
|
|
// uni.navigateTo({
|
|
|
|
// url: "book?type=" + this.teamType + "&activity_id=" + this.id + "&activity_number_id="+this.activity_number_id
|
|
|
|
// url: "book?type=" + this.teamType + "&activity_id=" + this.id + "&activity_number_id="+this.activity_number_id
|
|
|
|
// })
|
|
|
|
// })
|
|
|
|
@ -175,7 +176,8 @@
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
uni.navigateTo({
|
|
|
|
uni.navigateTo({
|
|
|
|
url: "book?type=" + this.teamType + "&activity_id=" + this.id + "&activity_number_id="+this.activity_number_id
|
|
|
|
url: "book?type=" + this.teamType + "&activity_id=" + this.id + "&activity_number_id=" + this
|
|
|
|
|
|
|
|
.activity_number_id
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
loadActiveInfo() {
|
|
|
|
loadActiveInfo() {
|
|
|
|
@ -194,13 +196,16 @@
|
|
|
|
let numberArr = []
|
|
|
|
let numberArr = []
|
|
|
|
let nowTime = that.getNowTime()
|
|
|
|
let nowTime = that.getNowTime()
|
|
|
|
for (var m of res.numbers) {
|
|
|
|
for (var m of res.numbers) {
|
|
|
|
m.label = m.name + "(" + that.timeFormat(m.start_time,"yyyy年MM月DD日") + " " + that.getHm(m.start_time)+"-"+that.getHm(m.end_time) + ")"
|
|
|
|
m.label = m.name + "(" + that.timeFormat(m.start_time, "yyyy年MM月DD日") + " " + that
|
|
|
|
if(m.has_total==m.total&&m.total!=0 || that.compareDate(nowTime,m.end_plan)){
|
|
|
|
.getHm(m.start_time) + "-" + that.getHm(m.end_time) + ")"
|
|
|
|
|
|
|
|
if (m.has_total == m.total && m.total != 0 || that.compareDate(nowTime, m
|
|
|
|
|
|
|
|
.end_plan)) {
|
|
|
|
m.disabled = true
|
|
|
|
m.disabled = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
numberArr.push(m);
|
|
|
|
|
|
|
|
if(that.chooseNum==""){
|
|
|
|
numberArr.push(m)
|
|
|
|
that.chooseNum=m.id;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
that.numbers = numberArr
|
|
|
|
that.numbers = numberArr
|
|
|
|
wx.setStorage({
|
|
|
|
wx.setStorage({
|
|
|
|
@ -296,14 +301,16 @@
|
|
|
|
box-sizing: border-box;
|
|
|
|
box-sizing: border-box;
|
|
|
|
/* background: linear-gradient(0deg, #ffffff 85%, #E4C8A2); */
|
|
|
|
/* background: linear-gradient(0deg, #ffffff 85%, #E4C8A2); */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.mpopup {
|
|
|
|
.mpopup {
|
|
|
|
margin-top: 0rpx;
|
|
|
|
margin-top: 0rpx;
|
|
|
|
min-height: 200rpx
|
|
|
|
min-height: 200rpx
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.mpopup-title {
|
|
|
|
.mpopup-title {
|
|
|
|
padding: 20rpx 0
|
|
|
|
padding: 20rpx 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.numbers {
|
|
|
|
.numbers {
|
|
|
|
/* min-height: 300rpx; */
|
|
|
|
/* min-height: 300rpx; */
|
|
|
|
padding: 31rpx 24rpx;
|
|
|
|
padding: 31rpx 24rpx;
|
|
|
|
|