feat: 增加说明

master
xjs 2025-05-22 17:02:43 +08:00
parent 26703cd754
commit 3ba03d5912
3 changed files with 76 additions and 4 deletions

View File

@ -11,6 +11,9 @@
> >
{{ headItem.label }} {{ headItem.label }}
<view <view
@click.stop="
showToast(headItem.key === 'lineDiff' ? 1 : headItem.key === 'rankDiff' ? 2 : 0)
"
class="i-carbon-help text-[#86909C]" class="i-carbon-help text-[#86909C]"
v-if="headItem.key === 'lineDiff' || headItem.key === 'rankDiff'" v-if="headItem.key === 'lineDiff' || headItem.key === 'rankDiff'"
></view> ></view>
@ -54,10 +57,29 @@
</view> </view>
</view> </view>
</view> </view>
<MessageBox v-model:show="show" title="" :defaultPadding="false" defaultWidth="85%">
<template>
<view class="">
<view class="text-[#000] text-[36rpx] font-700 mt-[40rpx] text-center">{{ title }}</view>
<view class="text-[28rpx] text-[#333] mt-[34rpx] mx-[32rpx] text-center">
{{ tipContent }}
</view>
<view
@click.stop="handleSubmit"
class="py-[32rpx] text-[#1580FF] text-[36rpx] text-center border-t-[2rpx] border-t-solid border-[#F3F3F3] mt-[38rpx]"
>
确认
</view>
</view>
</template>
</MessageBox>
</view> </view>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import MessageBox from '@/pages-sub/components/messageBox/MessageBox.vue'
defineOptions({ defineOptions({
inheritAttrs: true, inheritAttrs: true,
}) })
@ -72,6 +94,25 @@ const props = defineProps({
}, },
}) })
const title = ref('')
const tipContent = ref('')
const show = ref(false)
const showToast = (type: number) => {
if (type === 1) {
title.value = '线差'
tipContent.value = '根据志愿历年最低分 - 当前批次线的差值得出,线差可为填报提供参考。'
} else if (type === 2) {
title.value = '历年位次差'
tipContent.value =
'根据考生历年的等效位次 - 志愿历年录取位次的差值得出,位次差可更准确的与历年位次进行比较。'
}
show.value = true
}
const handleSubmit = () => {
show.value = false
}
const columns = ref([ const columns = ref([
{ label: '年份', key: 'year', width: '62rpx' }, { label: '年份', key: 'year', width: '62rpx' },
{ label: '录取', key: 'planCount', width: '54rpx' }, { label: '录取', key: 'planCount', width: '54rpx' },

View File

@ -9,9 +9,30 @@
</text> </text>
<text>{{ userInfo.batchName }}</text> <text>{{ userInfo.batchName }}</text>
</view> </view>
<view v-if="type === 0" class="flex items-center"> <view v-if="type === 0" class="flex items-center" @click="showToast">
<text>重要提示</text> <text>重要提示</text>
<text class="i-carbon-help"></text> <text class="i-carbon-help"></text>
<MessageBox v-model:show="show" title="" :defaultPadding="false" defaultWidth="85%">
<template>
<view class="">
<view class="text-[#000] text-[36rpx] font-700 mt-[40rpx] text-center">重要提示</view>
<view class="text-[28rpx] text-[#333] mt-[34rpx] mx-[32rpx]">
<view class="">
1.本平台基于历史分数及等效位次进行志愿推荐和风险评估由于志愿填报本身存在不确定性请谨慎参考
</view>
<view class="mt-[34rpx]">
2.在正式填报时院校/专业名称及代码请务必与官方信息平台核对若发现差异则以官方数据为准本平台数据仅供参考
</view>
</view>
<view
@click.stop="handleSubmit"
class="py-[32rpx] text-[#1580FF] text-[36rpx] text-center border-t-[2rpx] border-t-solid border-[#F3F3F3] mt-[38rpx]"
>
确认
</view>
</view>
</template>
</MessageBox>
</view> </view>
<HeaderModelTip v-if="type === 1" /> <HeaderModelTip v-if="type === 1" />
@ -20,6 +41,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import HeaderModelTip from './HeaderModelTip.vue' import HeaderModelTip from './HeaderModelTip.vue'
import MessageBox from '@/pages-sub/components/messageBox/MessageBox.vue'
defineProps({ defineProps({
userInfo: { userInfo: {
type: Object, type: Object,
@ -30,6 +52,15 @@ defineProps({
default: 0, default: 0,
}, },
}) })
const show = ref(false)
const showToast = () => {
show.value = true
}
const handleSubmit = () => {
show.value = false
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View File

@ -257,12 +257,12 @@ const handleConfirm = () => {
} else if (actionType.value === 4) { } else if (actionType.value === 4) {
let _cur = filterMajorRef.value.getSearchParam() let _cur = filterMajorRef.value.getSearchParam()
let temSet = new Set() let temSet = new Set()
collegeSearch.value.secondmajor = [] collegeSearch.value.majors = []
_cur.forEach((item) => { _cur.forEach((item) => {
temSet.add(item.pName) temSet.add(item.pName)
collegeSearch.value.secondmajor.push(item.zymc) collegeSearch.value.majors.push(item.zymc)
}) })
collegeSearch.value.majors = Array.from(temSet.values()) collegeSearch.value.secondmajor = Array.from(temSet.values())
} }
paging.value.reload() paging.value.reload()
} }