zhxy-jzd/src/pages/base/club/index.vue

108 lines
2.2 KiB
Vue
Raw Normal View History

2025-04-30 01:43:23 +08:00
<template>
<view class="interest-course">
<!-- 选课信息头部 - 固定部分 -->
<view class="selection-header">
<view class="header-content">
2025-06-29 21:31:05 +08:00
<!-- 选课类型选择部分 -->
<XkPicker title="俱乐部信息" :is-xs="true" xklx-id="816059832" :xs-id="curXs.id" :nj-id="curXs.njId" @change="switchXk" />
<!-- 学生选择部分 -->
2025-06-29 21:31:05 +08:00
<XsPicker :is-bar="true" />
2025-04-30 01:43:23 +08:00
</view>
</view>
<!-- 可滚动的内容区域 -->
<view class="scrollable-content">
2025-06-29 21:31:05 +08:00
<XkkcList :xk="curXk" :can-selected="false" />
</view>
</view>
2025-04-30 01:43:23 +08:00
</template>
<script setup lang="ts">
2025-06-29 21:31:05 +08:00
import XsPicker from "@/pages/base/components/XsPicker/index.vue"
import XkPicker from "@/pages/base/components/XkPicker/index.vue"
import XkkcList from "@/pages/base/components/XkkcList/index.vue"
import { useUserStore } from "@/store/modules/user";
2025-06-29 21:31:05 +08:00
const { getCurXs } = useUserStore();
2025-06-29 21:31:05 +08:00
const curXs = computed(() => getCurXs);
2025-06-29 21:31:05 +08:00
const curXk = ref<any>({});
// 切换选课
const switchXk = (xk: any) => {
curXk.value = xk;
2025-04-30 01:43:23 +08:00
}
// 页面卸载前清除定时器
onBeforeUnmount(() => {
});
2025-04-30 01:43:23 +08:00
</script>
<style lang="scss" scoped>
.interest-course {
min-height: 100%;
background-color: #f5f7fa;
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
}
.nav-bar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 15px;
height: 44px;
background-color: #fff;
.nav-left {
width: 40px;
height: 40px;
2025-04-30 01:43:23 +08:00
display: flex;
align-items: center;
}
.nav-title {
font-size: 18px;
font-weight: 500;
color: #333;
}
.nav-right {
width: 40px;
2025-04-30 01:43:23 +08:00
display: flex;
justify-content: flex-end;
2025-04-30 01:43:23 +08:00
}
}
.selection-header {
background: linear-gradient(135deg, #4a90e2, #2879ff);
padding: 20px 15px;
color: #fff;
border-radius: 0 0 15px 15px;
box-shadow: 0 4px 12px rgba(40, 121, 255, 0.2);
position: sticky;
top: 0;
left: 0;
right: 0;
z-index: 10;
.header-content {
2025-04-30 01:43:23 +08:00
display: flex;
flex-direction: column;
gap: 15px;
2025-04-30 01:43:23 +08:00
}
}
// 可滚动内容区域样式
.scrollable-content {
flex: 1;
overflow-y: auto;
-webkit-overflow-scrolling: touch; // 增强iOS滚动体验
}
2025-04-30 01:43:23 +08:00
</style>