记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
ffd6f2bb
Commit
ffd6f2bb
authored
Feb 22, 2022
by
dongchun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改banner图片大小问题
parent
7e340d2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
topBanner.html
...resources/templates/zhengzai/store/homeSet/topBanner.html
+13
-4
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/store/homeSet/topBanner.html
View file @
ffd6f2bb
...
...
@@ -110,7 +110,7 @@
<div
class=
"home_page"
>
<div
class=
"left_content"
>
<div
class=
"left_title"
>
<img
id=
"testImg"
src=
""
style=
"display: none;"
alt=
""
>
</div>
<div
class=
"function_btn"
>
<div
class=
"hot_title"
>
...
...
@@ -134,7 +134,7 @@
</div>
<div
id=
"tags"
class=
"tags"
>
<button
type=
"button"
class=
"btn btn-warning"
style=
"margin-right: 12px;"
onclick=
"addItem(0)"
>
添加banner
</button>
<span
id=
"tall"
>
(最多允许添加10张图,
建议宽度750
像素)
</span>
<span
id=
"tall"
>
(最多允许添加10张图,
宽度为764像素,高度为1018
像素)
</span>
</div>
</div>
<div
id=
"bannerList"
class=
"banner_list"
>
...
...
@@ -557,12 +557,21 @@
dropZoneTitle
:
"请上传文件"
,
maxFileCount
:
1
}).
on
(
"filebatchselected"
,
function
(
event
,
files
)
{
//默认上传
console
.
log
(
files
,
$
(
this
))
$
(
this
).
fileinput
(
"upload"
);
})
.
on
(
"fileuploaded"
,
function
(
event
,
data
)
{
//上传回调事件
let
showPicture
=
'https://img.zhengzai.tv/'
+
data
.
response
.
data
.
ossPath
;
$
(
"#viewImg"
+
num
+
""
).
attr
(
'src'
,
showPicture
)
$
(
"#testImg"
).
attr
(
'src'
,
showPicture
);
setTimeout
(()
=>
{
if
(
type
==
1
)
{
console
.
log
(
$
(
"#testImg"
).
height
(),
$
(
"#testImg"
).
width
())
if
(
$
(
"#testImg"
).
height
()
!=
1018
)
return
layer
.
msg
(
'图片规格不符合要求'
);
if
(
$
(
"#testImg"
).
width
()
!=
764
)
return
layer
.
msg
(
'图片规格不符合要求'
);
}
else
{
if
(
$
(
"#testImg"
).
width
()
!=
382
)
return
layer
.
msg
(
'图片规格不符合要求'
);
}
$
(
"#viewImg"
+
num
+
""
).
attr
(
'src'
,
showPicture
)
},
500
)
})
}
function
promiseMethods
(
url
,
type
,
data
,
contentType
)
{
...
...
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