Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SURPRISED
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
华国豪
SURPRISED
Commits
f36021bd
Commit
f36021bd
authored
Oct 21, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
c64ee919
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
48 deletions
+42
-48
busSign.html
html/ImpressionOpinionSurvey/busSign.html
+42
-48
No files found.
html/ImpressionOpinionSurvey/busSign.html
View file @
f36021bd
...
@@ -71,8 +71,8 @@
...
@@ -71,8 +71,8 @@
function
RenewalImg
()
{
function
RenewalImg
()
{
var
str
=
'<div class="FillincommentsImgF">'
var
str
=
'<div class="FillincommentsImgF">'
var
center
=
''
var
center
=
''
var
end
=
`<div class="FillincommentsAdd"
onclick="uploadFile"
>
var
end
=
`<div class="FillincommentsAdd">
<input type="file" accept="image/*" multiple style="opacity:0" id="upload"/>
<input type="file" accept="image/*" multiple style="opacity:0" id="upload"
onchange="uploadFile(event)"
/>
</div>
</div>
</div>`
</div>`
var
textHtml
=
''
var
textHtml
=
''
...
@@ -86,12 +86,7 @@
...
@@ -86,12 +86,7 @@
textHtml
=
str
+
center
+
end
textHtml
=
str
+
center
+
end
$
(
`#FillincommentsImgF`
).
html
(
textHtml
)
$
(
`#FillincommentsImgF`
).
html
(
textHtml
)
}
}
function
uploadFile
(){
function
uploadFile
(
e
){
// 获取文件输入元素
const
fileInput
=
document
.
getElementById
(
'upload'
);
// fileInput.click()
// 监听文件输入的变化
fileInput
.
addEventListener
(
'change'
,
function
(
e
)
{
for
(
let
i
=
0
;
i
<
e
.
target
.
files
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
e
.
target
.
files
.
length
;
i
++
){
const
file
=
e
.
target
.
files
[
i
];
// 获取文件对象
const
file
=
e
.
target
.
files
[
i
];
// 获取文件对象
const
formData
=
new
FormData
();
// 创建FormData对象
const
formData
=
new
FormData
();
// 创建FormData对象
...
@@ -128,7 +123,6 @@
...
@@ -128,7 +123,6 @@
RenewalImg
()
RenewalImg
()
},
1
);
},
1
);
}
}
});
}
}
function
clickRadio
(
i
)
{
function
clickRadio
(
i
)
{
...
@@ -354,7 +348,7 @@
...
@@ -354,7 +348,7 @@
var
fileHtml
=
`<h4 class="uploadProof">上传凭证</h4>
var
fileHtml
=
`<h4 class="uploadProof">上传凭证</h4>
<div class="FillincommentsImgF" id="FillincommentsImgF">
<div class="FillincommentsImgF" id="FillincommentsImgF">
<div class="FillincommentsAdd">
<div class="FillincommentsAdd">
<input type="file" accept="image/*" multiple style="opacity:0" id="upload" onc
lick="uploadFile(
)"/>
<input type="file" accept="image/*" multiple style="opacity:0" id="upload" onc
hange="uploadFile(event
)"/>
</div>
</div>
</div>`
</div>`
var
list
=
[]
var
list
=
[]
...
@@ -428,9 +422,9 @@
...
@@ -428,9 +422,9 @@
</div>`
</div>`
}
}
var
textHtml
=
str
+
mark
+
singleChoice
+
MultipleChoice
+
inputText
+
end
var
textHtml
=
str
+
mark
+
singleChoice
+
MultipleChoice
+
inputText
+
end
if
(
i
==
(
dataList
.
length
-
1
)){
//
if(i==(dataList.length-1)){
textHtml
+=
fileHtml
//
textHtml+=fileHtml
}
//
}
element
.
innerHTML
=
textHtml
element
.
innerHTML
=
textHtml
list
.
push
(
element
)
list
.
push
(
element
)
})
})
...
...
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