This commit is contained in:
xixi 2024-05-23 18:21:31 +08:00
parent c19960f84b
commit 68bd64e134
6 changed files with 32 additions and 25 deletions

View File

@ -8,7 +8,6 @@ import { get } from "../../../util/AjaxUtils.ts";
import { useParams } from "react-router-dom"; import { useParams } from "react-router-dom";
import { SearchOutlined } from '@ant-design/icons'; import { SearchOutlined } from '@ant-design/icons';
import { import {
message message
} from "antd"; } from "antd";
type PropsType = { type PropsType = {

View File

@ -27,7 +27,10 @@ import menuImg from '../../static/right/menu.png'
import testImg from '../../static/test.jpg' import testImg from '../../static/test.jpg'
export default function CardProj(props: { item: IProj }) { export default function CardProj(props: { item: IProj }) {
const nav = useNavigate(); const nav = useNavigate();
// const [showZpi,setShowZpi] = useState(false)
const data = props.item; const data = props.item;
const isShow = data.pay.chargeAdditionals.includes('PKG')
const [messageApi, messageContext] = useMessage(); const [messageApi, messageContext] = useMessage();
const [projCategoryId, setProjCategoryId] = useState(data.projCategoryId); const [projCategoryId, setProjCategoryId] = useState(data.projCategoryId);
const [projCategoryName, setProjCategoryName] = useState(data.projCategoryName); const [projCategoryName, setProjCategoryName] = useState(data.projCategoryName);
@ -242,9 +245,14 @@ export default function CardProj(props: { item: IProj }) {
<Button size="small" type="text" onClick={() => { <Button size="small" type="text" onClick={() => {
window.open(`${Axios.defaults?.baseURL}/route/proj/download/manual/${data.projId}`) window.open(`${Axios.defaults?.baseURL}/route/proj/download/manual/${data.projId}`)
}}><DownloadOutlined /> </Button> }}><DownloadOutlined /> </Button>
<Button size="small" type="text" onClick={() => { {
isShow && <Button size="small" type="text" onClick={() => {
window.open(`${Axios.defaults?.baseURL}/route/proj/download/code-zip/${data.projId}`)
}}><DownloadOutlined /> </Button>
}
{/* <Button size="small" type="text" onClick={() => {
window.open(`${Axios.defaults?.baseURL}/route/proj/download/code-zip/${data.projId}`) window.open(`${Axios.defaults?.baseURL}/route/proj/download/code-zip/${data.projId}`)
}}><DownloadOutlined /> </Button> }}><DownloadOutlined /> </Button> */}
<Button size="small" type="text" onClick={() => { <Button size="small" type="text" onClick={() => {
window.open(`${Axios.defaults?.baseURL}/route/proj/download/code/${data.projId}`) window.open(`${Axios.defaults?.baseURL}/route/proj/download/code/${data.projId}`)
}}><DownloadOutlined /> </Button> }}><DownloadOutlined /> </Button>

View File

@ -3,7 +3,7 @@ import { ICardProj, ICardProjChargeLine } from "../../interfaces/proj/ICardProj.
import { Checkbox } from 'antd'; import { Checkbox } from 'antd';
import { useState } from "react"; import { useState } from "react";
import { ProjAdditionalType } from "../../interfaces/proj/IProj.ts"; import { ProjAdditionalType } from "../../interfaces/proj/IProj.ts";
// import ProjCardHeadBg from '../../assets/proj-card-head-bg.png1'; // import ProjCardHeadBg from '../../assets/proj-card-head-bg.png1';1
import serveImg from '../../static/serve.png' import serveImg from '../../static/serve.png'
import useImg from '../../static/use.png' import useImg from '../../static/use.png'
import leftImg from '../../static/createPro/left.png' import leftImg from '../../static/createPro/left.png'

View File

@ -12,7 +12,7 @@
} }
.projTop { .projTop {
height: 745px; /* height: 745px; */
background-color: rgb(255, 255, 255); background-color: rgb(255, 255, 255);
box-shadow: 0px 7px 7px 0px rgba(30, 30, 30, 0.18); box-shadow: 0px 7px 7px 0px rgba(30, 30, 30, 0.18);
border-radius: 13px; border-radius: 13px;
@ -21,7 +21,7 @@
.proj .proj-head { .proj .proj-head {
font-weight: bold; font-weight: bold;
font-size: 33px; font-size: 30px;
color: #492800; color: #492800;
text-align: center; text-align: center;
/* background-image: url('./proj-card-head-bg.png'); */ /* background-image: url('./proj-card-head-bg.png'); */
@ -29,8 +29,8 @@
/* background-repeat: no-repeat; */ /* background-repeat: no-repeat; */
/* position: absolute; */ /* position: absolute; */
width: 100%; width: 100%;
height: 132px; /* height: 132px; */
line-height: 132px; line-height: 100px;
/* left: 38px; */ /* left: 38px; */
/* top: -4px; */ /* top: -4px; */
@ -48,7 +48,7 @@
/* background-color: rgba(244, 206, 152, 0.28); */ /* background-color: rgba(244, 206, 152, 0.28); */
border-radius: 10px; border-radius: 10px;
position: relative; position: relative;
height: 613px; height: 450px;
} }
/* .proj .proj-body .line .line-title { /* .proj .proj-body .line .line-title {
@ -71,7 +71,7 @@
.proj .proj-body .line .line-content ul li { .proj .proj-body .line .line-content ul li {
display: flex; display: flex;
align-items: center; align-items: center;
margin-top: 27px; margin-top: 20px;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 500; font-weight: 500;
font-size: 18px; font-size: 18px;
@ -113,7 +113,7 @@
/* border-top: 1px dotted var(--color-light); */ /* border-top: 1px dotted var(--color-light); */
/* margin-bottom: 48px; */ /* margin-bottom: 48px; */
position: absolute; position: absolute;
bottom: 45px; bottom: 10px;
left: 70px; left: 70px;
/* background-color: #F38F1E; */ /* background-color: #F38F1E; */
@ -128,7 +128,7 @@
} }
.chargeline { .chargeline {
margin-top: 20px; margin-top: 10px;
} }
.chargeCon { .chargeCon {

View File

@ -1,12 +1,12 @@
import './list-proj.css' import './list-proj.css'
import CardProj from "../card/CardProj.tsx"; import CardProj from "../card/CardProj.tsx";
import { useRef, MutableRefObject, useState, useEffect, useContext } from "react"; import { useRef, MutableRefObject, useState, useEffect, useContext } from "react";
import { Pagination, message, Spin, Image, Empty } from 'antd'; import { Pagination, message, Spin, Empty } from 'antd';
import { get } from "../../util/AjaxUtils.ts"; import { get } from "../../util/AjaxUtils.ts";
import { IndexListContext } from "../../context/IndexListContext.ts"; import { IndexListContext } from "../../context/IndexListContext.ts";
import { IListPage } from "../../interfaces/listpage/IListPage.ts"; import { IListPage } from "../../interfaces/listpage/IListPage.ts";
import { IProj } from "../../interfaces/proj/IProj.ts"; import { IProj } from "../../interfaces/proj/IProj.ts";
import NoData from "../../assets/no-data.png"; // import NoData from "../../assets/no-data.png";
import { useLocation } from 'react-router-dom'; import { useLocation } from 'react-router-dom';
import syminga from '../../static/homeimg/homeimga.png' import syminga from '../../static/homeimg/homeimga.png'
import symingb from '../../static/homeimg/homeimgb.png' import symingb from '../../static/homeimg/homeimgb.png'

View File

@ -467,18 +467,18 @@ export default function ProjConfigLoginpage() {
title={item.mainTitle} title={item.mainTitle}
imgs={item.bgImgs} imgs={item.bgImgs}
selected={item.loginpageId == selectedLoginpageId} selected={item.loginpageId == selectedLoginpageId}
handleClick={() => { // handleClick={() => {
setSelectedLoginpageId(item.loginpageId); // setSelectedLoginpageId(item.loginpageId);
// loginpageArray.forEach(loginpage => { // // loginpageArray.forEach(loginpage => {
// loginpage.selected = loginpage.id == item.id; // // loginpage.selected = loginpage.id == item.id;
// }) // // })
// setLoginpageArray([ // // setLoginpageArray([
// ...loginpageArray // // ...loginpageArray
// ]) // // ])
console.log('选择的id', item.loginpageId); // console.log('选择的id', item.loginpageId);
upLoginPage(item.loginpageId) // upLoginPage(item.loginpageId)
}} // }}
/> />
) )
}) })