Commit 2229a998 authored by GuanHua's avatar GuanHua

fix:资讯搜索页面资讯图片链接问题

parent 90f46fa3
......@@ -3,7 +3,7 @@
* @Author: ghua
* @Date: 2020-10-09 14:26:12
* @Last Modified by: ghua
* @Last Modified time: 2020-10-12 16:23:41
* @Last Modified time: 2020-10-13 14:00:35
*/
const AfterServiceRoute = {
......@@ -23,7 +23,7 @@ const AfterServiceRoute = {
component: '@/pages/afterService/exchangeGoods/orderList'
},
{
// 换货申请单查询
// 换货申请单详情
path: '/memberCenter/afterService/exchange/orderPreview',
name: 'orderList',
hideInMenu: true,
......@@ -37,6 +37,14 @@ const AfterServiceRoute = {
component: '@/pages/afterService/exchangeGoods/waitSubmitOrderList'
},
{
// 待提交换货申请单新增或修改
path: '/memberCenter/afterService/exchange/waitSubmitOrderList/:type',
name: 'waitSubmitOrderList',
hideInMenu: true,
noMargin: true,
component: '@/pages/afterService/exchangeGoods/waitSubmitOrderList/detail'
},
{
// 待新增退货发货单
path: '/memberCenter/afterService/exchange/waitAddReturnOrder',
name: 'waitAddReturnOrder',
......
import React, { useState } from 'react'
import { SaveOutlined } from '@ant-design/icons'
import { PageHeaderWrapper } from '@ant-design/pro-layout'
import { history, Helmet } from 'umi'
import { Button } from 'antd'
import ReutrnEle from '@/components/ReturnEle'
interface OrderDetailProps {
location: any,
match: any
}
const OrderDetail: React.FC<OrderDetailProps> = (props) => {
const { type } = props.match.params
const [btnLoading, setBtnLoading] = useState<boolean>(false)
const getPageTitle = () => {
switch (type) {
case 'add':
return '提交换货申请单'
case 'edit':
return '编辑换货申请单'
default:
return ''
}
}
return (
<>
<Helmet>
<title>{getPageTitle()}</title>
</Helmet>
<PageHeaderWrapper
onBack={() => history.goBack()}
backIcon={<ReutrnEle description="返回" />}
title={getPageTitle()}
extra={[
<Button key="1" onClick={() => { }} loading={btnLoading} type="primary" icon={<SaveOutlined />}>
保存
</Button>,
]}
>
OrderDetail
</PageHeaderWrapper>
</>
)
}
export default OrderDetail
......@@ -3,11 +3,12 @@
* @Author: ghua
* @Date: 2020-10-12 15:03:51
* @Last Modified by: ghua
* @Last Modified time: 2020-10-12 15:04:52
* @Last Modified time: 2020-10-13 14:02:30
*/
import React, { useRef } from 'react'
import { Card, Select, message, Space, Button } from 'antd'
import { StandardTable } from 'god'
import { history } from 'umi'
import { PageHeaderWrapper } from '@ant-design/pro-layout'
import { PublicApi } from '@/services/api'
import { useSelfTable } from './model/useSelfTable'
......@@ -89,7 +90,7 @@ const WaitSubmitOrderList: React.FC<WaitSubmitOrderListProps> = (props) => {
}}
formilyChilds={{
children: <Space>
<Button onClick={handleSubmitBatch} type="primary" icon={<PlusOutlined />} style={{ width: 112 }}>新建</Button>
<Button onClick={() => history.push('/memberCenter/afterService/exchange/waitSubmitOrderList/add')} type="primary" icon={<PlusOutlined />} style={{ width: 112 }}>新建</Button>
</Space>,
layouts: {
span: 8
......
......@@ -2,7 +2,6 @@ import React, { useEffect, useState } from 'react'
import cx from 'classnames'
import { Pagination } from 'antd'
import { ClockCircleOutlined, EyeOutlined } from '@ant-design/icons'
import informationImg2 from '@/assets/imgs/information_2.png'
import ImageBox from '@/components/ImageBox'
import BreadCrumbs from './components/breadCrumbs'
import InformationRight from './components/informationRight'
......@@ -194,7 +193,7 @@ const InformationSearch: React.FC<InformationPropsType> = (props) => {
{
newsList && newsList.map(item => (
<div className={styles.information_latest_release_list_item} key={`information_latest_release_list_item_${item.id}`}>
<ImageBox width={285} height={190} imgUrl={informationImg2} />
<ImageBox width={285} height={190} imgUrl={item.imageUrl} />
<div className={styles.information_latest_release_list_item_main}>
<p><a href={toDetailLink(item.id)}>{item.title}</a></p>
<div className={styles.information_common_view}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment