Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
thinkApp
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
游洁
thinkApp
Commits
4c4778f1
Commit
4c4778f1
authored
May 31, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
8bc49d23
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
388 additions
and
336 deletions
+388
-336
operation.vue
src/components/index/workSituation/operation.vue
+2
-2
setComments.vue
src/components/setComments/setComments.vue
+235
-209
workSituation.vue
src/pages/index/workSituation.vue
+5
-5
setComments.vue
src/pages/setComments/setComments.vue
+146
-120
No files found.
src/components/index/workSituation/operation.vue
View file @
4c4778f1
...
...
@@ -55,7 +55,8 @@
toRefs
,
onMounted
,
getCurrentInstance
,
inject
inject
,
watch
}
from
"vue"
;
export
default
{
...
...
@@ -64,7 +65,6 @@
},
components
:
{},
setup
(
props
)
{
let
data
=
reactive
({
dataList
:
props
.
dataList
});
...
...
src/components/setComments/setComments.vue
View file @
4c4778f1
This diff is collapsed.
Click to expand it.
src/pages/index/workSituation.vue
View file @
4c4778f1
...
...
@@ -43,7 +43,7 @@
>
<operation
v-if=
"tabNme=='作业情况'"
:dataList=
"homeWorks"
></operation>
<studentList
@
selected=
"selectStuHandler"
v-if=
"tabNme=='学生列表'"
:dataList=
"students"
></studentList>
<examList
v-if=
"tabNme=='考试信息'"
:dataList=
"exams"
:CourseId=
"currentCourseId"
></examList>
<examList
v-if=
"tabNme=='考试信息'"
:dataList=
"exams"
></examList>
</scroll-view>
<Loadmore
:state=
"pageState"
/>
</view>
...
...
@@ -113,7 +113,7 @@
homeWorks
:[],
exams
:[],
pageState
:
"more"
,
currentCourseId
:
0
,
currentCourseId
:
189666293
,
userData
:{},
loading
:
false
});
...
...
@@ -138,9 +138,9 @@
},
changeCourseHandler
(
id
){
console
.
log
(
id
,
'........................'
)
data
.
Msg
.
CourseId
=
id
data
.
OperationMsg
.
courseId
=
id
data
.
currentCourseId
=
id
data
.
Msg
.
courseId
=
189666293
data
.
OperationMsg
.
courseId
=
189666293
data
.
currentCourseId
=
189666293
methods
.
getCourseStuList
()
methods
.
getExamPageList
()
methods
.
getCourseHomeWorkList
()
...
...
src/pages/setComments/setComments.vue
View file @
4c4778f1
...
...
@@ -2,38 +2,36 @@
<view
class=
"setComments-index-box"
>
<navbar
class=
"navbarSticky"
bg=
"#F6F6F6"
>
<view
class=
"setComments-index-header-box flex"
>
<van-icon
class=
"setComments-index-header-left"
name=
"arrow-left"
@
click=
"back"
/>
<van-icon
class=
"setComments-index-header-left"
name=
"arrow-left"
@
click=
"back"
/>
<text
class=
"setComments-index-header-title"
>
设置评语
</text>
</view>
</navbar>
<view
class=
"setComments-index-content"
>
<view
class=
"setComments-index-setType flex"
>
<view
class=
"setComments-setType-left flex"
>
<view>
<van-image
class=
"img"
width=
"29rpx"
height=
"29rpx"
fit=
"cover"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653977710000_475.png"
/>
</view>
<view
class=
"setComments-setType-text flex"
>
<text>
自定义评价
</text>
<view>
从自动评价规则进入修改
</view>
</view>
</view>
<view
class=
"setComments-setType-right flex"
>
<view>
<text>
自动评价规则
</text>
<van-image
class=
"img"
width=
"14rpx"
height=
"13rpx"
fit=
"cover"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653977684000_601.png"
/>
</view>
</view>
</view>
<setComments></setComments>
</view>
<view
class=
"setComments-index-content"
>
<view
class=
"setComments-index-setType flex"
>
<view
class=
"setComments-setType-left flex"
>
<view>
<van-image
class=
"img"
width=
"29rpx"
height=
"29rpx"
fit=
"cover"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653977710000_475.png"
/>
</view>
<view
class=
"setComments-setType-text flex"
>
<text>
自定义评价
</text>
<view>
从自动评价规则进入修改
</view>
</view>
</view>
<view
class=
"setComments-setType-right flex"
>
<view>
<text>
自动评价规则
</text>
<van-image
class=
"img"
width=
"14rpx"
height=
"13rpx"
fit=
"cover"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653977684000_601.png"
/>
</view>
</view>
</view>
<setComments
:CourseCommentTimesList=
"courseTimeList"
@
refreshData=
"getCourseCommentTimes"
></setComments>
</view>
</view>
</
template
>
<
script
>
import
setComments
from
'@/components/setComments/setComments'
import
setComments
from
'@/components/setComments/setComments'
import
{
reactive
,
toRefs
,
...
...
@@ -44,122 +42,150 @@
import
navbar
from
'../../components/navbar.vue'
export
default
{
props
:
{
},
components
:
{
navbar
,
setComments
},
setComments
},
setup
()
{
let
{
let
{
proxy
}
=
getCurrentInstance
();
let
data
=
reactive
({
value
:
1
,
optionsList
:[
{
text
:
'部分可见'
,
value
:
0
},
{
text
:
'可见不可见'
,
value
:
1
},
{
text
:
'活动商品'
,
value
:
2
},
],
radioList
:[
{
name
:
'使用默认配置'
,
id
:
1
,
checked
:
true
},
{
name
:
'自定义评价'
,
id
:
2
}
],
checked
:
'1'
,
obj
:{},
value
:
1
,
optionsList
:
[{
text
:
'部分可见'
,
value
:
0
},
{
text
:
'可见不可见'
,
value
:
1
},
{
text
:
'活动商品'
,
value
:
2
},
],
radioList
:
[{
name
:
'使用默认配置'
,
id
:
1
,
checked
:
true
},
{
name
:
'自定义评价'
,
id
:
2
}
],
checked
:
'1'
,
Msg
:
{
HomeWork
Id
:
''
,
Course
Id
:
''
,
},
showPhone
:
false
,
showLogin
:
true
,
//多次点击
HomeWorkId
:
''
,
jobDetails
:
{},
dataList
:[],
pageState
:
'more'
courseTimeList
:
[],
//课程自动生成评论次数
});
let
methods
=
{
back
()
{
let
methods
=
{
back
()
{
uni
.
navigateBack
({
delta
:
1
})
},
radioChange
(
e
){
console
.
log
(
"打印国家名称"
,
e
.
target
.
value
)
}
}
},
radioChange
(
e
)
{
console
.
log
(
"打印国家名称"
,
e
.
target
.
value
)
},
//获取课程评论次数列表
getCourseCommentTimes
()
{
proxy
.
$request
(
"/Teacher/GetCourseCommentTimes"
,
data
.
Msg
).
then
(
res
=>
{
if
(
res
)
{
data
.
courseTimeList
=
res
.
Data
;
}
})
}
}
return
{
...
toRefs
(
data
),
...
methods
...
methods
};
},
onLoad
(
option
)
{
this
.
Msg
.
HomeWorkId
=
option
.
HomeWorkId
onLoad
(
option
)
{
this
.
Msg
.
CourseId
=
option
.
CourseId
;
this
.
getCourseCommentTimes
();
},
};
</
script
>
<
style
scoped
>
.setComments-setType-right
view
text
{
margin-right
:
11
rpx
;
}
.setComments-setType-right
view
{
color
:
#D9868D
;
background
:
#F5DEE0
;
border-radius
:
25
rpx
;
width
:
200
rpx
;
height
:
50
rpx
;
line-height
:
50
rpx
;
text-align
:
center
;
letter-spacing
:
1
rpx
;
}
.setComments-setType-right
{
flex-shrink
:
0
;
font-size
:
24
rpx
;
font-weight
:
500
;
}
.setComments-setType-text
view
{
font-size
:
24
rpx
;
color
:
#AFAFAF
;
font-weight
:
400
;
margin-top
:
15
rpx
;
}
.setComments-setType-text
text
{
font-size
:
30
rpx
;
font-weight
:
bold
;
color
:
#282828
;
}
.setComments-setType-text
{
flex-direction
:
column
;
margin-left
:
26
rpx
;
letter-spacing
:
1
rpx
;
}
.setComments-setType-left
view
:first-child
{
flex-shrink
:
0
;
}
.setComments-setType-left
{
flex-grow
:
1
;
margin-right
:
32
rpx
;
}
.setComments-index-setType
{
background
:
#FCEEEF
;
box-shadow
:
0px
6px
52px
0px
rgba
(
230
,
65
,
80
,
0.19
);
border-radius
:
50px
;
margin
:
55
rpx
50
rpx
50
rpx
50
rpx
;
padding
:
33
rpx
50
rpx
;
}
.setComments-index-box
{
background
:
#F6F6F6
;
}
.setComments-index-header-title
{
font-size
:
32
rpx
;
font-weight
:
500
;
color
:
#282828
;
flex
:
1
;
text-align
:
center
;
padding-right
:
40
rpx
;
}
.navbarSticky
{
.setComments-setType-right
view
text
{
margin-right
:
11
rpx
;
}
.setComments-setType-right
view
{
color
:
#D9868D
;
background
:
#F5DEE0
;
border-radius
:
25
rpx
;
width
:
200
rpx
;
height
:
50
rpx
;
line-height
:
50
rpx
;
text-align
:
center
;
letter-spacing
:
1
rpx
;
}
.setComments-setType-right
{
flex-shrink
:
0
;
font-size
:
24
rpx
;
font-weight
:
500
;
}
.setComments-setType-text
view
{
font-size
:
24
rpx
;
color
:
#AFAFAF
;
font-weight
:
400
;
margin-top
:
15
rpx
;
}
.setComments-setType-text
text
{
font-size
:
30
rpx
;
font-weight
:
bold
;
color
:
#282828
;
}
.setComments-setType-text
{
flex-direction
:
column
;
margin-left
:
26
rpx
;
letter-spacing
:
1
rpx
;
}
.setComments-setType-left
view
:first-child
{
flex-shrink
:
0
;
}
.setComments-setType-left
{
flex-grow
:
1
;
margin-right
:
32
rpx
;
}
.setComments-index-setType
{
background
:
#FCEEEF
;
box-shadow
:
0px
6px
52px
0px
rgba
(
230
,
65
,
80
,
0.19
);
border-radius
:
50px
;
margin
:
55
rpx
50
rpx
50
rpx
50
rpx
;
padding
:
33
rpx
50
rpx
;
}
.setComments-index-box
{
background
:
#F6F6F6
;
}
.setComments-index-header-title
{
font-size
:
32
rpx
;
font-weight
:
500
;
color
:
#282828
;
flex
:
1
;
text-align
:
center
;
padding-right
:
40
rpx
;
}
.navbarSticky
{
display
:
sticky
;
top
:
0
;
z-index
:
9
;
...
...
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