记得上下班打卡 | 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
9f4118ab
Commit
9f4118ab
authored
Dec 24, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 上传二维码逻辑
parent
cfc26285
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
22 deletions
+40
-22
addQrCode.html
.../resources/templates/zhengzai/sweet/qrCode/addQrCode.html
+40
-22
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/sweet/qrCode/addQrCode.html
View file @
9f4118ab
...
@@ -20,46 +20,64 @@
...
@@ -20,46 +20,64 @@
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
生成数量:
</label>
<div
class=
"col-sm-8"
>
<div
class=
"col-sm-8"
>
<input
name=
"count"
class=
"form-control"
type=
"number"
required
>
<input
id=
"fileinput10"
type=
"file"
>
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
图片地址:
</label>
<label
class=
"col-sm-3 control-label is-required"
>
图片地址:
</label>
<div
class=
"col-sm-8"
>
<div
class=
"col-sm-8"
>
<input
name=
"url"
class=
"form-control"
type=
"text"
required
>
<input
id=
"iptUrl"
name=
"url"
class=
"form-control"
type=
"text"
required
readonly
>
</div>
</div>
</div>
</div>
</form>
</form>
<div
class=
"cover_pop"
style=
"display: none"
>
<div
class=
"pop_inner"
>
<div
class=
"wrapper wrapper-content animated fadeInRight ibox-content"
>
<div
class=
"file-loading"
>
<input
id=
"fileinput-demo-1"
type=
"file"
name=
"file"
data-browse-on-zone-click=
"true"
data-msg-placeholder=
"Select {files} for upload..."
>
<input
hidden
id=
"coverImg"
name=
"coverImg"
>
</div>
</div>
<div
class=
"pop_btns"
>
<div
class=
"confirm_btn"
onclick=
"popBtn(1)"
>
确认
</div>
<div
class=
"confirm_btn confirm_cancel"
onclick=
"popBtn(0)"
>
取消
</div>
</div>
</div>
</div>
</div>
</div>
<th:block
th:include=
"include :: footer"
/>
<th:block
th:include=
"include :: footer"
/>
<th:block
th:include=
"include :: bootstrap-fileinput-js"
/>
<script
th:inline=
"javascript"
>
<script
th:inline=
"javascript"
>
var
prefix
=
ctx
+
"sweet/active"
;
var
prefix
=
ctx
+
"sweet/active"
;
var
platformUrl
=
[[
$
{
platformUrl
}]];
$
(
"#form-roadShow-edit"
).
validate
({
$
(
"#form-roadShow-edit"
).
validate
({
focusCleanup
:
true
focusCleanup
:
true
});
});
$
(
"#fileinput-demo-1"
).
fileinput
({
$
(
"#fileinput10"
).
change
((
e
)
=>
{
'theme'
:
'explorer-fas'
,
if
(
!
e
.
target
.
files
[
0
])
{
// 'uploadUrl': "/kylin/banners/upload3",
return
// 'uploadUrl': "http://127.0.0.1:9003" + "/platform/basicServices/alOss/upload",
}
// 'uploadUrl': "https://devplatform.zhengzai.tv/platform/basicServices/alOss/upload",
var
formData
=
new
FormData
();
'uploadUrl'
:
platformUrl
+
"/platform/basicServices/alOss/upload"
,
formData
.
append
(
"file"
,
e
.
target
.
files
[
0
]);
"uploadExtraData"
:
{
$
.
ajax
({
"pathName"
:
"banner"
,
url
:
"http://devplatform.zhengzai.tv"
+
"/platform/basicServices/alOss/upload"
,
//路径是你控制器中上传图片的方法,下面controller里面我会写到
"buckType"
:
1
data
:
formData
,
},
cache
:
false
,
// overwriteInitial: false,
contentType
:
false
,
// initialPreviewAsData: true,
processData
:
false
,
autoReplace
:
true
,
type
:
'POST'
,
dropZoneTitle
:
"请上传文件"
,
success
:
function
(
res
)
{
maxFileCount
:
1
console
.
log
(
res
,
'res'
)
});
let
imgPath
=
'https://img.zhengzai.tv/'
+
res
.
data
.
ossPath
;
$
(
"#fileinput-demo-1"
).
on
(
"fileuploaded"
,
function
(
event
,
data
,
previewId
,
index
)
{
$
(
"#iptUrl"
).
val
(
imgPath
);
$
(
'.coverCon'
).
val
(
'https://img.zhengzai.tv/'
+
data
.
response
.
data
.
ossPath
);
}
});
});
})
function
submitHandler
()
{
function
submitHandler
()
{
if
(
$
.
validate
.
form
())
{
if
(
$
.
validate
.
form
())
{
...
...
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