@@ -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.
@@ -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
- url: `/wasabi/card/file/decrypt/preview`,
- responseType: "blob",
- id
@@ -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>
- className="btn-double-text"
- data-text={'下载'}
- {'下载'}
- </span>
- onClick={() => handlePreview()}
- data-text={'查看'}
- {'查看'}
- </div>
</div>
@@ -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 {
-.header-info li{
- text-align: right;
- padding: 5px 0;
+.header-info li {
+ text-align: left;
+ 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 {
-.has-child-menu{
- position: relative;
+.has-child-menu {
+ position: relative;
-.has-child-menu.open > .sub-menu {
+.has-child-menu.open>.sub-menu {
display: block;