开启篮球预定
This commit is contained in:
@ -637,16 +637,41 @@ export default {
|
||||
|
||||
// 场馆预约
|
||||
handleToReserve(id, typeId) {
|
||||
if (typeId == 2) {
|
||||
uni.showToast({
|
||||
title: '场馆暂未开放',
|
||||
duration: 2000,
|
||||
icon: 'none'
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: `/bundle/reserve/details?id=${id}&typeId=${typeId}`
|
||||
// if (typeId == 2) {
|
||||
// uni.showToast({
|
||||
// title: '场馆暂未开放',
|
||||
// duration: 2000,
|
||||
// icon: 'none'
|
||||
// });
|
||||
// return;
|
||||
// }
|
||||
/*是否有手机号码*/
|
||||
let self = this;
|
||||
uni.showLoading({
|
||||
title: '加载中'
|
||||
});
|
||||
self._post('user.index/detail', {
|
||||
source: self.getPlatform()
|
||||
}, function(res) {
|
||||
uni.hideLoading();
|
||||
console.log("🚀 ~ res:", res)
|
||||
if (res.data.userInfo.mobile == '') {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '请先绑定手机号',
|
||||
success: function(sm) {
|
||||
if (sm.confirm) {
|
||||
uni.switchTab({
|
||||
url: '/pages/user/index/index'
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}else {
|
||||
uni.navigateTo({
|
||||
url: `/bundle/reserve/details?id=${id}&typeId=${typeId}`
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
@ -59,7 +59,7 @@
|
||||
<image :src="item.image" mode="aspectFill" style="width: 200rpx; height: 200rpx; border-radius: 10rpx;"></image>
|
||||
<view class="flex-1">
|
||||
<view class="pro-info cg-info2">订单号:{{ item.order_sn }}</view>
|
||||
<view class="pro-info cg-info3">预约时间:{{ item.trade[0].day_title }}</view>
|
||||
<view class="pro-info cg-info3">预约时间:{{ ballType == 1 ? item.trade[0].day_title : item.times }}</view>
|
||||
</view>
|
||||
|
||||
<!-- <view class="total-count">
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
<!-- 已预约 -->
|
||||
<view class="" style="width: 100%;" v-if="detail.order_status == 1">
|
||||
<view class="status-text" style="width: 100%;text-align: center;">
|
||||
使用过程中有任何问题,请联系商家
|
||||
使用过程中有任何问题,请联系客服
|
||||
</view>
|
||||
<!-- <view class="face d-f a-i-c">
|
||||
<view class="d-f a-i-c">
|
||||
@ -80,8 +80,8 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="d-b-c" style="margin-top:18rpx;" v-if="ballType == 2">
|
||||
<view class="cg-hour">¥100/小时</view>
|
||||
<view class="cg-num">x{{ item.hours }}</view>
|
||||
<view class="cg-hour">¥{{ detail.order_amount }}/人</view>
|
||||
<view class="cg-num">x1</view>
|
||||
</view>
|
||||
|
||||
<view class="d-f a-i-c" style="text-align: right;justify-content: end;margin-top:18rpx;">
|
||||
@ -97,7 +97,7 @@
|
||||
<view class="cg-title">预约信息</view>
|
||||
<!-- todo 这里的状态如果是交易完成、订单取消、退款成功则将下面的预约改为使用 -->
|
||||
<view class="cg-desc1">预约时间:{{ detail.day_time }}</view>
|
||||
<view class="cg-desc2">预约时长:{{ detail.hours }}小时</view>
|
||||
<view class="cg-desc2" v-if="ballType == 1">预约时长:{{ detail.hours }}小时</view>
|
||||
<template v-if="ballType == 1">
|
||||
<view class="cg-desc2">场地信息:</view>
|
||||
<view class="desc" v-for="(item, index) in detail.trade" :key="index">
|
||||
@ -196,13 +196,13 @@
|
||||
<templte class="ww100" v-if="detail.order_status == 1">
|
||||
<view class="d-b-c ww100">
|
||||
<view class="cancle-reserve-btn" @click="showCancleReservePopup">取消预约</view>
|
||||
<view class="contact-btn" @click="contactStore">联系商家</view>
|
||||
<view class="contact-btn" @click="contactStore">联系客服</view>
|
||||
</view>
|
||||
</templte>
|
||||
|
||||
<!-- 进行中 -->
|
||||
<templte class="ww100" v-if="detail.order_status == 2">
|
||||
<view class="ww100 again-btn" @click="contactStore">联系商家</view>
|
||||
<view class="ww100 again-btn" @click="contactStore">联系客服</view>
|
||||
</templte>
|
||||
|
||||
<!-- 订单取消、退款成功 -->
|
||||
|
||||
@ -614,15 +614,16 @@
|
||||
border-radius: 16rpx;
|
||||
height: 100%;
|
||||
padding: 0 20rpx;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
|
||||
.bind_txt {}
|
||||
|
||||
.bind_btn {
|
||||
width: 134rpx;
|
||||
width: 150rpx;
|
||||
height: 50rpx;
|
||||
line-height: 50rpx;
|
||||
font-size: 22rpx;
|
||||
font-size: 28rpx;
|
||||
border-radius: 25rpx;
|
||||
text-align: center;
|
||||
color: #FFFFFF;
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
<text class="icon iconfont icon-jiantou"></text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="d-b-c p-30-0">
|
||||
<!-- <view class="d-b-c p-30-0">
|
||||
<text class="key-name">手机号码</text>
|
||||
<view class="d-e-c" v-if="userInfo.mobile">
|
||||
<text class="mr20">{{ userInfo.mobile }}</text>
|
||||
@ -42,7 +42,7 @@
|
||||
<text class="mr20">未绑定</text>
|
||||
<text class="iconfont icon-jiantou"></text>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- #ifdef APP-PLUS -->
|
||||
<view class="d-b-c p-30-0">
|
||||
<text class="key-name">当前版本</text>
|
||||
|
||||
Reference in New Issue
Block a user