This commit is contained in:
zhouwentao 2025-02-18 16:27:34 +08:00
parent 6b9dd15e33
commit 75570095fd
37 changed files with 634 additions and 143 deletions

View File

@ -8,8 +8,8 @@ export default {
majorList: '/yx/yxMajor/list',//获取专业信息表-分页列表查询 majorList: '/yx/yxMajor/list',//获取专业信息表-分页列表查询
majorInfo: '/mini/major/majorInfo',//获取专业详情 majorInfo: '/mini/major/majorInfo',//获取专业详情
miniMajorList: '/mini/major/miniMajorList',//专业列表 miniMajorList: '/mini/major/miniMajorList',//专业列表
calculateInvestment: '/mini/recommendMajor/calculateInvestment',//投档分测算 calculateInvestment: '/mini/major/calculateInvestment',//投档分测算
testCultural: '/mini/recommendMajor/testCultural',//文化分测算 testCultural: '/mini/major/testCultural',//文化分测算
groupByBatchNumber:'/mini/major/groupByBatchNumber',//获取各个批次是否有专业 groupByBatchNumber:'/mini/major/groupByBatchNumber',//获取各个批次是否有专业
rulesEnrollrobabilityMenuList: '/mini/major/rulesEnrollrobabilityMenuList', rulesEnrollrobabilityMenuList: '/mini/major/rulesEnrollrobabilityMenuList',
schoolMajorListByBatchAndMajorType: '/mini/major/schoolMajorListByBatchAndMajorType',//智能填报页面获取专业列表 schoolMajorListByBatchAndMajorType: '/mini/major/schoolMajorListByBatchAndMajorType',//智能填报页面获取专业列表
@ -22,18 +22,18 @@ export default {
//用户类 //用户类
User: { User: {
exchangeVipCard: '/yx/yxVipCard/exchange',//兑换vip卡 exchangeVipCard: '/yx/yxVipCard/exchange',//兑换vip卡
login:'/mini/user/login',//密码登录 login:'/mini/user/v1/login',//密码登录
userInfo: '/wx/userInfo', userInfo: '/wx/userInfo',
register:'/mini/user/register',//注册 register:'/mini/user/v1/register',//注册
//微信 //微信
wxLogin: '/mini/user/phoneLogin',//手机号快捷登录 wxLogin: '/mini/user/v1/wechatLogin',//手机号快捷登录
wxQrCodeStatus:'/wx/user/getQrCodeStatus',//获取微信二维码登录 状态 wxQrCodeStatus:'/wx/user/getQrCodeStatus',//获取微信二维码登录 状态
wxQrCodeUpdateStatus:'/wx/user/updateQrCodeStatus',//更新微信二维码登录 状态 wxQrCodeUpdateStatus:'/wx/user/updateQrCodeStatus',//更新微信二维码登录 状态
wxQrCodeExit:'/wx/user/cancelQrCode',//取消微信二维码登录 wxQrCodeExit:'/wx/user/cancelQrCode',//取消微信二维码登录
//=================================================================抖音 //=================================================================抖音
dyLogin:'/mini/user/dy/login',//抖音登录 dyLogin:'/mini/user/v1/dyLogin',//抖音登录
dyCheckBindPhone :'/mini/user/dy/checkBindPhone',//抖音判断手机号绑定 dyCheckBindPhone :'/mini/user/v1/dyCheckBindPhone',//抖音判断手机号绑定
dyBindPhone :'/mini/user/dy/bindPhone',//抖音判断手机号绑定 dyBindPhone :'/mini/user/v1/dyBindPhone',//抖音判断手机号绑定
}, },
System: { System: {
findPassWord: '/sys/findPassWord',//找回密码 findPassWord: '/sys/findPassWord',//找回密码
@ -80,11 +80,11 @@ export default {
vip1: '/mini/pay/v1/jsApiPay',//支付类型1 vip1: '/mini/pay/v1/jsApiPay',//支付类型1
}, },
VIP: { VIP: {
cardActivation: '/mini/vip/card/activation',//卡密兑换 cardActivation: '/mini/vip/v1/card/activation',//卡密兑换
orderList:'/mini/order/orderList',//获取订单列表 orderList:'/mini/order/orderList',//获取订单列表
orderDetail: '/mini/order/orderDetail',//获取订单信息 orderDetail: '/mini/order/orderDetail',//获取订单信息
skuList: '/mini/vip/sku/all',//获取全部商品 skuList: '/mini/vip/v1/sku/all',//获取全部商品
vipInfo: '/mini/vip/getVipInfo',//获取当前用户vip信息 vipInfo: '/mini/vip/v1/getVipInfo',//获取当前用户vip信息
}, },
Article: { Article: {
articlePage: '/mini/article/page',//文章列表 articlePage: '/mini/article/page',//文章列表

View File

@ -1,5 +1,4 @@
import ImagesConstant from "@/common/ImagesConstant"; import ImagesConstant from "@/common/ImagesConstant";
export default { export default {
systemName: '艺体志愿宝', systemName: '艺体志愿宝',
email:'yitisheng@163.com', email:'yitisheng@163.com',
@ -33,7 +32,7 @@ export default {
], ],
//专业选项 //专业选项
professionalCategoryList: [ professionalCategoryList: [
{value: '美术与设计类', label: '美术与设计类', scoreMax: 300,}, {value: '美术与设计类', label: '美术与设计类', scoreMax: 300},
{ {
value: '音乐类', label: '音乐类', scoreMax: 300, children: [ value: '音乐类', label: '音乐类', scoreMax: 300, children: [
{label: '音乐表演声乐', value: '音乐表演声乐', exclude: '音乐表演器乐'}, {label: '音乐表演声乐', value: '音乐表演声乐', exclude: '音乐表演器乐'},
@ -41,8 +40,8 @@ export default {
{label: '音乐教育', value: '音乐教育'} {label: '音乐教育', value: '音乐教育'}
] ]
}, },
{value: '舞蹈类', label: '舞蹈类', scoreMax: 300,}, {value: '舞蹈类', label: '舞蹈类', scoreMax: 300},
{value: '播音与主持类', label: '播音与主持类', scoreMax: 300,}, {value: '播音与主持类', label: '播音与主持类', scoreMax: 300},
{ {
value: '表演类', label: '表演类', scoreMax: 300, children: [ value: '表演类', label: '表演类', scoreMax: 300, children: [
{label: '服装表演', value: '服装表演'}, {label: '服装表演', value: '服装表演'},
@ -50,7 +49,7 @@ export default {
{label: '戏剧影视表演', value: '戏剧影视表演'} {label: '戏剧影视表演', value: '戏剧影视表演'}
] ]
}, },
{value: '书法类', label: '书法类', scoreMax: 300,}, {value: '书法类', label: '书法类', scoreMax: 300},
{value: '戏曲类', label: '戏曲类', scoreMax: 300}, {value: '戏曲类', label: '戏曲类', scoreMax: 300},
{value: '体育类', label: '体育类', scoreMax: 150,}, {value: '体育类', label: '体育类', scoreMax: 150,},
/*{value: '', label: '', scoreMax: 200}, /*{value: '', label: '', scoreMax: 200},

View File

@ -1,4 +1,6 @@
import Request from '@/common/request' import Request from '@/common/request';
import ENV_CONFIG from '@/config/env.js';
import ApiConstant from "../ApiConstant";
let request = new Request() let request = new Request()
export default { export default {
//调试vip信息 //调试vip信息
@ -11,22 +13,29 @@ export default {
} }
}, },
//刷新vip信息 //刷新vip信息
reloadVipInfo() { reloadVipInfo() {
return request.post('/api/static/data/getJson', { key: key }, { showLoad: false }).then(r => { request.get(ApiConstant.VIP.vipInfo,{},{showLoad:false}).then(r => {
console.log(r)
if (r.success) {
this.checkVipInfo(r.result)
}
}).catch(err => {
}).finally(() => {
});
},
async loadStaticConfig(key){
return request.post('/api/static/data/getJson',{key:key},{showLoad:false}).then(r => {
console.log(r)
if (r.success) { if (r.success) {
return r.result; return r.result
} else {
return {};
} }
}).catch(err => { }).catch(err => {
console.log('请求:'+key+"时出错:") return {}
console.log(err)
return {};
}).finally(() => { }).finally(() => {
}); });
}, },
async loadStaticConfig(key){ async loadStaticConfigParams(key,params){
return request.post('/api/static/data/getJson',{key:key},{showLoad:false}).then(r => { return request.post('/api/static/data/getJson',{key:key,...params},{showLoad:false}).then(r => {
console.log(r) console.log(r)
if (r.success) { if (r.success) {
return r.result return r.result
@ -50,4 +59,10 @@ export default {
// return year + "-" + month + "-" + day + " " + hours + ":" + minutes + ":" + seconds; // return year + "-" + month + "-" + day + " " + hours + ":" + minutes + ":" + seconds;
return year + "-" + month + "-" + day; return year + "-" + month + "-" + day;
}, },
getSystemName(){
return ENV_CONFIG[process.env.NAME].name
},
getPlayerType(){
return this.getSystemName()==='体育志愿宝'?'体育类':'艺术类'
},
} }

View File

@ -9,6 +9,7 @@ export default{
this.goto('/pages/zyb/login') this.goto('/pages/zyb/login')
}, },
goArticleDetail(e){ goArticleDetail(e){
console.log(e)
this.goto('/pages/zyb/article/detail?articleId='+e.id) this.goto('/pages/zyb/article/detail?articleId='+e.id)
}, },
/*打开成绩修改界面*/ /*打开成绩修改界面*/

View File

@ -1,5 +1,6 @@
/*网络请求*/ /*网络请求*/
import operate from '@/common/operate' // import operate from '@/common/operate';
import ENV_CONFIG from '@/config/env.js';
import {stringIsNotEmpty} from "@/common/util"; import {stringIsNotEmpty} from "@/common/util";
import ApiConstant from "@/common/ApiConstant"; import ApiConstant from "@/common/ApiConstant";
// vuex 的使用 详情参考官网 https://uniapp.dcloud.io/vue-vuex // vuex 的使用 详情参考官网 https://uniapp.dcloud.io/vue-vuex
@ -18,15 +19,20 @@ export default class Request {
if (param.showLoad===false) { if (param.showLoad===false) {
showLoading = false; showLoading = false;
} }
/*hideLoading = param.hideLoading || false;
token = param.token || "",*/
//拼接完整请求地址 //拼接完整请求地址
var requestUrl = operate.api + url; var requestUrl = ENV_CONFIG[process.env.NAME].requestBaseUrl + url;
//console.log(requestUrl)
//拼接完整请求地址(根据环境切换) //拼接完整请求地址(根据环境切换)
//请求方式:GET或POST(POST需配置 //请求方式:GET或POST(POST需配置
if (method) { if (method) {
if(process.env.NAME){
if(process.env.NAME === 'dy_tiyu_prod'){
data['programType'] = '体育志愿宝'
}else{
data['programType'] = '艺体志愿宝'
}
}
method = method.toUpperCase(); //小写改为大写 method = method.toUpperCase(); //小写改为大写
if (method === "POST") { if (method === "POST") {
header = {"content-type":'application/json',...header} header = {"content-type":'application/json',...header}

View File

@ -116,6 +116,7 @@ function yearAbridge(year){
return '未知' return '未知'
} }
export { export {
formatTime, formatTime,
formatLocation, formatLocation,

View File

@ -23,6 +23,7 @@ app.$mount()
import { import {
createSSRApp createSSRApp
} from 'vue' } from 'vue'
import {setSystemName} from "./common/util";
export function createApp() { export function createApp() {
const app = createSSRApp(App) const app = createSSRApp(App)
app.use(store) app.use(store)

View File

@ -135,7 +135,7 @@
"uniStatistics" : { "uniStatistics" : {
"enable" : true "enable" : true
}, },
"appid" : "tt59a72f1ac6964bfa01" "appid" : "tt9a2bec96051c14c001"
}, },
"mp-jd" : { "mp-jd" : {
"usingComponents" : true, "usingComponents" : true,

19
package-lock.json generated
View File

@ -1,13 +1,26 @@
{ {
"name": "hello-uniapp", "name": "hello-uniapp",
"version": "3.4.5", "version": "3.4.5",
"lockfileVersion": 1, "lockfileVersion": 3,
"requires": true, "requires": true,
"dependencies": { "packages": {
"@dcloudio/uni-helper-json": { "": {
"name": "hello-uniapp",
"version": "3.4.5",
"license": "MIT",
"dependencies": {
"@dcloudio/uni-helper-json": "^1.0.13",
"hello-uniapp": "file:"
}
},
"node_modules/@dcloudio/uni-helper-json": {
"version": "1.0.13", "version": "1.0.13",
"resolved": "https://registry.npmmirror.com/@dcloudio/uni-helper-json/-/uni-helper-json-1.0.13.tgz", "resolved": "https://registry.npmmirror.com/@dcloudio/uni-helper-json/-/uni-helper-json-1.0.13.tgz",
"integrity": "sha512-FO9Iu4zW4td3Tr+eiCDWuele2ehkJ4qxQ/UhpAMLjso+ZdWz6NagK5Syh6cdy1hoDqbxpNoqnLynuJXe81Ereg==" "integrity": "sha512-FO9Iu4zW4td3Tr+eiCDWuele2ehkJ4qxQ/UhpAMLjso+ZdWz6NagK5Syh6cdy1hoDqbxpNoqnLynuJXe81Ereg=="
},
"node_modules/hello-uniapp": {
"resolved": "",
"link": true
} }
} }
} }

View File

@ -107,10 +107,32 @@
"define": { "define": {
"H5-DEMO": true "H5-DEMO": true
} }
},
"wx-yitisheng": {
"title": "微信小程序-艺体志愿宝",
"env": {
"UNI_PLATFORM": "mp-weixin",
"NAME": "wx_yitisheng_prod"
}
},
"dy-yitisheng": {
"title": "抖音小程序-艺体志愿宝",
"env": {
"UNI_PLATFORM": "mp-toutiao",
"NAME": "dy_yitisheng_prod"
}
},
"dy-tiyu": {
"title": "抖音小程序-体育志愿宝",
"env": {
"UNI_PLATFORM": "mp-toutiao",
"NAME": "dy_tiyu_prod"
}
} }
} }
}, },
"dependencies": { "dependencies": {
"@dcloudio/uni-helper-json": "^1.0.13" "@dcloudio/uni-helper-json": "^1.0.13",
"hello-uniapp": "file:"
} }
} }

View File

@ -17,7 +17,7 @@
{ {
"path": "pages/zyb/home", "path": "pages/zyb/home",
"style": { "style": {
"navigationBarTitleText": "艺体志愿宝", "navigationBarTitleText": " ",
"app-plus": { "app-plus": {
"bounce": "none", "bounce": "none",
"titleNView": { "titleNView": {
@ -42,7 +42,7 @@
{ {
"path": "pages/zyb/qrcodeLogin", "path": "pages/zyb/qrcodeLogin",
"style": { "style": {
"navigationBarTitleText": "艺体志愿宝" "navigationBarTitleText": "扫码登录"
} }
}, },
@ -81,7 +81,7 @@
{ {
"path": "pages/zyb/login", "path": "pages/zyb/login",
"style": { "style": {
"navigationBarTitleText": "艺体志愿宝" "navigationBarTitleText": "登录账号"
} }
}, },
{ {
@ -365,7 +365,7 @@
{ {
"path": "pages/zyb/other/web-view", "path": "pages/zyb/other/web-view",
"style": { "style": {
"navigationBarTitleText": "艺体志愿宝" "navigationBarTitleText": "在线预览"
} }
}, },
@ -404,6 +404,12 @@
"style": { "style": {
"navigationBarTitleText": "招生章程" "navigationBarTitleText": "招生章程"
} }
},
{
"path": "pages/zyb/tiyujisuan/index",
"style": {
"navigationBarTitleText": "体育成绩计算器"
}
} }
], ],
"subPackages": [ "subPackages": [

View File

@ -20,6 +20,7 @@ export default {
}, },
data() { data() {
return { return {
vipInfo:{},
paneFlag: false, paneFlag: false,
scoreStatus: true, scoreStatus: true,
moveVolunteer: { moveVolunteer: {
@ -86,6 +87,7 @@ export default {
this.scoreStatus = true this.scoreStatus = true
} }
} }
this.vipInfo = uni.getStorageSync('vipInfo')
} else { } else {
// //
this.goto('/pages/zyb/login') this.goto('/pages/zyb/login')
@ -444,7 +446,7 @@ export default {
</view> </view>
<view class="flexWrap tags font-size-mini2" v-if="scoreInfo"> <view class="flexWrap tags font-size-mini2" v-if="scoreInfo">
<view class="tag">{{ scoreInfo.province }}</view> <view class="tag">{{ scoreInfo.province }}</view>
<view class="tag">{{ scoreInfo.cognitioPolyclinic }}</view> <view class="tag">{{ scoreInfo.cognitioPolyclinic === '文科'?'历史组':'物理组' }}</view>
<view class="tag">{{ scoreInfo.professionalCategory }}</view> <view class="tag">{{ scoreInfo.professionalCategory }}</view>
</view> </view>
<view class="flexWrap"> <view class="flexWrap">
@ -529,7 +531,12 @@ export default {
<text class="margin-left-10">{{ item.majorName }}</text> <text class="margin-left-10">{{ item.majorName }}</text>
</view> </view>
<view class="flex-item-15"> <view class="flex-item-15">
<text class="darkGray float-right" v-if="item.enrollProbability">{{ item.enrollProbability.toString().substring(0,4) }}%</text> <text class="darkGray float-right" v-if="item.enrollProbability && this.vipInfo && this.vipInfo.vipLevel >= 2">
{{ item.enrollProbability.toString().substring(0,4) }}%
</text>
<text class="darkGray float-right" v-else>
??%
</text>
</view> </view>
</view> </view>
<!--操作栏--> <!--操作栏-->

View File

@ -3,9 +3,9 @@ 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"; import CommonTool from "@/common/js/commonTool";
let request = new Request() let request = new Request()
// //
@ -29,6 +29,7 @@ export default {
data() { data() {
return { return {
/// ///
systemName:'',
num: {kcj: 0, jwt: 0, nlq: 0, kbd: 0,}, num: {kcj: 0, jwt: 0, nlq: 0, kbd: 0,},
circle: {kcj: 0, jwt: 0, nlq: 0, kbd: 0,},// circle: {kcj: 0, jwt: 0, nlq: 0, kbd: 0,},//
modelVale: 0, modelVale: 0,
@ -97,6 +98,7 @@ export default {
this.userInfo = uni.getStorageSync('userInfo') this.userInfo = uni.getStorageSync('userInfo')
}, },
onLoad(e) { onLoad(e) {
this.systemName = CommonTool.getSystemName()
this.vipInfo = uni.getStorageSync('vipInfo') this.vipInfo = uni.getStorageSync('vipInfo')
if (e.batch && e.volunteerId) { if (e.batch && e.volunteerId) {
// //
@ -124,14 +126,14 @@ export default {
}, },
onShareAppMessage() { onShareAppMessage() {
return { return {
title: '艺体志愿宝-测一测你能上的大学', // title: systemName+'-测一测你能上的大学', //
path: "/pages/zyb/fillVolunteer/index" path: "/pages/zyb/fillVolunteer/index"
} }
}, },
// //
onShareTimeline(res) { onShareTimeline(res) {
return { return {
title: '测一测你能上的大学', // title: systemName+'测一测你能上的大学', //
path: "/pages/zyb/fillVolunteer/index" path: "/pages/zyb/fillVolunteer/index"
} }
}, },
@ -800,7 +802,7 @@ export default {
<view class="text-list"> <view class="text-list">
<text class="t">省份{{ scoreInfo.province }}</text> <text class="t">省份{{ scoreInfo.province }}</text>
<text class="t">选科{{ scoreInfo.cognitioPolyclinic }}</text> <text class="t">选科{{ scoreInfo.cognitioPolyclinic ==='文科'?'历史组':'物理组' }}</text>
<text class="t">类别{{ scoreInfo.professionalCategory }}</text> <text class="t">类别{{ scoreInfo.professionalCategory }}</text>
</view> </view>
<view class="text-list"> <view class="text-list">

View File

@ -155,7 +155,7 @@ export default {
}, },
onShareAppMessage() { onShareAppMessage() {
return { return {
title: '艺体志愿宝-测一测你能上的大学', // title: '测一测你能上的大学', //
path: "/pages/zyb/fillVolunteer/index" path: "/pages/zyb/fillVolunteer/index"
} }
}, },
@ -881,7 +881,7 @@ export default {
<view class="text-list"> <view class="text-list">
<text class="t">省份{{ scoreInfo.province }}</text> <text class="t">省份{{ scoreInfo.province }}</text>
<text class="t">选科{{ scoreInfo.cognitioPolyclinic }}</text> <text class="t">选科{{ scoreInfo.cognitioPolyclinic ==='文科'?'历史组':'物理组' }}</text>
<text class="t">类别{{ scoreInfo.professionalCategory }}</text> <text class="t">类别{{ scoreInfo.professionalCategory }}</text>
</view> </view>
<view class="text-list"> <view class="text-list">

View File

@ -448,7 +448,7 @@ export default {
</view> </view>
<view class="flexWrap tags font-size-mini2" v-if="scoreInfo"> <view class="flexWrap tags font-size-mini2" v-if="scoreInfo">
<view class="tag">{{ scoreInfo.province }}</view> <view class="tag">{{ scoreInfo.province }}</view>
<view class="tag">{{ scoreInfo.cognitioPolyclinic }}</view> <view class="tag">{{ scoreInfo.cognitioPolyclinic === '文科'?'历史组':'物理组' }}</view>
<view class="tag">{{ scoreInfo.professionalCategory }}</view> <view class="tag">{{ scoreInfo.professionalCategory }}</view>
</view> </view>
<view class="flexWrap"> <view class="flexWrap">

View File

@ -153,7 +153,7 @@ export default {
<view class="uni-flex uni-row"> <view class="uni-flex uni-row">
<view class="flex-item-8 t_item"> <view class="flex-item-8 t_item">
<text>{{ <text>{{
item.userScoreInfo.cognitioPolyclinic item.userScoreInfo.cognitioPolyclinic === '文科'?'历史组':'物理组'
}}&nbsp;&nbsp;|&nbsp;&nbsp;{{ item.userScoreInfo.professionalCategory }} }}&nbsp;&nbsp;|&nbsp;&nbsp;{{ item.userScoreInfo.professionalCategory }}
</text> </text>
</view> </view>

View File

@ -494,7 +494,7 @@ export default {
</view> </view>
<view class="flexWrap tags font-size-mini2" v-if="scoreInfo"> <view class="flexWrap tags font-size-mini2" v-if="scoreInfo">
<view class="tag">{{ scoreInfo.province }}</view> <view class="tag">{{ scoreInfo.province }}</view>
<view class="tag">{{ scoreInfo.cognitioPolyclinic }}</view> <view class="tag">{{ scoreInfo.cognitioPolyclinic === '文科'?'历史组':'物理组' }}</view>
<view class="tag">{{ scoreInfo.professionalCategory }}</view> <view class="tag">{{ scoreInfo.professionalCategory }}</view>
</view> </view>
<view class="flexWrap"> <view class="flexWrap">

View File

@ -4,22 +4,21 @@ import ImagesConstant from "@/common/ImagesConstant";
import ApiConstant from "@/common/ApiConstant"; import ApiConstant from "@/common/ApiConstant";
import Request from "@/common/request"; import Request from "@/common/request";
import JumpTool from "@/common/js/jumpTool"; import JumpTool from "@/common/js/jumpTool";
import jumpTool from "@/common/js/jumpTool"; import CommonTool from "@/common/js/commonTool";
let request = new Request() let request = new Request()
export default { export default {
name: "home", name: "home",
components: {}, components: {},
computed: { computed: {
jumpTool() {
return jumpTool
},
StaticConstant() { StaticConstant() {
return StaticConstant return StaticConstant
} }
}, },
data() { data() {
return { return {
systemName:"",
playerType:'艺体考生',
userStatus: false, userStatus: false,
scoreInfo: null, scoreInfo: null,
zyNum: null,// zyNum: null,//
@ -48,6 +47,23 @@ export default {
currentTab: 0, currentTab: 0,
} }
}, },
onLoad(){
this.systemName = CommonTool.getSystemName()
if(this.systemName === '体育志愿宝'){
this.playerType = '体育考生'
for (let i = 0; i < this.options.length; i++) {
if(this.options[i].title === '艺考考研'){
this.options[i].title = '体育计分器'
this.options[i].url = '/pages/zyb/tiyujisuan/index'
}
}
}
//
uni.setNavigationBarTitle({
title: this.systemName
});
this.getAdmissionsRegulationsList()
},
onShow() { onShow() {
// //
let userInfo = uni.getStorageSync('userInfo') let userInfo = uni.getStorageSync('userInfo')
@ -62,9 +78,6 @@ export default {
} }
} }
}, },
onLoad() {
this.getAdmissionsRegulationsList()
},
onReachBottom() { onReachBottom() {
this.loadMore() this.loadMore()
}, },
@ -74,14 +87,14 @@ export default {
}, },
onShareAppMessage() { onShareAppMessage() {
return { return {
title: StaticConstant.systemName, // title: '测一测你能上的大学', //
path: "/pages/zyb/home" path: "/pages/zyb/home"
} }
}, },
// //
onShareTimeline(res) { onShareTimeline(res) {
return { return {
title: StaticConstant.systemName, // title: '测一测你能上的大学', //
path: "/pages/zyb/home" path: "/pages/zyb/home"
} }
}, },
@ -222,7 +235,9 @@ export default {
console.log(this.scrollLeft, 60, id) console.log(this.scrollLeft, 60, id)
} }
}, },
goArticleDetail(e){
JumpTool.goArticleDetail(e)
},
} }
} }
</script> </script>
@ -232,8 +247,8 @@ export default {
<!--顶部搜素框--> <!--顶部搜素框-->
<view class="header"> <view class="header">
<view class="flexWrap systemNameLine"> <view class="flexWrap systemNameLine">
<text class="font-size-big font-weight-b margin-left-50">{{ StaticConstant.systemName }}</text> <text class="font-size-big font-weight-b margin-left-50">{{ systemName }}</text>
<text style="position: absolute;left: 350rpx;top:50rpx">河南艺体考生专属VIP</text> <text style="position: absolute;left: 350rpx;top:50rpx">河南{{playerType}}专属VIP</text>
</view> </view>
<!-- <view class="flexWrap search"> <!-- <view class="flexWrap search">
<view> <view>
@ -259,7 +274,7 @@ export default {
<view class="flex-item-7"> <view class="flex-item-7">
<text class="margin-right-10">{{ scoreInfo && scoreInfo.province }} <text class="margin-right-10">{{ scoreInfo && scoreInfo.province }}
<text class="font-weight-none">·</text> <text class="font-weight-none">·</text>
{{ scoreInfo && scoreInfo.cognitioPolyclinic === '文科' ? '文' : '理' }} {{ scoreInfo && scoreInfo.cognitioPolyclinic === '文科' ? '历史组' : '物理组' }}
</text> </text>
<text class="margin-right-10">{{ scoreInfo && scoreInfo.professionalCategory }}</text> <text class="margin-right-10">{{ scoreInfo && scoreInfo.professionalCategory }}</text>
</view> </view>
@ -406,7 +421,7 @@ export default {
</scroll-view> </scroll-view>
<view class="messageList" v-for="(item,index) in this.tabs[this.currentTab].list" :key="index" <view class="messageList" v-for="(item,index) in this.tabs[this.currentTab].list" :key="index"
v-if="this.tabs[this.currentTab]"> v-if="this.tabs[this.currentTab]">
<view class="messageItem" @click="jumpTool.goArticleDetail(item)" <view class="messageItem" @click="goArticleDetail(item)"
:class="index ===admissionsRegulationsList.length-1?'':'border-bottom'"> :class="index ===admissionsRegulationsList.length-1?'':'border-bottom'">
<text class="flexWrap">{{ item.title }}</text> <text class="flexWrap">{{ item.title }}</text>
<view class="flexWrap margin-top-10"> <view class="flexWrap margin-top-10">

View File

@ -18,6 +18,7 @@ export default {
}, },
data() { data() {
return { return {
systemName:'',
checkFlag: false, checkFlag: false,
showType: 1, showType: 1,
formData: { formData: {
@ -101,7 +102,7 @@ export default {
console.log(e.detail.encryptedData); console.log(e.detail.encryptedData);
if (!this.checkFlag) { if (!this.checkFlag) {
uni.showToast({ uni.showToast({
title: '请阅读后同意《艺体志愿宝用户协议》', title: '请阅读后同意《'+this.systemName+'用户协议》',
icon: 'none' icon: 'none'
}) })
return return
@ -292,6 +293,7 @@ export default {
} }
}, },
onload() { onload() {
this.systemName = commonTool.getSystemName()
} }
} }
</script> </script>
@ -402,11 +404,11 @@ export default {
<checkbox-group @change="checkboxChange"> <checkbox-group @change="checkboxChange">
<label> <label>
<checkbox value="cb"/> <checkbox value="cb"/>
登录代表{{ StaticConstant.systemName }} 登录代表{{ systemName }}
<text style="color: #4975fd" @click="gotoXieyi">艺体志愿宝用户协议</text> <text style="color: #4975fd" @click="gotoXieyi">{{systemName}}用户协议</text>
<text style="color: #4975fd" @click="gotoMianze">免责声明</text> <text style="color: #4975fd" @click="gotoMianze">免责声明</text>
并授权使用您的{{ StaticConstant.systemName }}账号信息如昵称头像以便您统一管理 并授权使用您的{{ systemName }}账号信息如昵称头像以便您统一管理
</label> </label>
</checkbox-group> </checkbox-group>
</view> </view>

View File

@ -2,14 +2,16 @@
<view class="order-list border-top"> <view class="order-list border-top">
<view v-if="orders.length > 0"> <view v-if="orders.length > 0">
<view v-for="(order, index) in orders" :key="index"> <view v-for="(order, index) in orders" :key="index">
<view class="order-item" @click="openDetail(order)"> <view class="order-item">
<!-- @click="openDetail(order)" -->
<view class="flexWrap border-bottom" style="padding: 20rpx"> <view class="flexWrap border-bottom" style="padding: 20rpx">
<view class="flex-item-2">订单号</view> <view class="flex-item-2">订单号</view>
<view class="flex-item-6"> <view class="flex-item-6">
<text class="multiline-text">{{ order.orderCode }}</text> <text class="multiline-text">{{ order.orderCode }}</text>
</view> </view>
<view class="flex-item-2 font-weight-b"> <view class="flex-item-2 font-weight-b">
<text class="float-right" :style="'color:'+getColorByStatus(order.orderStatus)">{{ getTextByStatus(order.orderStatus) }}</text> <!-- <text class="float-right" >{{ order.orderStatusName }}</text> -->
<text class="float-right" :style="'color:'+getColorByStatus(order.orderStatusName)">{{ order.orderStatusName }}</text>
</view> </view>
</view> </view>
<view class="flexWrap" style="padding: 5rpx 0"> <view class="flexWrap" style="padding: 5rpx 0">
@ -24,7 +26,7 @@
<view class="flex-item-2"></view> <view class="flex-item-2"></view>
<view class="flex-item-8">下单时间<text>{{ order.createTime }}</text></view> <view class="flex-item-8">下单时间<text>{{ order.createTime }}</text></view>
</view> </view>
<view class="flexWrap" style="padding: 5rpx 0" v-if="order.orderStatus && order.orderStatus==='2'"> <view class="flexWrap" style="padding: 5rpx 0" v-if="order.orderStatus && order.paymentTime">
<view class="flex-item-2"></view> <view class="flex-item-2"></view>
<view class="flex-item-8">付款时间<text>{{ order.paymentTime }}</text></view> <view class="flex-item-8">付款时间<text>{{ order.paymentTime }}</text></view>
</view> </view>
@ -36,6 +38,12 @@
<view class="flex-item-2"></view> <view class="flex-item-2"></view>
<view class="flex-item-8"><text class="redOrange2">{{ order.totalAmount }}</text></view> <view class="flex-item-8"><text class="redOrange2">{{ order.totalAmount }}</text></view>
</view> </view>
<view class="flexWrap" style="padding: 5rpx 0" v-show="order.orderStatusName === '待支付'">
<view class="flex-item-2"></view>
<view class="flex-item-8">
<text class="redOrange2" @click="goPay(order)" style="border: 1rpx solid #f2891b;border-radius: 30rpx;padding: 0 10rpx;">去付款</text>
</view>
</view>
</view> </view>
<view class="divider" v-if="index !== orders.length - 1"></view> <view class="divider" v-if="index !== orders.length - 1"></view>
</view> </view>
@ -88,10 +96,15 @@ export default {
this.getOrderList() this.getOrderList()
}, },
openDetail(e){ openDetail(e){
uni.navigateTo({ uni.navigateTo({
url: '/pages/zyb/order/detail?orderCode='+e.orderCode url: '/pages/zyb/order/detail?orderCode='+e.orderCode
}) })
}, },
goPay(e){
uni.navigateTo({
url: '/pages/zyb/vip/checkoutCounter?orderCode='+e.orderCode
})
},
getOrderList(){ getOrderList(){
request.get(ApiConstant.VIP.orderList,{}).then(r => { request.get(ApiConstant.VIP.orderList,{}).then(r => {
console.log(r) console.log(r)
@ -104,12 +117,10 @@ export default {
}); });
}, },
getColorByStatus(status){ getColorByStatus(status){
if (status === '1') { if (status === '待支付') {
return '#f96543'; return '#f96543';
}else if (status === '2') { }else if (status === '已支付') {
return '#85e689'; return '#85e689';
}else if (status === '5') {
return '#f2891b';
}else{ }else{
return '#bb0303'; return '#bb0303';
} }

View File

@ -213,7 +213,7 @@ export default {
<view class="left-t color3">文理<label></label></view> <view class="left-t color3">文理<label></label></view>
</view> </view>
<view class="flex-item-7 ml10"> <view class="flex-item-7 ml10">
<view class="right-input">{{this.scoreInfo.cognitioPolyclinic}}</view> <view class="right-input">{{this.scoreInfo.cognitioPolyclinic === '文科'?'历史组':'物理组'}}</view>
<!-- <picker @change="bindCategoryArrayPickerChange" :value="categoryIndex" :range="categoryArray" <!-- <picker @change="bindCategoryArrayPickerChange" :value="categoryIndex" :range="categoryArray"
range-key='name'> range-key='name'>
<view class="right-input">{{ categoryArray[categoryIndex].name }}</view> <view class="right-input">{{ categoryArray[categoryIndex].name }}</view>

View File

@ -5,6 +5,7 @@
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 CommonTool from "@/common/js/commonTool";
let request = new Request() let request = new Request()
export default { export default {
name: "checkRanking", name: "checkRanking",
@ -25,7 +26,7 @@ export default {
styles: {}, styles: {},
array: ['河南'], array: ['河南'],
index: 0, index: 0,
professionalCategoryArray:StaticConstant.professionalCategoryList, professionalCategoryArray:[],
professionalCategoryIndex:0, professionalCategoryIndex:0,
fdbList:[ fdbList:[
{ {
@ -43,6 +44,9 @@ export default {
] ]
} }
}, },
async onLoad() {
this.professionalCategoryArray = await CommonTool.loadStaticConfig('professionalCategoryList')
},
methods: { methods: {
handle(type) { handle(type) {
this.show = !this.show this.show = !this.show

View File

@ -1,13 +1,24 @@
<!--志愿卡说明--> <!--志愿卡说明-->
<script> <script>
import commonTool from "@/common/js/commonTool";
export default { export default {
name: "volunteerCardDesc" name: "volunteerCardDesc",
computed: {
},
data() {
return {
playerType: '艺术类',
}
},
onLoad() {
this.playerType = commonTool.getPlayerType()
}
} }
</script> </script>
<template> <template>
<view class="body"> <view class="body">
<text class="text-l uni-flex flex">适用范围:艺术类文理科考生(自主招生暂不适用)</text> <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">使用期限:自购买起截止到2024-08-31日有效</text>
<text class="text-l uni-flex flex">分数修改次数:每届服务期内高考分数放榜前可修改10次放榜后只可修改1次</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

@ -4,16 +4,12 @@ import ApiConstant from "@/common/ApiConstant";
import Request from '@/common/request' import Request from '@/common/request'
import StaticConstant from "@/common/StaticConstant"; import StaticConstant from "@/common/StaticConstant";
import commonTool from "@/common/js/commonTool"; import commonTool from "@/common/js/commonTool";
import CommonTool from "@/common/js/commonTool";
let request = new Request() let request = new Request()
export default { export default {
name: "home", name: "home",
components: {}, components: {},
computed: { computed: {
CommonTool() {
return CommonTool
},
StaticConstant() { StaticConstant() {
return StaticConstant return StaticConstant
} }
@ -34,7 +30,7 @@ export default {
console.log(options.scene) console.log(options.scene)
console.log(this.uuid) console.log(this.uuid)
this.getQrCodeStatus() this.getQrCodeStatus()
} }
}, },
onShow() { onShow() {
@ -198,7 +194,7 @@ export default {
<label> <label>
<checkbox value="cb"/> <checkbox value="cb"/>
登录代表{{ StaticConstant.systemName }} 登录代表{{ StaticConstant.systemName }}
<text style="color: #4975fd" @click="gotoXieyi">艺体志愿宝用户协议</text> <text style="color: #4975fd" @click="gotoXieyi">{{commonTool.getSystemName()}}用户协议</text>
<text style="color: #4975fd" @click="gotoMianze">免责声明</text> <text style="color: #4975fd" @click="gotoMianze">免责声明</text>
并授权使用您的{{ StaticConstant.systemName }}账号信息如昵称头像以便您统一管理 并授权使用您的{{ StaticConstant.systemName }}账号信息如昵称头像以便您统一管理
@ -225,7 +221,7 @@ export default {
</view> </view>
</view> </view>
<view class="content" v-else-if="showFlag && showType===3"> <view class="content" v-else-if="showFlag && showType===3">
<view class="textcenter"> <view class="textcenter">
<text class="low-title"> <text class="low-title">
二维码已失效 二维码已失效
</text><br/> </text><br/>

View File

@ -340,7 +340,7 @@ export default {
<text class="font-weight-b xk-color">{{ item.zdf }}</text> <text class="font-weight-b xk-color">{{ item.zdf }}</text>
</view> </view>
</view>--> </view>-->
<view class="flex-item-38"> <view class="flex-item-4">
<view class="font-size-mini-mini float-right" v-if="item.jhs"> <view class="font-size-mini-mini float-right" v-if="item.jhs">
<text class="slateGray">23年省内计划录取:</text> <text class="slateGray">23年省内计划录取:</text>
<text class="font-weight-b xk-color">{{ item.jhs }}</text> <text class="font-weight-b xk-color">{{ item.jhs }}</text>
@ -354,13 +354,13 @@ export default {
<text class="font-size-mini font-weight-550 tk-color">{{ item.kslx }}</text> <text class="font-size-mini font-weight-550 tk-color">{{ item.kslx }}</text>
</view> </view>
</view> </view>
<view class="flex-item-42"> <view class="flex-item-4">
<view class="font-size-mini-mini" v-if="item.zdf"> <view class="font-size-mini-mini" v-if="item.zdf">
<text class="slateGray">{{ yearAbridge(item.zdfYear) }}年录取最低分:</text> <text class="slateGray">{{ yearAbridge(item.zdfYear) }}年录取最低分:</text>
<text class="font-weight-b tk-color">{{ item.zdf }}</text> <text class="font-weight-b tk-color">{{ item.zdf }}</text>
</view> </view>
</view> </view>
<view class="flex-item-38"> <view class="flex-item-4">
<view class="font-size-mini-mini float-right" v-if="item.jhs"> <view class="font-size-mini-mini float-right" v-if="item.jhs">
<text class="slateGray">{{item.luquYear}}年省内计划录取:</text> <text class="slateGray">{{item.luquYear}}年省内计划录取:</text>
<text class="font-weight-b tk-color">{{ item.jhs }}</text> <text class="font-weight-b tk-color">{{ item.jhs }}</text>

View File

@ -28,7 +28,8 @@ export default {
culturalScore: '',// culturalScore: '',//
professionalScore: '',// professionalScore: '',//
chineseScore: '', chineseScore: '',
englishScore: '' englishScore: '',
subjectList: [],
}, },
formRuleFlag: false,// formRuleFlag: false,//
provinceArray: [{ provinceArray: [{
@ -37,8 +38,17 @@ export default {
value: "河南", value: "河南",
},],// },],//
cognitioPolyclinicArray: StaticConstant.categoryList,// cognitioPolyclinicArray: StaticConstant.categoryList,//
subjectArray: [{
name:'地理'
},{
name:'政治'
},{
name:'化学'
},{
name:'生物'
}],
//=========================================================== //===========================================================
professionalCategoryArray: StaticConstant.professionalCategoryList,//array professionalCategoryArray: [],//array
professionalCategoryVisible: false,// professionalCategoryVisible: false,//
professionalCategoryIndex: null, professionalCategoryIndex: null,
pCategoryChildrenList: [],// pCategoryChildrenList: [],//
@ -51,7 +61,16 @@ export default {
// //
this.reloadMajorModalMessageConfig = await CommonTool.loadStaticConfig('reload_major_modal_message') this.reloadMajorModalMessageConfig = await CommonTool.loadStaticConfig('reload_major_modal_message')
}, },
onShow() { async onShow() {
if(uni.getStorageSync('professionalCategoryArray')){
this.professionalCategoryArray = uni.getStorageSync('professionalCategoryArray')
}else{
this.professionalCategoryArray = await CommonTool.loadStaticConfig('professionalCategoryList')
if(this.professionalCategoryArray){
uni.setStorageSync('professionalCategoryArray',this.professionalCategoryArray)
}
}
this.getEditScoreCount() this.getEditScoreCount()
this.getUserScore() this.getUserScore()
this.vipInfo = uni.getStorageSync('vipInfo') this.vipInfo = uni.getStorageSync('vipInfo')
@ -123,7 +142,9 @@ export default {
url: '/pages/zyb/home' url: '/pages/zyb/home'
}) })
}, 800) }, 800)
} }else{
uni.showToast({title: res.message, icon: "none"});
}
}).catch(err => { }).catch(err => {
}).finally(() => { }).finally(() => {
}); });
@ -183,9 +204,21 @@ export default {
}, },
// //
switchKelei(e) { switchKelei(e) {
this.scoreInfo.cognitioPolyclinic = e.name this.scoreInfo.cognitioPolyclinic = e.name
this.checkForm() this.checkForm()
}, },
switchSubject(e){
let index = this.scoreInfo.subjectList.indexOf(e);
if(index > -1){
//
this.scoreInfo.subjectList.splice(index, 1);
}else{
//
if(this.scoreInfo.subjectList.length <= 1){
this.scoreInfo.subjectList.push(e);
}
}
},
formSubmit: function (e) { formSubmit: function (e) {
let that = this let that = this
console.log('form发生了submit事件携带数据为' + JSON.stringify(e.detail.value)) console.log('form发生了submit事件携带数据为' + JSON.stringify(e.detail.value))
@ -195,7 +228,6 @@ export default {
return; return;
} }
//) //)
console.log(this.scoreInfo.cognitioPolyclinic)
if (!stringIsNotEmpty(this.scoreInfo.cognitioPolyclinic)) { if (!stringIsNotEmpty(this.scoreInfo.cognitioPolyclinic)) {
uni.showToast({title: '请选择选考科目', icon: "none"}); uni.showToast({title: '请选择选考科目', icon: "none"});
return; return;
@ -430,11 +462,23 @@ export default {
<view class="kelei-item" @click="switchKelei(item)" <view class="kelei-item" @click="switchKelei(item)"
:class="scoreInfo.cognitioPolyclinic===item.name?'kelei-item-active':''" :class="scoreInfo.cognitioPolyclinic===item.name?'kelei-item-active':''"
v-for="(item,index) in cognitioPolyclinicArray" :key="index"> v-for="(item,index) in cognitioPolyclinicArray" :key="index">
<text>{{ item.name }}</text> <text>{{ item.name==='文科'?'历史组':'物理组' }}</text>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<view class="form-item">
<view class="form-item-label"></view>
<view class="form-item-view">
<view class="flexWrap">
<view class="kelei-item" style="padding: 15rpx 20rpx;" @click="switchSubject(item.name)"
:class="scoreInfo.subjectList.includes(item.name)?'kelei-item-active':''"
v-for="(item,index) in subjectArray" :key="index">
<text>{{ item.name }}</text>
</view>
</view>
</view>
</view>
<!--子项专业成绩--> <!--子项专业成绩-->
<view class="form-item" v-if="professionalCategoryArray[professionalCategoryIndex]" <view class="form-item" v-if="professionalCategoryArray[professionalCategoryIndex]"
v-for="(item,index) in pCategoryChildrenList" :key="index"> v-for="(item,index) in pCategoryChildrenList" :key="index">
@ -536,7 +580,7 @@ export default {
<text class="font-weight-b">还可更改{{ 5-useCount }}</text> <text class="font-weight-b">还可更改{{ 5-useCount }}</text>
</view> </view>
<view v-else class="submitButtonView button-disabled"> <view v-else class="submitButtonView button-disabled">
<text class="font-weight-b">今日修改次数已用完</text> <text class="font-weight-b">修改次数已用完</text>
</view> </view>
<view class="submitButtonView button-active" v-if="scoreInfo && scoreInfo.id && scoreInfo.professionalCategory" @click="reloadMajor"> <view class="submitButtonView button-active" v-if="scoreInfo && scoreInfo.id && scoreInfo.professionalCategory" @click="reloadMajor">
<text class="font-weight-b">刷新专业</text> <text class="font-weight-b">刷新专业</text>

View File

@ -0,0 +1,307 @@
<script>
import StaticConstant from "@/common/StaticConstant";
import ApiConstant from "@/common/ApiConstant";
import Request from '@/common/request'
import {arrayIsNotEmpty, stringIsNotEmpty} from "@/common/util";
import CommonTool from "@/common/js/commonTool";
import commonTool from "../../../common/js/commonTool";
let request = new Request()
export default {
name: "socre-edit",
computed: {
StaticConstant() {
return StaticConstant
}
},
data() {
return {
sportsScore:[0,0,0],
sportsScoreSum:0,
formData:{
year:'2024',//
sex:'男',
sprint:'',//100
jump:'',//
shotPut:'',//
},
sexList:[
{name:'男'},
{name:'女'}
],
scoreInfo: {
province: '河南',//
},
formRuleFlag: false,//
}
},
async onLoad() {
},
async onShow() {
},
methods: {
stringIsNotEmpty() {
return stringIsNotEmpty
},
validateSprint(e) {
let that = this
e.target.value = (e.target.value.match(/^\d*(\.?\d{0,3})/g)[0]) || null
this.$nextTick(() => {
that.formData.sprint= e.target.value
})
this.checkForm()
},
validateJump(e) {
let that = this
e.target.value = (e.target.value.match(/^\d*(\.?\d{0,3})/g)[0]) || null
this.$nextTick(() => {
that.formData.jump= e.target.value
})
this.checkForm()
},
validateShotPut(e) {
let that = this
e.target.value = (e.target.value.match(/^\d*(\.?\d{0,3})/g)[0]) || null
this.$nextTick(() => {
that.formData.shotPut= e.target.value
})
this.checkForm()
},
checkForm() {
console.log('qqq')
this.formRuleFlag = false
if(!this.formData.sex){
return;
}
if(!this.formData.sprint){
return;
}
if(!this.formData.jump){
return;
}
if(!this.formData.shotPut){
return;
}
this.formRuleFlag = true
},
//
bindPicker_provinceChange: function (e) {
console.log('考区picker发送选择改变携带值为' + e)
this.scoreInfo.province = this.provinceArray[e.detail.value].name
this.checkForm()
},
switchSex(e){
this.formData.sex = e.name
this.checkForm()
},
//
switchKelei(e) {
this.scoreInfo.cognitioPolyclinic = e.name
this.checkForm()
},
formSubmit:async function (e) {
let that = this
//==
this.sportsScore = await commonTool.loadStaticConfigParams('sportsScore',this.formData)
console.log(this.sportsScore)
let sum = 0
this.sportsScore.forEach((s,index)=>{
sum+=s
})
this.sportsScoreSum = sum
this.$refs.popup.open("center")
},
cooperateClose(){
this.$refs.popup.close()
},
formReset: function (e) {
console.log('清空数据')
},
onProfessionalCategoryOpen() {
console.log('打开')
},
onProfessionalCategoryBottom() {
console.log('触底');
},
}
}
</script>
<template>
<view class="container" style="background-color: #ffffff">
<view class="uni-padding-wrap" style="text-align: center">
<view class="font-size-medium font-weight-b">
河南体育成绩计算器
</view>
</view>
<!--表单-->
<view class="uni-padding-wrap uni-common-mt border-top">
<view class="forms">
<!--选考科目-->
<view class="form-item">
<view class="form-item-label">性别</view>
<view class="form-item-view">
<view class="flexWrap">
<view class="kelei-item" @click="switchSex(item)"
:class="formData.sex===item.name?'kelei-item-active':''"
v-for="(item,index) in sexList" :key="index">
<text>{{ item.name }}</text>
</view>
</view>
</view>
</view>
<!--100-->
<view class="form-item">
<view class="form-item-label">100</view>
<view class="form-item-view form-input flexWrap">
<view class="flex-item-9">
<input class="uni-input" type="digit" @input="validateSprint" v-model="formData.sprint" name="sprint"
placeholder="请输入成绩"/>
</view>
<view class="flex-item-1">
<text style="line-height: 80rpx"></text>
</view>
</view>
</view>
<!--立定跳远-->
<view class="form-item">
<view class="form-item-label">立定跳远</view>
<view class="form-item-view form-input flexWrap">
<view class="flex-item-9">
<input class="uni-input" type="text" @input="validateJump" v-model="formData.jump" name="jump"
placeholder="请输入成绩"/>
</view>
<view class="flex-item-1">
<text style="line-height: 80rpx"></text>
</view>
</view>
</view>
<!--原地推铅球-->
<view class="form-item">
<view class="form-item-label">原地推铅球</view>
<view class="form-item-view form-input flexWrap">
<view class="flex-item-9">
<input class="uni-input" type="text" @input="validateShotPut" v-model="formData.shotPut" name="shotPut"
placeholder="请输入成绩"/>
</view>
<view class="flex-item-1">
<text style="line-height: 80rpx"></text>
</view>
</view>
</view>
</view>
</view>
<view class="submitButtonView"
:class="formRuleFlag?'button-active':'button-disabled'" @click="formSubmit">
<text class="font-weight-b">查询</text>
</view>
<uni-popup ref="popup" 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>
<view class="font-size-mini4 font-weight-b" style="text-align: center">{{sportsScoreSum}}</view>
<view class="flexWrap marginTopBot20 margin-top-20"><text class="text">100成绩{{formData.sprint}}分数{{sportsScore[0]}}</text></view>
<view class="flexWrap marginTopBot20 margin-top-20"><text class="text">立定跳远成绩{{formData.jump}}分数{{sportsScore[1]}}</text></view>
<view class="flexWrap marginTopBot20 margin-top-20"><text class="text">原地推铅球成绩{{formData.shotPut}}分数{{sportsScore[2]}}</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>
</template>
<style scoped lang="scss">
.container {
height: 100%;
}
.uni-form-item .title {
padding: 20rpx 0;
}
/*表单 start*/
.form-item {
display: flex;
align-items: center;
margin: 30rpx 0;
}
.form-item-label {
width: 20%;
}
.form-item-view {
width: 80%;
min-height: 80rpx;
}
.form-input {
border: 1rpx solid #e6e6e6;
}
//
.kelei-item {
background-color: #f7f7f7;
color: black;
padding: 20rpx 30rpx;
margin-right: 30rpx;
}
.kelei-item-active {
background-color: #feede1;
color: #f96712;
}
.submitButtonView {
margin: 30rpx;
text-align: center;
border-radius: 15rpx;
line-height: 80rpx;
}
.button-disabled {
color: white;
background-color: #d8d8d8;
}
.button-active {
color: white;
background: linear-gradient(#f79459, #f96622);
}
/*表单 end*/
.uni-picker-tips {
font-size: 12px;
color: #666;
margin-bottom: 15px;
padding: 0 15px;
}
/*底部抽屉 报考方向内容 start*/
.professionalCategoryPopup .professionalCategoryItem {
margin: 20rpx;
padding: 20rpx;
text-align: center;
border: 1rpx solid #f1f2f3;
.text {
margin: 0 auto;
}
}
.active {
background-color: #3e89fe;
color: white;
border-radius: 15rpx;
}
.professionalCategoryChildren .childrenItem {
margin: 20rpx;
}
/*底部抽屉 报考方向内容 end*/
</style>

View File

@ -37,7 +37,7 @@ export default {
/*绑定手机号*/ /*绑定手机号*/
bindPhone(){ bindPhone(){
// //
request.get(ApiConstant.User.dyCheckBindPhone, {phone: this.userInputPhone},{showLoad:false}).then(r => { request.post(ApiConstant.User.dyCheckBindPhone, {phone: this.userInputPhone},{showLoad:false}).then(r => {
console.log(r) console.log(r)
if (r.success) { if (r.success) {
if(r.result.status === 0){ if(r.result.status === 0){

View File

@ -86,7 +86,7 @@ export default {
<view class="item item-border"> <view class="item item-border">
<view class="left">选考科目</view> <view class="left">选考科目</view>
<view class="right dark"> <view class="right dark">
{{scoreInfo.cognitioPolyclinic}} {{ scoreInfo.cognitioPolyclinic === '文科'?'历史组':'物理组' }}
</view> </view>
</view> </view>
<view class="item"> <view class="item">

View File

@ -1,15 +1,12 @@
<script> <script>
import Request from '@/common/request' import Request from '@/common/request';
import ApiConstant from "@/common/ApiConstant";
import StaticConstant from "@/common/StaticConstant";
import ImagesConstant from "@/common/ImagesConstant"; import ImagesConstant from "@/common/ImagesConstant";
import commonTool from "../../../common/js/commonTool"; import commonTool from "@/common/js/commonTool";
import NavImage from "../../template/nav-image/nav-image.vue";
let request = new Request() let request = new Request()
export default { export default {
name: "user-index", name: "user-index",
components: {NavImage}, components: {},
computed: { computed: {
commonTool() { commonTool() {
return commonTool return commonTool
@ -17,12 +14,11 @@ export default {
ImagesConstant() { ImagesConstant() {
return ImagesConstant return ImagesConstant
}, },
StaticConstant() {
return StaticConstant
}
}, },
data() { data() {
return { return {
imId:'Shilo_',
systemName:'',
avatar: ImagesConstant.systemIcon, avatar: ImagesConstant.systemIcon,
userInfo: {}, userInfo: {},
vipInfo: {}, vipInfo: {},
@ -121,7 +117,10 @@ export default {
this.getScore() this.getScore()
}, },
onLoad() { onLoad() {
this.systemName = commonTool.getSystemName()
if(this.systemName === '体育志愿宝'){
this.playerType = '体育考生'
}
}, },
methods: { methods: {
// //
@ -179,9 +178,15 @@ export default {
console.log('err', err); console.log('err', err);
} }
}); });
} },
imCallback(e) {
console.log("跳转IM客服成功", e.detail);
},
onimError(e) {
console.log("拉起IM客服失败", e.detail);
},
} }
} }
</script> </script>
<template> <template>
@ -217,7 +222,7 @@ export default {
</view> </view>
<view class="flex"> <view class="flex">
<text style="line-height: 50rpx">{{ scoreInfo.province }}</text> <text style="line-height: 50rpx">{{ scoreInfo.province }}</text>
<text style="line-height: 50rpx;font-size: 24rpx">/2023</text> <text style="line-height: 50rpx;font-size: 24rpx">/2024</text>
</view> </view>
</view> </view>
<!--按钮--> <!--按钮-->
@ -285,6 +290,16 @@ export default {
</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="uni-flex flex trow1">
<view class="flex-item-1"> <view class="flex-item-1">
<text style="font-size: 24rpx">我的志愿</text> <text style="font-size: 24rpx">我的志愿</text>
@ -297,7 +312,7 @@ export default {
<view class="flex" style="margin-left:30rpx;color:#c1c4cc"> <view class="flex" style="margin-left:30rpx;color:#c1c4cc">
<!-- <text>{{ scoreInfo && scoreInfo.professionalScore || '&#45;&#45;' }}&nbsp;&nbsp;/</text>--> <!-- <text>{{ scoreInfo && scoreInfo.professionalScore || '&#45;&#45;' }}&nbsp;&nbsp;/</text>-->
<text>{{ scoreInfo && scoreInfo.province || '--' }}&nbsp;/</text> <text>{{ scoreInfo && scoreInfo.province || '--' }}&nbsp;/</text>
<text>&nbsp;{{ scoreInfo && scoreInfo.cognitioPolyclinic || '--' }}&nbsp;/</text> <text>&nbsp;{{ scoreInfo && scoreInfo.cognitioPolyclinic ==='文科'?'历史组':'物理组' || '--' }}&nbsp;/</text>
<text>&nbsp;{{ scoreInfo && scoreInfo.professionalCategory || '--' }}</text> <text>&nbsp;{{ scoreInfo && scoreInfo.professionalCategory || '--' }}</text>
</view> </view>
</view> </view>
@ -313,8 +328,9 @@ export default {
<view class="uni-flex flex" v-for="(item,index) in itemList" :key="index"> <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="flex-item-10" v-if="item.type==='contact' || item.type ==='im'">
<view class="uni-flex flex trow1-child" :open-type="item.type"> {{item.type}}
<button class='contact-btn' :open-type="item.type" data-im-id="Shilo_">a</button> <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"> <view class="flex-item-1">
<image :src="item.icon" class="icon40"/> <image :src="item.icon" class="icon40"/>
</view> </view>
@ -345,7 +361,7 @@ export default {
<!----> <!---->
<view class="uni-flex flex"> <view class="uni-flex flex">
<view class="flex-item-10" style="text-align: center;"> <view class="flex-item-10" style="text-align: center;">
<text>{{ StaticConstant.systemName }}</text> <text>{{ systemName }}</text>
</view> </view>
</view> </view>
</view> </view>
@ -428,8 +444,8 @@ export default {
position: absolute; position: absolute;
width: 80%; width: 80%;
background: salmon; background: salmon;
opacity: 0; // opacity: 0;
border-radius: 0; // border-radius: 0;
} }
</style> </style>

View File

@ -3,9 +3,8 @@
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 user from "@/pages/zyb/user/index.vue"; import commonTool from "@/common/js/commonTool";
import commonTool from "../../../common/js/commonTool"; import {stringIsNotEmpty} from "@/common/util";
import {stringIsNotEmpty} from "../../../common/util";
let request = new Request() let request = new Request()
export default { export default {
name: "cardamom", name: "cardamom",
@ -16,9 +15,13 @@ export default {
}, },
data() { data() {
return { return {
playerType:'艺术类',
userInputCardNum: '', // userInputCardNum: '', //
} }
}, },
onLoad(){
this.playerType = commonTool.getPlayerType()
},
methods: { methods: {
bankcardInput(e) { bankcardInput(e) {
setTimeout(() => { setTimeout(() => {
@ -84,7 +87,7 @@ export default {
<view class="card-label">使用须知</view> <view class="card-label">使用须知</view>
<view class="card-body"> <view class="card-body">
<view class="text-body"> <view class="text-body">
<text class="text-item">-适用范围:艺术类文理科考生(自主招生暂不适用)</text> <text class="text-item">-适用范围:{{playerType}}文理科考生(自主招生暂不适用)</text>
<text class="text-item"> <text class="text-item">
-使用期限:自购买起截止到2024-08-31日有效分数修改次数:每届服务期内高考分数放榜前每日可修改10次放榜后仅可修改1次 -使用期限:自购买起截止到2024-08-31日有效分数修改次数:每届服务期内高考分数放榜前每日可修改10次放榜后仅可修改1次
</text> </text>

View File

@ -22,12 +22,14 @@ export default {
}, },
data() { data() {
return { return {
playerType: '艺术类',
orderCode: '',// orderCode: '',//
totalAmount: '',// totalAmount: '',//
signStr:'' signStr:''
} }
}, },
onLoad(e) { onLoad(e) {
this.playerType = commonTool.getPlayerType()
if (e.orderCode) { if (e.orderCode) {
this.orderCode = e.orderCode this.orderCode = e.orderCode
this.getOrderDetail() this.getOrderDetail()
@ -93,7 +95,7 @@ export default {
setTimeout(function () { setTimeout(function () {
commonTool.reloadVipInfo() commonTool.reloadVipInfo()
uni.showToast({title:'支付成功', icon: "none"}); uni.showToast({title:'支付成功', icon: "none"});
}, 200) }, 500)
setTimeout(function () { setTimeout(function () {
uni.switchTab({ uni.switchTab({
url: '/pages/zyb/home' url: '/pages/zyb/home'
@ -115,7 +117,7 @@ export default {
setTimeout(function () { setTimeout(function () {
commonTool.reloadVipInfo() commonTool.reloadVipInfo()
that.openPopup2() that.openPopup2()
}, 100) }, 500)
}else{ }else{
uni.showToast({ uni.showToast({
title: 1===code?'支付超时':2===code?'支付失败':3===code?'支付关闭':4===code?'支付取消':"支付失败", title: 1===code?'支付超时':2===code?'支付失败':3===code?'支付关闭':4===code?'支付取消':"支付失败",
@ -184,9 +186,9 @@ export default {
<view class="card"> <view class="card">
<text class="z-h6">使用须知</text> <text class="z-h6">使用须知</text>
<view class="text-body"> <view class="text-body">
<text class="text-item">适用考生艺术类考生</text> <text class="text-item">适用考生{{playerType}}考生</text>
<text class="text-item">使用专业类别省内统考</text> <text class="text-item">使用专业类别省内统考</text>
<text class="text-item">适用批次艺考类本科及专科批</text> <text class="text-item">适用批次{{playerType}}本科及专科批</text>
<text class="text-item">适用范围河南省</text> <text class="text-item">适用范围河南省</text>
</view> </view>
</view> </view>

View File

@ -113,7 +113,7 @@ export default {
this.goto('/pages/zyb/vip/cardamom') this.goto('/pages/zyb/vip/cardamom')
}, },
getSkuList() { getSkuList() {
request.get(ApiConstant.VIP.skuList, {provider:uni.getStorageSync('providerpayment')}).then(r => { request.post(ApiConstant.VIP.skuList, {provider:uni.getStorageSync('providerpayment')}).then(r => {
console.log(r) console.log(r)
if (r.success) { if (r.success) {
this.cardArray = r.result this.cardArray = r.result
@ -283,7 +283,7 @@ export default {
</checkbox-group> </checkbox-group>
<view></view> <view></view>
</view> </view>
<view class="flex-item-55 flex"> <view class="flex-item-55 flex" v-show="cardArray && cardArray.length>0">
<view class="kmBtn radius8" @click="kaMi">卡密激活</view> <view class="kmBtn radius8" @click="kaMi">卡密激活</view>
<view class="ktBtn radius8" @click="pay">立即开通</view> <view class="ktBtn radius8" @click="pay">立即开通</view>
</view> </view>

View File

@ -42,13 +42,14 @@ export function initColumnData(options) {
"fontColor": "#666666", "fontColor": "#666666",
"fontSize": 11, "fontSize": 11,
"rotateLabel": true, "rotateLabel": true,
"itemCount": 4,
"padding": 10, "padding": 10,
"margin": 10, "margin": 10,
"boundaryGap": "center", "boundaryGap": "center",
"disableGrid": true, "disableGrid": true,
"gridColor": "#CCCCCC", "gridColor": "#CCCCCC",
"gridType": "solid", /*"itemCount": 4,
"gridType": "solid",*/
"dashLength": 4, "dashLength": 4,
"gridEval": 1, "gridEval": 1,
"type": 'grid', "type": 'grid',
@ -183,7 +184,7 @@ export function initLineData() {
"boundaryGap": "center", "boundaryGap": "center",
"disableGrid": true, "disableGrid": true,
"gridColor": "#CCCCCC", "gridColor": "#CCCCCC",
"gridType": "solid", /*"gridType": "solid",*/
"dashLength": 4, "dashLength": 4,
"gridEval": 1, "gridEval": 1,
"type": 'grid', "type": 'grid',

View File

@ -5,5 +5,8 @@
"main": "index.js", "main": "index.js",
"keywords": [], "keywords": [],
"author": "DCloud", "author": "DCloud",
"license": "Apache-2.0" "license": "Apache-2.0",
} "dependencies": {
"uni-config-center": "file:"
}
}

View File

@ -12,6 +12,7 @@
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"uni-config-center": "file:../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center", "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-open-bridge-common": "file:../../../../../uni-open-bridge-common/uniCloud/cloudfunctions/common/uni-open-bridge-common"
} }
} }

View File

@ -1,7 +1,9 @@
{ {
"name": "checkVersion", "name": "checkVersion",
"dependencies": {}, "dependencies": {
"checkVersion": "file:"
},
"extensions": { "extensions": {
"uni-cloud-jql": {} "uni-cloud-jql": {}
} }
} }