volunteer-secondary/src/pages-sub/wishlist/create/secondBatch.vue

122 lines
4.1 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<script lang="ts" setup>
import { safeAreaInsets } from '@/utils/systemInfo'
import SecondBatchSchool from './components/SecondBatchSchool.vue'
import MxDialog from "@/pages-sub/components/dialog/index.vue"
// #ifdef MP-WEIXIN
definePage({
style: {
navigationStyle: 'custom',
},
excludeLoginPath: false,
})
// #endif
// #ifndef MP-WEIXIN
definePage({
style: {
navigationStyle: 'custom',
transparentTitle: 'always',
navigationBarTitleText: ''
},
excludeLoginPath: false,
})
// #endif
const handleBack = () => {
uni.navigateBack({ delta: 1 })
}
const navigateToList = () => {
uni.navigateTo({ url: "/pages-sub/wishlist/create/saveSecondBatchWishList" })
}
const show = ref(false)
</script>
<template>
<view class="flex flex-col custom-background h-screen">
<sar-navbar show-back @back="handleBack" :fixed="true" fixation-style="top:unset;"
:root-style="{ '--sar-navbar-bg': `transparent`, '--sar-navbar-item-color': 'black', 'padding-top': `${safeAreaInsets?.top}px` }">
<template #title>
<view class="flex justify-center">第二批次</view>
</template>
</sar-navbar>
<view
class="bg-[#ddebfe] rounded-[16rpx] border-2rpx border-solid border-white flex items-center mx-[20rpx] py-[16rpx] px-[30rpx]"
@click="show = true">
<view class="w-[36rpx] h-[36rpx] flex items-center">
<image src="https://lwzk.ycymedu.com/img/tianbao/tb_tongzhi.png" mode="scaleToFill"
class="w-[36rpx] h-[36rpx]" />
</view>
<view class="text-[#1580FF] text-[30rpx] font-500 ml-[10rpx]">家长须知</view>
<view class="w-[14rpx] h-[18rpx] flex items-center ml-auto">
<image src="https://lwzk.ycymedu.com/img/tianbao/tb_lanjiantou.png" mode="scaleToFill"
class="w-[14rpx] h-[18rpx]" />
</view>
</view>
<view class="flex-1 overflow-y-auto">
<view class="px-[20rpx] pt-[20rpx]">
<SecondBatchSchool />
</view>
</view>
<view class="border-t border-t-solid border-t-[#ededed] px-[40rpx] py-[16rpx]">
<view class="pb-safe" @click="navigateToList">
<button form-type="submit" class="rounded-[16rpx] bg-[#1580FF] text-[#f7f7f7] submit-btn">确定</button>
</view>
</view>
<MxDialog v-model:show="show" title="" :defaultPadding="false" defaultWidth="85%" rootClass="rounded-[40rpx]"
@overlay-click="show = false">
<template>
<view class="rounded-[40rpx] bg-white p-[40rpx] custom-dialog-background">
<view class="text-[52rpx] font-600 clear-both">
<view>家长须知</view>
<view class="w-[94rpx] h-[10rpx] bg-[#1580FF] rounded-full"></view>
</view>
<view class="w-[192rpx] h-[192rpx] absolute right-[-14rpx] top-[-14rpx]">
<image src="https://lwzk.ycymedu.com/img/tianbao/tb_laba.png" mode="scaleToFill"
class="w-[192rpx] h-[192rpx]" />
</view>
<view class="text-[30rpx] items-start mt-[50rpx]">
<view class="text-[#333]">
未被第一批次录取的考生可填报第二批次 可选择3所普通高中
</view>
<view class="my-[20rpx] text-[#333]">
系统按分数优先投档平行志愿3所学校并列不分先后
</view>
</view>
<view
class="text-[34rpx] font-500 text-white bg-[#1580FF] rounded-full py-[20rpx] text-center mx-[40rpx] mt-[40rpx]"
@click="show = false">我知道了</view>
</view>
</template>
</MxDialog>
</view>
</template>
<style lang="scss" scoped>
.custom-background {
background: linear-gradient(180deg, #D7E4FF 0%, #fff 256rpx);
background-position: 50% 50%;
background-origin: padding-box;
background-clip: border-box;
background-size: auto auto;
}
.custom-dialog-background {
background: linear-gradient(180deg, #ecf2ff 0%, #f6f8ff 40rpx, #fff 128rpx);
background-position: 50% 50%;
background-origin: padding-box;
background-clip: border-box;
background-size: auto auto;
}
.submit-btn[disabled] {
background-color: #a1cbff;
color: #fff;
}
</style>