2025-04-30 01:43:23 +08:00
|
|
|
<template>
|
2025-06-15 20:18:13 +08:00
|
|
|
<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-15 20:18:13 +08:00
|
|
|
<!-- 学生选择部分 -->
|
2025-06-29 21:31:05 +08:00
|
|
|
<XsPicker :is-bar="true" />
|
2025-04-30 01:43:23 +08:00
|
|
|
</view>
|
2025-06-15 20:18:13 +08:00
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<!-- 可滚动的内容区域 -->
|
|
|
|
|
<view class="scrollable-content">
|
2025-06-29 21:31:05 +08:00
|
|
|
<XkkcList :xk="curXk" :can-selected="false" />
|
2025-06-15 20:18:13 +08:00
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
</view>
|
2025-04-30 01:43:23 +08:00
|
|
|
</template>
|
|
|
|
|
|
2025-06-15 20:18:13 +08:00
|
|
|
<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"
|
2025-06-15 20:18:13 +08:00
|
|
|
import { useUserStore } from "@/store/modules/user";
|
|
|
|
|
|
2025-06-29 21:31:05 +08:00
|
|
|
const { getCurXs } = useUserStore();
|
2025-06-15 20:18:13 +08:00
|
|
|
|
2025-06-29 21:31:05 +08:00
|
|
|
const curXs = computed(() => getCurXs);
|
2025-06-15 20:18:13 +08:00
|
|
|
|
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
|
|
|
}
|
2025-06-15 20:18:13 +08:00
|
|
|
|
|
|
|
|
// 页面卸载前清除定时器
|
|
|
|
|
onBeforeUnmount(() => {
|
|
|
|
|
});
|
2025-04-30 01:43:23 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2025-06-15 20:18:13 +08:00
|
|
|
.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;
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-15 20:18:13 +08:00
|
|
|
.nav-title {
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: #333;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-right {
|
|
|
|
|
width: 40px;
|
2025-04-30 01:43:23 +08:00
|
|
|
display: flex;
|
2025-06-15 20:18:13 +08:00
|
|
|
justify-content: flex-end;
|
2025-04-30 01:43:23 +08:00
|
|
|
}
|
2025-06-15 20:18:13 +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;
|
2025-06-15 20:18:13 +08:00
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 15px;
|
|
|
|
|
|
2025-04-30 01:43:23 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-15 20:18:13 +08:00
|
|
|
// 可滚动内容区域样式
|
|
|
|
|
.scrollable-content {
|
|
|
|
|
flex: 1;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
-webkit-overflow-scrolling: touch; // 增强iOS滚动体验
|
|
|
|
|
}
|
|
|
|
|
|
2025-04-30 01:43:23 +08:00
|
|
|
</style>
|