|
|
|
|
@ -75,9 +75,9 @@
|
|
|
|
|
已报名数:{{item.has_total}}
|
|
|
|
|
</text>
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
<view class="book-box-row-timeitem-status" v-if="item.checked">
|
|
|
|
|
<u-icon name="checkmark" color="#fff" size="20rpx"></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="book-box-row-timeitem-status" v-if="item.checked">
|
|
|
|
|
<u-icon name="checkmark" color="#fff" size="20rpx"></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
@ -110,7 +110,7 @@
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</u-popup>
|
|
|
|
|
<view class="flex-row">
|
|
|
|
|
<view class="flex-row" v-if="list.status==1">
|
|
|
|
|
<view style="margin-right: 14rpx;flex: 1;" v-if="list.join_type==1||list.join_type==0">
|
|
|
|
|
<u-button type="primary" @click="tobook('team')">团体预约</u-button>
|
|
|
|
|
</view>
|
|
|
|
|
@ -175,10 +175,10 @@
|
|
|
|
|
this.showNumbers = false
|
|
|
|
|
this.chooseNum = ""
|
|
|
|
|
},
|
|
|
|
|
numChange(item) {
|
|
|
|
|
if(item.disabled) {
|
|
|
|
|
this.util.alert("您选择的产次不可预约!");
|
|
|
|
|
return;
|
|
|
|
|
numChange(item) {
|
|
|
|
|
if (item.disabled) {
|
|
|
|
|
this.util.alert("您选择的场次不可预约!");
|
|
|
|
|
return;
|
|
|
|
|
};
|
|
|
|
|
var _numbers = this.numbers;
|
|
|
|
|
for (var mod of _numbers) {
|
|
|
|
|
@ -228,21 +228,22 @@
|
|
|
|
|
.getHm(m.start_time) + "-" + that.getHm(m.end_time);
|
|
|
|
|
if (that.compareDate(nowTime, m
|
|
|
|
|
.end_plan)) {
|
|
|
|
|
m.disabled = true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (m.has_total == m.total && m.total != 0){
|
|
|
|
|
m.disabled = true
|
|
|
|
|
|
|
|
|
|
m.disabled = true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (m.has_total == m.total && m.total != 0) {
|
|
|
|
|
m.disabled = true
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
numberArr.push(m);
|
|
|
|
|
if (!m.disabled) {
|
|
|
|
|
|
|
|
|
|
this.activity_number_id = (i == 0 ? m.id : '')
|
|
|
|
|
m.checked = i == 0;
|
|
|
|
|
i++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
console.log("numberArr[0].id", numberArr[0].id);
|
|
|
|
|
if (numberArr.length > 0)
|
|
|
|
|
that.activity_number_id = numberArr[0].id
|
|
|
|
|
that.numbers = numberArr
|
|
|
|
|
wx.setStorage({
|
|
|
|
|
key: 'activityinfo',
|
|
|
|
|
@ -380,20 +381,20 @@
|
|
|
|
|
|
|
|
|
|
.numbersBoxActive {
|
|
|
|
|
border: #D98012 1px solid;
|
|
|
|
|
background-color: #FCF6E3;
|
|
|
|
|
background-color: #FCF6E3;
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.book-box-row-timeitem-status {
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 0;
|
|
|
|
|
top: 0;
|
|
|
|
|
background: #EF9525;
|
|
|
|
|
border-top-right-radius: 5rpx;
|
|
|
|
|
border-bottom-left-radius: 5rpx;
|
|
|
|
|
font-size: 20rpx;
|
|
|
|
|
color: #828282;
|
|
|
|
|
padding: 7rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.book-box-row-timeitem-status {
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 0;
|
|
|
|
|
top: 0;
|
|
|
|
|
background: #EF9525;
|
|
|
|
|
border-top-right-radius: 5rpx;
|
|
|
|
|
border-bottom-left-radius: 5rpx;
|
|
|
|
|
font-size: 20rpx;
|
|
|
|
|
color: #828282;
|
|
|
|
|
padding: 7rpx;
|
|
|
|
|
}
|
|
|
|
|
</style>
|