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
8aea23e9
Commit
8aea23e9
authored
Sep 16, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
8f4aeaa5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
timeTable-item.vue
src/pages/course/timeTable-item.vue
+5
-0
request.js
src/utils/request.js
+3
-2
requestMall.js
src/utils/requestMall.js
+1
-1
No files found.
src/pages/course/timeTable-item.vue
View file @
8aea23e9
...
@@ -42,6 +42,11 @@
...
@@ -42,6 +42,11 @@
v-if="item.IsLeave === 1
&&
item.IsCheck
<
2
"
v-if="item.IsLeave === 1
&&
item.IsCheck
<
2
"
>
请假
</van-button
>
请假
</van-button
>
>
<van-button
custom-class=
"already-leave-btn one_line"
v-if=
"item.IsLeave === 1 && item.IsCheck == 2"
>
已请假
</van-button
>
<van-button
<van-button
custom-class=
"already-leave-btn one_line"
custom-class=
"already-leave-btn one_line"
v-if=
"item.IsLeave === 0"
v-if=
"item.IsLeave === 0"
...
...
src/utils/request.js
View file @
8aea23e9
let
host
=
'http://192.168.20.17:8017/api'
//请求教育接口
let
host
=
''
if
(
process
.
env
.
NODE_ENV
===
"development"
)
{
if
(
process
.
env
.
NODE_ENV
===
"development"
)
{
host
=
'http://192.168.20.17:8017/api'
host
=
'http://192.168.20.17:8017/api'
// host = 'http://192.168.20.24:8300/api'
// host = 'http://192.168.20.24:8300/api'
...
@@ -7,7 +8,7 @@ if (process.env.NODE_ENV === "development") {
...
@@ -7,7 +8,7 @@ if (process.env.NODE_ENV === "development") {
}
}
import
Toast
from
'../wxcomponents/vant/toast/toast'
;
import
Toast
from
'../wxcomponents/vant/toast/toast'
;
let
request
=
(
param
)
=>
{
let
request
=
(
param
)
=>
{
//网络请求
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
let
token
=
uni
.
getStorageSync
(
'userInfo'
).
Token
;
let
token
=
uni
.
getStorageSync
(
'userInfo'
).
Token
;
uni
.
request
({
uni
.
request
({
...
...
src/utils/requestMall.js
View file @
8aea23e9
...
@@ -3,7 +3,7 @@ let host = ''
...
@@ -3,7 +3,7 @@ let host = ''
if
(
process
.
env
.
NODE_ENV
===
"development"
)
{
if
(
process
.
env
.
NODE_ENV
===
"development"
)
{
host
=
'http://192.168.20.17:8014/api'
host
=
'http://192.168.20.17:8014/api'
}
else
{
}
else
{
// host = 'https://eduapi.oytour.com/api'
host
=
"https://mallapi.oytour.com"
}
}
import
Toast
from
'../wxcomponents/vant/toast/toast'
;
import
Toast
from
'../wxcomponents/vant/toast/toast'
;
let
request
=
(
param
)
=>
{
let
request
=
(
param
)
=>
{
...
...
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