Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
repair_workers_h5
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
石盼盼
repair_workers_h5
Commits
9e7142a7
Commit
9e7142a7
authored
Sep 18, 2021
by
石盼盼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
70536b3c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
+8
-7
apiList.js
src/api/apiList.js
+3
-2
common.js
src/api/common.js
+1
-1
index.js
src/api/index.js
+2
-2
vue.config.js
vue.config.js
+2
-2
No files found.
src/api/apiList.js
View file @
9e7142a7
...
...
@@ -8,7 +8,8 @@ const baseUrl = '/api'
// }
// todo: url
const
httpUrl
=
'
https://repairtest.zeruiedu.com
'
// 测试接口
// const httpUrl = 'https://repairtest.zeruiedu.com' // 测试接口
const
httpUrl
=
'
https://repair.zeruiedu.com
'
// 正式接口
const
h5Url
=
'
http://localhost:8080
'
// 测试h5线上地址
// const h5Url = 'http://repair.h5.zeruiedu.com' // 测试h5线上地址
window
.
localStorage
.
setItem
(
'
httpUrl
'
,
httpUrl
)
...
...
@@ -51,6 +52,6 @@ export default {
GET_WORKER
:
baseUrl
+
'
/worker/get/worker
'
,
// 查看评论
REPAIR_CANCEL
:
baseUrl
+
'
/worker/repair/cancel
'
,
// 查看评论
REPAIR_ASSIGN
:
baseUrl
+
'
/worker/repair/assign
'
,
// 指派工人
WX_JSSDK
:
baseUrl
+
'
/worker/wx/jssdk
'
,
// 获取jssdk参数
WX_JSSDK
:
baseUrl
+
'
/worker/wx/jssdk
'
// 获取jssdk参数
}
src/api/common.js
View file @
9e7142a7
...
...
@@ -4,7 +4,7 @@ export function updateToken (cb, errcb) {
axios
.
post
(
apiList
.
REFRESHTOKEN
,
null
,
{
headers
:
{
token
:
window
.
localStorage
.
getItem
(
'
token
'
)
,
token
:
window
.
localStorage
.
getItem
(
'
token
'
)
// type: 1
}
})
...
...
src/api/index.js
View file @
9e7142a7
import
axios
from
'
./axios
'
import
{
Toast
,
Dialog
}
from
'
vant
'
import
router
from
'
../router/index
'
import
{
Toast
}
from
'
vant
'
//
import router from '../router/index'
import
selfApi
from
'
@/api/apiList
'
const
instance
=
axios
()
...
...
vue.config.js
View file @
9e7142a7
...
...
@@ -61,8 +61,8 @@ module.exports = {
proxy
:
{
'
/api/
'
:
{
// todo: url
target
:
'
https://repairtest.zeruiedu.com/api
'
,
// 测试
//
target: 'https://repair.zeruiedu.com/api', // 正式
//
target: 'https://repairtest.zeruiedu.com/api', // 测试
target
:
'
https://repair.zeruiedu.com/api
'
,
// 正式
autoRewrite
:
true
,
changeOrigin
:
true
,
ws
:
true
,
...
...
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