屏蔽商城
This commit is contained in:
parent
31084d73d6
commit
41597808ef
@ -19,7 +19,7 @@ import RefunModal from '../../components/RefunModal/RefunModal.tsx'
|
||||
import CorrectionModal from '../../components/CorrectionModal/CorrectionModal.tsx'
|
||||
import ReplaceModal from '../../components/ReplaceModal/ReplaceModal.tsx'
|
||||
import ContractModal from '../../components/ContractModal/ContractModal.tsx'
|
||||
import MenuWithBottomButtom from '../../components/menu/MenuWithBottomButton.tsx'
|
||||
// import MenuWithBottomButtom from '../../components/menu/MenuWithBottomButton.tsx'
|
||||
// import MenuTreeWithTopButton from "../../components/menu/MenuTreeWithTopButton.tsx";
|
||||
// import ListProj from "../../components/list/ListProj.tsx";
|
||||
// import ListProjAgent from "../../components/list/ListProjAgent.tsx";
|
||||
@ -57,7 +57,8 @@ import {
|
||||
} from '../../util/AjaxUtils.ts'
|
||||
import {
|
||||
// getLanguageList, getSoftTypeList
|
||||
appGoodsList, buyAppGoods, appOrderList
|
||||
// appGoodsList,
|
||||
buyAppGoods, appOrderList
|
||||
} from '../../request/api'
|
||||
import {
|
||||
setMenuActive,
|
||||
@ -91,8 +92,8 @@ interface DataType {
|
||||
// import tra from '../../static/left/tra.png'
|
||||
// import tranew from '../../static/left/tranew.png'
|
||||
|
||||
import topblack from '../../static/appimgs/topblack.png'
|
||||
import topblue from '../../static/appimgs/topblue.png'
|
||||
// import topblack from '../../static/appimgs/topblack.png'
|
||||
// import topblue from '../../static/appimgs/topblue.png'
|
||||
|
||||
import right from '../../static/trademark/right.png'
|
||||
import yes from '../../static/trademark/yes.png'
|
||||
@ -983,7 +984,7 @@ export default function Index() {
|
||||
const [showAppkeyWords, setShowAppkeyWords] = useState('') // 电子软著搜索关键字显示
|
||||
const [appModal, setAppModal] = useState(false) // 申请电子软著弹窗
|
||||
const [toEditsModal, setToEditsModal] = useState(false) // 电子软著编辑弹窗
|
||||
const [appGoodsArray, setAppGoodsArray] = useState<any>([]) // 电子软著可选商品列表
|
||||
// const [appGoodsArray, setAppGoodsArray] = useState<any>([]) // 电子软著可选商品列表
|
||||
const [buyLoading, setBuyLoading] = useState(false) // 购买loading
|
||||
const [appOrderId, setAppOrderId] = useState<any>() // 电子软著订单id
|
||||
const [appExamineStatus, setAppExamineStatus] = useState<string | null>(null) // 电子软著审核状态
|
||||
@ -1050,24 +1051,24 @@ export default function Index() {
|
||||
|
||||
}, [appKeyWords, appExamineStatus, appApplyStatus])
|
||||
// 获取电子软著可选商品列表
|
||||
const getAppGoodsList = async () => {
|
||||
try {
|
||||
const res = await appGoodsList()
|
||||
// console.log('电子软著可选商品列表', res);
|
||||
setAppGoodsArray(res)
|
||||
} catch (error: any) {
|
||||
// const getAppGoodsList = async () => {
|
||||
// try {
|
||||
// const res = await appGoodsList()
|
||||
// // console.log('电子软著可选商品列表', res);
|
||||
// setAppGoodsArray(res)
|
||||
// } catch (error: any) {
|
||||
|
||||
if (error.response) {
|
||||
const data = error.response.data;
|
||||
messageApi.open({
|
||||
type: 'error',
|
||||
content: data.msg ? data.msg : `${data.path}(${data.status})`,
|
||||
});
|
||||
} else {
|
||||
console.error(error)
|
||||
}
|
||||
}
|
||||
}
|
||||
// if (error.response) {
|
||||
// const data = error.response.data;
|
||||
// messageApi.open({
|
||||
// type: 'error',
|
||||
// content: data.msg ? data.msg : `${data.path}(${data.status})`,
|
||||
// });
|
||||
// } else {
|
||||
// console.error(error)
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// -----------------------------------------------------------------------------------------------
|
||||
|
||||
@ -1800,7 +1801,7 @@ export default function Index() {
|
||||
|
||||
// getLanguageListDate()
|
||||
// getSoftTypeListDate()
|
||||
getAppGoodsList()
|
||||
// getAppGoodsList()
|
||||
}, []);
|
||||
useEffect(() => {
|
||||
// loactionStorage里的activeMenu
|
||||
@ -2139,7 +2140,7 @@ export default function Index() {
|
||||
) : (
|
||||
<></>
|
||||
)} */}
|
||||
{THEME == 'mzw' ? (
|
||||
{/* {THEME == 'mzw' ? (
|
||||
<MenuWithBottomButtom
|
||||
button={sellMenu.button}
|
||||
list={sellMenu.list}
|
||||
@ -2157,7 +2158,7 @@ export default function Index() {
|
||||
/>
|
||||
) : (
|
||||
<></>
|
||||
)}
|
||||
)} */}
|
||||
|
||||
|
||||
{/* <MenuWithBottomButtom
|
||||
@ -4097,7 +4098,7 @@ export default function Index() {
|
||||
justifyContent: 'space-between',
|
||||
alignItems: 'center',
|
||||
}}>
|
||||
{appGoodsArray.map((item: any, index: number) => {
|
||||
{/* {appGoodsArray.map((item: any, index: number) => {
|
||||
return (
|
||||
<div className='appGoodsBox'
|
||||
key={item.id}
|
||||
@ -4140,7 +4141,7 @@ export default function Index() {
|
||||
</div>
|
||||
)
|
||||
|
||||
})}
|
||||
})} */}
|
||||
|
||||
</div>
|
||||
<div className='appGoodsBtnBox'>
|
||||
|
Loading…
Reference in New Issue
Block a user