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
be2effe7
Commit
be2effe7
authored
Jun 01, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
e87edc18
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
37 additions
and
14 deletions
+37
-14
course-card.vue
src/components/index/course-card.vue
+5
-2
courseCard.vue
src/components/index/workSituation/courseCard.vue
+5
-1
examList.vue
src/components/index/workSituation/examList.vue
+6
-5
indexassembly.vue
src/pages/index/components/indexassembly.vue
+4
-1
index.vue
src/pages/index/index.vue
+7
-1
workSituation.vue
src/pages/index/workSituation.vue
+8
-2
student.vue
src/pages/student/student.vue
+1
-1
request.js
src/utils/request.js
+1
-1
No files found.
src/components/index/course-card.vue
View file @
be2effe7
...
...
@@ -78,7 +78,7 @@
export
default
{
props
:
[
"stuCourseList"
],
emits
:[
'change'
],
emits
:[
'change'
,
'changePopStatus'
],
setup
(
props
,
context
)
{
let
data
=
reactive
({
statusBarHeight
:
24
,
...
...
@@ -89,6 +89,7 @@
let
methods
=
{
exchangeItemHandler
()
{
data
.
showItems
=
true
context
.
emit
(
'changePopStatus'
,
1
)
},
//点击切换课程
hideExchangeBoxHandler
(
item
)
{
...
...
@@ -99,7 +100,7 @@
context
.
emit
(
'change'
,
item
.
courseId
)
}
data
.
showItems
=
false
context
.
emit
(
'changePopStatus'
,
0
)
// setTimeout(()=>{
// uni.reLaunch({
// url: '/pages/index/workSituation?tabNme=' + '作业情况' +'&courseId=' + item.courseId
...
...
@@ -154,12 +155,14 @@
left
:
350
rpx
;
top
:
-11
rpx
;
width
:
340
rpx
;
height
:
294
rpx
;
}
.course-card
.end
{
width
:
550
rpx
;
margin
:
0
auto
;
display
:
block
;
height
:
20
rpx
;
}
.course-card
.course-item
.course-name
{
...
...
src/components/index/workSituation/courseCard.vue
View file @
be2effe7
...
...
@@ -139,7 +139,7 @@
import
{
getTeacherCourse
}
from
'../../../api/index'
export
default
{
props
:
{},
emits
:[
'change'
],
emits
:[
'change'
,
'changePopStatus'
],
setup
(
props
,
ctx
)
{
const
Keywords
=
ref
(
''
)
let
data
=
reactive
({
...
...
@@ -161,6 +161,7 @@
},
exchangeItemHandler
(){
data
.
showItems
=
true
ctx
.
emit
(
'changePopStatus'
,
1
)
},
hideExchangeBoxHandler
(
item
){
if
(
item
){
...
...
@@ -168,6 +169,7 @@
ctx
.
emit
(
'change'
,
item
.
courseId
)
}
data
.
showItems
=
false
ctx
.
emit
(
'changePopStatus'
,
0
)
},
queryTecherCourse
(){
getTeacherCourse
().
then
(
r
=>
{
...
...
@@ -258,12 +260,14 @@
left
:
350
rpx
;
top
:
-11
rpx
;
width
:
340
rpx
;
height
:
294
rpx
;
}
.course-card
.end
{
width
:
550
rpx
;
margin
:
0
auto
;
display
:
block
;
height
:
20
rpx
;
}
.course-card
.course-item
.course-name
{
...
...
src/components/index/workSituation/examList.vue
View file @
be2effe7
...
...
@@ -58,17 +58,18 @@
<input
v-model=
"uploadParm.ExamName"
class=
"examList-popup-name"
placeholder=
"请输入考试名称"
/>
<van-uploader
class=
"examList-popup-fil-box flex"
accept=
"
.excel
"
accept=
"
file
"
preview-size=
"120rpx"
:before-read=
"beforeRead"
@
after-read=
"customUpload"
:disabled=
"loading"
>
<view
class=
"examList-popup-fil"
>
<
!--
<
view
class=
"examList-popup-fil"
>
<van-image
class=
"img"
width=
"32rpx"
height=
"32rpx"
fit=
"cover"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653639041000_305.png"
/>
选择文件
</view>
</view>
-->
<van-button
round
color=
'#C91727'
custom-style=
'width: 548rpx;'
block
>
选择文件
</van-button>
</van-uploader>
</view>
</view>
...
...
@@ -235,7 +236,7 @@
}
let
host
=
''
if
(
process
.
env
.
NODE_ENV
===
"development"
)
{
host
=
'http://192.168.10.36:8082
/api'
host
=
'https://jjswapi.oytour.com
/api'
}
else
{
host
=
'https://jjswapi.oytour.com/api'
}
...
...
src/pages/index/components/indexassembly.vue
View file @
be2effe7
...
...
@@ -7,7 +7,7 @@
<button
class=
"hotsopt"
:style=
"
{width:width,height:height}" open-type="getUserInfo" @tap="getUserProfile()"
@click="getCode">
</button>
</view>
<van-popup
:show=
"showPhone"
>
<van-popup
:show=
"showPhone"
@
click-overlay=
"closeOverlayHandler"
>
<view
style=
"width: 70vw;background: #FFF;display: flex;flex-direction: column;align-items: center;padding-bottom: 20px;border-radius: 8px;"
>
<view
...
...
@@ -75,6 +75,9 @@
showLogin
:
true
,
//多次点击
});
let
methods
=
{
closeOverlayHandler
(){
data
.
showPhone
=
false
},
getUserProfile
()
{
//新的获取用户资料
var
that
=
this
;
...
...
src/pages/index/index.vue
View file @
be2effe7
<
template
>
<page-meta
:page-style=
"showPopu?'overflow:hidden;':''"
>
<view
class=
"indexpage"
>
<navbar
class=
"navbarSticky"
bg=
"#F6F6F6"
>
<view
class=
"index-header-box"
>
...
...
@@ -19,7 +20,7 @@
<view
style=
"font-size: 50rpx;"
>
您的学情反馈已准备好
</view>
</view>
</view>
<course-card
:stuCourseList=
"stuCourseList"
@
change=
"changeCourseHandler"
></course-card>
<course-card
:stuCourseList=
"stuCourseList"
@
change
PopStatus=
'changePopStatusHandler'
@
change
=
"changeCourseHandler"
></course-card>
<view
class=
"index-student-title flex"
>
<text>
学情反馈
</text>
<view>
(共
{{
workList
!=
null
&&
workList
.
length
>
0
?
workList
.
length
:
0
}}
条)
</view>
...
...
@@ -38,6 +39,7 @@
</view>
</view>
</view>
</page-meta>
</template>
<
script
>
...
...
@@ -88,10 +90,14 @@
workMsg
:
{
courseId
:
0
,
},
showPopu
:
false
,
workList
:
[],
//学员作业、考试、评语数据
});
let
methods
=
{
changePopStatusHandler
(
status
){
data
.
showPopu
=
status
==
1
},
jumpPage
(
url
)
{
uni
.
navigateTo
({
url
:
url
,
...
...
src/pages/index/workSituation.vue
View file @
be2effe7
<
template
>
<page-meta
:page-style=
"showPopu?'overflow:hidden;':''"
>
<view
class=
"workSituationpage"
>
<navbar
class=
"navbarSticky"
bg=
"#F6F6F6"
>
<view
class=
"index-header-box"
@
click=
"back"
>
...
...
@@ -27,7 +28,7 @@
</view>
</view>
</view>
<courseCard
@
change=
"changeCourseHandler"
></courseCard>
<courseCard
@
change
PopStatus=
'changePopStatusHandler'
@
change
=
"changeCourseHandler"
></courseCard>
<view
class=
"index-student-information"
>
<view
class=
"workSituation-title-box flex"
>
<view
class=
"workSituation-title"
...
...
@@ -53,6 +54,7 @@
<!--
<Loadmore
:state=
"pageState"
/>
-->
</view>
</view>
</page-meta>
</
template
>
<
script
>
...
...
@@ -120,10 +122,14 @@
pageState
:
"more"
,
currentCourseId
:
0
,
userData
:{},
loading
:
false
loading
:
false
,
showPopu
:
false
});
data
.
userData
=
uni
.
getStorageSync
(
"userInfo"
)
let
methods
=
{
changePopStatusHandler
(
status
){
data
.
showPopu
=
status
==
1
},
goSet
(){
let
url
=
'/pages/setComments/setComments?CourseId='
+
data
.
currentCourseId
;
console
.
log
(
"url"
,
url
);
...
...
src/pages/student/student.vue
View file @
be2effe7
...
...
@@ -8,7 +8,7 @@
</navbar>
<view
style=
"margin: 40rpx 0 10rpx 0;"
>
<view
style=
"padding:0 50rpx;font-weight: 800;color: #282828;"
>
<view
style=
"font-size: 36rpx;"
>
{{
stuName
}}
的
学情反馈
</view>
<view
style=
"font-size: 36rpx;"
>
{{
stuName
}}
的
</view>
</view>
</view>
<view
class=
"index-student-title flex"
>
...
...
src/utils/request.js
View file @
be2effe7
//请求教育接口
let
host
=
''
if
(
process
.
env
.
NODE_ENV
===
"development"
)
{
host
=
'http
://192.168.10.36:8082
/api'
host
=
'http
s://jjswapi.oytour.com
/api'
// host = 'http://192.168.10.65:8085/api'
}
else
{
host
=
'https://jjswapi.oytour.com/api'
...
...
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