Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
joshine
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
Administrator
joshine
Commits
ba9d5218
Commit
ba9d5218
authored
Feb 14, 2023
by
wd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改admin 菜单名称,修改top bar默认背景色,以及图片上传样式
parent
70d3644b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
5 deletions
+24
-5
app/code/Joshine/Banner/UiForm/Model/DataProvider.php
+0
-1
app/code/Joshine/Banner/etc/adminhtml/menu.xml
+1
-1
app/code/Sparsh/FreeShippingBar/Block/Adminhtml/Entity/Edit/Tab/WhatToDisplay.php
+3
-3
app/code/Sparsh/FreeShippingBar/view/adminhtml/web/css/source/_module.less
+17
-0
app/code/Sparsh/FreeShippingBar/view/adminhtml/web/js/preview-shipping-bar.js
+3
-0
No files found.
app/code/Joshine/Banner/UiForm/Model/DataProvider.php
View file @
ba9d5218
...
...
@@ -62,7 +62,6 @@ class DataProvider extends AbstractDataProvider
$m
[
'phoneImage'
][
0
][
'name'
]
=
$this
->
getFileName
(
$phoneImg
);
$m
[
'phoneImage'
][
0
][
'url'
]
=
$this
->
getMediaUrl
(
$phoneImg
);
$m
[
'phoneImage'
][
0
][
'type'
]
=
'image'
;
$m
[
'phoneImage'
][
0
][
'size'
]
=
'20kb'
;
}
$this
->
loadedData
[
$item
->
getId
()]
=
array_merge
(
$this
->
loadedData
[
$item
->
getId
()],
$m
);
...
...
app/code/Joshine/Banner/etc/adminhtml/menu.xml
View file @
ba9d5218
...
...
@@ -30,7 +30,7 @@
/>
<add
id=
"Sparsh_FreeShippingBar::free_shipping_bar_management"
title=
"
Free Shipping
Bar"
title=
"
Top
Bar"
translate=
"title"
action=
"sparsh_free_shipping_bar/entity"
module=
"Sparsh_FreeShippingBar"
...
...
app/code/Sparsh/FreeShippingBar/Block/Adminhtml/Entity/Edit/Tab/WhatToDisplay.php
View file @
ba9d5218
...
...
@@ -97,7 +97,7 @@ class WhatToDisplay extends \Magento\Backend\Block\Widget\Form\Generic
'name'
=>
'background_img'
,
'required'
=>
false
,
'disabled'
=>
$isElementDisabled
,
'none'
=>
__
(
'
Pictures displayed in the current position
'
)
'none'
=>
__
(
'
Allow image type: jpg, jpeg, gif, png
'
)
]
);
...
...
@@ -110,7 +110,7 @@ class WhatToDisplay extends \Magento\Backend\Block\Widget\Form\Generic
'name'
=>
'background_img_phone'
,
'required'
=>
false
,
'disabled'
=>
$isElementDisabled
,
'none'
=>
__
(
'
Pictures displayed in the current position
'
)
'none'
=>
__
(
'
Allow image type: jpg, jpeg, gif, png
'
)
]
);
...
...
@@ -176,7 +176,7 @@ class WhatToDisplay extends \Magento\Backend\Block\Widget\Form\Generic
if
(
!
$model
->
getEntityId
())
{
if
(
!
$model
->
hasData
(
'bar_background_color'
))
{
$model
->
setBarBackgroundColor
(
'#
1979C3
'
);
$model
->
setBarBackgroundColor
(
'#
EDEDED
'
);
}
if
(
!
$model
->
hasData
(
'bar_text_color'
))
{
$model
->
setBarTextColor
(
'#FFFFFF'
);
...
...
app/code/Sparsh/FreeShippingBar/view/adminhtml/web/css/source/_module.less
View file @
ba9d5218
...
...
@@ -14,3 +14,19 @@
.field-snippet_code_insert .sparsh-free-shipping-bar-control-value p{
font-size: 16px;
}
.admin__scope-old a{
display: block;
}
.admin__scope-old a>img{
width: auto;
height: auto;
}
#sparsh_free_shipping_bar_entity_background_img_delete{
margin-top: 0!important;
}
#sparsh_free_shipping_bar_entity_background_img_phone_delete{
margin-top: 0!important;
}
\ No newline at end of file
app/code/Sparsh/FreeShippingBar/view/adminhtml/web/js/preview-shipping-bar.js
View file @
ba9d5218
define
([
'jquery'
],
function
(
$
)
{
$
(
'#sparsh_free_shipping_bar_entity_background_img_image'
).
parent
().
attr
(
'target'
,
'blank'
);
$
(
'#sparsh_free_shipping_bar_entity_background_img_phone_image'
).
parent
().
attr
(
'target'
,
'blank'
);
"use strict"
;
return
function
()
{
$
(
document
).
ready
(
function
(){
...
...
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