diff --git a/.env.production b/.env.production index 0a20fe4..1c040a2 100644 --- a/.env.production +++ b/.env.production @@ -1,3 +1,5 @@ -NODE_ENV = 'production' -VITE_APP_TITLE = '教学一体化平台' -# VITE_APP_BASE_API = '/api' \ No newline at end of file +# 变量必须以 VITE_ 为前缀才能暴露给外部读取 +NODE_ENV = 'development' +VITE_APP_TITLE = '高赛通' +VITE_APP_BASE_API = http://localhost:18085/jeecg-boot +# VITE_APP_BASE_API = 'http://127.0.0.1:8080' \ No newline at end of file diff --git a/README.md b/README.md index 96641a3..bfa2382 100644 --- a/README.md +++ b/README.md @@ -2,73 +2,73 @@ #### 目录 -----`leachinontecration olattorm temolate` ----模板名称 +----`leachinontecration olattorm temolate` ----模板名称 -​ ----`node modules` ----依赖包 +​ ----`node modules` ----依赖包 -​ ----`public` ----静态文件相关 +​ ----`public` ----静态文件相关 -​ ----`scripts` ----项目钩子脚本文件 +​ ----`scripts` ----项目钩子脚本文件 -​ ----`src` ----根目录开发主要文件 +​ ----`src` ----根目录开发主要文件 -​ ----`api` ----接口文件 +​ ----`api` ----接口文件 -​ ----assets ----静态资源(图片图标) +​ ----assets ----静态资源(图片图标) -​ ----`copmonents` ----全局组件 +​ ----`copmonents` ----全局组件 -​ ----Layout ----layout固定组件 +​ ----Layout ----layout固定组件 -​ ----`router` ----路由 +​ ----`router` ----路由 -​ ----`store` ----仓库`pinia` +​ ----`store` ----仓库`pinia` -​ ----styles ----全局样式文件 +​ ----styles ----全局样式文件 -​ ----`index.scss` ----全局样式 +​ ----`index.scss` ----全局样式 -​ ----`variable.scss` ----全局`scss`变量 +​ ----`variable.scss` ----全局`scss`变量 -​ ----`utils` -----封装工具文件 +​ ----`utils` -----封装工具文件 -​ ----`request.ts` ----封装的请求文件 +​ ----`request.ts` ----封装的请求文件 -​ ----`views` ----页面文件 +​ ----`views` ----页面文件 -​ ----`App.vue` ----项目根组件 +​ ----`App.vue` ----项目根组件 -​ ----`main.ts` ----项目入口文件 +​ ----`main.ts` ----项目入口文件 -​ ----`permission.ts` ----路由拦截器文件 +​ ----`permission.ts` ----路由拦截器文件 -​ ----`.env.development` ----开发环境变量 +​ ----`.env.development` ----开发环境变量 -​ ----`.env.production` ----生产环境变量 +​ ----`.env.production` ----生产环境变量 -​ ----`.env.test` ----测试环境变量 +​ ----`.env.test` ----测试环境变量 -​ ----` .eslintignore` ----代码校验排除文件 +​ ----` .eslintignore` ----代码校验排除文件 -​ ----`.eslintrc.cjs` ----代码校验文件 +​ ----`.eslintrc.cjs` ----代码校验文件 -​ ----`.gitignore` ----`git`提交排除文件 +​ ----`.gitignore` ----`git`提交排除文件 -​ ----`.prettierignore` ----代码美化排除文件 +​ ----`.prettierignore` ----代码美化排除文件 -​ ----` .prettierrc.json` ----代码美化配置文件 +​ ----` .prettierrc.json` ----代码美化配置文件 -​ ----`.stylelintignore` ----`css`校验排除文件 +​ ----`.stylelintignore` ----`css`校验排除文件 -​ ----` .stylelintrc.cjs` ----`css`校验文件 +​ ----` .stylelintrc.cjs` ----`css`校验文件 -​ ----`index.html` ----挂载点 +​ ----`index.html` ----挂载点 -​ ----`package.json` ----项目配置文件 +​ ----`package.json` ----项目配置文件 -​ ----`tsconfig.json` ----`TypeScript`配置文件 +​ ----`tsconfig.json` ----`TypeScript`配置文件 -​ ----`vite.config.ts` ----打包配置文件 +​ ----`vite.config.ts` ----打包配置文件 #### 图标组件 @@ -77,7 +77,7 @@ 用法: ```vue -
+
``` -`svg`图标下载 https://www.iconfont.cn/ +`svg`图标下载 https://www.iconfont.cn/ 选择图标下载`svg`格式修改文件名引入文件即可使用 @@ -161,7 +161,6 @@ let props = defineProps(["info",'money']); ``` - 当前代码级给pre标签绑定原生DOM事件点击事件,默认会给事件回调注入event事件对象。当然点击事件想注入多个参数可以按照下图操作。但是切记注入的事件对象务必叫做$event. ``` @@ -218,8 +217,6 @@ const handler = () => { let $emit = defineEmits(["xxx",'click']); ``` - - ### 1.3全局事件总线 全局事件总线可以实现任意组件通信,在vue2中可以根据VM与VC关系推出全局事件总线。 @@ -252,8 +249,6 @@ v-model指令可是收集表单数据(数据双向绑定),除此之外它也 ``` - - ### 1.5useAttrs 在Vue3中可以利用useAttrs方法获取组件的属性与事件(包含:原生DOM事件或者自定义事件),次函数功能类似于Vue2框架中$attrs属性与$listeners方法。 @@ -273,12 +268,8 @@ let $attrs = useAttrs(); ``` - - ### 1.6ref与$parent - - ref,提及到ref可能会想到它可以获取元素的DOM或者获取子组件实例的VC。既然可以在父组件内部通过ref获取子组件实例VC,那么子组件内部的方法与响应式数据父组件可以使用的。 比如:在父组件挂载完毕获取组件实例 @@ -489,4 +480,4 @@ let todos = ref([ ``` -## \ No newline at end of file +## diff --git a/package.json b/package.json index 367fe90..8667033 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "dev": "vite --open", "build:test": "vite build", "build:pro": "vue-tsc && vite build --mode production", + "build": " vite build --mode production", "preview": "vite preview", "lint": "eslint src", "fix": "eslint src --fix", diff --git a/src/Layout/footer/index.vue b/src/Layout/footer/index.vue index b6c1707..e823d02 100644 --- a/src/Layout/footer/index.vue +++ b/src/Layout/footer/index.vue @@ -5,12 +5,9 @@
联系我们
服务协议
- +
违法和不良信息举报 举报电话:0xxx-8xxxxxxx 举报邮箱:xxxxxxxxx@qq.com -
@@ -50,11 +47,11 @@ import {} from 'vue' color: #0bd7c6; } } - .copyright{ + .copyright { margin-top: 80px; } - .report{ - margin-top: .1042rem; + .report { + margin-top: 0.1042rem; } } diff --git a/src/Layout/index.vue b/src/Layout/index.vue index e775e54..0314447 100644 --- a/src/Layout/index.vue +++ b/src/Layout/index.vue @@ -37,19 +37,19 @@ const scrollToTop = () => { }, 500) } const scrollTop = () => { - window.scrollTo({ - top: 0, - left: 0, - behavior: 'smooth', - }); - setTimeout(() => { - show.value = false - },1500); - setTimeout(() => { - show.value = true - flog.value = false - num = 800 - },1600); + window.scrollTo({ + top: 0, + left: 0, + behavior: 'smooth', + }) + setTimeout(() => { + show.value = false + }, 1500) + setTimeout(() => { + show.value = true + flog.value = false + num = 800 + }, 1600) } let num = 800 onMounted(() => { @@ -59,7 +59,7 @@ onMounted(() => { // console.log(high,totop.value.offsetTop) if (flog.value) { - num = num - 40 + num = num - 40 totop.value.style.top = num + 'px' return } @@ -82,20 +82,20 @@ onMounted(() => { .gotop { display: none; - width: 45PX; - height: 45PX; + width: 45px; + height: 45px; z-index: 999; position: fixed; bottom: 50px; right: 50px; background-image: url('../assets/images/jinglingtu.png'); - background-position: -264PX -78PX; + background-position: -264px -78px; transition: top 0.2s linear; animation: show 0.5s ease-in-out; } .gotop:hover { transition: background-image 0.2s ease-in; - background-position: -215PX -78PX; + background-position: -215px -78px; } .bian { animation: bian 0.1s ease-in-out; @@ -116,10 +116,10 @@ onMounted(() => { } @keyframes bian { 0% { - background-position: -6PX -145PX; + background-position: -6px -145px; } 100% { - background-position: -316PX -78PX; + background-position: -316px -78px; } } // @keyframes fei { diff --git a/src/Layout/main/index.vue b/src/Layout/main/index.vue index bc95800..09364c8 100644 --- a/src/Layout/main/index.vue +++ b/src/Layout/main/index.vue @@ -9,11 +9,9 @@ - \ No newline at end of file + diff --git a/src/Layout/tabbar/components/item.vue b/src/Layout/tabbar/components/item.vue index faff22d..863589a 100644 --- a/src/Layout/tabbar/components/item.vue +++ b/src/Layout/tabbar/components/item.vue @@ -1,63 +1,63 @@ + + + diff --git a/src/Layout/tabbar/index.vue b/src/Layout/tabbar/index.vue index 8cafa11..8343e7d 100644 --- a/src/Layout/tabbar/index.vue +++ b/src/Layout/tabbar/index.vue @@ -4,8 +4,12 @@
- - + +
@@ -16,8 +20,8 @@ mode="horizontal" :ellipsis="false" > - - + + -
+ -
- -
- - -
- -
- - - - - - - - - - - -
- -
-
-
+
+ +
+ +
+ +
+ + + + + + + + + + + +
+ +
+
+
+
- - \ No newline at end of file + diff --git a/src/views/personalEvaluateList/index.vue b/src/views/personalEvaluateList/index.vue index e5f2898..2d441b0 100644 --- a/src/views/personalEvaluateList/index.vue +++ b/src/views/personalEvaluateList/index.vue @@ -1,54 +1,65 @@ - - \ No newline at end of file + diff --git a/src/views/personalReport/components/randerChart.vue b/src/views/personalReport/components/randerChart.vue index 385e8c9..3c7fef2 100644 --- a/src/views/personalReport/components/randerChart.vue +++ b/src/views/personalReport/components/randerChart.vue @@ -1,102 +1,100 @@ - - diff --git a/src/views/personalReport/index.vue b/src/views/personalReport/index.vue index e1ba8ba..10643c7 100644 --- a/src/views/personalReport/index.vue +++ b/src/views/personalReport/index.vue @@ -1,382 +1,398 @@ - - diff --git a/src/views/projectName/index.vue b/src/views/projectName/index.vue index 8869e8a..87dd60e 100644 --- a/src/views/projectName/index.vue +++ b/src/views/projectName/index.vue @@ -1,179 +1,190 @@ - - \ No newline at end of file + diff --git a/src/views/raceInfo/index.vue b/src/views/raceInfo/index.vue index 3b0edf7..0c2142c 100644 --- a/src/views/raceInfo/index.vue +++ b/src/views/raceInfo/index.vue @@ -3,7 +3,12 @@
Banner
-
+
@@ -94,7 +100,7 @@
比赛简介:
-
+
{{ raceInfo.compInfo }} - + \ No newline at end of file + diff --git a/src/views/registrationGroup copy/index.vue b/src/views/registrationGroup copy/index.vue index 876b490..fde91d2 100644 --- a/src/views/registrationGroup copy/index.vue +++ b/src/views/registrationGroup copy/index.vue @@ -1,112 +1,112 @@ \ No newline at end of file + diff --git a/src/views/registrationGroup/components/stuDialog.vue b/src/views/registrationGroup/components/stuDialog.vue index 007010d..a157ee6 100644 --- a/src/views/registrationGroup/components/stuDialog.vue +++ b/src/views/registrationGroup/components/stuDialog.vue @@ -1,118 +1,155 @@ \ No newline at end of file + diff --git a/src/views/registrationGroup/components/stuList.vue b/src/views/registrationGroup/components/stuList.vue index c01a91d..ff9984b 100644 --- a/src/views/registrationGroup/components/stuList.vue +++ b/src/views/registrationGroup/components/stuList.vue @@ -1,163 +1,186 @@ \ No newline at end of file + diff --git a/src/views/registrationGroup/components/teaDialog.vue b/src/views/registrationGroup/components/teaDialog.vue index 9cebf7a..912a775 100644 --- a/src/views/registrationGroup/components/teaDialog.vue +++ b/src/views/registrationGroup/components/teaDialog.vue @@ -1,121 +1,159 @@ \ No newline at end of file + diff --git a/src/views/registrationGroup/components/teaList.vue b/src/views/registrationGroup/components/teaList.vue index fc1ff7b..a20840c 100644 --- a/src/views/registrationGroup/components/teaList.vue +++ b/src/views/registrationGroup/components/teaList.vue @@ -1,217 +1,239 @@ \ No newline at end of file + diff --git a/src/views/registrationGroup/index.vue b/src/views/registrationGroup/index.vue index 8e3357a..93864bc 100644 --- a/src/views/registrationGroup/index.vue +++ b/src/views/registrationGroup/index.vue @@ -226,10 +226,7 @@ const submit = () => { }) }) .finally(() => (loading.value = false)) - - } -