开启篮球预定
This commit is contained in:
@ -217,9 +217,9 @@
|
||||
</template>
|
||||
|
||||
<template v-if="typeId == 2">
|
||||
<view class="desc">预约场地:{{ room.title }}</view>
|
||||
<view class="desc">预约场地:{{ order.room_name }}</view>
|
||||
<view class="desc">
|
||||
预约时间:{{ basketballDate }}
|
||||
预约时间:{{ order.dtime }}
|
||||
</view>
|
||||
<view class="desc">预约人数:1人</view>
|
||||
</template>
|
||||
@ -272,7 +272,7 @@
|
||||
</view>
|
||||
<view class="icon-box d-c-c"><span class="icon iconfont icon-xuanze"></span></view>
|
||||
</view>
|
||||
<view :class="payType == 'balance' ? 'item active' : 'item'" @tap="payTypeFunc('balance')">
|
||||
<view v-if="typeId == 1" :class="payType == 'balance' ? 'item active' : 'item'" @tap="payTypeFunc('balance')">
|
||||
<view class="d-s-c">
|
||||
<view class="icon-box d-c-c mr10"><span class="icon iconfont icon-yue"></span></view>
|
||||
<text class="key">平台余额</text>
|
||||
@ -376,8 +376,7 @@
|
||||
this.orderId = args.orderId || 0; // 订单ID
|
||||
this.venueId = args.venueId || 0; // 场馆ID
|
||||
this.typeId = args.typeId || 1; // 网球场1 篮球场2
|
||||
this.basketballDate = args.date || null; // 篮球场预约时间
|
||||
console.log("🚀 ~ this.date:", this.date)
|
||||
// this.basketballDate = args.date || null; // 篮球场预约时间
|
||||
this.getData();
|
||||
this.getRecharge()
|
||||
},
|
||||
@ -592,7 +591,7 @@
|
||||
if (this._submitting) return;
|
||||
this._submitting = true;
|
||||
|
||||
if (this.countSelectedTime === 0) {
|
||||
if (this.countSelectedTime === 0 && this.typeId == 1) {
|
||||
uni.showToast({title: '请选择时间后再预定', icon: 'none'});
|
||||
this._submitting = false;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user