From 75570095fd23494f3cb544b0587d09fc02f8231c Mon Sep 17 00:00:00 2001
From: zhouwentao <1577701412@qq.com>
Date: Tue, 18 Feb 2025 16:27:34 +0800
Subject: [PATCH] updates
---
common/ApiConstant.js | 22 +-
common/StaticConstant.js | 9 +-
common/js/commonTool.js | 37 ++-
common/js/jumpTool.js | 1 +
common/request.js | 16 +-
common/util.js | 1 +
main.js | 1 +
manifest.json | 2 +-
package-lock.json | 19 +-
package.json | 24 +-
pages.json | 14 +-
pages/zyb/fillVolunteer/detail.vue | 11 +-
pages/zyb/fillVolunteer/index.vue | 12 +-
pages/zyb/fillVolunteer/mockList.vue | 4 +-
pages/zyb/fillVolunteer/my-detail.vue | 2 +-
pages/zyb/fillVolunteer/my.vue | 2 +-
pages/zyb/fillVolunteer/old-detail.vue | 2 +-
pages/zyb/home.vue | 43 ++-
pages/zyb/login.vue | 10 +-
pages/zyb/order/list.vue | 31 +-
pages/zyb/other/calculateInvestment.vue | 2 +-
pages/zyb/other/checkRanking.vue | 6 +-
pages/zyb/other/volunteerCardDesc.vue | 15 +-
pages/zyb/qrcodeLogin.vue | 10 +-
pages/zyb/school/list.vue | 6 +-
pages/zyb/score/edit.vue | 62 +++-
pages/zyb/tiyujisuan/index.vue | 307 ++++++++++++++++++
pages/zyb/user/bindPhone.vue | 2 +-
pages/zyb/user/detail.vue | 2 +-
pages/zyb/user/index.vue | 54 +--
pages/zyb/vip/cardamom.vue | 11 +-
pages/zyb/vip/checkoutCounter.vue | 10 +-
pages/zyb/vip/index.vue | 4 +-
.../components/mrsong-charts/uchart.config.js | 7 +-
.../common/uni-config-center/package.json | 7 +-
.../cloudfunctions/common/uni-id/package.json | 3 +-
.../cloudfunctions/checkVersion/package.json | 6 +-
37 files changed, 634 insertions(+), 143 deletions(-)
create mode 100644 pages/zyb/tiyujisuan/index.vue
diff --git a/common/ApiConstant.js b/common/ApiConstant.js
index 1c6a7ef..865c8ed 100644
--- a/common/ApiConstant.js
+++ b/common/ApiConstant.js
@@ -8,8 +8,8 @@ export default {
majorList: '/yx/yxMajor/list',//获取专业信息表-分页列表查询
majorInfo: '/mini/major/majorInfo',//获取专业详情
miniMajorList: '/mini/major/miniMajorList',//专业列表
- calculateInvestment: '/mini/recommendMajor/calculateInvestment',//投档分测算
- testCultural: '/mini/recommendMajor/testCultural',//文化分测算
+ calculateInvestment: '/mini/major/calculateInvestment',//投档分测算
+ testCultural: '/mini/major/testCultural',//文化分测算
groupByBatchNumber:'/mini/major/groupByBatchNumber',//获取各个批次是否有专业
rulesEnrollrobabilityMenuList: '/mini/major/rulesEnrollrobabilityMenuList',
schoolMajorListByBatchAndMajorType: '/mini/major/schoolMajorListByBatchAndMajorType',//智能填报页面获取专业列表
@@ -22,18 +22,18 @@ export default {
//用户类
User: {
exchangeVipCard: '/yx/yxVipCard/exchange',//兑换vip卡
- login:'/mini/user/login',//密码登录
+ login:'/mini/user/v1/login',//密码登录
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',//获取微信二维码登录 状态
wxQrCodeUpdateStatus:'/wx/user/updateQrCodeStatus',//更新微信二维码登录 状态
wxQrCodeExit:'/wx/user/cancelQrCode',//取消微信二维码登录
//=================================================================抖音
- dyLogin:'/mini/user/dy/login',//抖音登录
- dyCheckBindPhone :'/mini/user/dy/checkBindPhone',//抖音判断手机号绑定
- dyBindPhone :'/mini/user/dy/bindPhone',//抖音判断手机号绑定
+ dyLogin:'/mini/user/v1/dyLogin',//抖音登录
+ dyCheckBindPhone :'/mini/user/v1/dyCheckBindPhone',//抖音判断手机号绑定
+ dyBindPhone :'/mini/user/v1/dyBindPhone',//抖音判断手机号绑定
},
System: {
findPassWord: '/sys/findPassWord',//找回密码
@@ -80,11 +80,11 @@ export default {
vip1: '/mini/pay/v1/jsApiPay',//支付类型1
},
VIP: {
- cardActivation: '/mini/vip/card/activation',//卡密兑换
+ cardActivation: '/mini/vip/v1/card/activation',//卡密兑换
orderList:'/mini/order/orderList',//获取订单列表
orderDetail: '/mini/order/orderDetail',//获取订单信息
- skuList: '/mini/vip/sku/all',//获取全部商品
- vipInfo: '/mini/vip/getVipInfo',//获取当前用户vip信息
+ skuList: '/mini/vip/v1/sku/all',//获取全部商品
+ vipInfo: '/mini/vip/v1/getVipInfo',//获取当前用户vip信息
},
Article: {
articlePage: '/mini/article/page',//文章列表
diff --git a/common/StaticConstant.js b/common/StaticConstant.js
index d9e93e5..d82f24a 100644
--- a/common/StaticConstant.js
+++ b/common/StaticConstant.js
@@ -1,5 +1,4 @@
import ImagesConstant from "@/common/ImagesConstant";
-
export default {
systemName: '艺体志愿宝',
email:'yitisheng@163.com',
@@ -33,7 +32,7 @@ export default {
],
//专业选项
professionalCategoryList: [
- {value: '美术与设计类', label: '美术与设计类', scoreMax: 300,},
+ {value: '美术与设计类', label: '美术与设计类', scoreMax: 300},
{
value: '音乐类', label: '音乐类', scoreMax: 300, children: [
{label: '音乐表演声乐', value: '音乐表演声乐', exclude: '音乐表演器乐'},
@@ -41,8 +40,8 @@ export default {
{label: '音乐教育', value: '音乐教育'}
]
},
- {value: '舞蹈类', label: '舞蹈类', scoreMax: 300,},
- {value: '播音与主持类', label: '播音与主持类', scoreMax: 300,},
+ {value: '舞蹈类', label: '舞蹈类', scoreMax: 300},
+ {value: '播音与主持类', label: '播音与主持类', scoreMax: 300},
{
value: '表演类', label: '表演类', scoreMax: 300, children: [
{label: '服装表演', value: '服装表演'},
@@ -50,7 +49,7 @@ export default {
{label: '戏剧影视表演', value: '戏剧影视表演'}
]
},
- {value: '书法类', label: '书法类', scoreMax: 300,},
+ {value: '书法类', label: '书法类', scoreMax: 300},
{value: '戏曲类', label: '戏曲类', scoreMax: 300},
{value: '体育类', label: '体育类', scoreMax: 150,},
/*{value: '艺术舞蹈类', label: '艺术舞蹈类', scoreMax: 200},
diff --git a/common/js/commonTool.js b/common/js/commonTool.js
index f79bbc9..6986c76 100644
--- a/common/js/commonTool.js
+++ b/common/js/commonTool.js
@@ -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()
export default {
//调试vip信息
@@ -11,22 +13,29 @@ export default {
}
},
//刷新vip信息
- reloadVipInfo() {
- return request.post('/api/static/data/getJson', { key: key }, { showLoad: false }).then(r => {
+ reloadVipInfo() {
+ 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) {
- return r.result;
- } else {
- return {};
+ return r.result
}
}).catch(err => {
- console.log('请求:'+key+"时出错:")
- console.log(err)
- return {};
+ return {}
}).finally(() => {
});
},
- async loadStaticConfig(key){
- return request.post('/api/static/data/getJson',{key:key},{showLoad:false}).then(r => {
+ async loadStaticConfigParams(key,params){
+ return request.post('/api/static/data/getJson',{key:key,...params},{showLoad:false}).then(r => {
console.log(r)
if (r.success) {
return r.result
@@ -50,4 +59,10 @@ export default {
// return year + "-" + month + "-" + day + " " + hours + ":" + minutes + ":" + seconds;
return year + "-" + month + "-" + day;
},
+ getSystemName(){
+ return ENV_CONFIG[process.env.NAME].name
+ },
+ getPlayerType(){
+ return this.getSystemName()==='体育志愿宝'?'体育类':'艺术类'
+ },
}
diff --git a/common/js/jumpTool.js b/common/js/jumpTool.js
index 3cc0917..aa45d0e 100644
--- a/common/js/jumpTool.js
+++ b/common/js/jumpTool.js
@@ -9,6 +9,7 @@ export default{
this.goto('/pages/zyb/login')
},
goArticleDetail(e){
+ console.log(e)
this.goto('/pages/zyb/article/detail?articleId='+e.id)
},
/*打开成绩修改界面*/
diff --git a/common/request.js b/common/request.js
index 5e4d333..91b24f8 100644
--- a/common/request.js
+++ b/common/request.js
@@ -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 ApiConstant from "@/common/ApiConstant";
// vuex 的使用 详情参考官网 https://uniapp.dcloud.io/vue-vuex
@@ -18,15 +19,20 @@ export default class Request {
if (param.showLoad===false) {
showLoading = false;
}
- /*hideLoading = param.hideLoading || false;
- token = param.token || "",*/
//拼接完整请求地址
- var requestUrl = operate.api + url;
- //console.log(requestUrl)
+ var requestUrl = ENV_CONFIG[process.env.NAME].requestBaseUrl + url;
+
//拼接完整请求地址(根据环境切换)
//请求方式:GET或POST(POST需配置
if (method) {
+ if(process.env.NAME){
+ if(process.env.NAME === 'dy_tiyu_prod'){
+ data['programType'] = '体育志愿宝'
+ }else{
+ data['programType'] = '艺体志愿宝'
+ }
+ }
method = method.toUpperCase(); //小写改为大写
if (method === "POST") {
header = {"content-type":'application/json',...header}
diff --git a/common/util.js b/common/util.js
index b807016..586b54c 100644
--- a/common/util.js
+++ b/common/util.js
@@ -116,6 +116,7 @@ function yearAbridge(year){
return '未知'
}
+
export {
formatTime,
formatLocation,
diff --git a/main.js b/main.js
index be05ed1..6483825 100644
--- a/main.js
+++ b/main.js
@@ -23,6 +23,7 @@ app.$mount()
import {
createSSRApp
} from 'vue'
+import {setSystemName} from "./common/util";
export function createApp() {
const app = createSSRApp(App)
app.use(store)
diff --git a/manifest.json b/manifest.json
index 6d10517..1a21a2f 100644
--- a/manifest.json
+++ b/manifest.json
@@ -135,7 +135,7 @@
"uniStatistics" : {
"enable" : true
},
- "appid" : "tt59a72f1ac6964bfa01"
+ "appid" : "tt9a2bec96051c14c001"
},
"mp-jd" : {
"usingComponents" : true,
diff --git a/package-lock.json b/package-lock.json
index 733bc2a..2f847bd 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,13 +1,26 @@
{
"name": "hello-uniapp",
"version": "3.4.5",
- "lockfileVersion": 1,
+ "lockfileVersion": 3,
"requires": true,
- "dependencies": {
- "@dcloudio/uni-helper-json": {
+ "packages": {
+ "": {
+ "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",
"resolved": "https://registry.npmmirror.com/@dcloudio/uni-helper-json/-/uni-helper-json-1.0.13.tgz",
"integrity": "sha512-FO9Iu4zW4td3Tr+eiCDWuele2ehkJ4qxQ/UhpAMLjso+ZdWz6NagK5Syh6cdy1hoDqbxpNoqnLynuJXe81Ereg=="
+ },
+ "node_modules/hello-uniapp": {
+ "resolved": "",
+ "link": true
}
}
}
diff --git a/package.json b/package.json
index a943ffe..0a8ed93 100644
--- a/package.json
+++ b/package.json
@@ -107,10 +107,32 @@
"define": {
"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": {
- "@dcloudio/uni-helper-json": "^1.0.13"
+ "@dcloudio/uni-helper-json": "^1.0.13",
+ "hello-uniapp": "file:"
}
}
diff --git a/pages.json b/pages.json
index e636434..62efad6 100644
--- a/pages.json
+++ b/pages.json
@@ -17,7 +17,7 @@
{
"path": "pages/zyb/home",
"style": {
- "navigationBarTitleText": "艺体志愿宝",
+ "navigationBarTitleText": " ",
"app-plus": {
"bounce": "none",
"titleNView": {
@@ -42,7 +42,7 @@
{
"path": "pages/zyb/qrcodeLogin",
"style": {
- "navigationBarTitleText": "艺体志愿宝"
+ "navigationBarTitleText": "扫码登录"
}
},
@@ -81,7 +81,7 @@
{
"path": "pages/zyb/login",
"style": {
- "navigationBarTitleText": "艺体志愿宝"
+ "navigationBarTitleText": "登录账号"
}
},
{
@@ -365,7 +365,7 @@
{
"path": "pages/zyb/other/web-view",
"style": {
- "navigationBarTitleText": "艺体志愿宝"
+ "navigationBarTitleText": "在线预览"
}
},
@@ -404,6 +404,12 @@
"style": {
"navigationBarTitleText": "招生章程"
}
+ },
+ {
+ "path": "pages/zyb/tiyujisuan/index",
+ "style": {
+ "navigationBarTitleText": "体育成绩计算器"
+ }
}
],
"subPackages": [
diff --git a/pages/zyb/fillVolunteer/detail.vue b/pages/zyb/fillVolunteer/detail.vue
index a1be7b1..cd08e2e 100644
--- a/pages/zyb/fillVolunteer/detail.vue
+++ b/pages/zyb/fillVolunteer/detail.vue
@@ -20,6 +20,7 @@ export default {
},
data() {
return {
+ vipInfo:{},
paneFlag: false,
scoreStatus: true,
moveVolunteer: {
@@ -86,6 +87,7 @@ export default {
this.scoreStatus = true
}
}
+ this.vipInfo = uni.getStorageSync('vipInfo')
} else {
//没有登录,跳转到登录页
this.goto('/pages/zyb/login')
@@ -444,7 +446,7 @@ export default {
{{ scoreInfo.province }}
- {{ scoreInfo.cognitioPolyclinic }}
+ {{ scoreInfo.cognitioPolyclinic === '文科'?'历史组':'物理组' }}
{{ scoreInfo.professionalCategory }}
@@ -529,7 +531,12 @@ export default {
{{ item.majorName }}
- {{ item.enrollProbability.toString().substring(0,4) }}%
+
+ {{ item.enrollProbability.toString().substring(0,4) }}%
+
+
+ ??%
+
diff --git a/pages/zyb/fillVolunteer/index.vue b/pages/zyb/fillVolunteer/index.vue
index ec77863..e129a0f 100644
--- a/pages/zyb/fillVolunteer/index.vue
+++ b/pages/zyb/fillVolunteer/index.vue
@@ -3,9 +3,9 @@ import StaticConstant from "@/common/StaticConstant";
import ApiConstant from "@/common/ApiConstant";
import Request from '@/common/request'
import ImagesConstant from "@/common/ImagesConstant";
-import {arrayIsNotEmpty} from "@/common/util";
+import {arrayIsNotEmpty,stringIsNotEmpty} from "@/common/util";
import vip from "../vip/index.vue";
-import {stringIsNotEmpty} from "../../../common/util";
+import CommonTool from "@/common/js/commonTool";
let request = new Request()
// 缓存每页最多
@@ -29,6 +29,7 @@ export default {
data() {
return {
///
+ systemName:'',
num: {kcj: 0, jwt: 0, nlq: 0, kbd: 0,},
circle: {kcj: 0, jwt: 0, nlq: 0, kbd: 0,},//百分比
modelVale: 0,
@@ -97,6 +98,7 @@ export default {
this.userInfo = uni.getStorageSync('userInfo')
},
onLoad(e) {
+ this.systemName = CommonTool.getSystemName()
this.vipInfo = uni.getStorageSync('vipInfo')
if (e.batch && e.volunteerId) {
//从我的志愿 点击跳转而来
@@ -124,14 +126,14 @@ export default {
},
onShareAppMessage() {
return {
- title: '艺体志愿宝-测一测你能上的大学', //分享标题
+ title: systemName+'-测一测你能上的大学', //分享标题
path: "/pages/zyb/fillVolunteer/index"
}
},
// 分享到微信朋友圈
onShareTimeline(res) {
return {
- title: '测一测你能上的大学', //分享标题
+ title: systemName+'测一测你能上的大学', //分享标题
path: "/pages/zyb/fillVolunteer/index"
}
},
@@ -800,7 +802,7 @@ export default {
省份:{{ scoreInfo.province }}
- 选科:{{ scoreInfo.cognitioPolyclinic }}
+ 选科:{{ scoreInfo.cognitioPolyclinic ==='文科'?'历史组':'物理组' }}
类别:{{ scoreInfo.professionalCategory }}
diff --git a/pages/zyb/fillVolunteer/mockList.vue b/pages/zyb/fillVolunteer/mockList.vue
index 9c85c0d..b039a55 100644
--- a/pages/zyb/fillVolunteer/mockList.vue
+++ b/pages/zyb/fillVolunteer/mockList.vue
@@ -155,7 +155,7 @@ export default {
},
onShareAppMessage() {
return {
- title: '艺体志愿宝-测一测你能上的大学', //分享标题
+ title: '测一测你能上的大学', //分享标题
path: "/pages/zyb/fillVolunteer/index"
}
},
@@ -881,7 +881,7 @@ export default {
省份:{{ scoreInfo.province }}
- 选科:{{ scoreInfo.cognitioPolyclinic }}
+ 选科:{{ scoreInfo.cognitioPolyclinic ==='文科'?'历史组':'物理组' }}
类别:{{ scoreInfo.professionalCategory }}
diff --git a/pages/zyb/fillVolunteer/my-detail.vue b/pages/zyb/fillVolunteer/my-detail.vue
index 3e3e701..4ba06ba 100644
--- a/pages/zyb/fillVolunteer/my-detail.vue
+++ b/pages/zyb/fillVolunteer/my-detail.vue
@@ -448,7 +448,7 @@ export default {
{{ scoreInfo.province }}
- {{ scoreInfo.cognitioPolyclinic }}
+ {{ scoreInfo.cognitioPolyclinic === '文科'?'历史组':'物理组' }}
{{ scoreInfo.professionalCategory }}
diff --git a/pages/zyb/fillVolunteer/my.vue b/pages/zyb/fillVolunteer/my.vue
index 8919be5..f95b145 100644
--- a/pages/zyb/fillVolunteer/my.vue
+++ b/pages/zyb/fillVolunteer/my.vue
@@ -153,7 +153,7 @@ export default {
{{
- item.userScoreInfo.cognitioPolyclinic
+ item.userScoreInfo.cognitioPolyclinic === '文科'?'历史组':'物理组'
}} | {{ item.userScoreInfo.professionalCategory }}
diff --git a/pages/zyb/fillVolunteer/old-detail.vue b/pages/zyb/fillVolunteer/old-detail.vue
index 9ccc410..b2f1883 100644
--- a/pages/zyb/fillVolunteer/old-detail.vue
+++ b/pages/zyb/fillVolunteer/old-detail.vue
@@ -494,7 +494,7 @@ export default {
{{ scoreInfo.province }}
- {{ scoreInfo.cognitioPolyclinic }}
+ {{ scoreInfo.cognitioPolyclinic === '文科'?'历史组':'物理组' }}
{{ scoreInfo.professionalCategory }}
diff --git a/pages/zyb/home.vue b/pages/zyb/home.vue
index b0646d4..6d8be07 100644
--- a/pages/zyb/home.vue
+++ b/pages/zyb/home.vue
@@ -4,22 +4,21 @@ import ImagesConstant from "@/common/ImagesConstant";
import ApiConstant from "@/common/ApiConstant";
import Request from "@/common/request";
import JumpTool from "@/common/js/jumpTool";
-import jumpTool from "@/common/js/jumpTool";
+import CommonTool from "@/common/js/commonTool";
let request = new Request()
export default {
name: "home",
components: {},
computed: {
- jumpTool() {
- return jumpTool
- },
StaticConstant() {
return StaticConstant
}
},
data() {
return {
+ systemName:"",
+ playerType:'艺体考生',
userStatus: false,
scoreInfo: null,
zyNum: null,//专业数量
@@ -48,6 +47,23 @@ export default {
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() {
//进入页面后,判断是否登录了
let userInfo = uni.getStorageSync('userInfo')
@@ -62,9 +78,6 @@ export default {
}
}
},
- onLoad() {
- this.getAdmissionsRegulationsList()
- },
onReachBottom() {
this.loadMore()
},
@@ -74,14 +87,14 @@ export default {
},
onShareAppMessage() {
return {
- title: StaticConstant.systemName, //分享标题
+ title: '测一测你能上的大学', //分享标题
path: "/pages/zyb/home"
}
},
// 分享到微信朋友圈
onShareTimeline(res) {
return {
- title: StaticConstant.systemName, //分享标题
+ title: '测一测你能上的大学', //分享标题
path: "/pages/zyb/home"
}
},
@@ -222,7 +235,9 @@ export default {
console.log(this.scrollLeft, 60, id)
}
},
-
+ goArticleDetail(e){
+ JumpTool.goArticleDetail(e)
+ },
}
}
@@ -232,8 +247,8 @@ export default {
@@ -88,10 +96,15 @@ export default {
this.getOrderList()
},
openDetail(e){
- uni.navigateTo({
- url: '/pages/zyb/order/detail?orderCode='+e.orderCode
- })
+ uni.navigateTo({
+ url: '/pages/zyb/order/detail?orderCode='+e.orderCode
+ })
},
+ goPay(e){
+ uni.navigateTo({
+ url: '/pages/zyb/vip/checkoutCounter?orderCode='+e.orderCode
+ })
+ },
getOrderList(){
request.get(ApiConstant.VIP.orderList,{}).then(r => {
console.log(r)
@@ -104,12 +117,10 @@ export default {
});
},
getColorByStatus(status){
- if (status === '1') {
+ if (status === '待支付') {
return '#f96543';
- }else if (status === '2') {
+ }else if (status === '已支付') {
return '#85e689';
- }else if (status === '5') {
- return '#f2891b';
}else{
return '#bb0303';
}
diff --git a/pages/zyb/other/calculateInvestment.vue b/pages/zyb/other/calculateInvestment.vue
index 3031c69..845a566 100644
--- a/pages/zyb/other/calculateInvestment.vue
+++ b/pages/zyb/other/calculateInvestment.vue
@@ -213,7 +213,7 @@ export default {
文理
- {{this.scoreInfo.cognitioPolyclinic}}
+ {{this.scoreInfo.cognitioPolyclinic === '文科'?'历史组':'物理组'}}
- (一)、适用范围:艺术类文理科考生(自主招生暂不适用)。
+ (一)、适用范围:{{playerType}}文理科考生(自主招生暂不适用)。
(二)、使用期限:自购买起,截止到2024-08-31日有效。
(三)、分数修改次数:每届服务期内高考分数放榜前可修改10次,放榜后只可修改1次。
(四)、系统数据来源于及第生涯部门,由合作网站提供。
diff --git a/pages/zyb/qrcodeLogin.vue b/pages/zyb/qrcodeLogin.vue
index 8a8db6f..e37d8d8 100644
--- a/pages/zyb/qrcodeLogin.vue
+++ b/pages/zyb/qrcodeLogin.vue
@@ -4,16 +4,12 @@ import ApiConstant from "@/common/ApiConstant";
import Request from '@/common/request'
import StaticConstant from "@/common/StaticConstant";
import commonTool from "@/common/js/commonTool";
-import CommonTool from "@/common/js/commonTool";
let request = new Request()
export default {
name: "home",
components: {},
computed: {
- CommonTool() {
- return CommonTool
- },
StaticConstant() {
return StaticConstant
}
@@ -34,7 +30,7 @@ export default {
console.log(options.scene)
console.log(this.uuid)
this.getQrCodeStatus()
-
+
}
},
onShow() {
@@ -198,7 +194,7 @@ export default {
-
+
二维码已失效
diff --git a/pages/zyb/school/list.vue b/pages/zyb/school/list.vue
index 0b7ff3b..16ea425 100644
--- a/pages/zyb/school/list.vue
+++ b/pages/zyb/school/list.vue
@@ -340,7 +340,7 @@ export default {
{{ item.zdf }}分
-->
-
+
23年省内计划录取:
{{ item.jhs }}人
@@ -354,13 +354,13 @@ export default {
{{ item.kslx }}
-
+
{{ yearAbridge(item.zdfYear) }}年录取最低分:
{{ item.zdf }}分
-
+
{{item.luquYear}}年省内计划录取:
{{ item.jhs }}人
diff --git a/pages/zyb/score/edit.vue b/pages/zyb/score/edit.vue
index 023abb7..b9b8dd8 100644
--- a/pages/zyb/score/edit.vue
+++ b/pages/zyb/score/edit.vue
@@ -28,7 +28,8 @@ export default {
culturalScore: '',//文化分
professionalScore: '',//统考分
chineseScore: '',
- englishScore: ''
+ englishScore: '',
+ subjectList: [],
},
formRuleFlag: false,//表单是否校验成功
provinceArray: [{
@@ -37,8 +38,17 @@ export default {
value: "河南",
},],//
cognitioPolyclinicArray: StaticConstant.categoryList,//文理分科
+ subjectArray: [{
+ name:'地理'
+ },{
+ name:'政治'
+ },{
+ name:'化学'
+ },{
+ name:'生物'
+ }],
//===========================================================
- professionalCategoryArray: StaticConstant.professionalCategoryList,//专业类别大类array
+ professionalCategoryArray: [],//专业类别大类array
professionalCategoryVisible: false,//专业类别 是否显示
professionalCategoryIndex: null,
pCategoryChildrenList: [],//子级选择
@@ -51,7 +61,16 @@ export default {
// 志愿单打印配置
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.getUserScore()
this.vipInfo = uni.getStorageSync('vipInfo')
@@ -123,7 +142,9 @@ export default {
url: '/pages/zyb/home'
})
}, 800)
- }
+ }else{
+ uni.showToast({title: res.message, icon: "none"});
+ }
}).catch(err => {
}).finally(() => {
});
@@ -183,9 +204,21 @@ export default {
},
//选择科目
switchKelei(e) {
- this.scoreInfo.cognitioPolyclinic = e.name
- this.checkForm()
+ this.scoreInfo.cognitioPolyclinic = e.name
+ 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) {
let that = this
console.log('form发生了submit事件,携带数据为:' + JSON.stringify(e.detail.value))
@@ -195,7 +228,6 @@ export default {
return;
}
//选择科目(文理分科)
- console.log(this.scoreInfo.cognitioPolyclinic)
if (!stringIsNotEmpty(this.scoreInfo.cognitioPolyclinic)) {
uni.showToast({title: '请选择选考科目', icon: "none"});
return;
@@ -430,11 +462,23 @@ export default {
- {{ item.name }}
+ {{ item.name==='文科'?'历史组':'物理组' }}
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
@@ -536,7 +580,7 @@ export default {
还可更改{{ 5-useCount }}次
- 今日修改次数已用完
+ 修改次数已用完
刷新专业
diff --git a/pages/zyb/tiyujisuan/index.vue b/pages/zyb/tiyujisuan/index.vue
new file mode 100644
index 0000000..4f5007c
--- /dev/null
+++ b/pages/zyb/tiyujisuan/index.vue
@@ -0,0 +1,307 @@
+
+
+
+
+
+
+ 河南体育成绩计算器
+
+
+
+
+
+
+
+ 性别
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+ 100米
+
+
+
+
+
+ 秒
+
+
+
+
+
+ 立定跳远
+
+
+
+
+
+ 米
+
+
+
+
+
+ 原地推铅球
+
+
+
+
+
+ 米
+
+
+
+
+
+
+
+
+ 查询
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/zyb/user/bindPhone.vue b/pages/zyb/user/bindPhone.vue
index 98f9690..e16cfe7 100644
--- a/pages/zyb/user/bindPhone.vue
+++ b/pages/zyb/user/bindPhone.vue
@@ -37,7 +37,7 @@ export default {
/*绑定手机号*/
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)
if (r.success) {
if(r.result.status === 0){
diff --git a/pages/zyb/user/detail.vue b/pages/zyb/user/detail.vue
index e497b03..31ecff5 100644
--- a/pages/zyb/user/detail.vue
+++ b/pages/zyb/user/detail.vue
@@ -86,7 +86,7 @@ export default {
选考科目
- {{scoreInfo.cognitioPolyclinic}}
+ {{ scoreInfo.cognitioPolyclinic === '文科'?'历史组':'物理组' }}
diff --git a/pages/zyb/user/index.vue b/pages/zyb/user/index.vue
index efb3432..8804723 100644
--- a/pages/zyb/user/index.vue
+++ b/pages/zyb/user/index.vue
@@ -1,15 +1,12 @@
@@ -217,7 +222,7 @@ export default {
{{ scoreInfo.province }}
- /2023
+ /2024
@@ -285,6 +290,16 @@ export default {
+
+
+
我的志愿
@@ -297,7 +312,7 @@ export default {
{{ scoreInfo && scoreInfo.province || '--' }} /
- {{ scoreInfo && scoreInfo.cognitioPolyclinic || '--' }} /
+ {{ scoreInfo && scoreInfo.cognitioPolyclinic ==='文科'?'历史组':'物理组' || '--' }} /
{{ scoreInfo && scoreInfo.professionalCategory || '--' }}
@@ -313,8 +328,9 @@ export default {
-
-
+ {{item.type}}
+
+
@@ -345,7 +361,7 @@ export default {
- {{ StaticConstant.systemName }}
+ {{ systemName }}
@@ -428,8 +444,8 @@ export default {
position: absolute;
width: 80%;
background: salmon;
- opacity: 0;
- border-radius: 0;
+ // opacity: 0;
+ // border-radius: 0;
}
diff --git a/pages/zyb/vip/cardamom.vue b/pages/zyb/vip/cardamom.vue
index e01faed..0504367 100644
--- a/pages/zyb/vip/cardamom.vue
+++ b/pages/zyb/vip/cardamom.vue
@@ -3,9 +3,8 @@
import StaticConstant from "@/common/StaticConstant";
import ApiConstant from "@/common/ApiConstant";
import Request from '@/common/request'
-import user from "@/pages/zyb/user/index.vue";
-import commonTool from "../../../common/js/commonTool";
-import {stringIsNotEmpty} from "../../../common/util";
+import commonTool from "@/common/js/commonTool";
+import {stringIsNotEmpty} from "@/common/util";
let request = new Request()
export default {
name: "cardamom",
@@ -16,9 +15,13 @@ export default {
},
data() {
return {
+ playerType:'艺术类',
userInputCardNum: '', // 卡账号
}
},
+ onLoad(){
+ this.playerType = commonTool.getPlayerType()
+ },
methods: {
bankcardInput(e) {
setTimeout(() => {
@@ -84,7 +87,7 @@ export default {
使用须知
- -适用范围:艺术类文理科考生(自主招生暂不适用)。
+ -适用范围:{{playerType}}文理科考生(自主招生暂不适用)。
-使用期限:自购买起,截止到2024-08-31日有效。分数修改次数:每届服务期内高考分数放榜前每日可修改10次,放榜后仅可修改1次。
diff --git a/pages/zyb/vip/checkoutCounter.vue b/pages/zyb/vip/checkoutCounter.vue
index 7768f63..cae9d01 100644
--- a/pages/zyb/vip/checkoutCounter.vue
+++ b/pages/zyb/vip/checkoutCounter.vue
@@ -22,12 +22,14 @@ export default {
},
data() {
return {
+ playerType: '艺术类',
orderCode: '',//订单号
totalAmount: '',//金额
signStr:''
}
},
onLoad(e) {
+ this.playerType = commonTool.getPlayerType()
if (e.orderCode) {
this.orderCode = e.orderCode
this.getOrderDetail()
@@ -93,7 +95,7 @@ export default {
setTimeout(function () {
commonTool.reloadVipInfo()
uni.showToast({title:'支付成功', icon: "none"});
- }, 200)
+ }, 500)
setTimeout(function () {
uni.switchTab({
url: '/pages/zyb/home'
@@ -115,7 +117,7 @@ export default {
setTimeout(function () {
commonTool.reloadVipInfo()
that.openPopup2()
- }, 100)
+ }, 500)
}else{
uni.showToast({
title: 1===code?'支付超时':2===code?'支付失败':3===code?'支付关闭':4===code?'支付取消':"支付失败",
@@ -184,9 +186,9 @@ export default {
使用须知
- 适用考生:艺术类考生
+ 适用考生:{{playerType}}考生
使用专业类别:省内统考
- 适用批次:艺考类本科及专科批
+ 适用批次:{{playerType}}本科及专科批
适用范围:河南省
diff --git a/pages/zyb/vip/index.vue b/pages/zyb/vip/index.vue
index 3a3df13..3d19f5f 100644
--- a/pages/zyb/vip/index.vue
+++ b/pages/zyb/vip/index.vue
@@ -113,7 +113,7 @@ export default {
this.goto('/pages/zyb/vip/cardamom')
},
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)
if (r.success) {
this.cardArray = r.result
@@ -283,7 +283,7 @@ export default {
-
+
卡密激活
立即开通
diff --git a/uni_modules/mrsong-charts/components/mrsong-charts/uchart.config.js b/uni_modules/mrsong-charts/components/mrsong-charts/uchart.config.js
index ea62ddc..9cc5b45 100644
--- a/uni_modules/mrsong-charts/components/mrsong-charts/uchart.config.js
+++ b/uni_modules/mrsong-charts/components/mrsong-charts/uchart.config.js
@@ -42,13 +42,14 @@ export function initColumnData(options) {
"fontColor": "#666666",
"fontSize": 11,
"rotateLabel": true,
- "itemCount": 4,
+
"padding": 10,
"margin": 10,
"boundaryGap": "center",
"disableGrid": true,
"gridColor": "#CCCCCC",
- "gridType": "solid",
+ /*"itemCount": 4,
+ "gridType": "solid",*/
"dashLength": 4,
"gridEval": 1,
"type": 'grid',
@@ -183,7 +184,7 @@ export function initLineData() {
"boundaryGap": "center",
"disableGrid": true,
"gridColor": "#CCCCCC",
- "gridType": "solid",
+ /*"gridType": "solid",*/
"dashLength": 4,
"gridEval": 1,
"type": 'grid',
diff --git a/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/package.json b/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/package.json
index 300e837..7ec293e 100644
--- a/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/package.json
+++ b/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/package.json
@@ -5,5 +5,8 @@
"main": "index.js",
"keywords": [],
"author": "DCloud",
- "license": "Apache-2.0"
-}
\ No newline at end of file
+ "license": "Apache-2.0",
+ "dependencies": {
+ "uni-config-center": "file:"
+ }
+}
diff --git a/uni_modules/uni-id/uniCloud/cloudfunctions/common/uni-id/package.json b/uni_modules/uni-id/uniCloud/cloudfunctions/common/uni-id/package.json
index 59edd1e..c7ae865 100644
--- a/uni_modules/uni-id/uniCloud/cloudfunctions/common/uni-id/package.json
+++ b/uni_modules/uni-id/uniCloud/cloudfunctions/common/uni-id/package.json
@@ -12,6 +12,7 @@
"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"
}
-}
\ No newline at end of file
+}
diff --git a/uni_modules/uni-upgrade-center-app/uniCloud/cloudfunctions/checkVersion/package.json b/uni_modules/uni-upgrade-center-app/uniCloud/cloudfunctions/checkVersion/package.json
index e36bef9..93f7634 100644
--- a/uni_modules/uni-upgrade-center-app/uniCloud/cloudfunctions/checkVersion/package.json
+++ b/uni_modules/uni-upgrade-center-app/uniCloud/cloudfunctions/checkVersion/package.json
@@ -1,7 +1,9 @@
{
"name": "checkVersion",
- "dependencies": {},
+ "dependencies": {
+ "checkVersion": "file:"
+ },
"extensions": {
"uni-cloud-jql": {}
}
-}
\ No newline at end of file
+}