Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
educationStu
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
向伟
educationStu
Commits
4c085ba5
Commit
4c085ba5
authored
Apr 22, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
3470bb60
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
16 deletions
+29
-16
index.vue
src/pages/index/index.vue
+9
-2
questionNaire.vue
src/pages/study/questionNaire.vue
+20
-14
No files found.
src/pages/index/index.vue
View file @
4c085ba5
<
template
>
<view
class=
"indexpage"
>
<div
class=
"wenjuan_dc"
@
click=
"goTongji()"
>
<div
class=
"wenjuan_dc"
@
click=
"goTongji()"
>
<img
src=
"../../static/image/wjdc.png"
alt=
""
/>
</div>
<navbar
class=
"navbarSticky"
bg=
"#F5F5F5"
>
...
...
@@ -197,12 +197,17 @@
pageData
:
{
LearningGardenList
:
[]
},
SurveyObj
:{
ActivitySurveyId
:
0
,
ActivitySurveyGuestId
:
0
,
},
userData
:
{}
});
let
methods
=
{
goTongji
()
{
this
.
jumpPage
(
'/pages/study/questionNaire?ActivitySurveyId=6'
);
console
.
log
(
"SurveyObj"
,
data
.
SurveyObj
);
this
.
jumpPage
(
'/pages/study/questionNaire?ActivitySurveyId='
+
data
.
SurveyObj
.
ActivitySurveyId
+
"&ActivitySurveyGuestId="
+
data
.
SurveyObj
.
ActivitySurveyGuestId
);
},
jumpPage
(
url
)
{
uni
.
navigateTo
({
...
...
@@ -313,6 +318,8 @@
proxy
.
$request
(
"/AppletIndex/GetIndexInfo_V2"
,
{}).
then
(
res
=>
{
data
.
pageData
=
res
.
Data
uni
.
setStorageSync
(
"indexData"
,
res
.
Data
);
data
.
SurveyObj
.
ActivitySurveyId
=
res
.
Data
.
ActivitySurveyId
;
data
.
SurveyObj
.
ActivitySurveyGuestId
=
res
.
Data
.
ActivitySurveyGuestId
;
if
(
data
.
pageData
.
LearningGardenList
.
length
>
0
)
{
data
.
pageData
.
LearningGardenList
.
forEach
((
x
,
y
)
=>
{
if
(
x
.
List
.
length
>
0
)
{
...
...
src/pages/study/questionNaire.vue
View file @
4c085ba5
...
...
@@ -10,40 +10,36 @@
<view
class=
"QuestionInner"
v-for=
"(item,index) in dataObj.CourseArrangementList"
:key=
"index"
>
{{
item
.
Title
}}
<view
style=
"margin:20rpx 0 30rpx 0;"
>
<van-rate
v-model=
"item.ScoreNum"
:size=
"25"
@
change=
"onChange(item)"
color=
"#ffd21e"
void-icon=
"star"
void-color=
"#eee"
/>
<van-rate
v-model=
"item.ScoreNum"
:size=
"25"
@
change=
"onChange(item)"
color=
"#ffd21e"
void-icon=
"star"
void-color=
"#eee"
/>
</view>
</view>
<view
class=
"QuestionTitle"
>
教师授课情形
</view>
<view
class=
"QuestionInner"
v-for=
"(item,index) in dataObj.TeachersSituationList"
:key=
"index"
>
{{
item
.
Title
}}
<view
style=
"margin:20rpx 0 30rpx 0;"
>
<van-rate
v-model=
"item.ScoreNum"
:size=
"25"
@
change=
"onChange(item)"
color=
"#ffd21e"
void-icon=
"star"
void-color=
"#eee"
/>
<van-rate
v-model=
"item.ScoreNum"
:size=
"25"
@
change=
"onChange(item)"
color=
"#ffd21e"
void-icon=
"star"
void-color=
"#eee"
/>
</view>
</view>
<view
class=
"QuestionTitle"
>
助教老师
</view>
<view
class=
"QuestionInner"
v-for=
"(item,index) in dataObj.TeachingAssistantList"
:key=
"index"
>
{{
item
.
Title
}}
<view
style=
"margin:20rpx 0 30rpx 0;"
>
<van-rate
v-model=
"item.ScoreNum"
:size=
"25"
@
change=
"onChange(item)"
color=
"#ffd21e"
void-icon=
"star"
void-color=
"#eee"
/>
<van-rate
v-model=
"item.ScoreNum"
:size=
"25"
@
change=
"onChange(item)"
color=
"#ffd21e"
void-icon=
"star"
void-color=
"#eee"
/>
</view>
</view>
<view
class=
"QuestionTitle"
>
学习环境
</view>
<view
class=
"QuestionInner"
v-for=
"(item,index) in dataObj.LearningEnvironmentList"
:key=
"index"
>
{{
item
.
Title
}}
<view
style=
"margin:20rpx 0 30rpx 0;"
>
<van-rate
v-model=
"item.ScoreNum"
:size=
"25"
@
change=
"onChange(item)"
color=
"#ffd21e"
void-icon=
"star"
void-color=
"#eee"
/>
<van-rate
v-model=
"item.ScoreNum"
:size=
"25"
@
change=
"onChange(item)"
color=
"#ffd21e"
void-icon=
"star"
void-color=
"#eee"
/>
</view>
</view>
<view
class=
"QuestionTitle"
>
意见与建议
</view>
<view
class=
"QuestionInner"
v-for=
"(item,index) in dataObj.OpinionandsuggestionList"
:key=
"index"
>
<view
style=
"margin-top:20rpx;"
>
<textarea
type=
"text"
v-model=
"item.TextContent"
class=
"input textarea"
placeholder=
"请填写建议"
placeholder-style=
"textarea-placeholder"
:maxlength=
"300"
/>
</view>
<textarea
type=
"text"
v-model=
"item.TextContent"
class=
"input textarea"
placeholder=
"请填写建议"
placeholder-style=
"textarea-placeholder"
:maxlength=
"300"
/>
</view>
</view>
</view>
...
...
@@ -72,8 +68,15 @@
export
default
{
components
:
{},
onLoad
(
options
)
{
if
(
options
&&
options
.
ActivitySurveyId
)
{
this
.
msg
.
ActivitySurveyId
=
options
.
ActivitySurveyId
;
if
(
options
)
{
if
(
options
.
ActivitySurveyId
)
{
this
.
msg
.
ActivitySurveyId
=
options
.
ActivitySurveyId
;
}
if
(
options
.
ActivitySurveyGuestId
)
{
this
.
msg
.
ActivitySurveyGuestId
=
options
.
ActivitySurveyGuestId
;
}
}
this
.
GetSurveyInfo
();
},
...
...
@@ -83,7 +86,8 @@
}
=
getCurrentInstance
();
let
data
=
reactive
({
msg
:
{
ActivitySurveyId
:
0
ActivitySurveyId
:
0
,
ActivitySurveyGuestId
:
0
,
},
count
:
5
,
dataObj
:
{}
...
...
@@ -106,6 +110,8 @@
var
UserInfo
=
uni
.
getStorageSync
(
'userInfo'
);
this
.
dataObj
.
StudentId
=
UserInfo
.
Id
;
this
.
dataObj
.
UserType
=
2
;
this
.
dataObj
.
ActivitySurveyId
=
this
.
msg
.
ActivitySurveyId
;
this
.
dataObj
.
ActivitySurveyGuestId
=
this
.
msg
.
ActivitySurveyGuestId
;
let
res
=
saveGuestSurvey
(
this
.
dataObj
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
uni
.
showToast
({
...
...
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