202404 足球入场逻辑
This commit is contained in:
@@ -120,6 +120,19 @@ Page({
|
||||
}
|
||||
},
|
||||
|
||||
enterJoin(){
|
||||
if (!this.data.memberLessonTicket.id){
|
||||
wx.showToast({
|
||||
title: '未找到课程预定信息!',
|
||||
icon: 'none',
|
||||
})
|
||||
return;
|
||||
}
|
||||
wx.navigateTo({
|
||||
url: '/pages/myEnterBook/index?ticketId=' + this.data.memberLessonTicket.id,
|
||||
})
|
||||
},
|
||||
|
||||
// 我要签到
|
||||
signIn() {
|
||||
let that = this;
|
||||
|
||||
@@ -42,11 +42,11 @@
|
||||
<text>费用</text>
|
||||
<view class='cell-right-white' bindtap='callPhone' wx:if="{{!memberLessonTicket.memberCard.cardType}}">已支付: ¥{{memberLessonTicket.order.price}}</view>
|
||||
</view>
|
||||
<view class='cell unline'>
|
||||
<view wx:if="{{memberLessonTicket.venueLesson.venueType != 3}}" class='cell unline'>
|
||||
<image src='../../images/21@3x.png' mode='aspectFit'></image>
|
||||
<text>助理教练信息</text>
|
||||
</view>
|
||||
<view class='qrCode-box'>
|
||||
<view wx:if="{{memberLessonTicket.venueLesson.venueType != 3}}" class='qrCode-box'>
|
||||
<image src='{{memberLessonTicket.venueLesson.coach.wechatCode}}' bindtap='clickImage'></image>
|
||||
<text>扫一扫加好友</text>
|
||||
</view>
|
||||
@@ -55,8 +55,10 @@
|
||||
<view class='footer-box' wx:if="{{memberLessonTicket.status == 0}}">
|
||||
<!-- {{isSignIn ? "" : "isActive"}} -->
|
||||
<view class='footer-btn ' bindtap='cancelBooking'>取消预约</view>
|
||||
<!-- 如果是足球,则展示入场按钮 -->
|
||||
<!-- {{isSignIn ? "isActive" : ""}} -->
|
||||
<view class='footer-btn isActive' bindtap='signIn'>我要签到</view>
|
||||
<view wx:if="{{memberLessonTicket.venueLesson.venueType == 3}}" class='footer-btn isActive' bindtap='enterJoin'>我要进场</view>
|
||||
<view wx:else class='footer-btn isActive' bindtap='signIn'>我要签到</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user