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
db46e2a1
Commit
db46e2a1
authored
Sep 13, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
985f4c6b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
18 deletions
+30
-18
timeTable.vue
src/pages/course/timeTable.vue
+4
-5
examPaper.vue
src/pages/exam/examPaper.vue
+9
-5
index.vue
src/pages/index/index.vue
+4
-3
request.js
src/utils/request.js
+13
-5
No files found.
src/pages/course/timeTable.vue
View file @
db46e2a1
...
...
@@ -256,11 +256,10 @@ export default {
};
},
onLoad
(
options
)
{
let
{
proxy
}
=
getCurrentInstance
();
proxy
.
msg
.
StartTime
=
getToday
();
proxy
.
msg
.
EndTime
=
getToday
();
proxy
.
msg
.
ClassId
=
JSON
.
parse
(
options
.
classId
);
proxy
.
getData
();
this
.
msg
.
StartTime
=
getToday
();
this
.
msg
.
EndTime
=
getToday
();
this
.
msg
.
ClassId
=
JSON
.
parse
(
options
.
classId
);
this
.
getData
();
},
};
</
script
>
...
...
src/pages/exam/examPaper.vue
View file @
db46e2a1
...
...
@@ -28,8 +28,13 @@
<view
v-for=
"(item, index) in peaperDetail.Paper.GroupList"
:key=
"index"
>
<i
class=
"iconfont icon-caidanzu answerSheet"
style=
"position: absolute; right: 15px; z-index: 999;margin-top:13px;"
:style=
"{'top':statusBarHeight+65}"
style=
"
position: absolute;
right: 15px;
z-index: 999;
margin-top: 13px;
"
:style=
"{ top: statusBarHeight + 65 }"
@
click=
"showAnswerSheet"
></i>
<!-- 数字单选题 -->
...
...
@@ -354,13 +359,11 @@ export default {
Answer
,
},
setup
(
props
,
context
)
{
let
Gid
=
uni
.
getStorageSync
(
"userInfo"
).
Id
;
let
{
refs
}
=
getCurrentInstance
();
let
data
=
reactive
({
time
:
999
,
statusBarHeight
:
0
,
// msg: { GuestId: 64, PaperId: 34, PublishId: 9 },
msg
:
{
GuestId
:
Gid
,
PaperId
:
0
,
PublishId
:
0
},
msg
:
{
GuestId
:
0
,
PaperId
:
0
,
PublishId
:
0
},
peaperDetail
:
{},
changeIndex
:
0
,
//大题序号
isLast
:
false
,
//用于判断是否从后往前翻
...
...
@@ -446,6 +449,7 @@ export default {
this
.
msg
.
PublishId
=
options
.
Id
;
}
if
(
options
.
Exam_Student_Id
)
{
this
.
msg
.
GuestId
=
options
.
Exam_Student_Id
;
this
.
Exam_Student_Id
=
options
.
Exam_Student_Id
;
}
this
.
getPaperDetail
();
...
...
src/pages/index/index.vue
View file @
db46e2a1
...
...
@@ -30,7 +30,7 @@
/>
服务人员
</view
>
<view
class=
"info2 one_line"
>
<text
style=
"margin-right: 10rpx"
>
销售
</text
<text
style=
"margin-right: 10rpx"
>
课程顾问
</text
>
{{
userinfo
.
EnterPhone2
}}
</view
>
</view>
...
...
@@ -325,7 +325,7 @@ export default {
}
.saleInfo
{
width
:
200
rpx
;
/* width: 200rpx; */
height
:
66
rpx
;
background-color
:
#00acf9
;
border-radius
:
33
rpx
0
rpx
0
rpx
33
rpx
;
...
...
@@ -335,12 +335,13 @@ export default {
right
:
-30
rpx
;
z-index
:
10
;
box-sizing
:
border-box
;
padding
-left
:
20
rpx
;
padding
:
0
20
rpx
;
font-family
:
PingFang
SC
;
color
:
#ffffff
;
}
.saleInfo
.info1
{
text-align
:
center
;
font-size
:
22
rpx
;
font-weight
:
bold
;
}
...
...
src/utils/request.js
View file @
db46e2a1
let
host
=
'http://192.168.20.17:8017/api'
if
(
process
.
env
.
NODE_ENV
===
"development"
)
{
//
host = 'http://192.168.20.17:8017/api'
host
=
'http://192.168.20.24:8300/api'
host
=
'http://192.168.20.17:8017/api'
//
host = 'http://192.168.20.24:8300/api'
}
else
{
host
=
'https://eduapi.oytour.com/api'
}
...
...
@@ -24,13 +24,21 @@ let request = (param) => {
if
(
res
.
data
.
Code
===
1
)
{
resolve
(
res
.
data
)
}
else
{
Toast
.
fail
(
res
.
data
.
Message
)
Toast
({
type
:
'fail'
,
message
:
res
.
data
.
Message
,
onClose
:
()
=>
{
if
(
res
.
data
.
Code
===
10001
)
{
uni
.
navigateTo
({
url
:
'/pages/login/login'
});
}
},
});
}
},
fail
:
(
err
)
=>
{
// reject(err)
console
.
warn
(
"fail:"
+
JSON
.
stringify
(
err
));
// Toast.fail("网络请求失败")
uni
.
showToast
({
title
:
'网络请求失败'
,
duration
:
2000
,
...
...
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