开启篮球预定
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}`
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user