Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
6bd2f956
Commit
6bd2f956
authored
Apr 18, 2023
by
howie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:公告组件优化标题去掉上下留白
parent
c35138c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
static/nativeComponents/Notice/index.js
+3
-3
No files found.
static/nativeComponents/Notice/index.js
View file @
6bd2f956
...
...
@@ -60,12 +60,12 @@ Component({
if
(
this
.
data
.
datas
.
componentData
.
isChange
)
{
if
(
this
.
data
.
datas
.
componentData
.
imageWidth
>
this
.
data
.
datas
.
componentData
.
noticeWidth
)
{
this
.
setData
({
CommonHeight
:
this
.
data
.
datas
.
componentData
.
imageWidth
<
40
?
'40
px'
:
this
.
data
.
datas
.
componentData
.
imageWidth
+
'px'
CommonHeight
:
this
.
data
.
datas
.
componentData
.
imageWidth
<
24
?
'24
px'
:
this
.
data
.
datas
.
componentData
.
imageWidth
+
'px'
})
return
}
else
if
(
this
.
data
.
datas
.
componentData
.
noticeWidth
>=
this
.
data
.
datas
.
componentData
.
imageWidth
)
{
this
.
setData
({
CommonHeight
:
this
.
data
.
datas
.
componentData
.
noticeWidth
<
40
?
'40
px'
:
this
.
data
.
datas
.
componentData
.
noticeWidth
+
'px'
CommonHeight
:
this
.
data
.
datas
.
componentData
.
noticeWidth
<
24
?
'24
px'
:
this
.
data
.
datas
.
componentData
.
noticeWidth
+
'px'
})
return
}
...
...
@@ -75,7 +75,7 @@ Component({
return
}
else
{
this
.
setData
({
CommonHeight
:
this
.
data
.
datas
.
componentData
.
noticeWidth
<
40
?
'40
px'
:
this
.
data
.
datas
.
componentData
.
noticeWidth
+
'px'
CommonHeight
:
this
.
data
.
datas
.
componentData
.
noticeWidth
<
24
?
'24
px'
:
this
.
data
.
datas
.
componentData
.
noticeWidth
+
'px'
})
return
}
...
...
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