修改
This commit is contained in:
parent
0eb387779d
commit
458c920437
@ -23,7 +23,7 @@ import MenuWithBottomButtom from '../../components/menu/MenuWithBottomButton.tsx
|
|||||||
// import MenuTreeWithTopButton from "../../components/menu/MenuTreeWithTopButton.tsx";
|
// import MenuTreeWithTopButton from "../../components/menu/MenuTreeWithTopButton.tsx";
|
||||||
// import ListProj from "../../components/list/ListProj.tsx";
|
// import ListProj from "../../components/list/ListProj.tsx";
|
||||||
// import ListProjAgent from "../../components/list/ListProjAgent.tsx";
|
// import ListProjAgent from "../../components/list/ListProjAgent.tsx";
|
||||||
// import { getMenuActive } from '../../util/cache.ts'
|
import { getMenuActive } from '../../util/cache.ts'
|
||||||
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@ -57,7 +57,7 @@ import {
|
|||||||
} from '../../util/AjaxUtils.ts'
|
} from '../../util/AjaxUtils.ts'
|
||||||
import {
|
import {
|
||||||
// getLanguageList, getSoftTypeList
|
// getLanguageList, getSoftTypeList
|
||||||
// appGoodsList,
|
appGoodsList,
|
||||||
buyAppGoods, appOrderList
|
buyAppGoods, appOrderList
|
||||||
} from '../../request/api'
|
} from '../../request/api'
|
||||||
import {
|
import {
|
||||||
@ -87,13 +87,13 @@ interface DataType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// import app from '../../static/left/app.png'
|
import app from '../../static/left/app.png'
|
||||||
// import appnew from '../../static/left/appnew.png'
|
import appnew from '../../static/left/appnew.png'
|
||||||
// import tra from '../../static/left/tra.png'
|
import tra from '../../static/left/tra.png'
|
||||||
// import tranew from '../../static/left/tranew.png'
|
import tranew from '../../static/left/tranew.png'
|
||||||
|
|
||||||
// import topblack from '../../static/appimgs/topblack.png'
|
import topblack from '../../static/appimgs/topblack.png'
|
||||||
// import topblue from '../../static/appimgs/topblue.png'
|
import topblue from '../../static/appimgs/topblue.png'
|
||||||
|
|
||||||
import right from '../../static/trademark/right.png'
|
import right from '../../static/trademark/right.png'
|
||||||
import yes from '../../static/trademark/yes.png'
|
import yes from '../../static/trademark/yes.png'
|
||||||
@ -984,7 +984,7 @@ export default function Index() {
|
|||||||
const [showAppkeyWords, setShowAppkeyWords] = useState('') // 电子软著搜索关键字显示
|
const [showAppkeyWords, setShowAppkeyWords] = useState('') // 电子软著搜索关键字显示
|
||||||
const [appModal, setAppModal] = useState(false) // 申请电子软著弹窗
|
const [appModal, setAppModal] = useState(false) // 申请电子软著弹窗
|
||||||
const [toEditsModal, setToEditsModal] = useState(false) // 电子软著编辑弹窗
|
const [toEditsModal, setToEditsModal] = useState(false) // 电子软著编辑弹窗
|
||||||
// const [appGoodsArray, setAppGoodsArray] = useState<any>([]) // 电子软著可选商品列表
|
const [appGoodsArray, setAppGoodsArray] = useState<any>([]) // 电子软著可选商品列表
|
||||||
const [buyLoading, setBuyLoading] = useState(false) // 购买loading
|
const [buyLoading, setBuyLoading] = useState(false) // 购买loading
|
||||||
const [appOrderId, setAppOrderId] = useState<any>() // 电子软著订单id
|
const [appOrderId, setAppOrderId] = useState<any>() // 电子软著订单id
|
||||||
const [appExamineStatus, setAppExamineStatus] = useState<string | null>(null) // 电子软著审核状态
|
const [appExamineStatus, setAppExamineStatus] = useState<string | null>(null) // 电子软著审核状态
|
||||||
@ -1051,24 +1051,24 @@ export default function Index() {
|
|||||||
|
|
||||||
}, [appKeyWords, appExamineStatus, appApplyStatus])
|
}, [appKeyWords, appExamineStatus, appApplyStatus])
|
||||||
// 获取电子软著可选商品列表
|
// 获取电子软著可选商品列表
|
||||||
// const getAppGoodsList = async () => {
|
const getAppGoodsList = async () => {
|
||||||
// try {
|
try {
|
||||||
// const res = await appGoodsList()
|
const res = await appGoodsList()
|
||||||
// // console.log('电子软著可选商品列表', res);
|
// console.log('电子软著可选商品列表', res);
|
||||||
// setAppGoodsArray(res)
|
setAppGoodsArray(res)
|
||||||
// } catch (error: any) {
|
} catch (error: any) {
|
||||||
|
|
||||||
// if (error.response) {
|
if (error.response) {
|
||||||
// const data = error.response.data;
|
const data = error.response.data;
|
||||||
// messageApi.open({
|
messageApi.open({
|
||||||
// type: 'error',
|
type: 'error',
|
||||||
// content: data.msg ? data.msg : `${data.path}(${data.status})`,
|
content: data.msg ? data.msg : `${data.path}(${data.status})`,
|
||||||
// });
|
});
|
||||||
// } else {
|
} else {
|
||||||
// console.error(error)
|
console.error(error)
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -1801,7 +1801,7 @@ export default function Index() {
|
|||||||
|
|
||||||
// getLanguageListDate()
|
// getLanguageListDate()
|
||||||
// getSoftTypeListDate()
|
// getSoftTypeListDate()
|
||||||
// getAppGoodsList()
|
getAppGoodsList()
|
||||||
}, []);
|
}, []);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// loactionStorage里的activeMenu
|
// loactionStorage里的activeMenu
|
||||||
@ -2070,7 +2070,7 @@ export default function Index() {
|
|||||||
list={agentMenu.list}
|
list={agentMenu.list}
|
||||||
handleListItem={agentMenu.handleListItem}
|
handleListItem={agentMenu.handleListItem}
|
||||||
/> */}
|
/> */}
|
||||||
{/* {THEME == 'mzw' ? (
|
{THEME == 'mzw' ? (
|
||||||
<>
|
<>
|
||||||
<div style={{
|
<div style={{
|
||||||
background: getMenuActive() == 'APP' ? 'linear-gradient(90deg, #FF9F08 0%, #FF7331 100%)' : ' var(--color-menuback)',
|
background: getMenuActive() == 'APP' ? 'linear-gradient(90deg, #FF9F08 0%, #FF7331 100%)' : ' var(--color-menuback)',
|
||||||
@ -2143,7 +2143,7 @@ export default function Index() {
|
|||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<></>
|
<></>
|
||||||
)} */}
|
)}
|
||||||
{THEME == 'mzw' ? (
|
{THEME == 'mzw' ? (
|
||||||
<MenuWithBottomButtom
|
<MenuWithBottomButtom
|
||||||
button={sellMenu.button}
|
button={sellMenu.button}
|
||||||
@ -4125,7 +4125,7 @@ export default function Index() {
|
|||||||
justifyContent: 'space-between',
|
justifyContent: 'space-between',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
}}>
|
}}>
|
||||||
{/* {appGoodsArray.map((item: any, index: number) => {
|
{appGoodsArray.map((item: any, index: number) => {
|
||||||
return (
|
return (
|
||||||
<div className='appGoodsBox'
|
<div className='appGoodsBox'
|
||||||
key={item.id}
|
key={item.id}
|
||||||
@ -4168,7 +4168,7 @@ export default function Index() {
|
|||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
||||||
})} */}
|
})}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div className='appGoodsBtnBox'>
|
<div className='appGoodsBtnBox'>
|
||||||
|
Loading…
Reference in New Issue
Block a user