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
linweijiong
jinfa-platform
Commits
fc5ec868
Commit
fc5ec868
authored
Sep 29, 2021
by
前端-李俊鑫
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into v2
parents
0f2cce04
93f7c8eb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
468 additions
and
212 deletions
+468
-212
index.tsx
src/pages/channel/channelTemplate/index.tsx
+1
-1
index.tsx
src/pages/commodity/products/index.tsx
+2
-2
index.tsx
src/pages/editor/components/drawer/activityDrawer/index.tsx
+20
-20
index.tsx
src/pages/editor/components/toolBar/index.tsx
+4
-3
returnSaveParams.ts
src/pages/editor/components/toolBar/returnSaveParams.ts
+2
-0
index.tsx
src/pages/editor/mobileSettingPanel/common/context/index.tsx
+10
-0
useSameLevelProps.ts
...itor/mobileSettingPanel/common/hooks/useSameLevelProps.ts
+35
-0
common.less
...pages/editor/mobileSettingPanel/propsSettings/common.less
+47
-0
index.less
...tingPanel/propsSettings/components/cardNavItem/index.less
+3
-0
index.tsx
...ttingPanel/propsSettings/components/cardNavItem/index.tsx
+0
-0
schema.ts
...ttingPanel/propsSettings/components/cardNavItem/schema.ts
+142
-0
settingWrap.tsx
src/pages/editor/mobileSettingPanel/settingWrap.tsx
+18
-2
index.tsx
src/pages/home/components/UserCenter/index.tsx
+6
-6
index.tsx
src/pages/mobileTemplate/channelTemplateEdit/index.tsx
+0
-0
index.less
src/pages/shop/components/templateItem/index.less
+174
-175
index.tsx
src/pages/shop/shopTemplate/index.tsx
+1
-1
index.tsx
...pages/transaction/components/approvedOrderModal/index.tsx
+1
-1
index.tsx
...ages/transaction/components/orderPayResultModal/index.tsx
+0
-1
index.tsx
...pages/transaction/purchaseOrder/orderCollectB2b/index.tsx
+2
-0
No files found.
src/pages/channel/channelTemplate/index.tsx
View file @
fc5ec868
...
...
@@ -35,7 +35,7 @@ const ShopTemplate: React.FC = () => {
<
Row
gutter=
{
24
}
className=
{
styles
.
template_list
}
>
{
templateList
.
map
(
item
=>
(
<
Col
xxl=
{
6
}
xl=
{
8
}
lg=
{
12
}
key=
{
item
.
id
}
>
<
Col
xxl=
{
6
}
xl=
{
8
}
lg=
{
12
}
key=
{
item
.
id
}
style=
{
{
marginBottom
:
16
}
}
>
<
TemplateItem
templateInfo=
{
item
}
type=
"shop"
/>
</
Col
>
))
...
...
src/pages/commodity/products/index.tsx
View file @
fc5ec868
...
...
@@ -371,7 +371,7 @@ const Products: React.FC<{}> = () => {
memberRoleId
:
getAuth
().
memberRoleId
}).
then
(
res
=>
{
if
(
res
.
data
?.
id
){
setShopId
(
res
.
data
.
id
)
setShopId
(
res
.
data
)
setCheckedValues
(
values
)
}
else
{
message
.
error
(
'您还还未创建店铺,请先创建店铺!'
)
...
...
@@ -407,7 +407,7 @@ const Products: React.FC<{}> = () => {
if
(
isUp
)
{
if
(
checkedValues
.
length
>
0
){
const
fn
=
isBatch
?
PublicApi
.
postProductCommodityPublishCommodityBatch
:
PublicApi
.
postProductCommodityPublishCommodity
fn
(
isBatch
?
{
storeId
:
shopId
,
shopList
:
checkedValues
,
idList
:
currentRef
.
current
}
:
{
storeId
:
shopId
,
...
params
}).
then
(
res
=>
{
fn
(
isBatch
?
{
storeId
:
shopId
[
'id'
],
storeName
:
shopId
[
'name'
],
shopList
:
checkedValues
,
idList
:
currentRef
.
current
}
:
{
storeId
:
shopId
[
'id'
],
storeName
:
shopId
[
'name'
]
,
...
params
}).
then
(
res
=>
{
setUpDownModal
(
false
)
ref
.
current
.
reload
()
setIsDisabledOKbtn
(
false
)
...
...
src/pages/editor/components/drawer/activityDrawer/index.tsx
View file @
fc5ec868
...
...
@@ -15,10 +15,10 @@ import StatusTag from '@/components/StatusTag'
import
*
as
tableSchemas
from
'./schema'
;
const
options
=
[
{
label
:
'平台'
,
value
:
1
},
{
label
:
'商家'
,
value
:
2
},
];
//
const options = [
//
{ label: '平台', value: 1 },
//
{ label: '商家', value: 2 },
//
];
interface
ActivityDrawerProps
{
visible
:
boolean
,
...
...
@@ -159,22 +159,22 @@ const ActivityDrawer: React.FC<ActivityDrawerProps> = (props: ActivityDrawerProp
span
:
16
}
}
}
formilyChilds=
{
{
children
:
(
<
div
style=
{
{
textAlign
:
'right'
}
}
>
<
Radio
.
Group
options=
{
options
}
onChange=
{
_onRadioChange
}
value=
{
type
}
optionType=
"button"
/>
</
div
>
),
layouts
:
{
order
:
2
,
span
:
8
}
}
}
//
formilyChilds={{
//
children: (
//
<div style={{ textAlign: 'right' }}>
//
<Radio.Group
//
options={options}
//
onChange={_onRadioChange}
//
value={type}
//
optionType="button"
//
/>
//
</div>
//
),
//
layouts: {
//
order: 2,
//
span: 8
//
}
//
}}
/>
</
Drawer
>
)
...
...
src/pages/editor/components/toolBar/index.tsx
View file @
fc5ec868
...
...
@@ -14,11 +14,12 @@ interface ToolBarPropsType {
title
?:
string
,
showActions
?:
boolean
,
templateId
?:
number
,
layoutType
?:
LAYOUT_TYPE
layoutType
?:
LAYOUT_TYPE
,
templateInfo
?:
any
}
const
ToolBar
:
React
.
FC
<
ToolBarPropsType
>
=
(
props
)
=>
{
const
{
type
=
1
,
title
=
"首页"
,
showActions
,
templateId
,
layoutType
}
=
props
const
{
type
=
1
,
title
=
"首页"
,
showActions
,
templateId
,
templateInfo
,
layoutType
}
=
props
const
[
saveLoading
,
setSaveLoading
]
=
useState
<
boolean
>
(
false
)
const
{
pageConfig
}
=
useSelector
<
{
pageConfig
:
PageConfigType
},
STATE_PROPS
>
([
'pageConfig'
])
...
...
@@ -42,7 +43,7 @@ const ToolBar: React.FC<ToolBarPropsType> = (props) => {
if
(
layoutType
===
LAYOUT_TYPE
.
shop
)
{
saveAppEnterprise
(
paramsShop
(
templateId
,
pageConfig
))
}
else
if
(
layoutType
===
LAYOUT_TYPE
.
channel
)
{
saveAppEnterprise
(
paramsChannel
(
templateId
,
pageConfig
))
saveAppEnterprise
(
paramsChannel
(
templateId
,
pageConfig
,
templateInfo
))
}
},
[
pageConfig
])
...
...
src/pages/editor/components/toolBar/returnSaveParams.ts
View file @
fc5ec868
...
...
@@ -566,10 +566,12 @@ export const paramsShop = (
export
const
paramsChannel
=
(
templateId
:
number
,
pageConfig
:
PageConfigType
,
templateInfo
:
any
,
)
=>
{
let
_params
:
any
=
{
templateId
,
adornContent
:
{},
categoryAdornContent
:
templateInfo
?.
categoryAdornContent
||
{}
};
const
_root
:
any
=
pageConfig
[
ROOT
].
childNodes
||
[];
...
...
src/pages/editor/mobileSettingPanel/common/context/index.tsx
0 → 100644
View file @
fc5ec868
import
{
ISchemaFormActions
}
from
'@formily/antd'
;
import
React
from
'react'
;
type
Icontext
=
{
formActions
:
ISchemaFormActions
}
export
const
context
=
React
.
createContext
<
Icontext
|
null
>
(
null
);
export
const
FixtureContentProvider
=
context
.
Provider
;
src/pages/editor/mobileSettingPanel/common/hooks/useSameLevelProps.ts
0 → 100644
View file @
fc5ec868
import
React
,
{
useMemo
,
useEffect
}
from
'react'
;
import
{
useSelector
}
from
'@lingxi-disign/react'
;
interface
useSamLevelPropsType
{
key
:
string
,
}
const
useSamLevelProps
=
(
props
:
useSamLevelPropsType
)
=>
{
const
{
key
}
=
props
const
{
pageConfig
}
=
useSelector
<
any
,
any
>
([
'pageConfig'
]);
const
result
=
useMemo
(()
=>
{
// 判断key是否含有’-‘符号的子模块
if
(
key
&&
key
.
indexOf
(
'-'
)
>
-
1
)
{
const
keySplit
=
key
.
split
(
'-'
)
keySplit
.
pop
()
const
commonKey
=
`
${
keySplit
.
join
(
'-'
)}
-`
let
propsList
:
any
[]
=
[]
pageConfig
&&
Object
.
keys
(
pageConfig
).
forEach
((
moduleKey
:
string
)
=>
{
if
(
moduleKey
.
indexOf
(
commonKey
)
>
-
1
)
{
if
(
pageConfig
[
moduleKey
]?.
props
)
{
propsList
.
push
(
pageConfig
[
moduleKey
]?.
props
)
}
}
})
return
propsList
}
else
{
return
[]
}
},
[
key
])
return
result
}
export
default
useSamLevelProps
src/pages/editor/mobileSettingPanel/propsSettings/common.less
View file @
fc5ec868
@import "../../../../global//styles/utils.less";
.image {
margin-top: 8px;
width: 100%;
position: relative;
&_body {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 96px;
cursor: pointer;
background-color: #fafbfc;
overflow: hidden;
}
.imageIcon {
height: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
overflow: hidden;
}
.uploadImage {
position: absolute;
bottom: -34px;
left: 0;
right: 0;
padding: 4px;
background: rgba(0,0,0,0.3);
z-index: 99;
text-align: center;
color: #fff;
transition: all 0.6s;
}
&:hover {
.uploadImage {
transform: translateY(-34px);
}
}
}
.setting {
.setting_title {
...
...
src/pages/editor/mobileSettingPanel/propsSettings/components/cardNavItem/index.less
View file @
fc5ec868
...
...
@@ -76,6 +76,7 @@
&-record {
&-shop {
width: 100%;
height: 56px;
border: 1px solid #EDEEEF;
display: flex;
...
...
@@ -101,6 +102,7 @@
}
&-integral {
width: 100%;
height: 56px;
border: 1px solid #EDEEEF;
display: flex;
...
...
@@ -138,6 +140,7 @@
}
&-activity {
width: 100%;
height: 56px;
border: 1px solid #EDEEEF;
display: flex;
...
...
src/pages/editor/mobileSettingPanel/propsSettings/components/cardNavItem/index.tsx
View file @
fc5ec868
This diff is collapsed.
Click to expand it.
src/pages/editor/mobileSettingPanel/propsSettings/components/cardNavItem/schema.ts
0 → 100644
View file @
fc5ec868
import
{
ISchema
}
from
"@formily/antd"
;
export
const
cardNavSchema
:
ISchema
=
{
type
:
'Object'
,
properties
:
{
layout
:
{
type
:
'object'
,
"x-component"
:
'mega-layout'
,
"x-component-props"
:
{
labelAlign
:
"top"
},
properties
:
{
name
:
{
type
:
'string'
,
title
:
'名称'
,
'x-rules'
:
[
{
required
:
true
,
message
:
'请输入名称'
,
},
],
},
icon
:
{
type
:
'string'
,
title
:
'图标'
,
'x-rules'
:
[
{
required
:
true
,
message
:
'请上传图标'
,
},
],
"x-component"
:
'FormilyUpload'
,
"x-component-props"
:
{
renderUploadChild
:
'{{renderUploadChild}}'
,
showFiles
:
false
,
customizeItemRender
:
null
,
children
:
null
,
maxCount
:
1
,
},
},
typeWrap
:
{
type
:
'object'
,
"x-component"
:
'flex-layout'
,
"x-component-props"
:
{
rowStyle
:
{
justifyContent
:
'flex-start'
,
alignItems
:
'flex-start'
,
},
},
properties
:
{
type
:
{
type
:
'string'
,
title
:
'导航链接'
,
enum
:
[],
'x-linkages'
:
[
{
type
:
'value:visible'
,
target
:
'id'
,
condition
:
"{{$value === 1}}"
},
{
type
:
'value:visible'
,
target
:
'channel'
,
condition
:
"{{$value === 3}}"
},
{
type
:
'value:visible'
,
target
:
'url'
,
condition
:
"{{$value === 4}}"
},
{
type
:
'value:visible'
,
target
:
'recordDetail'
,
condition
:
"{{$value === 2}}"
},
],
'x-rules'
:
[
{
required
:
true
,
message
:
'请选择导航链接'
,
},
],
'x-component-props'
:
{
style
:
{
width
:
320
,
marginRight
:
12
}
}
},
sumbit
:
{
'x-component'
:
'Children'
,
'x-component-props'
:
{
children
:
'{{SelectBtn}}'
,
},
'x-mega-props'
:
{
span
:
1
,
},
},
}
},
recordDetail
:
{
'x-component'
:
'recordDetail'
,
},
id
:
{
type
:
'string'
,
title
:
'品类'
,
enum
:
[],
'x-component-props'
:
{
state
:
false
,
},
'x-rules'
:
[
{
required
:
true
,
message
:
'请选择品类'
,
},
],
},
channel
:
{
type
:
'string'
,
title
:
'频道'
,
enum
:
[],
'x-rules'
:
[
{
required
:
true
,
message
:
'请选择频道'
,
},
],
},
url
:
{
type
:
'string'
,
title
:
'链接地址'
,
'x-rules'
:
[
{
required
:
true
,
message
:
'请输入链接地址'
,
},
],
},
}
}
}
};
src/pages/editor/mobileSettingPanel/settingWrap.tsx
View file @
fc5ec868
...
...
@@ -2,6 +2,8 @@
import
React
from
'react'
import
{
Button
}
from
'antd'
import
{
clearSelectedStatus
}
from
'@lingxi-disign/core'
;
import
{
createFormActions
,
ISchemaFormActions
}
from
'@formily/antd'
;
import
{
FixtureContentProvider
}
from
'./common/context'
import
styles
from
'./index.less'
interface
SettingPanelPropsType
{
...
...
@@ -11,14 +13,28 @@ interface SettingPanelPropsType {
confirmLoading
?:
boolean
}
const
formActions
:
ISchemaFormActions
=
createFormActions
();
const
SettingWrap
:
React
.
FC
<
SettingPanelPropsType
>
=
(
props
)
=>
{
// eslint-disable-next-line @typescript-eslint/no-empty-function
const
{
children
,
footer
,
onOK
,
onCancel
,
confirmLoading
=
false
}
=
props
const
handleConfirm
=
(
e
)
=>
{
if
(
formActions
.
validate
())
{
formActions
.
submit
().
then
(()
=>
{
clearSelectedStatus
()
})
}
else
{
clearSelectedStatus
()
}
}
return
(
<
div
className=
{
styles
.
setting_panel
}
id=
"setting_panel"
>
<
div
className=
{
styles
.
setting_panel_body
}
>
{
children
}
<
FixtureContentProvider
value=
{
{
formActions
:
formActions
}
}
>
{
children
}
</
FixtureContentProvider
>
</
div
>
{
footer
?
(
...
...
@@ -29,7 +45,7 @@ const SettingWrap: React.FC<SettingPanelPropsType> = (props) => {
<
div
className=
{
styles
.
setting_panel_footer
}
>
<
div
style=
{
{
textAlign
:
'right'
}
}
>
<
Button
style=
{
{
marginRight
:
8
}
}
onClick=
{
()
=>
onCancel
?
onCancel
()
:
clearSelectedStatus
()
}
>
取消
</
Button
>
<
Button
type=
"primary"
onClick=
{
(
e
)
=>
onOK
?
onOK
(
e
)
:
clearSelectedStatus
()
}
loading=
{
confirmLoading
}
>
确定
</
Button
>
<
Button
type=
"primary"
onClick=
{
handleConfirm
}
loading=
{
confirmLoading
}
>
确定
</
Button
>
</
div
>
</
div
>
)
...
...
src/pages/home/components/UserCenter/index.tsx
View file @
fc5ec868
...
...
@@ -2,10 +2,10 @@ import React, { useCallback, useMemo, useReducer } from 'react';
import
styles
from
'./index.less'
;
import
moment
from
'moment'
;
import
{
Badge
,
message
,
Spin
,
Tooltip
}
from
'antd'
;
import
level1
from
'@/assets/imgs/level1.png'
;
import
level2
from
'@/assets/imgs/level2.png'
;
import
level3
from
'@/assets/imgs/level3.png'
;
import
level4
from
'@/assets/imgs/level4.png'
;
//
import level1 from '@/assets/imgs/level1.png';
//
import level2 from '@/assets/imgs/level2.png';
//
import level3 from '@/assets/imgs/level3.png';
//
import level4 from '@/assets/imgs/level4.png';
import
{
Link
}
from
'umi'
;
import
{
getAuth
}
from
'@/utils/auth'
;
import
StatusTag
from
'@/components/StatusTag'
;
...
...
@@ -21,7 +21,7 @@ import { GlobalConfig } from '@/global/config';
interface
Iprops
{}
const
WEEKDAYS
=
[
"天"
,
"一"
,
"二"
,
"三"
,
"四"
,
"五"
,
"六"
];
const
LEVEL_IMAGE
=
[
level1
,
level1
,
level2
,
level3
,
level4
];
//
const LEVEL_IMAGE = [level1, level1, level2, level3, level4];
const
EDIT_USER_URL
=
'/memberCenter/editMySelf'
;
const
USER_CENTER_URL
=
'/memberCenter/memberAbility/profile/query'
;
const
STATUS_COLOR
:
(
"default"
|
"processing"
|
"error"
|
"success"
)[]
=
[
"default"
,
"processing"
,
"error"
,
"success"
,
"error"
]
...
...
@@ -139,7 +139,7 @@ const UserCenter: React.FC<Iprops> = (props) => {
<
div
className=
{
styles
.
otherValues
}
>
<
div
className=
{
styles
.
divider
}
>
<
div
className=
{
styles
.
level
}
>
会员等级:
<
img
src=
{
LEVEL_IMAGE
[
userAuth
.
level
]
}
className=
{
styles
.
levelIm
g
}
/>
会员等级:
<
StatusTag
type=
{
'primary'
}
title=
{
userAuth
.
levelTa
g
}
/>
</
div
>
<
div
className=
{
styles
.
score
}
>
平台积分:
<
strong
>
{
userAuth
.
score
}
</
strong
>
...
...
src/pages/mobileTemplate/channelTemplateEdit/index.tsx
View file @
fc5ec868
This diff is collapsed.
Click to expand it.
src/pages/shop/components/templateItem/index.less
View file @
fc5ec868
.template_item {
// width: 386px;
background-color: #ffffff;
border-radius: 8px;
overflow: hidden;
height: 100%;
padding-bottom: 24px;
.img_box {
position: relative;
// height: 218px;
height: 0;
padding-bottom: 67%;
overflow: hidden;
background-size: auto 100%;
background-position: center center;
background-repeat: no-repeat;
&:hover {
.img_box_mask {
opacity: 1;
}
}
.img_box_mask {
position: absolute;
width: 100%;
opacity: 0;
transition: all .5s;
height: 100%;
background: rgba(255, 255, 255, 0.45);
z-index: 8;
.detail_btn {
position: relative;
display: block;
left: 0;
right: 0;
top: 50%;
margin: 0 auto;
margin-top: -20px;
width: 240px;
height: 40px;
background: rgba(0, 0, 0, 0.85);
color: #ffffff;
text-align: center;
line-height: 40px;
font-weight: 500;
cursor: pointer;
&:hover {
opacity: .9;
}
}
}
.type_tag {
position: absolute;
top: 0;
width: 72px;
height: 24px;
color: #ffffff;
text-align: center;
line-height: 24px;
font-size: 12px;
background: #4279DF;
border-radius: 8px 0px 8px 0px;
z-index: 3;
&.h5 {
background: #6554C0;
}
}
&>img {
// height: 100%;
width: 100%;
}
}
.template_info {
padding: 0 24px;
.template_info_name {
display: flex;
align-items: center;
color: #303133;
font-weight: bold;
line-height: 24px;
padding: 16px 0;
.tag {
padding: 0 8px;
height: 24px;
background: rgba(244, 245, 247, 1);
border-radius: 4px;
margin-left: 8px;
color: #606266;
font-weight: 400;
}
}
.template_info_content {
display: flex;
align-items: flex-end;
height: 52px;
&.goods {
height: 32px;
}
.template_info_content_text_wrap {
flex: 1;
font-size: 12px;
line-height: 22px;
.template_info_content_text_line {
display: flex;
&:not(:last-child) {
margin-bottom: 8px;
}
&>label {
color: #909399;
margin-right: 8px;
}
&>span {
flex: 1;
width: 0;
display: block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: #303133;
}
}
}
.template_item_btn {
width: 88px;
height: 32px;
display: flex;
justify-content: center;
align-items: center;
background: rgba(250, 251, 252, 1);
border: 1px solid rgba(235, 236, 240, 1);
cursor: pointer;
color: #606266;
font-size: 12px;
// margin-top: auto;
margin-left: auto;
&.active {
background: #00B37A;
border: 1px solid #00B37A;
color: #ffffff;
}
&>label {
margin-left: 8px;
cursor: pointer;
}
&:hover {
opacity: .8;
}
}
}
}
}
\ No newline at end of file
.template_item {
// width: 386px;
background-color: #ffffff;
border-radius: 8px;
overflow: hidden;
height: 100%;
padding-bottom: 24px;
.img_box {
position: relative;
// height: 218px;
height: 0;
padding-bottom: 67%;
overflow: hidden;
background-size: auto 100%;
background-position: center center;
background-repeat: no-repeat;
&:hover {
.img_box_mask {
opacity: 1;
}
}
.img_box_mask {
position: absolute;
width: 100%;
opacity: 0;
transition: all .5s;
height: 100%;
background: rgba(255, 255, 255, 0.45);
z-index: 8;
.detail_btn {
position: relative;
display: block;
left: 0;
right: 0;
top: 50%;
margin: 0 auto;
margin-top: -20px;
width: 240px;
height: 40px;
background: rgba(0, 0, 0, 0.85);
color: #ffffff;
text-align: center;
line-height: 40px;
font-weight: 500;
cursor: pointer;
&:hover {
opacity: .9;
}
}
}
.type_tag {
position: absolute;
top: 0;
width: 72px;
height: 24px;
color: #ffffff;
text-align: center;
line-height: 24px;
font-size: 12px;
background: #4279DF;
border-radius: 8px 0px 8px 0px;
z-index: 3;
&.h5 {
background: #6554C0;
}
}
&>img {
// height: 100%;
width: 100%;
}
}
.template_info {
padding: 0 24px;
.template_info_name {
display: flex;
align-items: center;
color: #303133;
font-weight: bold;
line-height: 24px;
padding: 16px 0;
.tag {
padding: 0 8px;
height: 24px;
background: rgba(244, 245, 247, 1);
border-radius: 4px;
margin-left: 8px;
color: #606266;
font-weight: 400;
}
}
.template_info_content {
display: flex;
align-items: flex-end;
height: 52px;
&.goods {
height: 32px;
}
.template_info_content_text_wrap {
flex: 1;
font-size: 12px;
line-height: 22px;
.template_info_content_text_line {
display: flex;
&:not(:last-child) {
margin-bottom: 8px;
}
&>label {
color: #909399;
margin-right: 8px;
}
&>span {
flex: 1;
width: 0;
display: block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: #303133;
}
}
}
.template_item_btn {
width: 88px;
height: 32px;
display: flex;
justify-content: center;
align-items: center;
background: rgba(250, 251, 252, 1);
border: 1px solid rgba(235, 236, 240, 1);
cursor: pointer;
color: #606266;
font-size: 12px;
// margin-top: auto;
margin-left: auto;
&.active {
background: #00B37A;
border: 1px solid #00B37A;
color: #ffffff;
}
&>label {
margin-left: 8px;
cursor: pointer;
}
&:hover {
opacity: .8;
}
}
}
}
}
src/pages/shop/shopTemplate/index.tsx
View file @
fc5ec868
...
...
@@ -35,7 +35,7 @@ const ShopTemplate: React.FC = () => {
<
Row
gutter=
{
24
}
className=
{
styles
.
template_list
}
>
{
templateList
.
map
(
item
=>
(
<
Col
xxl=
{
6
}
xl=
{
8
}
lg=
{
12
}
key=
{
item
.
id
}
>
<
Col
xxl=
{
6
}
xl=
{
8
}
lg=
{
12
}
key=
{
item
.
id
}
style=
{
{
marginBottom
:
16
}
}
>
<
TemplateItem
templateInfo=
{
item
}
type=
"shop"
/>
</
Col
>
))
...
...
src/pages/transaction/components/approvedOrderModal/index.tsx
View file @
fc5ec868
...
...
@@ -219,7 +219,7 @@ const ApprovedOrderModal:React.FC<ApprovedOrderModalProps> = (props) => {
}
})
// 上级审核不通过
if
(
data
&&
(
data
.
innerStatusName
===
'提交审核不通过'
))
{
if
(
data
&&
(
data
.
innerStatusName
===
'提交审核不通过'
||
data
.
innerStatusName
===
'审核不通过(一级)'
||
data
.
innerStatusName
===
'审核不通过(二级)'
))
{
ctx
.
setFieldValue
(
"agree"
,
0
)
ctx
.
setFieldState
(
"agree"
,
state
=>
{
state
.
props
[
"x-component-props"
]
=
{
...
...
src/pages/transaction/components/orderPayResultModal/index.tsx
View file @
fc5ec868
...
...
@@ -2,7 +2,6 @@ import React, { useState, useEffect, useContext, useRef } from 'react'
import
{
Modal
,
List
,
Button
,
Space
}
from
'antd'
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
import
{
OrderDetailContext
}
from
'../../_public/order/context'
import
{
PayOutWorkState
}
from
'@/constants/order'
import
{
PublicApi
}
from
'@/services/api'
import
{
history
}
from
'umi'
import
OverflowText
from
'@/components/OverflowText'
...
...
src/pages/transaction/purchaseOrder/orderCollectB2b/index.tsx
View file @
fc5ec868
...
...
@@ -198,6 +198,8 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
let
newData
=
data
.
map
((
v
:
any
)
=>
{
v
.
orderMode
=
modelType
v
.
shopId
=
shopId
// b2b询价下单 定价类型必定为2
v
.
priceType
=
2
return
v
})
addSchemaAction
.
setFieldValue
(
'products'
,
await
filterProductDataById
([],
newData
))
...
...
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