diff --git a/src/components/AiShopDetail/AiShopDetail.tsx b/src/components/AiShopDetail/AiShopDetail.tsx index 2f4ae7e..36550f8 100644 --- a/src/components/AiShopDetail/AiShopDetail.tsx +++ b/src/components/AiShopDetail/AiShopDetail.tsx @@ -13,6 +13,7 @@ import { goodsDetail, createOrder, confirmPayment } from '../../request/api' import { showImage } from '../../request/request' import { useState, useEffect, useContext } from 'react'; import useMessage from "antd/es/message/useMessage"; +import { getBuyUrl } from '../../util/AjaxUtils.ts' // const { TextArea } = Input; export default function AiShopDetail(props: any) { const globalDispatchContext = useContext(GlobalDispatchContext); @@ -261,6 +262,7 @@ export default function AiShopDetail(props: any) { marginLeft: 10, }}>我同意平台 { // window.open('https://www.aimzhu.com/Seda.html') + getBuyUrl() }}>《购买协议》
鉴别材料
+
源码文档 :
asdkaksd.png
+ +
软件文档 :
asdkaksd.png
diff --git a/src/route/AppElectron/components/EditAppFiles/EditAppFiles.tsx b/src/route/AppElectron/components/EditAppFiles/EditAppFiles.tsx index c082ec8..440a9a3 100644 --- a/src/route/AppElectron/components/EditAppFiles/EditAppFiles.tsx +++ b/src/route/AppElectron/components/EditAppFiles/EditAppFiles.tsx @@ -16,9 +16,9 @@ export default function EditAppFiles(props: any) { }; // 处理文件点击预览 const handlePreview = (file: any) => { - console.log(file); - - + console.log(file); + + }; // 上传文件源码文档列表 const [upCodeArray, setUpCodeArray] = useState([]) @@ -134,92 +134,98 @@ export default function EditAppFiles(props: any) { width: '600px', // background: 'pink' }}> -
-
源码文档*
-
+
- - { - console.log(fileList); - // console.log(upCodeArray); +
源码文档*
+
+ + { + console.log(fileList); + // console.log(upCodeArray); - }} - onRemove={() => { - setUpCodeArray([]) - setCodeDis(false) - }} - beforeUpload={beforeUpload} - onPreview={handlePreview} - // onChange={handleUploadChange} - headers={{ 'Auth': `Bearer ${token}` }} - > - - - + }} + onRemove={() => { + setUpCodeArray([]) + setCodeDis(false) + }} + beforeUpload={beforeUpload} + onPreview={handlePreview} + // onChange={handleUploadChange} + headers={{ 'Auth': `Bearer ${token}` }} + > + + + +
+ [ 下载 ]
- [ 下载 ] + 源码文档说明
-
-
软件文档*
-
+
- - { - console.log(fileList); - }} - onRemove={() => { - setUpSoftArray([]) - setSoftDis(false) - }} - beforeUpload={beforeUpload} - // onChange={handleUploadChange} - headers={{ 'Auth': `Bearer ${token}` }} - > - - - +
软件文档*
+
+ + { + console.log(fileList); + }} + onRemove={() => { + setUpSoftArray([]) + setSoftDis(false) + }} + beforeUpload={beforeUpload} + // onChange={handleUploadChange} + headers={{ 'Auth': `Bearer ${token}` }} + > + + + +
+ [ 下载 ]
- [ 下载 ] + 软件文档说明
diff --git a/src/route/CopyrightGgoods/CopyrightGgoods.tsx b/src/route/CopyrightGgoods/CopyrightGgoods.tsx index 9035740..79216cf 100644 --- a/src/route/CopyrightGgoods/CopyrightGgoods.tsx +++ b/src/route/CopyrightGgoods/CopyrightGgoods.tsx @@ -61,6 +61,7 @@ export default function CopyrightGgoods() { const copyrightDate = state ? state.copyrightDate : ''; // 版权日期 const copyrightLanguage = state ? state.copyrightLanguage : ''; // 开发语言 // const copyrightType = state ? state.copyrightType : ''; // 软著类型 + const goodsFlag = state ? state.goodsFlag : ''; // 商品特价标识 const [data, setData] = useState([]); // 表格数据 @@ -121,6 +122,7 @@ export default function CopyrightGgoods() { goodsDevelop: copyrightLanguage ? copyrightLanguage : '', // 开发语言 // goodsType: copyrightType ? copyrightType.join(',') : '', // 软著类型 goodsType: selectTypeArray.length > 0 ? selectTypeArray.join(',') : '', + goodsFlag: goodsFlag ? goodsFlag : '' // 商品特价标识 }) // console.log(res); @@ -214,8 +216,11 @@ export default function CopyrightGgoods() { }, []) useEffect(() => { getBuyGoodsList(page) - }, [page, selectTypeArray]) - + }, [page]) + useEffect(() => { + setPage(1) + getBuyGoodsList(1) + }, [selectTypeArray]) return (
@@ -261,7 +266,7 @@ export default function CopyrightGgoods() { {data.map((item: any) => { return (
{ @@ -277,8 +282,17 @@ export default function CopyrightGgoods() { preview={false} style={{ maxWidth: '100%' }} > +
特价
+
+ 截止日期 : {item.goodsLastTime} +
+
+
{item.goodsName}
+
-
-
特价
-
{item.goodsName}
-
-
- 截止日期 : {item.goodsLastTime} -
+ + {/*
+
+ {/*
特价
*/} +
{item.goodsName}
+
-
- {/*
特价
*/} -
{item.goodsName}
-
-
- 截止日期 : {item.goodsLastTime} -
+ +
diff --git a/src/route/ProductRelease/product-release.css b/src/route/ProductRelease/product-release.css index d1d46e1..fa8e725 100644 --- a/src/route/ProductRelease/product-release.css +++ b/src/route/ProductRelease/product-release.css @@ -88,7 +88,7 @@ thead { /* 使用 grid 布局 */ display: grid; /* 自动填充列,每列最小宽度 183px,最大宽度 1fr */ - grid-template-columns: repeat(auto-fill, minmax(183px, 1fr)); + grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* 行间距 10px */ row-gap: 20px; /* 列间距 10px */ @@ -152,19 +152,49 @@ thead { .goodsImg { width: 100%; - height: 183px; + height: 245px; object-fit: cover; /* background: pink; */ padding: 15px 9px 0px 9px; box-sizing: border-box; overflow: hidden; + position: relative; +} + +.goodsTime { + font-size: 14px; + color: #e6e6e6; + /* margin-top: 10px; */ + position: absolute; + /* background-color: skyblue; */ + height: 33px; + background: rgba(11, 70, 75, 0.41); + width: 100%; + left: 0; + bottom: 0; + text-align: center; + line-height: 33px; +} + +.tipsPrice { + width: 63px; + height: 32px; + background: #FF9F08; + border-radius: 0px 0px 0px 10px; + color: white; + font-size: 18px; + text-align: center; + line-height: 32px; + position: absolute; + right: 0; + top: 0; } .goodsBot { padding: 10px 5px 10px 5px; box-sizing: border-box; /* height: 157px; */ - /* background-color: rgb(167, 167, 167); */ + /* background-color: rgb(175, 64, 64); */ } .goodsPrice { @@ -188,22 +218,12 @@ thead { margin-top: 10px; } -.tipsPrice { - width: 38px; - height: 23px; - background: #FF9600; - border-radius: 5px; - color: white; - font-size: 12px; - text-align: center; - line-height: 23px; - margin-right: 6px; -} + .goodsName { width: calc(100% - 29px); /* background-color: #1bd258; */ - font-weight: bold; + /* font-weight: bold; */ font-size: 20px; overflow: hidden; text-overflow: ellipsis; @@ -211,15 +231,12 @@ thead { /* cursor: pointer; */ } -.goodsTime { - font-size: 14px; - color: #707070; - margin-top: 10px; -} + .goodsBtnBox { display: flex; margin-top: 10px; + } .goodsBtn { @@ -268,9 +285,10 @@ thead { .goodsTypeArray { display: flex; font-size: 18px; - flex-wrap: wrap; + flex-wrap: wrap; } -.typeName{ + +.typeName { margin-left: 10px; margin-bottom: 5px; /* background-color: pink; */ diff --git a/src/route/TransactionOrder/TransactionOrder.tsx b/src/route/TransactionOrder/TransactionOrder.tsx index 7b7c0a6..34d3e12 100644 --- a/src/route/TransactionOrder/TransactionOrder.tsx +++ b/src/route/TransactionOrder/TransactionOrder.tsx @@ -156,6 +156,7 @@ export default function TransactionOrder() { width={110} render={(text) => ( {text.goodsPrice} + // 1 )} /> { setCopyrightKeywords(copyrightNewKeywords) } + const [specialPrice,setSpecialPrice] = useState(false) //商品特价标识 const copyrightInit = () => { setMinPrice(null) setMaxPrice(null) @@ -886,7 +888,10 @@ export default function Index() { setCopyrightType(null) setCopyrightNewKeywords('') setCopyrightKeywords('') + // 清除特价标识 + setSpecialPrice(false) } + useEffect(() => { if (location.pathname == '/copyright-goods') { nav('/copyright-goods', { @@ -898,10 +903,12 @@ export default function Index() { copyrightDate: copyrightDate, copyrightLanguage: copyrightLanguage, copyrightType: copyrightType, + // 新增特价标识 + goodsFlag:specialPrice?'特价':'' } }) } - }, [copyrightKeywords, minPrice, maxPrice, sort, copyrightDate, copyrightLanguage, copyrightType]) + }, [copyrightKeywords, minPrice, maxPrice, sort, copyrightDate, copyrightLanguage, copyrightType,specialPrice]) // ---------------------------------------------------------------------------------------------- @@ -3084,6 +3091,21 @@ export default function Index() { options={[]} value={copyrightType} /> + -
- 今日特价! -
+
diff --git a/src/static/fir.png b/src/static/fir.png new file mode 100644 index 0000000..8eaa497 Binary files /dev/null and b/src/static/fir.png differ diff --git a/src/static/noFir.png b/src/static/noFir.png new file mode 100644 index 0000000..148caad Binary files /dev/null and b/src/static/noFir.png differ diff --git a/src/util/AjaxUtils.ts b/src/util/AjaxUtils.ts index b4fd8e4..52d030e 100644 --- a/src/util/AjaxUtils.ts +++ b/src/util/AjaxUtils.ts @@ -151,6 +151,16 @@ export function getUseUrl() { console.error("请求出错:", error); }); } +// 购买协议 +export function getBuyUrl() { + axios.get(`${baseUrl}/operator/app/agreementportal/getrelease/0542d435-dc22-459b-bf4a-28a61afe400b `) + .then((data:any) => { + window.open(`${baseUrl}/operator/route/agreementportal/view?agreementId=${data.data.agreementId}&title=${data.data.title}`) + }) + .catch(error => { + console.error("请求出错:", error); + }); +} // 软件委托开发协议 export function getSoftUrl() { return `${baseUrl}/Seda.html`