This commit is contained in:
Leo_Ding 2025-09-16 16:10:32 +08:00
commit e9ead9668f

View File

@ -106,8 +106,8 @@
<u-button type="primary" text="我已知晓" :disabled="hasReaded" @click="show=false"></u-button> <u-button type="primary" text="我已知晓" :disabled="hasReaded" @click="show=false"></u-button>
</u-popup> --> </u-popup> -->
<!-- 保持原有结构不变 --> <!-- 保持原有结构不变 -->
<view class="copyright-fixed"> <view class="copyright-fixed">
<Copyright :footerHeight="'0'" /> <Copyright :footerHeight="'0'" />
</view> </view>
</view> </view>
@ -284,67 +284,67 @@
} }
}, },
goDetail(item) { goDetail(item) {
console.log("====item",item) console.log("====item",item)
// ID // ID
const id = item.id; const id = item.id;
const isSelfStudy = item.title === '自习室'; const isSelfStudy = item.title === '自习室';
if (!id) { if (!id) {
uni.showToast({ uni.showToast({
title: '会议室信息异常', title: '会议室信息异常',
icon: 'none' icon: 'none'
}); });
return; return;
} }
// //
if (item.roomType == 2&&item.num!==4 ) { if (item.roomType == 2&&item.num!==4 ) {
uni.showModal({ uni.showModal({
title: '温馨提示', title: '温馨提示',
content: '自习室预约时间按月为单位,单次预约最长个月,请确认是否继续?', content: '自习室预约时间按月为单位,单次预约最长个月,请确认是否继续?',
confirmColor: '#007AFF', // uView confirmColor: '#007AFF', // uView
success: (res) => { success: (res) => {
if (res.confirm) { if (res.confirm) {
// //
this.navigateToDetail(id, true); this.navigateToDetail(id, true);
} else if (res.cancel) { } else if (res.cancel) {
// //
uni.showToast({ uni.showToast({
title: '已取消', title: '已取消',
icon: 'none' icon: 'none'
}); });
} }
}, },
fail: (err) => { fail: (err) => {
console.error('弹窗失败:', err); console.error('弹窗失败:', err);
uni.showToast({ uni.showToast({
title: '操作失败', title: '操作失败',
icon: 'none' icon: 'none'
}); });
} }
}); });
} else { } else {
// //
this.navigateToDetail(id, false); this.navigateToDetail(id, false);
} }
}, },
// //
navigateToDetail(id, isSelfStudy) { navigateToDetail(id, isSelfStudy) {
uni.navigateTo({ uni.navigateTo({
url: `/pages/meetingDetail/index?Id=${encodeURIComponent(id)}&isSelfStudy=${isSelfStudy}`, url: `/pages/meetingDetail/index?Id=${encodeURIComponent(id)}&isSelfStudy=${isSelfStudy}`,
success: () => { success: () => {
console.log('导航成功ID:', id); console.log('导航成功ID:', id);
}, },
fail: (err) => { fail: (err) => {
console.error('导航失败:', err); console.error('导航失败:', err);
uni.showToast({ uni.showToast({
title: '打开详情页失败', title: '打开详情页失败',
icon: 'none' icon: 'none'
}); });
} }
}); });
}, },
// //
async getList() { async getList() {
@ -412,21 +412,21 @@
$card-radius: 24rpx; $card-radius: 24rpx;
$tag-radius: 8rpx; $tag-radius: 8rpx;
.container { .container {
background-color: $bg-color; background-color: $bg-color;
padding: 20rpx; padding: 20rpx;
min-height: 100vh; min-height: 100vh;
box-sizing: border-box; box-sizing: border-box;
display: flex; /* 新增 */ display: flex; /* 新增 */
flex-direction: column; /* 新增 */ flex-direction: column; /* 新增 */
padding-bottom: calc(100rpx + 80rpx); /* 调整为footer高度 + copyright高度 */ padding-bottom: calc(100rpx + 80rpx); /* 调整为footer高度 + copyright高度 */
// .copyright-fixed { // .copyright-fixed {
// position: fixed; // position: fixed;
// bottom: 0; // bottom: 0;
// left: 0; // left: 0;
// right: 0; // right: 0;
// z-index: 10; /* */ // z-index: 10; /* */
// } // }
.nav-bar { .nav-bar {