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
project
jinfa-admin
Commits
bb9f48fe
Commit
bb9f48fe
authored
Nov 19, 2021
by
前端-许佳敏
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
76f126bb
17c33ce1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
15 deletions
+40
-15
schema.tsx
...ement/activePage/fixtures/components/EditPanel/schema.tsx
+13
-2
index.tsx
...ePage/fixtures/components/Layouts/Advertisement/index.tsx
+13
-4
index.less
...Page/fixtures/components/Layouts/CommodityList/index.less
+8
-6
index.tsx
...t/activePage/fixtures/components/Layouts/Coupon/index.tsx
+6
-3
No files found.
src/pages/marketingManage/marketing/marketingActivitiesManagement/activePage/fixtures/components/EditPanel/schema.tsx
View file @
bb9f48fe
...
...
@@ -52,8 +52,19 @@ export const cardSchema: ISchema = {
properties
:
{
title
:
{
type
:
'string'
,
title
:
'活动名称'
}
title
:
'活动名称'
,
"x-rules"
:
[
{
"required"
:
true
,
"message"
:
"最长32个字符,16个汉字"
},
{
limitByte
:
true
,
// 自定义校验规则
maxByte
:
60
,
}
]
},
}
}
}
...
...
src/pages/marketingManage/marketing/marketingActivitiesManagement/activePage/fixtures/components/Layouts/Advertisement/index.tsx
View file @
bb9f48fe
import
React
,
{
CSSProperties
,
useMemo
}
from
'react'
;
import
cx
from
'classnames'
;
import
{
Tooltip
}
from
'antd'
;
interface
Iprops
{
imageUrl
:
string
,
...
...
@@ -22,10 +23,18 @@ const Advertisement: React.FC<Iprops> = (props: Iprops) => {
return
(
<
div
className=
{
classNames
}
{
...
divProps
}
>
<
img
src=
{
imageUrl
}
style=
{
{
width
:
cacheWidth
,
height
:
cacheHeight
,
...
style
}
}
/>
{
imageUrl
&&
(
<
img
src=
{
imageUrl
}
style=
{
{
width
:
cacheWidth
,
height
:
cacheHeight
,
...
style
}
}
/>
)
||
(
<
Tooltip
placement=
"topLeft"
title=
"活动图片"
arrowPointAtCenter
>
<
div
style=
{
{
width
:
cacheWidth
,
height
:
cacheHeight
,
...
style
}
}
></
div
>
</
Tooltip
>
)
}
</
div
>
);
};
...
...
src/pages/marketingManage/marketing/marketingActivitiesManagement/activePage/fixtures/components/Layouts/CommodityList/index.less
View file @
bb9f48fe
.recommand {
padding: 0 8px;
margin-top: 24px;
}
.title {
color: #fff;
font-size: 20px;
margin-bottom: 12px;
display: block;
}
.title {
color: #fff;
font-size: 20px;
margin-bottom: 12px;
display: block;
line-height: 28px;
margin-bottom: 8px;
}
.hide {
...
...
src/pages/marketingManage/marketing/marketingActivitiesManagement/activePage/fixtures/components/Layouts/Coupon/index.tsx
View file @
bb9f48fe
...
...
@@ -2,6 +2,7 @@ import React, { useMemo } from 'react';
import
{
MarketingCard
}
from
'@lingxi-disign/ui'
;
import
cx
from
'classnames'
;
import
styles
from
'./index.less'
;
import
{
Tooltip
}
from
'antd'
;
const
{
CouponsItem
}
=
MarketingCard
;
...
...
@@ -33,9 +34,11 @@ const Coupon: React.FC<Iprops> & { Item: typeof CouponItem } = (props: Iprops) =
<>
{
!!
visible
&&
(
<
div
{
...
divProps
}
className=
{
classNameStr
}
>
{
children
}
</
div
>
<
Tooltip
placement=
"topLeft"
title=
"优惠券"
arrowPointAtCenter
>
<
div
{
...
divProps
}
className=
{
classNameStr
}
>
{
children
}
</
div
>
</
Tooltip
>
)
||
null
}
</>
...
...
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