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
dc0c9601
Commit
dc0c9601
authored
Oct 18, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
a4516c55
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
19 deletions
+33
-19
busSign.html
html/ImpressionOpinionSurvey/busSign.html
+15
-7
guestSign.html
html/ImpressionOpinionSurvey/guestSign.html
+18
-12
No files found.
html/ImpressionOpinionSurvey/busSign.html
View file @
dc0c9601
...
...
@@ -158,10 +158,8 @@
var
newMsg
=
{
busDetailsList
:
postMsg
}
postMsg
.
forEach
(
x
=>
{
if
(
x
.
SurveyType
==
2
)
console
.
log
(
x
.
ScoreNum
,
'----'
)
})
$
(
'#submitB'
).
attr
(
'disabled'
,
true
)
console
.
log
(
newMsg
,
'-------'
)
// $('#submitB').attr('disabled', true)
$
.
ajax
({
type
:
"POST"
,
url
:
`
${
getApiUrl
().
urlPost
}
`
,
...
...
@@ -278,9 +276,19 @@
}
});
}
function
chgStar
(
num
,
index
){
dataList
[
index
].
ScoreNum
=
num
renderStar
()
function
chgStar
(
num
,
i
){
dataList
[
i
].
ScoreNum
=
num
var
item
=
dataList
[
i
]
$
(
`#star
${
i
+
1
}
`
).
html
(
`<img id="star_1id_
${
i
+
1
}
point" onmouseover="chgStar(1,
${
i
}
)"
src="
${
item
.
ScoreNum
>=
1
?
STAR_IMG
[
0
]:
STAR_IMG
[
1
]}
"></img>
<img id="star_2id_
${
i
+
1
}
point" onmouseover="chgStar(2,
${
i
}
)"
src="
${
item
.
ScoreNum
>=
2
?
STAR_IMG
[
0
]:
STAR_IMG
[
1
]}
"></img>
<img id="star_3id_
${
i
+
1
}
point" onmouseover="chgStar(3,
${
i
}
)"
src="
${
item
.
ScoreNum
>=
3
?
STAR_IMG
[
0
]:
STAR_IMG
[
1
]}
"></img>
<img id="star_4id_
${
i
+
1
}
point" onmouseover="chgStar(4,
${
i
}
)"
src="
${
item
.
ScoreNum
>=
4
?
STAR_IMG
[
0
]:
STAR_IMG
[
1
]}
"></img>
<img id="star_5id_
${
i
+
1
}
point" onmouseover="chgStar(5,
${
i
}
)"
src="
${
item
.
ScoreNum
>=
5
?
STAR_IMG
[
0
]:
STAR_IMG
[
1
]}
"></img>`
)
}
function
renderStar
(){
// return
...
...
html/ImpressionOpinionSurvey/guestSign.html
View file @
dc0c9601
...
...
@@ -141,9 +141,9 @@
item
.
SurveyOptionsList
.
forEach
(
y
=>
{
//单选
if
(
item
.
SurveyType
==
2
)
{
if
(
item
.
ScoreNum
==
y
.
ID
)
{
y
.
IsCheck
=
"1"
;
}
if
(
item
.
ScoreNum
==
y
.
ID
)
{
y
.
IsCheck
=
"1"
;
}
}
//多选
if
(
item
.
SurveyType
==
3
)
{
...
...
@@ -155,15 +155,11 @@
})
item
.
ScoreNum
=
0
;
}
if
(
item
.
SurveyType
==
2
)
console
.
log
(
item
,
'-------111'
)
postMsg
.
push
(
item
);
})
}
postMsg
.
forEach
(
x
=>
{
if
(
x
.
SurveyType
==
2
)
console
.
log
(
x
,
'-------'
)
})
return
$
(
'#submitB'
).
attr
(
'disabled'
,
true
)
console
.
log
(
postMsg
,
'-------'
)
// $('#submitB').attr('disabled', true)
$
.
ajax
({
type
:
"POST"
,
url
:
`
${
getApiUrl
().
urlPost
}
`
,
...
...
@@ -280,9 +276,19 @@
}
});
}
function
chgStar
(
num
,
index
){
dataList
[
index
].
ScoreNum
=
num
renderStar
()
function
chgStar
(
num
,
i
){
dataList
[
i
].
ScoreNum
=
num
var
item
=
dataList
[
i
]
$
(
`#star
${
i
+
1
}
`
).
html
(
`<img id="star_1id_
${
i
+
1
}
point" onmouseover="chgStar(1,
${
i
}
)"
src="
${
item
.
ScoreNum
>=
1
?
STAR_IMG
[
0
]:
STAR_IMG
[
1
]}
"></img>
<img id="star_2id_
${
i
+
1
}
point" onmouseover="chgStar(2,
${
i
}
)"
src="
${
item
.
ScoreNum
>=
2
?
STAR_IMG
[
0
]:
STAR_IMG
[
1
]}
"></img>
<img id="star_3id_
${
i
+
1
}
point" onmouseover="chgStar(3,
${
i
}
)"
src="
${
item
.
ScoreNum
>=
3
?
STAR_IMG
[
0
]:
STAR_IMG
[
1
]}
"></img>
<img id="star_4id_
${
i
+
1
}
point" onmouseover="chgStar(4,
${
i
}
)"
src="
${
item
.
ScoreNum
>=
4
?
STAR_IMG
[
0
]:
STAR_IMG
[
1
]}
"></img>
<img id="star_5id_
${
i
+
1
}
point" onmouseover="chgStar(5,
${
i
}
)"
src="
${
item
.
ScoreNum
>=
5
?
STAR_IMG
[
0
]:
STAR_IMG
[
1
]}
"></img>`
)
}
function
renderStar
(){
// 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