Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄庭坚
jinfa-platform
Commits
7bdbe8ff
Commit
7bdbe8ff
authored
Nov 09, 2020
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into test
parents
dc240ba3
1b24712b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
107 additions
and
30 deletions
+107
-30
index.less
src/pages/home/index.less
+48
-4
index.tsx
src/pages/home/index.tsx
+43
-20
index.tsx
src/pages/lxMall/commodityDetail/index.tsx
+3
-0
index.tsx
src/pages/lxMall/pay/components/credit/index.tsx
+3
-1
useOrderDetail.tsx
...ages/transaction/_public/order/effects/useOrderDetail.tsx
+6
-3
index.tsx
...ages/transaction/components/createElectronModal/index.tsx
+4
-2
No files found.
src/pages/home/index.less
View file @
7bdbe8ff
...
...
@@ -6,6 +6,7 @@
align-items: center;
height: 90px;
color: white;
position: relative;
.gridStyle{
display: flex;
flex: 1;
...
...
@@ -17,26 +18,68 @@
font-size: 12px;
font-weight: 400;
margin-left: 24px;
margin-bottom: 0;
padding: 0 0 8px 0;
line-height: 1;
vertical-align: middle;
}
.firstp{
height: 24px;
line-height: 24px;
}
.guideTitle{
font-size: 14px;
font-weight: 400;
}
.guideDesc{
}
.guideIcon{
font-size: 14px;
margin-right: 27px;
}
.guideIconFirst{
font-size: 24px;
vertical-align: bottom;
}
}
.gridStyleFirst{
flex: 0 0 16%;
}
.gridStyleLast{
.guideClose{
width: 56px;
height: 20px;
background: rgba(0, 0, 0, 0.2);
border-radius: 0px 8px 0px 8px;
position: absolute;
right: 0;
top: 0;
cursor: pointer;
text-align: center;
}
&::after {
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-top: 8px solid #6B778C;
content: "";
position: absolute;
right: 18px;
bottom: -7px;
}
}
.giudeMenuBox{
border-radius: 5px;
padding: 16px;
background-color: #fff;
flex: 0 0 16%;
//重写步骤条
:global{
.ant-steps-vertical.ant-steps-dot .ant-steps-item .ant-steps-icon-dot{
border: 1px solid #DFE1E6;
background-color: #fff;
}
.ant-steps-vertical > .ant-steps-item > .ant-steps-item-container > .ant-steps-item-tail::after{
background-color: #fff;
border-right: 1px dashed #DFE1E6;
}
}
}
\ No newline at end of file
src/pages/home/index.tsx
View file @
7bdbe8ff
import
React
,
{
useState
,
useEffect
}
from
'react'
import
{
Button
,
Card
,
Space
,
Radio
,
Row
,
Col
,
Table
,
Tabs
,
Tag
,
Avatar
,
Image
,
List
,
Badge
}
from
'antd'
import
{
Button
,
Card
,
Space
,
Steps
,
Dropdown
,
Radio
,
Row
,
Col
,
Table
,
Tabs
,
Tag
,
Avatar
,
Image
,
List
,
Badge
,
Menu
}
from
'antd'
import
cx
from
'classnames'
import
styles
from
'./index.less'
...
...
@@ -7,8 +7,22 @@ import StatusTag from '@/components/StatusTag'
import
{
CaretUpOutlined
,
CompassFilled
,
CompassOutlined
,
RightCircleFilled
,
RightOutlined
,
UpOutlined
}
from
'@ant-design/icons'
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
const
{
Step
}
=
Steps
;
const
Home
:
React
.
FC
<
{}
>
=
()
=>
{
const
menu
=
(
<
div
className=
{
styles
.
giudeMenuBox
}
>
<
Steps
progressDot
current=
{
1000
}
direction=
"vertical"
>
<
Step
title=
"定义产品功能"
description=
{
<><
p
>
开发第一步,标准功能、自定义功能及云功能编辑
</
p
><
a
href=
""
>
如何定义
</
a
></>
}
/>
<
Step
title=
"定义产品功能"
description=
{
<><
p
>
开发第一步,标准功能、自定义功能及云功能编辑
</
p
><
a
href=
""
>
如何定义
</
a
></>
}
/>
<
Step
title=
"定义产品功能"
description=
{
<><
p
>
开发第一步,标准功能、自定义功能及云功能编辑
</
p
><
a
href=
""
>
如何定义
</
a
></>
}
/>
<
Step
title=
"定义产品功能"
description=
{
<><
p
>
开发第一步,标准功能、自定义功能及云功能编辑
</
p
><
a
href=
""
>
如何定义
</
a
></>
}
/>
<
Step
title=
"定义产品功能"
description=
{
<><
p
>
开发第一步,标准功能、自定义功能及云功能编辑
</
p
><
a
href=
""
>
如何定义
</
a
></>
}
/>
</
Steps
>
</
div
>
);
return
(
<
PageHeaderWrapper
>
<
Space
direction=
"vertical"
style=
{
{
width
:
'100%'
}
}
>
...
...
@@ -16,31 +30,40 @@ const Home: React.FC<{}> = () => {
<
Col
span=
{
24
}
>
<
div
className=
{
styles
.
homeGuide
}
>
<
div
className=
{
cx
(
styles
.
gridStyle
,
styles
.
gridStyleFirst
)
}
>
<
p
>
<
p
className=
{
styles
.
firstp
}
>
<
CompassFilled
className=
{
styles
.
guideIconFirst
}
/>
<
span
>
使用向导
</
span
>
<
span
>
使用向导
</
span
>
</
p
>
</
div
>
<
div
className=
{
styles
.
gridStyle
}
>
<
div
>
<
p
className=
{
styles
.
guideTitle
}
>
1.新建商品
</
p
>
<
p
className=
{
styles
.
guideDesc
}
>
三分钟智能化,完成商品创建
</
p
>
<
Dropdown
overlay=
{
menu
}
>
<
div
className=
{
styles
.
gridStyle
}
>
<
div
>
<
p
className=
{
styles
.
guideTitle
}
>
1.新建商品
</
p
>
<
p
className=
{
styles
.
guideDesc
}
>
三分钟智能化,完成商品创建
</
p
>
</
div
>
<
UpOutlined
className=
{
styles
.
guideIcon
}
/>
</
div
>
<
UpOutlined
className=
{
styles
.
guideIcon
}
/>
</
div
>
<
div
className=
{
styles
.
gridStyle
}
>
<
div
>
<
p
className=
{
styles
.
guideTitle
}
>
1.新建商品
</
p
>
<
p
className=
{
styles
.
guideDesc
}
>
三分钟智能化,完成商品创建
</
p
>
</
Dropdown
>
<
Dropdown
overlay=
{
menu
}
>
<
div
className=
{
styles
.
gridStyle
}
>
<
div
>
<
p
className=
{
styles
.
guideTitle
}
>
1.新建商品
</
p
>
<
p
className=
{
styles
.
guideDesc
}
>
三分钟智能化,完成商品创建
</
p
>
</
div
>
<
UpOutlined
className=
{
styles
.
guideIcon
}
/>
</
div
>
<
UpOutlined
className=
{
styles
.
guideIcon
}
/>
</
div
>
<
div
className=
{
cx
(
styles
.
gridStyle
,
styles
.
gridStyleLast
)
}
>
<
div
>
<
p
className=
{
styles
.
guideTitle
}
>
1.新建商品
</
p
>
<
p
className=
{
styles
.
guideDesc
}
>
三分钟智能化,完成商品创建
</
p
>
</
Dropdown
>
<
Dropdown
overlay=
{
menu
}
>
<
div
className=
{
cx
(
styles
.
gridStyle
,
styles
.
gridStyleLast
)
}
>
<
div
>
<
p
className=
{
styles
.
guideTitle
}
>
1.新建商品
</
p
>
<
p
className=
{
styles
.
guideDesc
}
>
三分钟智能化,完成商品创建
</
p
>
</
div
>
<
UpOutlined
className=
{
styles
.
guideIcon
}
/>
</
div
>
<
UpOutlined
className=
{
styles
.
guideIcon
}
/>
</
Dropdown
>
<
div
className=
{
styles
.
guideClose
}
>
<
p
>
关闭
</
p
>
</
div
>
</
div
>
</
Col
>
...
...
src/pages/lxMall/commodityDetail/index.tsx
View file @
7bdbe8ff
...
...
@@ -502,6 +502,9 @@ const CommodityDetail = (props) => {
}
const
handleInquiry
=
()
=>
{
if
(
!
checkoutUserInfo
())
{
return
}
window
.
location
.
href
=
`/memberCenter/tranactionAbility/goodsOffer/addEnquiryOrder/rfq?id=
${
id
}
&memberId=
${
memberId
}
`
}
...
...
src/pages/lxMall/pay/components/credit/index.tsx
View file @
7bdbe8ff
...
...
@@ -25,6 +25,7 @@ const CreditPayWay: React.FC<CreditPayWayPropsType> = (props) => {
const
[
confirmLoading
,
setConfirmLoading
]
=
useState
<
boolean
>
(
false
)
const
[
securityInfo
,
setSecurityInfo
]
=
useState
<
GetMemberSecurityGetResponse
>
()
const
[
pageLoading
,
setPageLoading
]
=
useState
<
boolean
>
(
true
)
const
[
payDisabled
,
setPayDisabled
]
=
useState
<
boolean
>
(
false
)
const
handlePasswordChange
=
(
value
:
string
)
=>
{
setPayPassword
(
value
)
...
...
@@ -71,6 +72,7 @@ const CreditPayWay: React.FC<CreditPayWayPropsType> = (props) => {
let
param
=
{
id
:
orderId
,
paymentInformationId
:
payInfo
.
paymentInformationId
,
payPassword
}
setConfirmLoading
(
true
)
//@ts-ignore
...
...
@@ -128,7 +130,7 @@ const CreditPayWay: React.FC<CreditPayWayPropsType> = (props) => {
)
:
(
<
div
className=
{
styles
.
pay_wray
}
>
<
div
className=
{
styles
.
pay_wray_title
}
>
您还没有设置支付密码
</
div
>
<
Button
loading=
{
confirmLoading
}
className=
{
styles
.
pay_btn
}
onClick=
{
()
=>
history
.
push
(
`/memberCenter/systemSetting/accountSetting/paycode?backPay=true`
)
}
>
去设置密码
</
Button
>
<
Button
loading=
{
confirmLoading
}
disabled=
{
payDisabled
}
className=
{
styles
.
pay_btn
}
onClick=
{
()
=>
history
.
push
(
`/memberCenter/systemSetting/accountSetting/paycode?backPay=true`
)
}
>
去设置密码
</
Button
>
</
div
>
)
}
...
...
src/pages/transaction/_public/order/effects/useOrderDetail.tsx
View file @
7bdbe8ff
...
...
@@ -7,6 +7,7 @@ import { GlobalConfig } from '@/global/config'
import
{
orderTypeLabel
}
from
'../constant'
import
{
formatTimeString
}
from
'@/utils'
import
StatusColors
from
'../../../components/StatusColors'
import
{
message
}
from
'antd'
interface
OrderDetailHookProps
{
// 采购、销售
...
...
@@ -42,9 +43,11 @@ export const useOrderDetail = (options: OrderDetailHookProps) => {
const
reloadFormData
=
useCallback
(()
=>
{
if
(
id
)
{
const
fn
=
type
===
'purchaseOrder'
?
PublicApi
.
getOrderProcurementOrderDetails
:
PublicApi
.
getOrderPurchaseOrderDetails
fn
({
id
}).
then
(({
data
,
code
})
=>
{
if
(
code
===
1000
)
{
setFormData
(
data
)
fn
({
id
},
{
ctlType
:
"none"
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
setFormData
(
res
.
data
)
}
else
{
message
.
error
(
res
.
message
)
}
})
}
...
...
src/pages/transaction/components/createElectronModal/index.tsx
View file @
7bdbe8ff
...
...
@@ -7,6 +7,7 @@ import { useAsyncSelect } from '@/formSchema/effects/useAsyncSelect'
import
{
PublicApi
}
from
'@/services/api'
import
{
useHttpRequest
}
from
'@/hooks/useHttpRequest'
import
{
OrderDetailContext
}
from
'../../_public/order/context'
import
{
fetchOptions
}
from
'@/pages/balance/common'
export
interface
OrderElectronModalProps
{
currentRef
:
any
...
...
@@ -165,6 +166,7 @@ const CreateOrderElectronModal:React.FC<OrderElectronModalProps> = (props) => {
const
handleConfirm
=
()
=>
{
schemaActions
.
submit
()
}
return
(
<
ModalForm
modalTitle=
'确认提交审核'
...
...
@@ -181,7 +183,7 @@ const CreateOrderElectronModal:React.FC<OrderElectronModalProps> = (props) => {
electronBtn
}
}
effects=
{
(
$
,
actions
)
=>
{
$
(
'onFormInit'
).
subscribe
(()
=>
{
//
$('onFormInit').subscribe(() =>
{
if
(
data
.
isElectronicContract
===
1
)
{
useAsyncSelect
(
'contractTemplateId'
,
async
()
=>
(
await
PublicApi
.
getOrderSelectListContractTemplate
()).
data
,
[
'name'
,
'id'
])
}
else
{
...
...
@@ -192,7 +194,7 @@ const CreateOrderElectronModal:React.FC<OrderElectronModalProps> = (props) => {
}
})
}
})
//
})
}
}
/>
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment