Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
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
shenshaokai
jinfa-admin
Commits
4824ffa2
Commit
4824ffa2
authored
Sep 28, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2' of
http://10.0.0.22:3000/lingxi/lingxi-business-system
into v2
parents
3ca2ae81
6f61b428
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
30 additions
and
14 deletions
+30
-14
index.tsx
...stem/orderDetail/components/orderPayResultModal/index.tsx
+2
-1
index.tsx
...orderSystem/orderDetail/components/orderPayTabs/index.tsx
+1
-0
index.tsx
src/pages/orderSystem/orderDetail/index.tsx
+2
-0
editMallModal.tsx
.../ruleSettingManage/mallRules/components/editMallModal.tsx
+4
-1
mall.tsx
src/pages/ruleSettingManage/mallRules/components/mall.tsx
+11
-8
member.tsx
src/pages/ruleSettingManage/mallRules/components/member.tsx
+9
-3
detail.tsx
src/pages/ruleSettingManage/mallRules/detail.tsx
+1
-1
No files found.
src/pages/orderSystem/orderDetail/components/orderPayResultModal/index.tsx
View file @
4824ffa2
...
...
@@ -7,6 +7,7 @@ import { history } from 'umi'
import
OverflowText
from
'@/components/OverflowText'
export
interface
OrderPayResultModalProps
{
/** default: 确认模式,preview: 预览模式 */
type
:
'default'
|
'preview'
,
currentRef
:
any
}
...
...
@@ -16,7 +17,7 @@ const OrderPayResultModal:React.FC<OrderPayResultModalProps> = ({type, currentRe
const
{
id
}
=
usePageStatus
()
const
[
visible
,
setVisible
]
=
useState
(
false
)
const
[
isReady
,
setIsReady
]
=
useState
<
any
>
()
const
canCtlData
=
data
.
payments
.
find
(
v
=>
v
.
showConfirm
)
||
{}
const
canCtlData
=
data
.
payments
.
find
(
v
=>
type
===
'preview'
?
v
.
showView
:
v
.
showConfirm
)
||
{}
// const transData = canCtlData.vouchers?.split(',') || []
...
...
src/pages/orderSystem/orderDetail/components/orderPayTabs/index.tsx
View file @
4824ffa2
...
...
@@ -15,6 +15,7 @@ const TabPane = Tabs.TabPane
const
TabHeader
=
({
dataSource
})
=>
{
const
{
setPayResultType
,
payResultVisible
}
=
useContext
(
OrderDetailContext
)
return
<
div
>
<
Row
justify=
'space-between'
style=
{
{
minWidth
:
216
}
}
>
<
Col
>
...
...
src/pages/orderSystem/orderDetail/index.tsx
View file @
4824ffa2
...
...
@@ -13,6 +13,7 @@ import OrderTransformRecord from './components/orderTransformRecord'
import
OrderPayTabs
from
'./components/orderPayTabs'
import
OrderDeleveRecord
from
'./components/orderDeleveRecord'
import
{
OrderKindType
}
from
'./constant'
import
OrderPayResultModal
from
'./components/orderPayResultModal'
export
interface
CommonOrderDetailProps
{}
...
...
@@ -110,6 +111,7 @@ const CommonOrderDetail:React.FC<CommonOrderDetailProps> = (props) => {
<
OrderTransformRecord
/>
</
div
>
</
OrderDetailWrapper
>
<
OrderPayResultModal
currentRef=
{
payResultVisible
}
type=
{
payResultType
}
/>
</
OrderDetailContext
.
Provider
>
</
div
>
)
:
null
...
...
src/pages/ruleSettingManage/mallRules/components/editMallModal.tsx
View file @
4824ffa2
...
...
@@ -61,7 +61,10 @@ const classSchema: ISchema = {
},
logoUrl
:
{
title
:
'商城LOGO'
,
'x-component'
:
'CustomUpload'
'x-component'
:
'CustomUpload'
,
"x-component-props"
:
{
size
:
'200x200'
},
},
}
},
...
...
src/pages/ruleSettingManage/mallRules/components/mall.tsx
View file @
4824ffa2
...
...
@@ -140,14 +140,17 @@ const MemberInfo: React.FC<Iprops> = (props) => {
const
fetchMembersList
=
async
(
params
)
=>
{
const
res
=
await
PublicApi
.
getManageWebShopWebSelfShopList
(
params
)
const
{
code
,
data
}
=
res
const
_data
=
data
.
map
(
item
=>
{
return
{
...
item
,
shopId
:
item
.
id
,
domainName
:
`http://
${
item
.
url
}
.
${
item
.
domainName
}
/`
}
})
return
{
totalCount
:
data
.
length
,
data
:
_data
}
if
(
code
===
1000
)
{
const
_data
=
data
.
map
(
item
=>
{
return
{
...
item
,
shopId
:
item
.
id
,
isDefault
:
0
,
// 默认为否
domainName
:
`http://
${
item
.
url
}
.
${
item
.
domainName
}
/`
}
})
return
{
totalCount
:
data
.
length
,
data
:
_data
}
}
}
// 改变状态
...
...
src/pages/ruleSettingManage/mallRules/components/member.tsx
View file @
4824ffa2
...
...
@@ -193,10 +193,16 @@ const MemberInfo: React.FC<Iprops> = (props) => {
}
const
fetchMembersList
=
async
(
params
)
=>
{
const
res
=
await
PublicApi
.
getMemberManage
All
ProviderPage
(
params
)
const
res
=
await
PublicApi
.
getMemberManage
Platform
ProviderPage
(
params
)
const
{
code
,
data
}
=
res
let
_data
=
data
.
data
.
map
(
item
=>
({
...
item
,
memberName
:
item
.
name
,
memberRoleId
:
item
.
memberId
+
'_'
+
item
.
roleId
}))
return
{
totalCount
:
data
.
totalCount
,
data
:
_data
}
if
(
code
===
1000
)
{
let
_data
=
data
.
data
.
map
(
item
=>
({
...
item
,
memberName
:
item
.
name
,
memberRoleId
:
item
.
memberId
+
'_'
+
item
.
roleId
}))
return
{
totalCount
:
data
.
totalCount
,
data
:
_data
}
}
}
const
handleCancelAddMember
=
()
=>
{
...
...
src/pages/ruleSettingManage/mallRules/detail.tsx
View file @
4824ffa2
...
...
@@ -74,7 +74,7 @@ const PaymentConfigLayout = () => {
let
shopList
=
form
.
getFieldValue
(
'shopList'
)
if
(
shopList
&&
shopList
.
length
)
{
shopList
=
shopList
.
map
(
item
=>
{
const
urlArr
=
item
.
url
.
split
(
'/'
)
const
urlArr
=
item
?
.
url
.
split
(
'/'
)
urlArr
[
urlArr
.
length
-
1
]
=
mId
||
''
return
{
...
item
,
...
...
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