feat:备份页面

This commit is contained in:
zhouwentao 2025-11-25 10:59:42 +08:00
parent 7f884a7367
commit e2b67fddaa
2 changed files with 247 additions and 271 deletions

View File

@ -1,11 +1,10 @@
<script> <script>
import StaticConstant from "@/common/StaticConstant"; import StaticConstant from "@/common/StaticConstant";
import ApiConstant from "@/common/ApiConstant"; import ApiConstant from "@/common/ApiConstant";
import Request from '@/common/request' import Request from '@/common/request';
import ImagesConstant from "@/common/ImagesConstant"; import ImagesConstant from "@/common/ImagesConstant";
import {arrayIsNotEmpty} from "@/common/util"; import { arrayIsNotEmpty, stringIsNotEmpty } from "@/common/util";
import vip from "../vip/index.vue"; import vip from "../vip/index.vue";
import {stringIsNotEmpty} from "../../../common/util";
const app = getApp() const app = getApp()
@ -38,6 +37,7 @@ export default {
circle: { kcj: 0, jwt: 0, nlq: 0, kbd: 0, },// circle: { kcj: 0, jwt: 0, nlq: 0, kbd: 0, },//
modelVale: 0, modelVale: 0,
topFlag: false,// topFlag: false,//
otherMajor: { otherMajor: {
visible: false, visible: false,
status: 'noMore', status: 'noMore',
@ -84,6 +84,9 @@ export default {
total: 0, total: 0,
},// },//
filledVolunteer: { filledVolunteer: {
visible: false,
status: 'noMore',
volunteerId: '', volunteerId: '',
volunteerName: '', volunteerName: '',
volunteerEarlyAdmissionList: [],// volunteerEarlyAdmissionList: [],//
@ -111,33 +114,19 @@ export default {
this.selectForm.batch = e.batch; this.selectForm.batch = e.batch;
this.filledVolunteer.volunteerId = e.volunteerId; this.filledVolunteer.volunteerId = e.volunteerId;
} }
if (e.rulesEnrollProbability) { //
// this.selectForm.rulesEnrollProbabilityList = e.rulesEnrollProbability ? [e.rulesEnrollProbability] : []
this.selectForm.rulesEnrollProbabilityList = [e.rulesEnrollProbability]
// //
for (let i = 0; i < this.menuList.length; i++) { for (let i = 0; i < this.menuList.length; i++) {
if (this.menuList[i].title === '筛选') { if (this.menuList[i].title === '筛选') {
for (let j = 0; j < this.menuList[i].children.length; j++) { for (let j = 0; j < this.menuList[i].children.length; j++) {
if (this.menuList[i].children[j].title === '录取方式') { if (this.menuList[i].children[j].title === '录取方式') {
this.menuList[i].children[j].value=[e.rulesEnrollProbability] this.menuList[i].children[j].value = this.selectForm.rulesEnrollProbabilityList
break break
} }
} }
} }
} }
}else{
this.selectForm.rulesEnrollProbabilityList = []
for (let i = 0; i < this.menuList.length; i++) {
if (this.menuList[i].title === '筛选') {
for (let j = 0; j < this.menuList[i].children.length; j++) {
if (this.menuList[i].children[j].title === '录取方式') {
this.menuList[i].children[j].value=[]
break
}
}
}
}
}
setTimeout(() => { setTimeout(() => {
this.tabBars.forEach((tabBar) => { this.tabBars.forEach((tabBar) => {
@ -153,6 +142,7 @@ export default {
this.artVolunteerDetail() this.artVolunteerDetail()
this.loadMenu() this.loadMenu()
}, },
//
onReachBottom() { onReachBottom() {
if (this.vipInfo && this.vipInfo.vipLevel >= 2) { if (this.vipInfo && this.vipInfo.vipLevel >= 2) {
this.loadMore() this.loadMore()
@ -233,28 +223,7 @@ export default {
}, },
search() { search() {
if (!this.vipInfo || !stringIsNotEmpty(this.vipInfo.vipLevel) || this.vipInfo.vipLevel < 2) { this.checkVip();
uni.showModal({
title: 'VIP专享',
//
content: '该功能为增值内容,开通会员后即可免费查看!',
//
cancelText: "取消",
//
confirmText: "开通服务",
//
confirmColor: 'red',
//
cancelColor: '#dddddd',
success: function (res) {
if (res.confirm) {
//
that.goto('/pages/zyb/vip/index')
}
}
})
return
}
this.recommendVolunteerList = [] this.recommendVolunteerList = []
this.selectForm.paneName = '全部' this.selectForm.paneName = '全部'
this.page.current = 1 this.page.current = 1
@ -409,7 +378,6 @@ export default {
}, { name: '高职高专', id: '高职高专' }] }, { name: '高职高专', id: '高职高专' }]
} }
//====== end //====== end
console.log('qqq')
//==================== start //==================== start
if (this.scoreInfo.professionalCategory === '体育类') { if (this.scoreInfo.professionalCategory === '体育类') {
if (this.scoreInfo.batch === '本科') { if (this.scoreInfo.batch === '本科') {
@ -437,7 +405,6 @@ export default {
} }
} }
} }
//===================== end //===================== end
} }
request.get(ApiConstant.Volunteer.artVolunteerDetail, { id: this.filledVolunteer.volunteerId }).then(res => { request.get(ApiConstant.Volunteer.artVolunteerDetail, { id: this.filledVolunteer.volunteerId }).then(res => {
@ -462,18 +429,14 @@ export default {
} }
indexs = 1; indexs = 1;
let volunteerUndergraduateList2 = []; let volunteerUndergraduateList2 = [];
while (indexs <= app.globalData.StaticConstant.benZhiYuanNum) { let record = {}
let record = {actives: false, indexs: indexs}
for (let i = 0; i < volunteerUndergraduateList.length; i++) { for (let i = 0; i < volunteerUndergraduateList.length; i++) {
if (volunteerUndergraduateList[i].indexs === indexs) {
record = volunteerUndergraduateList[i] record = volunteerUndergraduateList[i]
record.actives = true record.actives = true
}
}
volunteerUndergraduateList2.push(record) volunteerUndergraduateList2.push(record)
indexs++;
} }
this.filledVolunteer.volunteerUndergraduateList = volunteerUndergraduateList2 this.filledVolunteer.volunteerUndergraduateList = volunteerUndergraduateList2
//================================== end //================================== end
//================================== start //================================== start
let volunteerJuniorCollegeList = dataResult.volunteerRecordJuniorCollegeList; let volunteerJuniorCollegeList = dataResult.volunteerRecordJuniorCollegeList;
@ -481,21 +444,11 @@ export default {
key = volunteerJuniorCollegeList[i].enrollmentCode + "_" + volunteerJuniorCollegeList[i].majorCode + "_" + volunteerJuniorCollegeList[i].schoolCode key = volunteerJuniorCollegeList[i].enrollmentCode + "_" + volunteerJuniorCollegeList[i].majorCode + "_" + volunteerJuniorCollegeList[i].schoolCode
volunteerMap.set(key, volunteerJuniorCollegeList[i]) volunteerMap.set(key, volunteerJuniorCollegeList[i])
} }
indexs = 1;
let volunteerJuniorCollegeList2 = []; let volunteerJuniorCollegeList2 = [];
while (indexs <= app.globalData.StaticConstant.zhuanZhiYuanNum) {
let record = {
actives: false,
indexs: indexs
}
for (let i = 0; i < volunteerJuniorCollegeList.length; i++) { for (let i = 0; i < volunteerJuniorCollegeList.length; i++) {
if (volunteerJuniorCollegeList[i].indexs === indexs) {
record = volunteerJuniorCollegeList[i] record = volunteerJuniorCollegeList[i]
record.actives = true record.actives = true
}
}
volunteerJuniorCollegeList2.push(record) volunteerJuniorCollegeList2.push(record)
indexs++;
} }
this.filledVolunteer.volunteerJuniorCollegeList = volunteerJuniorCollegeList2 this.filledVolunteer.volunteerJuniorCollegeList = volunteerJuniorCollegeList2
} }
@ -817,6 +770,15 @@ export default {
this.otherMajor.status = 'noMore' this.otherMajor.status = 'noMore'
}); });
}, },
onFillVolunteerOpen(e){
console.log(this.filledVolunteer);
this.filledVolunteer.visible = true
},
onFillVolunteerClose(){
console.log('关闭已填报专业');
this.filledVolunteer.visible = false
},
// //
onOtherMajorOpen(e) { onOtherMajorOpen(e) {
this.otherMajor.nowMajor = { ...e } this.otherMajor.nowMajor = { ...e }
@ -873,13 +835,8 @@ export default {
<text @click="search">搜索</text> <text @click="search">搜索</text>
</view> </view>
</view> </view>
<le-dropdown <le-dropdown v-model:menuList="menuList" themeColor="#3d76fd" :duration="200" :isCeiling="true"
v-model:menuList="menuList" @onConfirm="onConfirm" @onChange="onChange"></le-dropdown>
themeColor="#3d76fd"
:duration="200"
:isCeiling="true"
@onConfirm="onConfirm"
@onChange="onChange"></le-dropdown>
</view> </view>
</view> </view>
<view class="divider" /> <view class="divider" />
@ -935,8 +892,7 @@ export default {
<scroll-view id="tab-bar" class="scroll-h border-top" :scroll-x="true" :show-scrollbar="false" <scroll-view id="tab-bar" class="scroll-h border-top" :scroll-x="true" :show-scrollbar="false"
:scroll-into-view="scrollInto" v-if="tabBars[tabIndex] && tabBars[tabIndex].childrenTabBars"> :scroll-into-view="scrollInto" v-if="tabBars[tabIndex] && tabBars[tabIndex].childrenTabBars">
<view v-for="(tab, index) in tabBars[tabIndex].childrenTabBars" :key="tab.id" class="uni-tab-item2" :id="tab.id" <view v-for="(tab, index) in tabBars[tabIndex].childrenTabBars" :key="tab.id" class="uni-tab-item2" :id="tab.id"
:data-current="index" :data-current="index" @click="ontabtap2">
@click="ontabtap2">
<text class="uni-tab-item-title" :class="tabIndex2 === index ? 'uni-tab-item-title-active' : ''">{{ tab.name }} <text class="uni-tab-item-title" :class="tabIndex2 === index ? 'uni-tab-item-title-active' : ''">{{ tab.name }}
</text> </text>
</view> </view>
@ -1047,7 +1003,8 @@ export default {
{{ item.privateStudentScore || item.studentConvertedScore }} {{ item.privateStudentScore || item.studentConvertedScore }}
</text> </text>
</view> </view>
<view style="float: right;line-height: 50rpx;" class="font-weight-600" v-show="app.globalData.StaticConstant.showZeSuan"> <view style="float: right;line-height: 50rpx;" class="font-weight-600"
v-show="app.globalData.StaticConstant.showZeSuan">
<text>折合分</text> <text>折合分</text>
<text class="font-size-mini margin-left-10" :style="'color:' + checkColorText(item.enrollProbability)"> <text class="font-size-mini margin-left-10" :style="'color:' + checkColorText(item.enrollProbability)">
{{ item.studentScore }} {{ item.studentScore }}
@ -1092,9 +1049,22 @@ export default {
<uni-load-more :status="status" :content-text="contentText" /> <uni-load-more :status="status" :content-text="contentText" />
</view> </view>
</view> </view>
<!--已填志愿-->
<px-popup-bottom :background="'#ffffff'" :color="'black'" :visible.sync="filledVolunteer.visible" title="" maxHeight="1200"
radius="40" @close="onFillVolunteerClose">
<view class="flexWrap" style="height: 50rpx;line-height: 50rpx">
<view class="flex-item-8">
<text class="darkGray font-weight-550">已填志愿信息</text>
</view>
<view class="flex-item-2">
<image @click="onFillVolunteerClose" :src="ImagesConstant.close" class="icon32 float-right"
style="position: relative;top: 5rpx" />
</view>
</view>
</px-popup-bottom>
<!--其他专业--> <!--其他专业-->
<px-popup-bottom :background="'#ffffff'" :color="'black'" :visible.sync="otherMajor.visible" title="" <px-popup-bottom :background="'#ffffff'" :color="'black'" :visible.sync="otherMajor.visible" title="" maxHeight="1200"
maxHeight="1200" radius="40" @close="onOtherMajorClose"> radius="40" @close="onOtherMajorClose">
<view class="flexWrap" style="height: 50rpx;line-height: 50rpx"> <view class="flexWrap" style="height: 50rpx;line-height: 50rpx">
<view class="flex-item-8"> <view class="flex-item-8">
<text class="darkGray font-weight-550">{{ otherMajor.schoolName }}</text> <text class="darkGray font-weight-550">{{ otherMajor.schoolName }}</text>
@ -1112,7 +1082,8 @@ export default {
<view class="flexWrap" @click="goto('/pages/zyb/school/detail?schoolCode=' + otherMajor.nowMajor.schoolCode)"> <view class="flexWrap" @click="goto('/pages/zyb/school/detail?schoolCode=' + otherMajor.nowMajor.schoolCode)">
<view class="flex-item-10 flexWrap"> <view class="flex-item-10 flexWrap">
<view class="flex-item-65 font-weight-b" style="line-height: 50rpx"> <view class="flex-item-65 font-weight-b" style="line-height: 50rpx">
<text class="" style="display: flex;">[{{ otherMajor.nowMajor.enrollmentCode }}]{{ otherMajor.nowMajor.majorName }}</text> <text class="" style="display: flex;">[{{ otherMajor.nowMajor.enrollmentCode }}]{{
otherMajor.nowMajor.majorName }}</text>
<text class="tag">{{ otherMajor.nowMajor.tuition }}</text> <text class="tag">{{ otherMajor.nowMajor.tuition }}</text>
<text v-if="otherMajor.nowMajor.majorDetail">{{ otherMajor.nowMajor.majorDetail }}</text> <text v-if="otherMajor.nowMajor.majorDetail">{{ otherMajor.nowMajor.majorDetail }}</text>
<!-- <text v-if="otherMajor.nowMajor.limitation">({{otherMajor.nowMajor.limitation}})</text>--> <!-- <text v-if="otherMajor.nowMajor.limitation">({{otherMajor.nowMajor.limitation}})</text>-->
@ -1126,7 +1097,8 @@ export default {
<view class="flex-item-35"> <view class="flex-item-35">
<view style="float: right;line-height: 50rpx;" class="font-weight-600" v-if="selectForm.kslx === '统考'"> <view style="float: right;line-height: 50rpx;" class="font-weight-600" v-if="selectForm.kslx === '统考'">
<text class="font-size-mini" :style="'color:' + checkColorText(otherMajor.nowMajor.enrollProbability)"> <text class="font-size-mini" :style="'color:' + checkColorText(otherMajor.nowMajor.enrollProbability)">
{{ (vipInfo && vipInfo.vipLevel >= 2) ? formatDecimal(otherMajor.nowMajor.enrollProbability) : '??' }} {{ (vipInfo && vipInfo.vipLevel >= 2) ? formatDecimal(otherMajor.nowMajor.enrollProbability) : '??'
}}
</text> </text>
<image :src="checkBao(otherMajor.nowMajor.enrollProbability)" class="icon50" <image :src="checkBao(otherMajor.nowMajor.enrollProbability)" class="icon50"
v-if="(vipInfo && vipInfo.vipLevel >= 2)" /> v-if="(vipInfo && vipInfo.vipLevel >= 2)" />
@ -1262,6 +1234,7 @@ export default {
<view v-if="recommendVolunteerList && recommendVolunteerList.length > 0"> <view v-if="recommendVolunteerList && recommendVolunteerList.length > 0">
<my-checkvip :vip-flag="(vipInfo && vipInfo.vipLevel >= 2)" /> <my-checkvip :vip-flag="(vipInfo && vipInfo.vipLevel >= 2)" />
</view> </view>
<uni-icons class="topc" style="top: 73%;" type="eye" size="40" @click="onFillVolunteerOpen"></uni-icons>
<view class="top" :style="{ 'display': (topFlag === true ? 'block' : 'none') }"> <view class="top" :style="{ 'display': (topFlag === true ? 'block' : 'none') }">
<uni-icons class="topc" type="arrowthinup" size="40" @click="clickTop"></uni-icons> <uni-icons class="topc" type="arrowthinup" size="40" @click="clickTop"></uni-icons>
</view> </view>
@ -1507,6 +1480,7 @@ export default {
.header { .header {
border-top: 3rpx solid #f6f6f6; border-top: 3rpx solid #f6f6f6;
background-color: white; background-color: white;
//min-height: 500rpx; //min-height: 500rpx;
// //
.search-view { .search-view {
@ -1570,11 +1544,13 @@ export default {
/*推荐志愿列表 start*/ /*推荐志愿列表 start*/
.fillVolunteer { .fillVolunteer {
/*padding:0 30rpx 10rpx 30rpx;*/ /*padding:0 30rpx 10rpx 30rpx;*/
.volunteerItem { .volunteerItem {
background-color: white; background-color: white;
padding: 30rpx; padding: 30rpx;
margin: 10rpx 0; margin: 10rpx 0;
/*院校标签*/ /*院校标签*/
.tags { .tags {
display: flex; display: flex;
@ -1630,7 +1606,8 @@ export default {
/* 回到顶部 start*/ /* 回到顶部 start*/
.top { .top {
position: relative; position: relative;
display: none; /* 先将元素隐藏 */ display: none;
/* 先将元素隐藏 */
transition: 0.5s; transition: 0.5s;
} }
@ -1652,5 +1629,4 @@ scroll-view ::-webkit-scrollbar {
height: 0; height: 0;
background-color: transparent; background-color: transparent;
} }
</style> </style>

View File

@ -6,7 +6,7 @@ import StaticConstant from "@/common/StaticConstant";
import ApiConstant from "@/common/ApiConstant"; import ApiConstant from "@/common/ApiConstant";
import ImagesConstant from "@/common/ImagesConstant"; import ImagesConstant from "@/common/ImagesConstant";
import Request from '@/common/request'; import Request from '@/common/request';
import {stringIsNotEmpty} from "../../../common/util"; import {stringIsNotEmpty} from "@/common/util";
import Image from "../../component/image/image.vue"; import Image from "../../component/image/image.vue";
const app = getApp() const app = getApp()
let request = new Request() let request = new Request()