开启篮球预定

This commit is contained in:
wangxiaowei
2025-12-25 00:07:22 +08:00
parent ff99f9e189
commit 7a58939b65
9 changed files with 458 additions and 199 deletions

View File

@ -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}`
});
}
});
},