浏览代码

去掉QA 下载

zhb 6 月之前
父节点
当前提交
ce512a8cf7
共有 4 个文件被更改,包括 33 次插入75 次删除
  1. 1 1
      next-env.d.ts
  2. 0 26
      src/app/[locale]/card-guide/actions.ts
  3. 1 29
      src/app/[locale]/card-guide/item.tsx
  4. 31 19
      src/app/[locale]/styles.css

+ 1 - 1
next-env.d.ts

@@ -1,6 +1,6 @@
 /// <reference types="next" />
 /// <reference types="next/image-types/global" />
-import "./.next/types/routes.d.ts";
+import "./.next/dev/types/routes.d.ts";
 
 // NOTE: This file should not be edited
 // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

+ 0 - 26
src/app/[locale]/card-guide/actions.ts

@@ -1,5 +1,4 @@
 import request from '@/api';
-// info
 export async function fetchFileInfo(
   locale: string
 ) {
@@ -11,28 +10,3 @@ export async function fetchFileInfo(
   });
   return data;
 }
-// 下载
-export async function fetchFileDownload(
-  locale: string
-) {
-  const data: any = await request.post({
-    url: `/wasabi/card/file/download`,
-    data: {
-      lang: locale
-    }
-  });
-  return data;
-}
-// 预览
-export async function fetchFilePreview(
-  id: number
-) {
-  const data: any = await request.post({
-    url: `/wasabi/card/file/decrypt/preview`,
-    responseType: "blob",
-    data: {
-       id
-    }
-  });
-  return data;
-}

+ 1 - 29
src/app/[locale]/card-guide/item.tsx

@@ -278,36 +278,8 @@ export function VideoPlayer({ locale }: Props) {
           data-anime='{ "el": "childs", "opacity": [0, 1], "rotateY": [-90, 0], "rotateZ": [-10, 0], "translateY": [80, 0], "translateZ": [50, 0], "staggervalue": 200, "duration": 900, "delay": 300, "easing": "easeOutCirc" }'
         >
           <h2 className="text-white fw-600 lh-60 mb-15px xl-w-100">
-            QC PDF
+            <span className="cursor-pointer" onClick={() => handlePreview()}>QA PDF</span>
           </h2>
-          <div>
-            <span
-              className="m-5px mt-3 btn btn-base-color btn-box-shadow btn-large btn-rounded btn-switch-text inner-link"
-              onClick={() => handleDownload()}
-            >
-              <span>
-                <span
-                  className="btn-double-text"
-                  data-text={'下载'}
-                >
-                  {'下载'}
-                </span>
-              </span>
-            </span>
-            <span
-              className="m-5px mt-3 btn btn-base-color btn-box-shadow btn-large btn-rounded btn-switch-text inner-link"
-              onClick={() => handlePreview()}
-            >
-              <span>
-                <span
-                  className="btn-double-text"
-                  data-text={'查看'}
-                >
-                  {'查看'}
-                </span>
-              </span>
-            </span>
-          </div>
         </div>
       </div>
 

+ 31 - 19
src/app/[locale]/styles.css

@@ -1,24 +1,33 @@
-.header-info{
-    min-width: 150px;
+.header-info {
+  min-width: 150px;
 }
-.header-info ul{
-    margin: 0;
-    padding: 0;
+
+.header-info ul {
+  margin: 0;
+  padding: 0;
+}
+
+.header-info a {
+  color: #fff !important;
+  cursor: pointer;
 }
-.header-info a{
-    color: #fff !important;
-    cursor: pointer;
+
+.cursor-pointer {
+  cursor: pointer;
 }
-.header-info li{
-    text-align: right;
-    margin: 0;
-    padding: 5px 0;
+
+.header-info li {
+  text-align: left;
+  margin: 0;
+  padding: 5px 0;
 
 }
+
 .color-white:hover {
-    color: #fff;
-    
+  color: #fff;
+
 }
+
 .switcher-language .sub-menu {
   display: none;
   position: absolute;
@@ -27,14 +36,17 @@
   z-index: 1000;
   background-color: #fff !important;
   color: #000 !important;
-  padding-right: 20px;
+  padding: 0 20px;
 }
-.switcher-language .sub-menu a{
+
+.switcher-language .sub-menu a {
   color: #000 !important;
 }
-.has-child-menu{
-    position: relative;
+
+.has-child-menu {
+  position: relative;
 }
-.has-child-menu.open > .sub-menu {
+
+.has-child-menu.open>.sub-menu {
   display: block;
 }