林旭祥 6 月之前
父节点
当前提交
e076e91d25
共有 3 个文件被更改,包括 20 次插入6 次删除
  1. 1 1
      .env.development
  2. 1 1
      .env.production
  3. 18 4
      src/views/analysis/detail.vue

+ 1 - 1
.env.development

@@ -1,5 +1,5 @@
 # 开发环境
-VITE_APP_BASE_API = 'https://examtst.tropsx.com'
+VITE_APP_BASE_API = 'https://api-aiexamtst.tropsx.com'
 VITE_APP_PORT = 80
 # 是否在打包时开启压缩,支持 gzip 和 brotli
 VITE_BUILD_COMPRESS = gzip

+ 1 - 1
.env.production

@@ -1,5 +1,5 @@
 # 生产环境
-VITE_APP_BASE_API = 'https://exam.tropsx.com'
+VITE_APP_BASE_API = 'https://api-aiexam.tropsx.com'
 VITE_APP_PORT = 80
 # 是否在打包时开启压缩,支持 gzip 和 brotli
 VITE_BUILD_COMPRESS = gzip

+ 18 - 4
src/views/analysis/detail.vue

@@ -147,7 +147,7 @@
         </div>
       </div>
     </div>
-    <div class="main-c">
+    <div class="main-c" v-if="JSON.stringify(details) != '{}' && ['jump'].includes(query.exam_name)">
       <!--立定跳远-->
       <Jump :detailsData="details" v-if="JSON.stringify(details) != '{}' && ['jump'].includes(query.exam_name)
       " />
@@ -278,8 +278,8 @@ const getDetails = () => {
   let obj = gradeType.value.find((item: any) => {
     return item.value == details.value.grade;
   });
-  details.value.grade_name = obj.name;
-  details.value.unit = dic.project.unit[query.value.exam_name];
+  details.value.grade_name = obj.label;
+  details.value.unit = dic.unit[query.value.exam_name];
   details.value.examsName = dic.project[query.value.exam_name];
   details.value.image_url_list = details.value.image_url ?
     details.value.image_url.split("  ") : [];
@@ -343,7 +343,21 @@ onMounted(() => {
   }
 }
 
-::v-deep(.main) {
+ul,
+ol {
+  margin: 0;
+  padding: 0;
+}
+
+ul li {
+  list-style: none;
+}
+
+i{
+  font-style: normal;
+}
+
+.main {
   background: #efefef;
   padding-bottom: 0.65rem;
   min-height: calc(100vh - 0.65rem);