update,backup

This commit is contained in:
zhouwentao 2025-11-07 09:25:22 +08:00
parent 75570095fd
commit 7f70a581c0
26 changed files with 2495 additions and 1416 deletions

6
.gitignore vendored
View File

@ -69,3 +69,9 @@ fabric.properties
# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser
node_modules
node_modules/
.idea/
unpackage
unpackage/

18
App.vue
View File

@ -6,6 +6,15 @@
version
} from './package.json'
import checkUpdate from '@/uni_modules/uni-upgrade-center-app/utils/check-update';
import ApiConstant from "@/common/ApiConstant";
import StaticConstant from "@/common/StaticConstant";
import ImagesConstant from "@/common/ImagesConstant";
import Request from "@/common/request";
import JumpTool from "@/common/js/jumpTool";
import CommonTool from "@/common/js/commonTool";
const request = new Request();
export default {
onLaunch: function() {
// #ifdef H5
@ -46,7 +55,14 @@
console.log('App Hide')
},
globalData: {
test: ''
test: '',
ApiConstant: ApiConstant,
StaticConstant: StaticConstant,
ImagesConstant: ImagesConstant,
JumpTool: JumpTool,
CommonTool: CommonTool,
Request: request,
},
methods: {
...mapMutations(['setUniverifyErrorMsg', 'setUniverifyLogin'])

View File

@ -30,6 +30,10 @@ export default {
value: '高职高专'
}
],
showZeSuan: true,
tiQianPiZhiYuanNum: 1,
benZhiYuanNum: 35,
zhuanZhiYuanNum: 35,
//专业选项
professionalCategoryList: [
{value: '美术与设计类', label: '美术与设计类', scoreMax: 300},

View File

@ -1,7 +1,5 @@
/*网络请求*/
// import operate from '@/common/operate';
import ENV_CONFIG from '@/config/env.js';
import {stringIsNotEmpty} from "@/common/util";
import ApiConstant from "@/common/ApiConstant";
// vuex 的使用 详情参考官网 https://uniapp.dcloud.io/vue-vuex
@ -74,11 +72,24 @@ export default class Request {
try {
uni.clearStorageSync();
} catch (e) {}
//请登录
wx.reLaunch({
url: '/pages/zyb/login',
})
return;
// 先显示提示框
uni.showModal({
title: '提示',
content: '该功能需要登录后使用喔~',
confirmText: '去登录',
cancelText: '取消',
success: (res) => {
if (res.confirm) {
// 用户点击去登录
wx.reLaunch({
url: '/pages/zyb/login',
})
}else{
uni.navigateBack();
}
}
});
return;
}
// 将结果抛出
resolve(res.data)

26
config/env.js Normal file
View File

@ -0,0 +1,26 @@
// 不同的环境变量配置
const wx_yitisheng_prod = {
// requestBaseUrl: 'https://yitisheng.vip/jbt',
requestBaseUrl: 'http://127.0.0.1:8080/jeecg-boot/',
appid: 'wxb9cf28f42ffa35e5',
name:'艺体志愿宝'
}
const dy_yitisheng_prod = {
requestBaseUrl: 'https://yitisheng.vip/jbt',
appid: 'tt59a72f1ac6964bfa01',
name:'艺体志愿宝'
}
const dy_tiyu_prod = {
requestBaseUrl: 'https://yitisheng.vip/jbt',
// requestBaseUrl: 'http://192.168.1.108:8080/jeecg-boot/',
appid: 'tt9a2bec96051c14c001',
name:'体育志愿宝'
}
export default {
wx_yitisheng_prod,
dy_yitisheng_prod,
dy_tiyu_prod
}

View File

@ -1,6 +1,7 @@
import App from './App'
import store from './store'
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
@ -23,7 +24,6 @@ app.$mount()
import {
createSSRApp
} from 'vue'
import {setSystemName} from "./common/util";
export function createApp() {
const app = createSSRApp(App)
app.use(store)

View File

@ -410,6 +410,13 @@
"style": {
"navigationBarTitleText": "体育成绩计算器"
}
},
{
"path": "pages/zyb/testCultural/detail2",
"style": {
"navigationBarTitleText": "算投档",
"enablePullDownRefresh": true
}
}
],
"subPackages": [

File diff suppressed because it is too large Load Diff

View File

@ -1,13 +1,10 @@
<script>
import StaticConstant from "@/common/StaticConstant";
import ApiConstant from "@/common/ApiConstant";
import Request from '@/common/request'
import ImagesConstant from "@/common/ImagesConstant";
import {arrayIsNotEmpty,stringIsNotEmpty} from "@/common/util";
import vip from "../vip/index.vue";
import CommonTool from "@/common/js/commonTool";
let request = new Request()
const app = getApp()
//
const MAX_CACHE_DATA = 100;
//
@ -19,12 +16,6 @@ export default {
vip() {
return vip
},
StaticConstant() {
return StaticConstant
},
ImagesConstant() {
return ImagesConstant
}
},
data() {
return {
@ -64,7 +55,7 @@ export default {
},
/*筛选项 参数 start*/
defaultSelected: [],
menuList: StaticConstant.fillVolunteerMenuData,
menuList: app.globalData.StaticConstant.fillVolunteerMenuData,
/*筛选项 参数 end*/
tabIndex: 0,
scrollInto: "",
@ -87,18 +78,18 @@ export default {
volunteerUndergraduateList: [],//
volunteerMap: new Map()
},//
years: StaticConstant.years,
years: app.globalData.StaticConstant.years,
//
status: 'more',
statusTypes: StaticConstant.loadStatusTypes,
contentText: StaticConstant.loadContentText,
statusTypes: app.globalData.StaticConstant.loadStatusTypes,
contentText: app.globalData.StaticConstant.loadContentText,
}
},
onShow(e) {
this.userInfo = uni.getStorageSync('userInfo')
},
onLoad(e) {
this.systemName = CommonTool.getSystemName()
this.systemName = app.globalData.CommonTool.getSystemName()
this.vipInfo = uni.getStorageSync('vipInfo')
if (e.batch && e.volunteerId) {
//
@ -186,7 +177,7 @@ export default {
},
loadMenu() {
//
request.get(ApiConstant.Major.rulesEnrollrobabilityMenuList, {
app.globalData.Request.get(app.globalData.ApiConstant.Major.rulesEnrollrobabilityMenuList, {
professionalCategory: this.scoreInfo.professionalCategory
}, {showLoading: false}).then(r => {
if (r.success) {
@ -293,7 +284,7 @@ export default {
cancelText: '取消',
success: function (res) {
if (res.confirm) {
request.post(ApiConstant.Volunteer.volunteerSave, {
app.globalData.Request.post(app.globalData.ApiConstant.Volunteer.volunteerSave, {
volunteerId: that.filledVolunteer.volunteerId,
schoolCode: item.schoolCode,
majorCode: item.majorCode,
@ -356,7 +347,7 @@ export default {
}
}
}
request.get(ApiConstant.Volunteer.artVolunteerDetail, {id: this.filledVolunteer.volunteerId}).then(res => {
app.globalData.Request.get(app.globalData.ApiConstant.Volunteer.artVolunteerDetail, {id: this.filledVolunteer.volunteerId}).then(res => {
if (res.success) {
let dataResult = res.result
//
@ -563,7 +554,7 @@ export default {
kyjxStrs:kyjxStrs,
scoreId: this.scoreInfo.id,
}
request.get(ApiConstant.Major.recommendMajorPage, params).then(res => {
app.globalData.Request.get(app.globalData.ApiConstant.Major.recommendMajorPage, params).then(res => {
if (res.success) {
let result = res.result
let allNumber = result.allNumber
@ -632,13 +623,13 @@ export default {
},
checkBao(e) {
if (e >= 93) {
return ImagesConstant.bao.kebaodi;
return app.globalData.ImagesConstant.bao.kebaodi;
} else if (e < 93 && e >= 74) {
return ImagesConstant.bao.jiaowentuo;
return app.globalData.ImagesConstant.bao.jiaowentuo;
} else if (e < 74 && e >= 60) {
return ImagesConstant.bao.kechongji;
return app.globalData.ImagesConstant.bao.kechongji;
}
return ImagesConstant.bao.nanluqu;
return app.globalData.ImagesConstant.bao.nanluqu;
},
checkColorText(e) {
if (this.vipInfo && this.vipInfo.vipLevel < 2) {
@ -688,7 +679,7 @@ export default {
// key
let eKey = e.enrollmentCode + "_" + e.majorCode + "_" + e.schoolCode
this.otherMajor.status = 'loading'
request.get(ApiConstant.Major.recommendSchoolOtherMajor, params, {showLoad: false}).then(res => {
app.globalData.Request.get(app.globalData.ApiConstant.Major.recommendSchoolOtherMajor, params, {showLoad: false}).then(res => {
console.log('返回值')
console.log(res)
if (res.success && res.result) {
@ -755,7 +746,8 @@ export default {
})
return
}
}
},
},
onPageScroll(e) { //
//600//600
@ -796,7 +788,7 @@ export default {
<text style="font-size: 50rpx">我的成绩</text>
</view>
<view class="flex-item-2" @click="goto('/pages/zyb/score/edit?scoreId='+this.scoreInfo.id)">
<image :src="ImagesConstant.edit" class="icon50 float-right" style="line-height: 50rpx"/>
<image :src="app.globalData.ImagesConstant.edit" class="icon50 float-right" style="line-height: 50rpx"/>
</view>
</view>
@ -898,7 +890,7 @@ export default {
<view class="flex" @click="goto('/pages/zyb/school/detail?schoolCode='+item.schoolCode)">
<!--院校图片-->
<view class="flex-item-22">
<image :src="item.schoolIcon||ImagesConstant.defaultIcon" class="icon128"/>
<image :src="item.schoolIcon||app.globalData.ImagesConstant.defaultIcon" class="icon128"/>
</view>
<!--院校代码-->
<view class="flex-item-77">
@ -940,7 +932,8 @@ export default {
{{item.studentConvertedScore}}
</text>
</view>
<view style="float: right;line-height: 50rpx;" class="font-weight-600" v-if="item.studentScore">
<!--v-if="item.studentScore"-->
<view style="float: right;line-height: 50rpx;" class="font-weight-600" v-show="app.globalData.StaticConstant.showZeSuan">
<text>折合分</text>
<text class="font-size-mini margin-left-10" :style="'color:'+checkColorText(item.enrollProbability)">
{{ item.studentScore }}
@ -961,7 +954,7 @@ export default {
</view>
<view class="flex-item-5" style="line-height: 40rpx">
<view class="flex" style="float: right">
<text>{{ StaticConstant.year }}省内计划录取</text>
<text>{{ app.globalData.StaticConstant.year }}省内计划录取</text>
<text v-if="item.planNum" class="green font-weight-600">{{ item.planNum }}</text>
<text v-else class="green">暂未发布</text>
</view>
@ -969,7 +962,7 @@ export default {
</view>
<view class="flex" style="line-height: 50rpx">
<view class="flex-item-7">
<text>{{ StaticConstant.year }}录取方式:</text>
<text>{{ app.globalData.StaticConstant.year }}录取方式:</text>
<text v-if="item.rulesEnrollProbability" class="blue">{{ item.rulesEnrollProbability }}</text>
<text v-else class="blue">暂未发布</text>
</view>
@ -993,7 +986,7 @@ export default {
<text class="darkGray font-weight-550">{{ otherMajor.schoolName }}</text>
</view>
<view class="flex-item-2">
<image @click="onOtherMajorClose" :src="ImagesConstant.close" class="icon32 float-right"
<image @click="onOtherMajorClose" :src="app.globalData.ImagesConstant.close" class="icon32 float-right"
style="position: relative;top: 5rpx"/>
</view>
</view>
@ -1046,7 +1039,7 @@ export default {
</view>
</view>
<view class="flex" style="float: right">
<text>{{ StaticConstant.year }}省内计划录取</text>
<text>{{ app.globalData.StaticConstant.year }}省内计划录取</text>
<text v-if="otherMajor.nowMajor.planNum" class="green font-weight-600">{{
otherMajor.nowMajor.planNum
}}
@ -1057,7 +1050,7 @@ export default {
</view>
<view class="flex" style="line-height: 50rpx">
<view class="flex-item-7">
<text>{{ StaticConstant.year }}录取方式:</text>
<text>{{ app.globalData.StaticConstant.year }}录取方式:</text>
<text v-if="otherMajor.nowMajor.rulesEnrollProbability" class="blue">
{{ otherMajor.nowMajor.rulesEnrollProbability }}
</text>
@ -1066,7 +1059,7 @@ export default {
<view class="flex-item-3" v-if="otherMajor.nowMajor.enrollProbability">
<view class="radius10 font-weight-b" @click="saveVolunteer(otherMajor.nowMajor)"
:class="otherMajor.nowMajor.volunteerIndexs?'volunteerIndexs':'saveVolunteer'">
<image :src="otherMajor.nowMajor.volunteerIndexs?ImagesConstant.duigou_orange:ImagesConstant.add_orange"
<image :src="otherMajor.nowMajor.volunteerIndexs?app.globalData.ImagesConstant.duigou_orange:app.globalData.ImagesConstant.add_orange"
class="icon32"/>
<text>{{
otherMajor.nowMajor.volunteerIndexs ? '志愿' + otherMajor.nowMajor.volunteerIndexs : '加入志愿表'
@ -1124,7 +1117,7 @@ export default {
</view>
</view>
<view class="flex" style="float: right">
<text>{{ StaticConstant.year }}省内计划录取</text>
<text>{{ app.globalData.StaticConstant.year }}省内计划录取</text>
<text v-if="item.planNum" class="green font-weight-600">{{ item.planNum }}</text>
<text v-else class="green">暂未发布</text>
</view>
@ -1132,14 +1125,14 @@ export default {
</view>
<view class="flex" style="line-height: 50rpx">
<view class="flex-item-7">
<text>{{ StaticConstant.year }}录取方式:</text>
<text>{{ app.globalData.StaticConstant.year }}录取方式:</text>
<text v-if="item.rulesEnrollProbability" class="blue">{{ item.rulesEnrollProbability }}</text>
<text v-else class="blue">暂未发布</text>
</view>
<view class="flex-item-3" v-if="item.enrollProbability">
<view class="radius10 font-weight-b" @click="saveVolunteer(item)"
:class="item.volunteerIndexs?'volunteerIndexs':'saveVolunteer'">
<image :src="item.volunteerIndexs?ImagesConstant.duigou_orange:ImagesConstant.add_orange"
<image :src="item.volunteerIndexs?app.globalData.ImagesConstant.duigou_orange:app.globalData.ImagesConstant.add_orange"
class="icon32"/>
<text>{{ item.volunteerIndexs ? '志愿' + item.volunteerIndexs : '加入志愿表' }}</text>
</view>

View File

@ -7,6 +7,8 @@ import {arrayIsNotEmpty} from "@/common/util";
import vip from "../vip/index.vue";
import {stringIsNotEmpty} from "../../../common/util";
const app = getApp()
let request = new Request()
//
const MAX_CACHE_DATA = 100;
@ -16,6 +18,9 @@ const MAX_CACHE_PAGE = 3;
export default {
name: "模拟填报",
computed: {
app(){
return app
},
vip() {
return vip
},
@ -457,7 +462,7 @@ export default {
}
indexs = 1;
let volunteerUndergraduateList2 = [];
while (indexs <= 35) {
while (indexs <= app.globalData.StaticConstant.benZhiYuanNum) {
let record = {actives: false, indexs: indexs}
for (let i = 0; i < volunteerUndergraduateList.length; i++) {
if (volunteerUndergraduateList[i].indexs === indexs) {
@ -478,7 +483,7 @@ export default {
}
indexs = 1;
let volunteerJuniorCollegeList2 = [];
while (indexs <= 35) {
while (indexs <= app.globalData.StaticConstant.zhuanZhiYuanNum) {
let record = {
actives: false,
indexs: indexs
@ -719,6 +724,17 @@ export default {
}
return ImagesConstant.bao.nanluqu;
},
//
formatDecimal(e) {
try {
if(e <= 0){
return '无概率'
}
return parseFloat(e).toFixed(2) + '%';
} catch (error) {
return '??';
}
},
checkColorText(e) {
if (this.vipInfo && this.vipInfo.vipLevel < 2) {
return '#868686';
@ -996,7 +1012,7 @@ export default {
<view class="flex-item-35" v-if="selectForm.kslx==='统考'">
<view style="float: right;line-height: 50rpx;" class="font-weight-600">
<text class="font-size-mini" :style="'color:'+checkColorText(item.enrollProbability)">
{{ vipInfo && vipInfo.vipLevel >= 2 ? item.enrollProbability : '??' }}%
{{ vipInfo && vipInfo.vipLevel >= 2 ? formatDecimal(item.enrollProbability) : '??' }}%
</text>
<image :src="checkBao(item.enrollProbability)" class="icon50" v-if="vipInfo && vipInfo.vipLevel>=2"/>
</view>
@ -1014,6 +1030,7 @@ export default {
<view class="flex-item-65 slateGray" style="line-height: 50rpx">
<text v-if="item.state==='新增'" style="color: red;font-size: 25rpx">新增</text>
<text class="tag">[{{ item.enrollmentCode }}]{{ item.majorName }}</text>
<text class="tag">{{item.tuition}}</text>
<text v-if="item.limitation">{{ item.majorDetail }}</text>
<text class="margin-left-10">
<text class="tag" v-if="item.otherScoreLimitation && item.otherScoreLimitation!==''">
@ -1030,7 +1047,7 @@ export default {
{{ item.privateStudentScore||item.studentConvertedScore }}
</text>
</view>
<view style="float: right;line-height: 50rpx;" class="font-weight-600" v-if="item.studentScore">
<view style="float: right;line-height: 50rpx;" class="font-weight-600" v-show="app.globalData.StaticConstant.showZeSuan">
<text>折合分</text>
<text class="font-size-mini margin-left-10" :style="'color:'+checkColorText(item.enrollProbability)">
{{ item.studentScore }}
@ -1059,7 +1076,7 @@ export default {
</view>
<view class="flex" style="line-height: 50rpx">
<view class="flex-item-7">
<text>{{ StaticConstant.year }}录取方式:</text>
<text>{{ app.globalData.StaticConstant.year }}录取方式1:</text>
<text v-if="item.rulesEnrollProbability" class="blue">{{ item.rulesEnrollProbability }}</text>
<text v-else class="blue">暂未发布</text>
</view>
@ -1095,7 +1112,8 @@ export default {
<view class="flexWrap" @click="goto('/pages/zyb/school/detail?schoolCode='+otherMajor.nowMajor.schoolCode)">
<view class="flex-item-10 flexWrap">
<view class="flex-item-65 font-weight-b" style="line-height: 50rpx">
<text class="">[{{ 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 v-if="otherMajor.nowMajor.majorDetail">{{ otherMajor.nowMajor.majorDetail }}</text>
<!-- <text v-if="otherMajor.nowMajor.limitation">({{otherMajor.nowMajor.limitation}})</text>-->
<text class="margin-left-10">
@ -1108,7 +1126,7 @@ export default {
<view class="flex-item-35">
<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)">
{{ (vipInfo && vipInfo.vipLevel >= 2) ? otherMajor.nowMajor.enrollProbability : '??' }}%
{{ (vipInfo && vipInfo.vipLevel >= 2) ? formatDecimal(otherMajor.nowMajor.enrollProbability) : '??' }}%
</text>
<image :src="checkBao(otherMajor.nowMajor.enrollProbability)" class="icon50"
v-if="(vipInfo&&vipInfo.vipLevel>=2)"/>
@ -1125,7 +1143,7 @@ export default {
</view>
</view>
<view class="flex-item-5" style="line-height: 40rpx">
<view class="flex" style="float: right">
<view class="flex" style="float: right" v-show="app.globalData.StaticConstant.showZeSuan">
<view style="float: right;line-height: 50rpx;" class="font-weight-600">
<text>折合分</text>
<text class="font-size-mini margin-left-10"
@ -1175,7 +1193,8 @@ export default {
<view class="flexWrap" @click="goto('/pages/zyb/school/detail?schoolCode='+item.schoolCode)">
<view class="flex-item-10 flexWrap">
<view class="flex-item-65 font-weight-b" style="line-height: 50rpx">
<text class="">[{{ item.enrollmentCode }}]{{ item.majorName }}</text>
<text class="" style="display: flex;">[{{ item.enrollmentCode }}]{{ item.majorName }}</text>
<text class="tag">{{item.tuition}}</text>
<text v-if="item.majorDetail">{{ item.majorDetail }}</text>
<!-- <text v-if="item.limitation">({{item.limitation}})</text>-->
<text class="margin-left-10">
@ -1187,7 +1206,7 @@ export default {
<view class="flex-item-35">
<view style="float: right;line-height: 50rpx;" class="font-weight-600" v-if="selectForm.kslx==='统考'">
<text class="font-size-mini" :style="'color:'+checkColorText(item.enrollProbability)">
{{ (vipInfo && vipInfo.vipLevel >= 2) ? item.enrollProbability : '??' }}%
{{ (vipInfo && vipInfo.vipLevel >= 2) ? formatDecimal(item.enrollProbability) : '??' }}%
</text>
<image :src="checkBao(item.enrollProbability)" class="icon50" v-if="vipInfo&&vipInfo.vipLevel>=2"/>
</view>
@ -1205,7 +1224,8 @@ export default {
<view class="flex-item-5" style="line-height: 40rpx">
<view class="flex" style="float: right">
<view style="float: right;line-height: 50rpx;" class="font-weight-600"
v-if="item.studentConvertedScore">
v-show="app.globalData.StaticConstant.showZeSuan">
<!--v-if="item.studentConvertedScore"-->
<text>折合分</text>
<text class="font-size-mini margin-left-10" :style="'color:'+checkColorText(item.enrollProbability)">
{{ vipInfo && vipInfo.vipLevel >= 2 ? item.studentScore : '??' }}

View File

@ -15,6 +15,9 @@ export default {
computed: {
ImagesConstant() {
return ImagesConstant
},
app(){
return getApp()
}
},
data() {
@ -58,13 +61,14 @@ export default {
nowYear: StaticConstant.year,
allCollapseItemList: [
{batchLabel: '提前批', batch: '提前批', type: '顺序志愿', max: 1, status: false},
{batchLabel: '本科批', batch: '本科批', type: '平行志愿', max: 35, status: false},
{batchLabel: '高职高专', batch: '高职高专', type: '平行志愿', max: 35, status: false},
{batchLabel: '本科批', batch: '本科批', type: '平行志愿', max: 64, status: false},
{batchLabel: '高职高专', batch: '高职高专', type: '平行志愿', max: 64, status: false},
],
collapseItemList: []
}
},
onShow() {
console.log(app.globalData)
//
let userInfo = uni.getStorageSync('userInfo')
if (userInfo) {
@ -136,8 +140,8 @@ export default {
//
if (this.scoreInfo.professionalCategory === '体育类') {
this.allCollapseItemList = [
{batchLabel: '本科批', batch: '本科批', type: '平行志愿', max: 35, status: false},
{batchLabel: '高职高专', batch: '高职高专', type: '平行志愿', max: 35, status: false},
{batchLabel: '本科批', batch: '本科批', type: '平行志愿', max: 64, status: false},
{batchLabel: '高职高专', batch: '高职高专', type: '平行志愿', max: 64, status: false},
]
}
if (this.scoreInfo.batch) {
@ -196,7 +200,7 @@ export default {
}
indexs = 1;
let volunteerUndergraduateList2 = [];
while (indexs <= 35) {
while (indexs <= 64) {
let record = {actives: false, indexs: indexs}
for (let i = 0; i < volunteerUndergraduateList.length; i++) {
if (volunteerUndergraduateList[i].indexs === indexs) {
@ -218,7 +222,7 @@ export default {
}
indexs = 1;
let volunteerJuniorCollegeList2 = [];
while (indexs <= 35) {
while (indexs <= 64) {
let record = {
actives: false,
indexs: indexs
@ -359,7 +363,7 @@ export default {
return;
}
} else {
if (indexs > (this.scoreInfo.professionalCategory==='体育类'?12:35) || indexs < 0) {
if (indexs > (this.scoreInfo.professionalCategory==='体育类'?64:64) || indexs < 0) {
uni.showToast({title: '您输入的序号超出', icon: "none"});
this.moveVolunteer.indexs = ''
return;

View File

@ -1,19 +1,9 @@
<script>
import StaticConstant from "@/common/StaticConstant";
import ImagesConstant from "@/common/ImagesConstant";
import ApiConstant from "@/common/ApiConstant";
import Request from "@/common/request";
import JumpTool from "@/common/js/jumpTool";
import CommonTool from "@/common/js/commonTool";
let request = new Request()
const app = getApp()
export default {
name: "home",
components: {},
computed: {
StaticConstant() {
return StaticConstant
}
},
data() {
return {
@ -22,17 +12,17 @@ export default {
userStatus: false,
scoreInfo: null,
zyNum: null,//
defaultIcon: ImagesConstant.defaultIcon,//
defaultIcon: app.globalData.ImagesConstant.defaultIcon,//
fillVolunteer: {
all: null,//
kcj: null,//
jwt: null,//
kbd: null//
},
options: StaticConstant.HomeOptions,
options: app.globalData.StaticConstant.HomeOptions,
statusList: [{status: 'noMore'}, {status: 'noMore'},],
statusTypes: StaticConstant.loadStatusTypes,
contentText: StaticConstant.loadContentText,
statusTypes: app.globalData.StaticConstant.loadStatusTypes,
contentText: app.globalData.StaticConstant.loadContentText,
admissionsRegulationsList: [],//
//tab
@ -48,7 +38,7 @@ export default {
}
},
onLoad(){
this.systemName = CommonTool.getSystemName()
this.systemName = app.globalData.CommonTool.getSystemName()
if(this.systemName === '体育志愿宝'){
this.playerType = '体育考生'
for (let i = 0; i < this.options.length; i++) {
@ -63,6 +53,8 @@ export default {
title: this.systemName
});
this.getAdmissionsRegulationsList()
this.getSystemConfig()
},
onShow() {
//
@ -104,18 +96,18 @@ export default {
console.log('1111')
if (this.options && this.options[e.detail.index].url) {
if (this.options[e.detail.index].title !== '艺考考研' && this.options[e.detail.index].title !== '招生章程') {
if (this.checkUserScore()) {
JumpTool.goto(this.options[e.detail.index].url)
}
// if (this.checkUserScore()) {
app.globalData.JumpTool.goto(this.options[e.detail.index].url)
// }
} else {
JumpTool.goto(this.options[e.detail.index].url)
app.globalData.JumpTool.goto(this.options[e.detail.index].url)
}
}
},
/*判断用户是否登录*/
checkUserStatus() {
if (!this.userStatus) {
JumpTool.goLogin()
app.globalData.JumpTool.goLogin()
return false
}
},
@ -124,32 +116,32 @@ export default {
//
this.checkUserStatus()
if (!this.scoreInfo) {
JumpTool.openScoreEdit()
app.globalData.JumpTool.openScoreEdit()
return false
} else {
return true
}
},
onClickEditUserScore() {
JumpTool.openScoreEdit()
app.globalData.JumpTool.openScoreEdit()
},
/*点击AI一键填报*/
onClickAi() {
if (this.checkUserScore()) {
JumpTool.goto('/pages/zyb/fillVolunteer/aiAuto')
app.globalData.JumpTool.goto('/pages/zyb/fillVolunteer/aiAuto')
}
},
/*点击模拟填报*/
onClickMn() {
if (this.checkUserScore()) {
//JumpTool.goto('/pages/zyb/fillVolunteer/index')
JumpTool.goto('/pages/zyb/fillVolunteer/mockList')
//app.globalData.JumpTool.goto('/pages/zyb/fillVolunteer/index')
app.globalData.JumpTool.goto('/pages/zyb/fillVolunteer/mockList')
}
},
/*获取用户的分数信息*/
getUserScore() {
request.get(ApiConstant.Score.getScore, {}).then(res => {
app.globalData.Request.get(app.globalData.ApiConstant.Score.getScore, {}).then(res => {
if (res.success) {
if (res.result) {
//
@ -182,7 +174,7 @@ export default {
pageNum: this.tabs[this.currentTab].current,
pageSize: 5
}
request.get(ApiConstant.Article.articlePage, params).then(res => {
app.globalData.Request.get(app.globalData.ApiConstant.Article.articlePage, params).then(res => {
console.log(res)
if (res.success) {
this.tabs[this.currentTab].current = res.result.current
@ -235,9 +227,21 @@ export default {
console.log(this.scrollLeft, 60, id)
}
},
goArticleDetail(e){
JumpTool.goArticleDetail(e)
},
goArticleDetail(e){
app.globalData.JumpTool.goArticleDetail(e)
},
async getSystemConfig(){
let miniConfig = await app.globalData.CommonTool.loadStaticConfig('miniConfig')
console.log(miniConfig)
app.globalData.StaticConstant.year = miniConfig.nowYear
app.globalData.StaticConstant.showZeSuan = miniConfig.showZeSuan
app.globalData.StaticConstant.tiQianPiZhiYuanNum = miniConfig.tiQianPiZhiYuanNum
app.globalData.StaticConstant.benZhiYuanNum = miniConfig.zhuanZhiYuanNum
app.globalData.StaticConstant.zhuanZhiYuanNum = miniConfig.zhuanZhiYuanNum
app.globalData.StaticConstant.contact = miniConfig.contact
app.globalData.StaticConstant.memberDeadline = miniConfig.memberDeadline
},
}
}
</script>

View File

@ -1,9 +1,13 @@
<!--志愿卡说明-->
<script>
import commonTool from "@/common/js/commonTool";
const app = getApp()
export default {
name: "volunteerCardDesc",
computed: {
app(){
return app
}
},
data() {
return {
@ -19,7 +23,7 @@ export default {
<template>
<view class="body">
<text class="text-l uni-flex flex">适用范围:{{playerType}}文理科考生(自主招生暂不适用)</text>
<text class="text-l uni-flex flex">使用期限:自购买起截止到2024-08-31有效</text>
<text class="text-l uni-flex flex">使用期限:自购买起截止到{{app.globalData.StaticConstant.memberDeadline}}有效</text>
<text class="text-l uni-flex flex">分数修改次数:每届服务期内高考分数放榜前可修改10次放榜后只可修改1次</text>
<text class="text-l uni-flex flex">系统数据来源于及第生涯部门由合作网站提供</text>
<text class="text-l uni-flex flex">部分年份数据如果为空可能是当年不在查询地招生系统数据不包含高考加分如果录取数据与院校公布数据不一致请以高校正式公布的数据为准</text>

View File

@ -55,6 +55,7 @@ export default {
professionalCategoryScoreMax: '',//
contentHeight: 600,
reloadMajorModalMessageConfig:{},
popupContent: '',
}
},
async onLoad() {
@ -127,16 +128,7 @@ export default {
...this.saveScoreInfo
}).then(res => {
if (res.success) {
let scoreInfo = res.result
request.getUserScore()
/*uni.removeStorageSync('scoreInfo')//清除之前的成绩缓存
uni.setStorageSync('scoreInfo', scoreInfo)
uni.removeStorageSync('fillVolunteer')//
//
let all = parseInt(scoreInfo.kcjNum) + parseInt(scoreInfo.jwtNum) + parseInt(scoreInfo.kbdNum);
//+parseInt(scoreInfo.nlqNum)
let fillVolunteer = {jwt: scoreInfo.jwtNum, kbd: scoreInfo.kbdNum, kcj: scoreInfo.kcjNum, allNumber: all}
uni.setStorageSync('fillVolunteer', fillVolunteer)*/
setTimeout(() => {
uni.reLaunch({
url: '/pages/zyb/home'
@ -215,7 +207,7 @@ export default {
}else{
//
if(this.scoreInfo.subjectList.length <= 1){
this.scoreInfo.subjectList.push(e);
this.scoreInfo.subjectList.push(e);
}
}
},
@ -302,17 +294,35 @@ export default {
if (this.scoreInfo.professionalCategory !== '表演类') {
title += " " + (this.scoreInfo.professionalScore ? (this.pCategoryChildrenList && this.pCategoryChildrenList.length > 0 ? '主项成绩:' : '统考成绩:') + this.scoreInfo.professionalScore : "")
}
uni.showModal({
title: '确认高考成绩',
content: title,
confirmText: '确定',
cancelText: '取消',
success: function (res) {
if (res.confirm) {
that.saveScore()
}
if (this.pCategoryChildrenList && this.pCategoryChildrenList.length > 0) {
for (let i = 0; i < this.pCategoryChildrenList.length; i++) {
title += '\n ' + this.pCategoryChildrenList[i] + ':' + this.scoreInfo[this.checkChildrenNameToKey(this.pCategoryChildrenList[i])]
}
});
}
this.popupContent = title;
if(this.formRuleFlag){
this.$refs.popup.open() //
}
// uni.showModal({
// title: '',
// content: title,
// confirmText: '',
// cancelText: '',
// success: function (res) {
// if (res.confirm) {
// that.saveScore()
// }
// }
// });
},
handleCancel(){
this.$refs.popup.close()
},
handleConfirm() {
this.$refs.popup.close() //
this.saveScore() //
},
formReset: function (e) {
console.log('清空数据')
@ -414,6 +424,19 @@ export default {
请输入成绩
</view>
</view>
<!-- 弹窗组件 -->
<uni-popup ref="popup" type="dialog">
<view class="popup-content">
<view style="font-weight: bold;font-size: 1em">确认高考成绩</view>
<br/>
<view>{{popupContent}}</view>
</view>
<view class="popup-buttons">
<button @click="handleCancel">取消</button>
<button @click="handleConfirm">确定</button>
</view>
</uni-popup>
<!--表单-->
<view class="uni-padding-wrap uni-common-mt border-top">
<view class="forms">
@ -716,5 +739,18 @@ export default {
margin: 20rpx;
}
.popup-content {
white-space: pre-line; /* 关键!让 \n 生效 */
padding: 20px;
text-align: center;
background-color: white;
}
.popup-buttons {
display: flex;
justify-content: space-around;
padding: 10px;
background-color: white;
}
/*底部抽屉 报考方向内容 end*/
</style>

View File

@ -0,0 +1,322 @@
<template>
<view class="container">
<!-- College Info Section -->
<view class="college-info-section">
<view class="college-header-top">
<!-- <image class="college-logo" src="/static/college-logo.png" mode="aspectFit"></image> -->
<view class="college-details">
<text class="college-name">吉林艺术学院</text>
<view class="college-tags">
<text class="college-tag">本科</text>
<text class="college-tag">艺术类</text>
<text class="college-tag">公办</text>
</view>
<text class="college-location">吉林 长春市</text>
</view>
</view>
<view class="college-nav">
<view class="nav-item">
<view class="nav-icon-placeholder"></view> <!-- Icon placeholder -->
<text>院校介绍</text>
</view>
<view class="nav-item">
<view class="nav-icon-placeholder"></view> <!-- Icon placeholder -->
<text>招录数据</text>
</view>
<view class="nav-item">
<view class="nav-icon-placeholder"></view> <!-- Icon placeholder -->
<text>录取信息</text>
</view>
</view>
</view>
<!-- Major Section -->
<view class="section major-section">
<text class="section-title">专业名称</text>
<view class="major-detail">
<view class="major-text-info">
<text class="major-name">产品设计[文科](提前批)</text>
<text class="major-info">(专业组61)(13200/; 办学地点: 吉林艺术学院红旗街校区)</text>
</view>
<view class="major-count">
<view class="count-square"></view>
<text>共8个</text>
</view>
</view>
</view>
<!-- Prediction Result Section -->
<view class="section prediction-section">
<view class="prediction-header">
<text class="prediction-title">测算结果</text>
</view>
<view class="prediction-content">
<text class="required-score">当前需要超过528分</text>
</view>
</view>
<!-- Notes/Score Thresholds Section -->
<view class="section notes-section">
<text class="section-title">:</text>
<text class="note-item">2023河南文化分控线为 <text class="highlight-score">370</text> </text>
<text class="note-item">2023河南专业分控线为 <text class="highlight-score">216</text> </text>
</view>
<!-- Admission Method Section -->
<view class="section admission-method-section">
<text class="section-title">录取方式</text>
<text class="method-item">*<text class="highlight-score">0.067</text>+*<text class="highlight-score">0.167</text></text>
<text class="method-item">院校限制 暂无</text>
</view>
<!-- Bottom Button -->
<view class="bottom-button-container">
<button class="collect-button">收藏院校</button>
</view>
</view>
</template>
<script>
export default {
name: "test-cultural-detail2",
components: {},
data() {
return {
//
}
},
methods: {
goBack() {
uni.navigateBack(); //
}
//
}
}
</script>
<style scoped>
.container {
background-color: #f8f8f8; /* Slightly grey background */
min-height: 100vh;
padding-bottom: 100rpx; /* Space for the bottom button */
}
.eye-icon {
font-size: 36rpx; /* Adjust eye icon size */
}
/* College Info Section */
.college-info-section {
background-color: #fff;
padding: 30rpx;
margin-top: 20rpx;
}
.college-header-top {
display: flex;
align-items: center;
margin-bottom: 30rpx;
}
.college-logo {
width: 120rpx;
height: 120rpx;
margin-right: 30rpx;
border-radius: 50%; /* If logo is round */
background-color: #eee; /* Placeholder background */
}
.college-details {
flex: 1;
}
.college-name {
font-size: 36rpx;
font-weight: bold;
display: block;
}
.college-tags {
display: flex;
margin: 10rpx 0;
}
.college-tag {
font-size: 24rpx;
color: #007aff; /* Blue/teal like color */
border: 1rpx solid #007aff;
padding: 4rpx 12rpx;
margin-right: 15rpx;
border-radius: 8rpx;
}
.college-location {
font-size: 28rpx;
color: #666;
display: block;
margin-top: 8rpx;
}
.college-nav {
display: flex;
justify-content: space-around;
text-align: center;
border-top: 1rpx solid #eee;
padding-top: 30rpx;
}
.nav-item {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
font-size: 28rpx;
color: #333;
}
.nav-item text {
margin-top: 8rpx;
}
.nav-icon-placeholder {
width: 60rpx;
height: 60rpx;
background-color: #e0e0e0; /* Placeholder grey circle/square */
border-radius: 50%; /* Or remove for square */
}
/* Generic Section Styling */
.section {
background-color: #fff;
padding: 30rpx;
margin-top: 20rpx;
}
.section-title {
font-size: 28rpx;
color: #999;
margin-bottom: 20rpx;
display: block; /* Ensures title takes full width */
}
/* Major Section */
.major-detail {
display: flex;
justify-content: space-between;
align-items: flex-start; /* Align items to the top */
}
.major-text-info {
flex: 1; /* Allows text to take available space and wrap */
margin-right: 20rpx; /* Space between text and count */
}
.major-name {
font-size: 32rpx;
font-weight: bold;
display: block;
margin-bottom: 10rpx;
}
.major-info {
font-size: 26rpx;
color: #666;
display: block;
}
.major-count {
display: flex;
flex-direction: column; /* Stack icon and text */
align-items: center; /* Center content horizontally */
font-size: 28rpx;
color: #333;
}
.count-square {
width: 40rpx;
height: 40rpx;
background-color: #00c8a8; /* Teal color from image */
margin-bottom: 8rpx; /* Space between square and text */
border-radius: 8rpx;
}
/* Prediction Result Section */
.prediction-section {
text-align: right; /* Align content to the right */
}
.prediction-header {
/* This title seems right aligned but separate */
/* It might be better to place it within the content area and align right */
/* Or use flex to push it right */
display: flex;
justify-content: flex-end;
margin-bottom: 10rpx;
}
.prediction-title {
font-size: 28rpx;
color: #00c8a8; /* Teal color */
/* Removing section-title margin-bottom if using prediction-header margin */
}
.prediction-content {
/* Content below the title */
text-align: right;
}
.required-score {
font-size: 36rpx;
font-weight: bold;
color: #333;
}
/* Notes/Score Thresholds Section */
.notes-section text {
display: block; /* Each text on a new line */
font-size: 28rpx;
color: #333;
margin-bottom: 10rpx;
}
.notes-section text:last-child {
margin-bottom: 0;
}
.highlight-score {
color: #007aff; /* Blue/teal highlight color */
}
/* Admission Method Section */
.admission-method-section .method-item {
display: block; /* Each item on a new line */
font-size: 28rpx;
color: #333;
margin-bottom: 10rpx;
}
.admission-method-section .method-item:last-child {
margin-bottom: 0;
}
/* Bottom Button */
.bottom-button-container {
position: fixed; /* Fix button to the bottom */
bottom: 0;
left: 0;
right: 0;
padding: 20rpx 30rpx;
background-color: #fff;
box-shadow: 0 -2rpx 4rpx rgba(0,0,0,0.1); /* Add shadow above button */
z-index: 10; /* Ensure button is above other content */
}
.collect-button {
width: 100%;
height: 90rpx;
line-height: 90rpx;
background-color: #e0e0e0; /* Grey background */
color: #666; /* Grey text */
font-size: 34rpx;
border-radius: 10rpx;
border: none;
outline: none;
}
</style>

View File

@ -0,0 +1,451 @@
<script>
import Request from '@/common/request';
import ImagesConstant from "@/common/ImagesConstant";
import commonTool from "@/common/js/commonTool";
let request = new Request()
export default {
name: "user-index",
components: {},
computed: {
commonTool() {
return commonTool
},
ImagesConstant() {
return ImagesConstant
},
},
data() {
return {
imId:'Shilo_',
systemName:'',
avatar: ImagesConstant.systemIcon,
userInfo: {},
vipInfo: {},
scoreInfo: {},//
volunteerInfo: {},//
itemList: [
{
title: '会员卡激活',
icon:'/static/icons/gif/icons8-cards.gif',
url: '/pages/zyb/vip/cardamom'
},
// #ifdef MP-TOUTIAO
{
title: '我的订单',
icon:'/static/icons/gif/icons8-order.gif',
url: '/pages/zyb/order/list'
},
{
title: '联系客服',
type:'im',
icon:'/static/icons/gif/icons8-customer-service.gif',
},
// #endif
// #ifdef MP-WEIXIN
{
title: '联系客服',
type:'contact',
icon:'/static/icons/gif/icons8-customer-service.gif',
},
{
title: '专家一对一',
//icon: '/static/icons/linear/calendar.png',
icon: '/static/icons/gif/icons8-man.gif',
url: '/pages/zyb/other/updateLogs'
},
{
title: '商务合作',
//icon: '/static/icons/linear/quest.png',
icon: '/static/icons/gif/icons8-cooperate.gif',
method:'cooperate',
url: '/pages/zyb/other/commonProblem'
},
// #endif
/*{
title: '更新快报',
//icon: '/static/icons/linear/calendar.png',
icon: '/static/icons/gif/icons8-calendar.gif',
url: '/pages/zyb/other/updateLogs'
},*/
{
title: '我的收藏',
//icon: '/static/icons/linear/love.png',
icon: '/static/icons/gif/icons8-loading-heart.gif',
url: '/pages/zyb/user/myCollect'
},
{
title: '使用说明',
//icon: '/static/icons/linear/illustrate.png',
icon: '/static/icons/gif/detail.gif',
url: '/pages/zyb/other/useHelp'
},
/* {
title: '问题反馈',
//icon: '/static/icons/linear/quest.png',
icon: '/static/icons/gif/icons8-doubt.gif',
url: '/pages/zyb/other/commonProblem'
},*/
{
title: '常见问题',
//icon: '/static/icons/linear/quest.png',
icon: '/static/icons/gif/icons8-doubt.gif',
url: '/pages/zyb/other/commonProblem'
},
{
title: '设置',
//icon: '/static/icons/linear/settings.png',
icon: '/static/icons/gif/icons8-wotuishi-settings.gif',
url: '/pages/zyb/settings'
},
]
}
},
onShow() {
this.userInfo = uni.getStorageSync('userInfo')
if (this.userInfo === null || this.userInfo.id=== undefined) {
wx.reLaunch({
url: '/pages/zyb/login',
})
}
this.vipInfo = uni.getStorageSync('vipInfo')
this.getScore()
},
onLoad() {
this.systemName = commonTool.getSystemName()
if(this.systemName === '体育志愿宝'){
this.playerType = '体育考生'
}
},
methods: {
//
getScore() {
this.scoreInfo = uni.getStorageSync('scoreInfo')
if (this.scoreInfo) {
this.volunteerInfo = uni.getStorageSync('volunteer')
}
},
gotoEditScore() {
console.log('前往修改成绩页面')
this.goto('/pages/zyb/score/edit')
},
switchFillVolunteer() {
this.goto('/pages/zyb/fillVolunteer/my')
},
/*前往开通vip*/
gotoOpenVip() {
this.goto('/pages/zyb/vip/index')
},
/*商务合作弹框事件*/
cooperate(){
console.log('商务合作')
this.$refs.popup2.open("center")
},
cooperateClose(){
this.$refs.popup2.close()
},
goto(e) {
uni.navigateTo({
url: e,
nimationType: 'pop-in',
animationDuration: 2000
})
},
previewImage(e){
console.log('e', e);
uni.previewImage({
//
urls: [],
// /
current: ImagesConstant.customerServiceQrCode,
//
indicator:'default',
//
loop:false,
//
// longPressActions:{
// itemList:[this.l(''),this.l]
// },
success: res => {
console.log('res', res);
},
fail: err => {
console.log('err', err);
}
});
},
imCallback(e) {
console.log("跳转IM客服成功", e.detail);
},
onimError(e) {
console.log("拉起IM客服失败", e.detail);
},
}
}
</script>
<template>
<uni-popup ref="popup2" background-color="#fff" class="radius15">
<view class="popup-content radius15" style="padding: 30rpx 30rpx">
<view class="font-size-mini4 font-weight-b" style="text-align: center">添加老师微信</view>
<image @click="previewImage" :show-menu-by-longpress="true" :src="ImagesConstant.customerServiceQrCode" style="width: 600rpx;height: 800rpx"/>
<view class="flexWrap marginTopBot20 margin-top-20"><text class="text">联系人周老师</text></view>
<view class="flexWrap marginTopBot20"><text class="text">电话15090658223(微信同号)</text></view>
<view class="font-size-mini4 font-weight-b margin-top-20 margin-top-20" @click="cooperateClose" style="text-align: center">知道了</view>
</view>
</uni-popup>
<!-- 普通弹窗 -->
<uni-popup ref="popup" background-color="#fff" class="radius15">
<view class="popup-content radius15" style="padding: 30rpx 50rpx">
<view class="font-size-mini4 font-weight-b" style="text-align: center">商务合作</view>
<view class="flexWrap marginTopBot20 margin-top-20"><text class="text">联系人周老师</text></view>
<view class="flexWrap marginTopBot20"><text class="text">电话15090658223(微信同号)</text></view>
<view class="font-size-mini4 font-weight-b margin-top-20 margin-top-20" @click="cooperateClose" style="text-align: center">知道了</view>
</view>
</uni-popup>
<!--头部-->
<view class="header" style="z-index: 1">
<view class="uni-flex flex" style="padding: 30rpx 30rpx 0 30rpx" @click="goto('/pages/zyb/user/detail')">
<!--头像-->
<view class="flex-item2 t1">
<image class="avatar" :src="avatar"/>
</view>
<!--手机号-->
<view class="flex-item-7 t2">
<view class="flex font-weight-600">
<text style="line-height: 50rpx">{{ userInfo.realname }}</text>
</view>
<view class="flex">
<text style="line-height: 50rpx">{{ scoreInfo.province }}</text>
<text style="line-height: 50rpx;font-size: 24rpx">/2024</text>
</view>
</view>
<!--按钮-->
<view class="flex-item2" style="padding-top: 60rpx;">
<image class="arrow-right" :src="ImagesConstant.keyboard.arrowRight"/>
</view>
</view>
<!--开通vip提示-->
<view class="uni-flex flex white" style="margin-top: 30rpx">
<view class="flex-item-10 vipBackground" style="height: 50rpx;padding: 30rpx"
v-if="vipInfo && vipInfo.vipLevel>0">
<text>
{{ vipInfo.skuName || 'VIP' }}到期时间{{ commonTool.dateFormatYYYYMMDD(vipInfo.validTime) }}
</text>
<text class="float-right radius60" style="border: 1rpx solid white;padding: 0 20rpx" @click="gotoOpenVip">
查看更多
</text>
</view>
<view class="flex-item-10 vipBackground" style="height: 50rpx;line-height: 50rpx;padding: 30rpx;"
v-if="(!vipInfo) || !vipInfo.vipLevel || vipInfo.vipLevel===0">
<text>升级为VIP, 准确查大学录取率</text>
<text class="float-right radius60" style="border: 1rpx solid white;padding: 0 20rpx" @click="gotoOpenVip">
开通VIP
</text>
</view>
</view>
</view>
<view class="body" style="z-index: 2">
<!--我的成绩-->
<view class="uni-flex flex trow1">
<view class="flex-item-1">
<text style="font-size: 24rpx">我的成绩</text>
</view>
<view class="flex-item-7 trow1-center">
<view class="flexWrap margin-left-30">
<view class="flex-item-10">
<text class="margin-right-10">文化:{{ this.scoreInfo.culturalScore }}</text>
<text class="margin-right-10" v-if="scoreInfo && scoreInfo.professionalCategory!=='表演类'">{{scoreInfo.professionalCategory==='音乐类'?'主项':'统考'}}:{{ this.scoreInfo.professionalScore }}</text>
<br v-if="scoreInfo && scoreInfo.professionalCategory!=='表演类'"/>
<text v-if="scoreInfo && scoreInfo.yybysy">音表声乐:</text>
<text class="margin-right-10" v-if="scoreInfo && scoreInfo.yybysy">{{ scoreInfo && scoreInfo.yybysy }}</text>
<text v-if="scoreInfo && scoreInfo.yybyqy">音表器乐:</text>
<text class="margin-right-10" v-if="scoreInfo && scoreInfo.yybyqy">{{ scoreInfo && scoreInfo.yybyqy }}</text>
<text v-if="scoreInfo && scoreInfo.yyjy">音乐教育:</text>
<text class="margin-right-10" v-if="scoreInfo && scoreInfo.yyjy">{{ scoreInfo && scoreInfo.yyjy }}</text>
<!--表演类-->
<text v-if="scoreInfo && scoreInfo.fzby">服装表演:</text>
<text class="margin-right-10" v-if="scoreInfo && scoreInfo.fzby">{{ scoreInfo && scoreInfo.fzby }}</text>
<text v-if="scoreInfo && scoreInfo.xjysdy">影视导演:</text>
<text class="margin-right-10" v-if="scoreInfo && scoreInfo.xjysdy">{{ scoreInfo && scoreInfo.xjysdy }}</text>
<text v-if="scoreInfo && scoreInfo.xjysby">影视表演:</text>
<text v-if="scoreInfo && scoreInfo.xjysby">{{ scoreInfo && scoreInfo.xjysby }}</text>
</view>
</view>
</view>
<view class="flexWrap margin-left-30"></view>
<view class="flex-item-2" @click="gotoEditScore()">
<view class="" style="margin-top: 20rpx">
<view style="width: 100rpx;text-align: center;position: relative;left: 20rpx">
<image :src="ImagesConstant.edit2" class="icon40"/>
</view>
</view>
</view>
</view>
<!--我的志愿-->
<!-- <button-->
<!-- open-type="im"-->
<!-- data-im-id="Shilo_"-->
<!-- bindim="imCallback"-->
<!-- binderror="onimError"-->
<!-- >-->
<!-- 跳转 IM-->
<!-- </button>-->
<!-- <button class='contact-btn' open-type="im" bindim="imCallback" binderror="onimError" data-im-id="Shilo_">联系客服</button> -->
<view class="uni-flex flex trow1">
<view class="flex-item-1">
<text style="font-size: 24rpx">我的志愿</text>
</view>
<view class="flex-item-7">
<view class="trow1-center" style="">
<view class="flex" v-if="scoreInfo && volunteerInfo">
<text style="margin:0 30rpx">{{ volunteerInfo.volunteerName || '' }}</text>
</view>
<view class="flex" style="margin-left:30rpx;color:#c1c4cc">
<!-- <text>{{ scoreInfo && scoreInfo.professionalScore || '&#45;&#45;' }}&nbsp;&nbsp;/</text>-->
<text>{{ scoreInfo && scoreInfo.province || '--' }}&nbsp;/</text>
<text>&nbsp;{{ scoreInfo && scoreInfo.cognitioPolyclinic ==='文科'?'历史组':'物理组' || '--' }}&nbsp;/</text>
<text>&nbsp;{{ scoreInfo && scoreInfo.professionalCategory || '--' }}</text>
</view>
</view>
</view>
<view class="flex-item-2" @click="switchFillVolunteer">
<view style="padding: 15rpx 0 15rpx 65rpx">
<image src="/static/icons/icons8-menu.png" class="icon32"/>
</view>
</view>
</view>
<!--剩余选项-->
<view class="trow1">
<view class="uni-flex flex" v-for="(item,index) in itemList" :key="index">
<!--联系客服-->
<view class="flex-item-10" v-if="item.type==='contact' || item.type ==='im'">
{{item.type}}
<view class="uni-flex flex trow1-child">
<button class='contact-btn' :open-type="item.type" data-im-id="Shilo_">aa</button>
<view class="flex-item-1">
<image :src="item.icon" class="icon40"/>
</view>
<view class="flex-item-8">
<text>{{item.title}}</text>
</view>
<view class="flex-item-1">
<image :src="ImagesConstant.keyboard.arrowRight" style="width: 40rpx;height: 40rpx"/>
</view>
</view>
</view>
<view class="flex-item-10" v-else @click="item.method==='cooperate'?cooperate() : goto(item.url)">
<view class=""
:class="index===itemList.length-1?'uni-flex flex trow1-child-last':'uni-flex flex trow1-child'">
<view class="flex-item-1">
<image :src="item.icon" style="width: 40rpx;height: 40rpx"/>
</view>
<view class="flex-item-8">
<text>{{ item.title }}</text>
</view>
<view class="flex-item-1">
<image :src="ImagesConstant.keyboard.arrowRight" style="width: 40rpx;height: 40rpx"/>
</view>
</view>
</view>
</view>
</view>
<!---->
<view class="uni-flex flex">
<view class="flex-item-10" style="text-align: center;">
<text>{{ systemName }}</text>
</view>
</view>
</view>
</template>
<style scoped lang="scss">
.header {
background: repeating-linear-gradient(#dcdaf7, #f7f7f7, #e6e4e4);
background: -ms-repeating-linear-gradient(#dcdaf7, #f7f7f7, #e6e4e4);
background: -webkit-repeating-linear-gradient(#dcdaf7, #f7f7f7, #e6e4e4);
background: -moz-repeating-linear-gradient(#dcdaf7, #f7f7f7, #e6e4e4);
/*background: linear-gradient(131deg, rgb(18, 117, 236) 0%, rgb(122, 182, 249) 100%);*/
height: 340rpx;
/*头像*/
.avatar {
border-radius: 50%;
width: 150rpx;
height: 148rpx;
}
.arrow-right {
width: 70rpx;
height: 70rpx;
position: absolute;
right: 8rpx;
}
.t1 {
padding: 20rpx 0 0 0;
}
.t2 {
padding: 40rpx 20rpx 0 20rpx;
font-weight: 500;
color: black;
}
/*开通vip框*/
.vipBackground {
background-color: #e5620f;
border-radius: 40rpx 40rpx 0 0;
}
}
.body {
background-color: #f4f5f7;
min-height: 880rpx;
padding: 30rpx;
/*单行*/
.trow1 {
background-color: #ffffff;
border-radius: 15rpx;
padding: 20rpx 30rpx;
margin-bottom: 20rpx;
.trow1-center {
font-size: 24rpx;
margin: 10rpx 0 0 20rpx;
border-left: 5rpx solid #f1b481;
}
.trow1-child {
margin-top: 20rpx;
padding-bottom: 20rpx;
border-bottom: 2rpx solid #f8f8f8;
}
.trow1-child-last {
margin-top: 20rpx;
padding-bottom: 20rpx;
border-bottom: none;
}
}
}
//
:deep(.contact-btn) {
display: inline-block;
position: absolute;
width: 80%;
background: salmon;
// opacity: 0;
// border-radius: 0;
}
</style>

View File

@ -1,451 +1,469 @@
<script>
import Request from '@/common/request';
import ImagesConstant from "@/common/ImagesConstant";
import commonTool from "@/common/js/commonTool";
import Request from '@/common/request';
import ImagesConstant from "@/common/ImagesConstant";
import commonTool from "@/common/js/commonTool";
let request = new Request()
export default {
name: "user-index",
components: {},
computed: {
commonTool() {
return commonTool
},
ImagesConstant() {
return ImagesConstant
},
},
data() {
return {
imId:'Shilo_',
systemName:'',
avatar: ImagesConstant.systemIcon,
userInfo: {},
vipInfo: {},
scoreInfo: {},//
volunteerInfo: {},//
itemList: [
{
title: '会员卡激活',
icon:'/static/icons/gif/icons8-cards.gif',
url: '/pages/zyb/vip/cardamom'
},
// #ifdef MP-TOUTIAO
{
title: '我的订单',
icon:'/static/icons/gif/icons8-order.gif',
url: '/pages/zyb/order/list'
},
{
title: '联系客服',
type:'im',
icon:'/static/icons/gif/icons8-customer-service.gif',
},
// #endif
// #ifdef MP-WEIXIN
{
title: '联系客服',
type:'contact',
icon:'/static/icons/gif/icons8-customer-service.gif',
},
{
title: '专家一对一',
//icon: '/static/icons/linear/calendar.png',
icon: '/static/icons/gif/icons8-man.gif',
url: '/pages/zyb/other/updateLogs'
},
{
title: '商务合作',
//icon: '/static/icons/linear/quest.png',
icon: '/static/icons/gif/icons8-cooperate.gif',
method:'cooperate',
url: '/pages/zyb/other/commonProblem'
},
// #endif
let request = new Request()
const app = getApp()
export default {
name: "user-index",
components: {},
computed: {
commonTool() {
return commonTool
},
ImagesConstant() {
return ImagesConstant
},
app() {
return app
},
},
data() {
return {
imId: 'Shilo_',
systemName: '',
avatar: ImagesConstant.systemIcon,
userInfo: {},
vipInfo: {},
scoreInfo: {}, //
volunteerInfo: {}, //
itemList: [{
title: '会员卡激活',
icon: '/static/icons/gif/icons8-cards.gif',
url: '/pages/zyb/vip/cardamom'
},
// #ifdef MP-TOUTIAO
{
title: '我的订单',
icon: '/static/icons/gif/icons8-order.gif',
url: '/pages/zyb/order/list'
},
{
title: '联系客服',
type: 'im',
icon: '/static/icons/gif/icons8-customer-service.gif',
},
// #endif
// #ifdef MP-WEIXIN
{
title: '联系客服',
type: 'contact',
icon: '/static/icons/gif/icons8-customer-service.gif',
},
{
title: '专家一对一',
//icon: '/static/icons/linear/calendar.png',
icon: '/static/icons/gif/icons8-man.gif',
url: '/pages/zyb/other/updateLogs'
},
{
title: '商务合作',
//icon: '/static/icons/linear/quest.png',
icon: '/static/icons/gif/icons8-cooperate.gif',
method: 'cooperate',
url: '/pages/zyb/other/commonProblem'
},
// #endif
/*{
title: '更新快报',
//icon: '/static/icons/linear/calendar.png',
icon: '/static/icons/gif/icons8-calendar.gif',
url: '/pages/zyb/other/updateLogs'
},*/
{
title: '我的收藏',
//icon: '/static/icons/linear/love.png',
icon: '/static/icons/gif/icons8-loading-heart.gif',
url: '/pages/zyb/user/myCollect'
},
{
title: '使用说明',
//icon: '/static/icons/linear/illustrate.png',
icon: '/static/icons/gif/detail.gif',
url: '/pages/zyb/other/useHelp'
},
/*{
title: '更新快报',
//icon: '/static/icons/linear/calendar.png',
icon: '/static/icons/gif/icons8-calendar.gif',
url: '/pages/zyb/other/updateLogs'
},*/
{
title: '我的收藏',
//icon: '/static/icons/linear/love.png',
icon: '/static/icons/gif/icons8-loading-heart.gif',
url: '/pages/zyb/user/myCollect'
},
{
title: '使用说明',
//icon: '/static/icons/linear/illustrate.png',
icon: '/static/icons/gif/detail.gif',
url: '/pages/zyb/other/useHelp'
},
/* {
title: '问题反馈',
//icon: '/static/icons/linear/quest.png',
icon: '/static/icons/gif/icons8-doubt.gif',
url: '/pages/zyb/other/commonProblem'
},*/
{
title: '常见问题',
//icon: '/static/icons/linear/quest.png',
icon: '/static/icons/gif/icons8-doubt.gif',
url: '/pages/zyb/other/commonProblem'
},
{
title: '设置',
//icon: '/static/icons/linear/settings.png',
icon: '/static/icons/gif/icons8-wotuishi-settings.gif',
url: '/pages/zyb/settings'
},
/* {
title: '问题反馈',
//icon: '/static/icons/linear/quest.png',
icon: '/static/icons/gif/icons8-doubt.gif',
url: '/pages/zyb/other/commonProblem'
},*/
{
title: '常见问题',
//icon: '/static/icons/linear/quest.png',
icon: '/static/icons/gif/icons8-doubt.gif',
url: '/pages/zyb/other/commonProblem'
},
{
title: '设置',
//icon: '/static/icons/linear/settings.png',
icon: '/static/icons/gif/icons8-wotuishi-settings.gif',
url: '/pages/zyb/settings'
},
]
}
},
onShow() {
this.userInfo = uni.getStorageSync('userInfo')
if (this.userInfo === null || this.userInfo.id=== undefined) {
wx.reLaunch({
url: '/pages/zyb/login',
})
}
this.vipInfo = uni.getStorageSync('vipInfo')
this.getScore()
},
onLoad() {
this.systemName = commonTool.getSystemName()
if(this.systemName === '体育志愿宝'){
this.playerType = '体育考生'
}
},
methods: {
//
getScore() {
this.scoreInfo = uni.getStorageSync('scoreInfo')
if (this.scoreInfo) {
this.volunteerInfo = uni.getStorageSync('volunteer')
}
},
gotoEditScore() {
console.log('前往修改成绩页面')
this.goto('/pages/zyb/score/edit')
},
switchFillVolunteer() {
this.goto('/pages/zyb/fillVolunteer/my')
},
/*前往开通vip*/
gotoOpenVip() {
this.goto('/pages/zyb/vip/index')
},
/*商务合作弹框事件*/
cooperate(){
console.log('商务合作')
this.$refs.popup2.open("center")
},
cooperateClose(){
this.$refs.popup2.close()
},
goto(e) {
uni.navigateTo({
url: e,
nimationType: 'pop-in',
animationDuration: 2000
})
},
previewImage(e){
console.log('e', e);
uni.previewImage({
//
urls: [],
// /
current: ImagesConstant.customerServiceQrCode,
//
indicator:'default',
//
loop:false,
//
// longPressActions:{
// itemList:[this.l(''),this.l]
// },
success: res => {
console.log('res', res);
},
fail: err => {
console.log('err', err);
}
});
},
imCallback(e) {
console.log("跳转IM客服成功", e.detail);
},
onimError(e) {
console.log("拉起IM客服失败", e.detail);
},
}
}
]
}
},
onShow() {
this.userInfo = uni.getStorageSync('userInfo')
if (this.userInfo === null || this.userInfo.id === undefined) {
wx.reLaunch({
url: '/pages/zyb/login',
})
}
this.vipInfo = uni.getStorageSync('vipInfo')
this.getScore()
},
onLoad() {
this.systemName = commonTool.getSystemName()
if (this.systemName === '体育志愿宝') {
this.playerType = '体育考生'
}
},
methods: {
//
getScore() {
this.scoreInfo = uni.getStorageSync('scoreInfo')
if (this.scoreInfo) {
this.volunteerInfo = uni.getStorageSync('volunteer')
}
},
gotoEditScore() {
console.log('前往修改成绩页面')
this.goto('/pages/zyb/score/edit')
},
switchFillVolunteer() {
this.goto('/pages/zyb/fillVolunteer/my')
},
/*前往开通vip*/
gotoOpenVip() {
this.goto('/pages/zyb/vip/index')
},
/*商务合作弹框事件*/
cooperate() {
console.log('商务合作')
this.$refs.popup2.open("center")
},
cooperateClose() {
this.$refs.popup2.close()
},
goto(e) {
uni.navigateTo({
url: e,
nimationType: 'pop-in',
animationDuration: 2000
})
},
previewImage(e) {
console.log('e', e);
uni.previewImage({
//
urls: [],
// /
current: app.globalData.StaticConstant.contact.images,
//
indicator: 'default',
//
loop: false,
//
// longPressActions:{
// itemList:[this.l(''),this.l]
// },
success: res => {
console.log('res', res);
},
fail: err => {
console.log('err', err);
}
});
},
imCallback(e) {
console.log("跳转IM客服成功", e.detail);
},
onimError(e) {
console.log("拉起IM客服失败", e.detail);
},
}
}
</script>
<template>
<uni-popup ref="popup2" background-color="#fff" class="radius15">
<view class="popup-content radius15" style="padding: 30rpx 30rpx">
<view class="font-size-mini4 font-weight-b" style="text-align: center">添加老师微信</view>
<image @click="previewImage" :show-menu-by-longpress="true" :src="ImagesConstant.customerServiceQrCode" style="width: 600rpx;height: 800rpx"/>
<view class="flexWrap marginTopBot20 margin-top-20"><text class="text">联系人周老师</text></view>
<view class="flexWrap marginTopBot20"><text class="text">电话15090658223(微信同号)</text></view>
<view class="font-size-mini4 font-weight-b margin-top-20 margin-top-20" @click="cooperateClose" style="text-align: center">知道了</view>
</view>
</uni-popup>
<!-- 普通弹窗 -->
<uni-popup ref="popup" background-color="#fff" class="radius15">
<view class="popup-content radius15" style="padding: 30rpx 50rpx">
<view class="font-size-mini4 font-weight-b" style="text-align: center">商务合作</view>
<view class="flexWrap marginTopBot20 margin-top-20"><text class="text">联系人周老师</text></view>
<view class="flexWrap marginTopBot20"><text class="text">电话15090658223(微信同号)</text></view>
<view class="font-size-mini4 font-weight-b margin-top-20 margin-top-20" @click="cooperateClose" style="text-align: center">知道了</view>
</view>
</uni-popup>
<!--头部-->
<view class="header" style="z-index: 1">
<view class="uni-flex flex" style="padding: 30rpx 30rpx 0 30rpx" @click="goto('/pages/zyb/user/detail')">
<!--头像-->
<view class="flex-item2 t1">
<image class="avatar" :src="avatar"/>
</view>
<!--手机号-->
<view class="flex-item-7 t2">
<view class="flex font-weight-600">
<text style="line-height: 50rpx">{{ userInfo.realname }}</text>
</view>
<view class="flex">
<text style="line-height: 50rpx">{{ scoreInfo.province }}</text>
<text style="line-height: 50rpx;font-size: 24rpx">/2024</text>
</view>
</view>
<!--按钮-->
<view class="flex-item2" style="padding-top: 60rpx;">
<image class="arrow-right" :src="ImagesConstant.keyboard.arrowRight"/>
</view>
</view>
<!--开通vip提示-->
<view class="uni-flex flex white" style="margin-top: 30rpx">
<view class="flex-item-10 vipBackground" style="height: 50rpx;padding: 30rpx"
v-if="vipInfo && vipInfo.vipLevel>0">
<text>
{{ vipInfo.skuName || 'VIP' }}到期时间{{ commonTool.dateFormatYYYYMMDD(vipInfo.validTime) }}
</text>
<text class="float-right radius60" style="border: 1rpx solid white;padding: 0 20rpx" @click="gotoOpenVip">
查看更多
</text>
</view>
<view class="flex-item-10 vipBackground" style="height: 50rpx;line-height: 50rpx;padding: 30rpx;"
v-if="(!vipInfo) || !vipInfo.vipLevel || vipInfo.vipLevel===0">
<text>升级为VIP, 准确查大学录取率</text>
<text class="float-right radius60" style="border: 1rpx solid white;padding: 0 20rpx" @click="gotoOpenVip">
开通VIP
</text>
</view>
</view>
</view>
<view class="body" style="z-index: 2">
<!--我的成绩-->
<view class="uni-flex flex trow1">
<view class="flex-item-1">
<text style="font-size: 24rpx">我的成绩</text>
</view>
<view class="flex-item-7 trow1-center">
<view class="flexWrap margin-left-30">
<view class="flex-item-10">
<text class="margin-right-10">文化:{{ this.scoreInfo.culturalScore }}</text>
<text class="margin-right-10" v-if="scoreInfo && scoreInfo.professionalCategory!=='表演类'">{{scoreInfo.professionalCategory==='音乐类'?'主项':'统考'}}:{{ this.scoreInfo.professionalScore }}</text>
<br v-if="scoreInfo && scoreInfo.professionalCategory!=='表演类'"/>
<text v-if="scoreInfo && scoreInfo.yybysy">音表声乐:</text>
<text class="margin-right-10" v-if="scoreInfo && scoreInfo.yybysy">{{ scoreInfo && scoreInfo.yybysy }}</text>
<text v-if="scoreInfo && scoreInfo.yybyqy">音表器乐:</text>
<text class="margin-right-10" v-if="scoreInfo && scoreInfo.yybyqy">{{ scoreInfo && scoreInfo.yybyqy }}</text>
<text v-if="scoreInfo && scoreInfo.yyjy">音乐教育:</text>
<text class="margin-right-10" v-if="scoreInfo && scoreInfo.yyjy">{{ scoreInfo && scoreInfo.yyjy }}</text>
<!--表演类-->
<text v-if="scoreInfo && scoreInfo.fzby">服装表演:</text>
<text class="margin-right-10" v-if="scoreInfo && scoreInfo.fzby">{{ scoreInfo && scoreInfo.fzby }}</text>
<text v-if="scoreInfo && scoreInfo.xjysdy">影视导演:</text>
<text class="margin-right-10" v-if="scoreInfo && scoreInfo.xjysdy">{{ scoreInfo && scoreInfo.xjysdy }}</text>
<text v-if="scoreInfo && scoreInfo.xjysby">影视表演:</text>
<text v-if="scoreInfo && scoreInfo.xjysby">{{ scoreInfo && scoreInfo.xjysby }}</text>
</view>
</view>
</view>
<view class="flexWrap margin-left-30"></view>
<uni-popup ref="popup2" background-color="#fff" class="radius15">
<view class="popup-content radius15" style="padding: 30rpx 30rpx">
<view class="font-size-mini4 font-weight-b" style="text-align: center">添加老师微信</view>
<image @click="previewImage" :show-menu-by-longpress="true"
:src="app.globalData.StaticConstant.contact.images" style="width: 600rpx;height: 600rpx" />
<view class="flexWrap marginTopBot20 margin-top-20"><text
class="text">联系人{{app.globalData.StaticConstant.contact.personName}}</text></view>
<view class="flexWrap marginTopBot20"><text
class="text">电话{{app.globalData.StaticConstant.contact.personNumber}}(微信同号)</text></view>
<view class="font-size-mini4 font-weight-b margin-top-20 margin-top-20" @click="cooperateClose"
style="text-align: center">知道了</view>
</view>
</uni-popup>
<!-- 普通弹窗 -->
<uni-popup ref="popup" background-color="#fff" class="radius15">
<view class="popup-content radius15" style="padding: 30rpx 50rpx">
<view class="font-size-mini4 font-weight-b" style="text-align: center">商务合作</view>
<view class="flexWrap marginTopBot20 margin-top-20"><text
class="text">联系人{{app.globalData.StaticConstant.contact.personName}}</text></view>
<view class="flexWrap marginTopBot20"><text
class="text">电话{{app.globalData.StaticConstant.contact.personNumber}}(微信同号)</text></view>
<view class="font-size-mini4 font-weight-b margin-top-20 margin-top-20" @click="cooperateClose"
style="text-align: center">知道了</view>
</view>
</uni-popup>
<!--头部-->
<view class="header" style="z-index: 1">
<view class="uni-flex flex" style="padding: 30rpx 30rpx 0 30rpx" @click="goto('/pages/zyb/user/detail')">
<!--头像-->
<view class="flex-item2 t1">
<image class="avatar" :src="avatar" />
</view>
<!--手机号-->
<view class="flex-item-7 t2">
<view class="flex font-weight-600">
<text style="line-height: 50rpx">{{ userInfo.realname }}</text>
</view>
<view class="flex">
<text style="line-height: 50rpx">{{ scoreInfo.province }}</text>
<text style="line-height: 50rpx;font-size: 24rpx">/2024</text>
</view>
</view>
<!--按钮-->
<view class="flex-item2" style="padding-top: 60rpx;">
<image class="arrow-right" :src="ImagesConstant.keyboard.arrowRight" />
</view>
</view>
<!--开通vip提示-->
<view class="uni-flex flex white" style="margin-top: 30rpx">
<view class="flex-item-10 vipBackground" style="height: 50rpx;padding: 30rpx"
v-if="vipInfo && vipInfo.vipLevel>0">
<text>
{{ vipInfo.skuName || 'VIP' }}到期时间{{ commonTool.dateFormatYYYYMMDD(vipInfo.validTime) }}
</text>
<text class="float-right radius60" style="border: 1rpx solid white;padding: 0 20rpx"
@click="gotoOpenVip">
查看更多
</text>
</view>
<view class="flex-item-10 vipBackground" style="height: 50rpx;line-height: 50rpx;padding: 30rpx;"
v-if="(!vipInfo) || !vipInfo.vipLevel || vipInfo.vipLevel===0">
<text>升级为VIP, 准确查大学录取率</text>
<text class="float-right radius60" style="border: 1rpx solid white;padding: 0 20rpx"
@click="gotoOpenVip">
开通VIP
</text>
</view>
</view>
</view>
<view class="body" style="z-index: 2">
<!--我的成绩-->
<view class="uni-flex flex trow1">
<view class="flex-item-1">
<text style="font-size: 24rpx">我的成绩</text>
</view>
<view class="flex-item-7 trow1-center">
<view class="flexWrap margin-left-30">
<view class="flex-item-10">
<text class="margin-right-10">文化:{{ this.scoreInfo.culturalScore }}</text>
<text class="margin-right-10"
v-if="scoreInfo && scoreInfo.professionalCategory!=='表演类'">{{scoreInfo.professionalCategory==='音乐类'?'主项':'统考'}}:{{ this.scoreInfo.professionalScore }}</text>
<br v-if="scoreInfo && scoreInfo.professionalCategory!=='表演类'" />
<text v-if="scoreInfo && scoreInfo.yybysy">音表声乐:</text>
<text class="margin-right-10"
v-if="scoreInfo && scoreInfo.yybysy">{{ scoreInfo && scoreInfo.yybysy }}</text>
<text v-if="scoreInfo && scoreInfo.yybyqy">音表器乐:</text>
<text class="margin-right-10"
v-if="scoreInfo && scoreInfo.yybyqy">{{ scoreInfo && scoreInfo.yybyqy }}</text>
<text v-if="scoreInfo && scoreInfo.yyjy">音乐教育:</text>
<text class="margin-right-10"
v-if="scoreInfo && scoreInfo.yyjy">{{ scoreInfo && scoreInfo.yyjy }}</text>
<!--表演类-->
<text v-if="scoreInfo && scoreInfo.fzby">服装表演:</text>
<text class="margin-right-10"
v-if="scoreInfo && scoreInfo.fzby">{{ scoreInfo && scoreInfo.fzby }}</text>
<text v-if="scoreInfo && scoreInfo.xjysdy">影视导演:</text>
<text class="margin-right-10"
v-if="scoreInfo && scoreInfo.xjysdy">{{ scoreInfo && scoreInfo.xjysdy }}</text>
<text v-if="scoreInfo && scoreInfo.xjysby">影视表演:</text>
<text v-if="scoreInfo && scoreInfo.xjysby">{{ scoreInfo && scoreInfo.xjysby }}</text>
</view>
</view>
</view>
<view class="flexWrap margin-left-30"></view>
<view class="flex-item-2" @click="gotoEditScore()">
<view class="" style="margin-top: 20rpx">
<view style="width: 100rpx;text-align: center;position: relative;left: 20rpx">
<image :src="ImagesConstant.edit2" class="icon40"/>
</view>
</view>
</view>
<view class="flex-item-2" @click="gotoEditScore()">
<view class="" style="margin-top: 20rpx">
<view style="width: 100rpx;text-align: center;position: relative;left: 20rpx">
<image :src="ImagesConstant.edit2" class="icon40" />
</view>
</view>
</view>
</view>
<!--我的志愿-->
<button
open-type="im"
data-im-id="Shilo_"
bindim="imCallback"
binderror="onimError"
>
跳转 IM
</button>
<!-- <button class='contact-btn' open-type="im" bindim="imCallback" binderror="onimError" data-im-id="Shilo_">联系客服</button> -->
<view class="uni-flex flex trow1">
<view class="flex-item-1">
<text style="font-size: 24rpx">我的志愿</text>
</view>
<view class="flex-item-7">
<view class="trow1-center" style="">
<view class="flex" v-if="scoreInfo && volunteerInfo">
<text style="margin:0 30rpx">{{ volunteerInfo.volunteerName || '' }}</text>
</view>
<view class="flex" style="margin-left:30rpx;color:#c1c4cc">
<!-- <text>{{ scoreInfo && scoreInfo.professionalScore || '&#45;&#45;' }}&nbsp;&nbsp;/</text>-->
<text>{{ scoreInfo && scoreInfo.province || '--' }}&nbsp;/</text>
<text>&nbsp;{{ scoreInfo && scoreInfo.cognitioPolyclinic ==='文科'?'历史组':'物理组' || '--' }}&nbsp;/</text>
<text>&nbsp;{{ scoreInfo && scoreInfo.professionalCategory || '--' }}</text>
</view>
</view>
</view>
<view class="flex-item-2" @click="switchFillVolunteer">
<view style="padding: 15rpx 0 15rpx 65rpx">
<image src="/static/icons/icons8-menu.png" class="icon32"/>
</view>
</view>
</view>
<!--剩余选项-->
<view class="trow1">
<view class="uni-flex flex" v-for="(item,index) in itemList" :key="index">
<!--联系客服-->
<view class="flex-item-10" v-if="item.type==='contact' || item.type ==='im'">
{{item.type}}
<view class="uni-flex flex trow1-child">
<button class='contact-btn' :open-type="item.type" data-im-id="Shilo_">aa</button>
<view class="flex-item-1">
<image :src="item.icon" class="icon40"/>
</view>
<view class="flex-item-8">
<text>{{item.title}}</text>
</view>
<view class="flex-item-1">
<image :src="ImagesConstant.keyboard.arrowRight" style="width: 40rpx;height: 40rpx"/>
</view>
</view>
</view>
<view class="flex-item-10" v-else @click="item.method==='cooperate'?cooperate() : goto(item.url)">
<view class=""
:class="index===itemList.length-1?'uni-flex flex trow1-child-last':'uni-flex flex trow1-child'">
<view class="flex-item-1">
<image :src="item.icon" style="width: 40rpx;height: 40rpx"/>
</view>
<view class="flex-item-8">
<text>{{ item.title }}</text>
</view>
<view class="flex-item-1">
<image :src="ImagesConstant.keyboard.arrowRight" style="width: 40rpx;height: 40rpx"/>
</view>
</view>
</view>
</view>
</view>
<!---->
<view class="uni-flex flex">
<view class="flex-item-10" style="text-align: center;">
<text>{{ systemName }}</text>
</view>
</view>
</view>
</view>
<!--我的志愿-->
<!-- <button-->
<!-- open-type="im"-->
<!-- data-im-id="Shilo_"-->
<!-- bindim="imCallback"-->
<!-- binderror="onimError"-->
<!-- >-->
<!-- 跳转 IM-->
<!-- </button>-->
<!-- <button class='contact-btn' open-type="im" bindim="imCallback" binderror="onimError" data-im-id="Shilo_">联系客服</button> -->
<view class="uni-flex flex trow1">
<view class="flex-item-1">
<text style="font-size: 24rpx">我的志愿</text>
</view>
<view class="flex-item-7">
<view class="trow1-center" style="">
<view class="flex" v-if="scoreInfo && volunteerInfo">
<text style="margin:0 30rpx">{{ volunteerInfo.volunteerName || '' }}</text>
</view>
<view class="flex" style="margin-left:30rpx;color:#c1c4cc">
<!-- <text>{{ scoreInfo && scoreInfo.professionalScore || '&#45;&#45;' }}&nbsp;&nbsp;/</text>-->
<text>{{ scoreInfo && scoreInfo.province || '--' }}&nbsp;/</text>
<text>&nbsp;{{ scoreInfo && scoreInfo.cognitioPolyclinic ==='文科'?'历史组':'物理组' || '--' }}&nbsp;/</text>
<text>&nbsp;{{ scoreInfo && scoreInfo.professionalCategory || '--' }}</text>
</view>
</view>
</view>
<view class="flex-item-2" @click="switchFillVolunteer">
<view style="padding: 15rpx 0 15rpx 65rpx">
<image src="/static/icons/icons8-menu.png" class="icon32" />
</view>
</view>
</view>
<!--剩余选项-->
<view class="trow1">
<view class="uni-flex flex" v-for="(item,index) in itemList" :key="index">
<!--联系客服-->
<view class="flex-item-10" v-if="item.type==='contact' || item.type ==='im'">
<view class="uni-flex flex trow1-child">
<button class='contact-btn' :open-type="item.type" data-im-id="Shilo_">{{item.title}}</button>
<view class="flex-item-1">
<image :src="item.icon" class="icon40" />
</view>
<view class="flex-item-8">
<text>{{item.title}}</text>
</view>
<view class="flex-item-1">
<image :src="ImagesConstant.keyboard.arrowRight" style="width: 40rpx;height: 40rpx" />
</view>
</view>
</view>
<view class="flex-item-10" v-else @click="item.method==='cooperate'?cooperate() : goto(item.url)">
<view class=""
:class="index===itemList.length-1?'uni-flex flex trow1-child-last':'uni-flex flex trow1-child'">
<view class="flex-item-1">
<image :src="item.icon" style="width: 40rpx;height: 40rpx" />
</view>
<view class="flex-item-8">
<text>{{ item.title }}</text>
</view>
<view class="flex-item-1">
<image :src="ImagesConstant.keyboard.arrowRight" style="width: 40rpx;height: 40rpx" />
</view>
</view>
</view>
</view>
</view>
<!---->
<view class="uni-flex flex">
<view class="flex-item-10" style="text-align: center;">
<text>{{ systemName }}</text>
</view>
</view>
</view>
</template>
<style scoped lang="scss">
.header {
background: repeating-linear-gradient(#dcdaf7, #f7f7f7, #e6e4e4);
background: -ms-repeating-linear-gradient(#dcdaf7, #f7f7f7, #e6e4e4);
background: -webkit-repeating-linear-gradient(#dcdaf7, #f7f7f7, #e6e4e4);
background: -moz-repeating-linear-gradient(#dcdaf7, #f7f7f7, #e6e4e4);
/*background: linear-gradient(131deg, rgb(18, 117, 236) 0%, rgb(122, 182, 249) 100%);*/
height: 340rpx;
/*头像*/
.avatar {
border-radius: 50%;
width: 150rpx;
height: 148rpx;
}
.header {
background: repeating-linear-gradient(#dcdaf7, #f7f7f7, #e6e4e4);
background: -ms-repeating-linear-gradient(#dcdaf7, #f7f7f7, #e6e4e4);
background: -webkit-repeating-linear-gradient(#dcdaf7, #f7f7f7, #e6e4e4);
background: -moz-repeating-linear-gradient(#dcdaf7, #f7f7f7, #e6e4e4);
/*background: linear-gradient(131deg, rgb(18, 117, 236) 0%, rgb(122, 182, 249) 100%);*/
height: 340rpx;
.arrow-right {
width: 70rpx;
height: 70rpx;
position: absolute;
right: 8rpx;
}
/*头像*/
.avatar {
border-radius: 50%;
width: 150rpx;
height: 148rpx;
}
.t1 {
padding: 20rpx 0 0 0;
}
.arrow-right {
width: 70rpx;
height: 70rpx;
position: absolute;
right: 8rpx;
}
.t2 {
padding: 40rpx 20rpx 0 20rpx;
font-weight: 500;
color: black;
}
.t1 {
padding: 20rpx 0 0 0;
}
/*开通vip框*/
.vipBackground {
background-color: #e5620f;
border-radius: 40rpx 40rpx 0 0;
}
}
.t2 {
padding: 40rpx 20rpx 0 20rpx;
font-weight: 500;
color: black;
}
.body {
background-color: #f4f5f7;
min-height: 880rpx;
padding: 30rpx;
/*单行*/
.trow1 {
background-color: #ffffff;
border-radius: 15rpx;
padding: 20rpx 30rpx;
margin-bottom: 20rpx;
/*开通vip框*/
.vipBackground {
background-color: #e5620f;
border-radius: 40rpx 40rpx 0 0;
}
}
.trow1-center {
font-size: 24rpx;
margin: 10rpx 0 0 20rpx;
border-left: 5rpx solid #f1b481;
}
.body {
background-color: #f4f5f7;
min-height: 880rpx;
padding: 30rpx;
.trow1-child {
margin-top: 20rpx;
padding-bottom: 20rpx;
border-bottom: 2rpx solid #f8f8f8;
}
/*单行*/
.trow1 {
background-color: #ffffff;
border-radius: 15rpx;
padding: 20rpx 30rpx;
margin-bottom: 20rpx;
.trow1-child-last {
margin-top: 20rpx;
padding-bottom: 20rpx;
border-bottom: none;
}
}
}
.trow1-center {
font-size: 24rpx;
margin: 10rpx 0 0 20rpx;
border-left: 5rpx solid #f1b481;
}
.trow1-child {
margin-top: 20rpx;
padding-bottom: 20rpx;
border-bottom: 2rpx solid #f8f8f8;
}
.trow1-child-last {
margin-top: 20rpx;
padding-bottom: 20rpx;
border-bottom: none;
}
}
}
//
:deep(.contact-btn) {
display: inline-block;
position: absolute;
width: 80%;
background: salmon;
// opacity: 0;
// border-radius: 0;
}
</style>
//
:deep(.contact-btn) {
display: inline-block;
position: absolute;
width: 80%;
background: salmon;
opacity: 0;
border-radius: 0;
}
</style>

View File

@ -6,12 +6,16 @@ import Request from '@/common/request'
import commonTool from "@/common/js/commonTool";
import {stringIsNotEmpty} from "@/common/util";
let request = new Request()
const app = getApp()
export default {
name: "cardamom",
computed: {
StaticConstant() {
return StaticConstant
}
},
app() {
return app
},
},
data() {
return {
@ -89,7 +93,7 @@ export default {
<view class="text-body">
<text class="text-item">-适用范围:{{playerType}}文理科考生(自主招生暂不适用)</text>
<text class="text-item">
-使用期限:自购买起截止到2024-08-31有效分数修改次数:每届服务期内高考分数放榜前每日可修改10次放榜后仅可修改1次
-使用期限:自购买起截止到{{app.globalData.StaticConstant.memberDeadline}}有效分数修改次数:每届服务期内高考分数放榜前每日可修改10次放榜后仅可修改1次
</text>
<text class="text-item">-系统数据来源于{{ StaticConstant.bm }}部门由合作网站提供</text>
<text class="text-item">

View File

@ -7,7 +7,7 @@ import ApiConstant from "@/common/ApiConstant";
import ImagesConstant from "@/common/ImagesConstant";
import Request from '@/common/request';
import {stringIsNotEmpty} from "../../../common/util";
const app = getApp()
let request = new Request()
export default {
name: "vip-index",
@ -18,7 +18,10 @@ export default {
},
StaticConstant() {
return StaticConstant
}
},
app(){
return app
}
},
data() {
return {

View File

@ -8,7 +8,7 @@ import ImagesConstant from "@/common/ImagesConstant";
import Request from '@/common/request';
import {stringIsNotEmpty} from "../../../common/util";
import Image from "../../component/image/image.vue";
const app = getApp()
let request = new Request()
export default {
name: "vip-index",
@ -19,7 +19,10 @@ export default {
},
StaticConstant() {
return StaticConstant
}
},
app(){
return app
}
},
data() {
return {
@ -214,7 +217,8 @@ export default {
模拟报志愿VIP
</view>
<view class="flex font-size-mini2 brown">
<text>{{item.skuCode==='9000'?'咨询详谈':'有效期截至2024-08-31'}}</text>
<text v-if="item.skuCode==='9000'">咨询详谈</text>
<text v-else>'有效期截至{{app.globalData.StaticConstant.memberDeadline}}</text>
</view>
</view>
<view class="flex-item-3 brown marginRight" style="padding: 30rpx 0;text-align: right">

BIN
static/image.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 524 B

BIN
static/plus.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
static/uni.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@ -0,0 +1,20 @@
{
"name": "uni-config-center",
"version": "0.0.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "uni-config-center",
"version": "0.0.2",
"license": "Apache-2.0",
"dependencies": {
"uni-config-center": "file:"
}
},
"node_modules/uni-config-center": {
"resolved": "",
"link": true
}
}
}

View File

@ -0,0 +1,38 @@
{
"name": "uni-id",
"version": "3.3.29",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "uni-id",
"version": "3.3.29",
"license": "Apache-2.0",
"dependencies": {
"uni-config-center": "file:../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center",
"uni-id": "file:",
"uni-open-bridge-common": "file:../../../../../uni-open-bridge-common/uniCloud/cloudfunctions/common/uni-open-bridge-common"
}
},
"../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center": {
"version": "0.0.2",
"license": "Apache-2.0",
"dependencies": {
"uni-config-center": "file:"
}
},
"../../../../../uni-open-bridge-common/uniCloud/cloudfunctions/common/uni-open-bridge-common": {},
"node_modules/uni-config-center": {
"resolved": "../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center",
"link": true
},
"node_modules/uni-id": {
"resolved": "",
"link": true
},
"node_modules/uni-open-bridge-common": {
"resolved": "../../../../../uni-open-bridge-common/uniCloud/cloudfunctions/common/uni-open-bridge-common",
"link": true
}
}
}

View File

@ -0,0 +1,17 @@
{
"name": "checkVersion",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "checkVersion",
"dependencies": {
"checkVersion": "file:"
}
},
"node_modules/checkVersion": {
"resolved": "",
"link": true
}
}
}