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
e17da679
Commit
e17da679
authored
Dec 27, 2023
by
gh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'修改,'
parent
6cfab2e0
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
53 additions
and
4 deletions
+53
-4
dist-y.rar
dist-y.rar
+0
-0
dist.rar
dist.rar
+0
-0
apiList.js
src/api/apiList.js
+18
-2
urlconfig.js
src/api/urlconfig.js
+30
-0
index.js
src/router/index.js
+1
-0
vue.config.js
vue.config.js
+4
-2
No files found.
dist-y.rar
0 → 100644
View file @
e17da679
File added
dist.rar
View file @
e17da679
No preview for this file type
src/api/apiList.js
View file @
e17da679
import
{
GetUrl
}
from
'
@/api/urlconfig
'
// todo: url
// 第一个参数:项目区分 ------ ''为e速报修;'yuying'为育英
// 第二个参数:正式测试区分 ------ true为正式;false为测试
const
urlConfig
=
GetUrl
(
''
,
false
)
const
baseUrl
=
'
/api
'
const
baseUrl
=
'
/api
'
const
httpUrl
=
urlConfig
.
httpUrl
// 接口
const
h5Url
=
urlConfig
.
h5Url
// h5线上地址
// todo: url
// todo: url
// const httpUrl = 'http://repairtest.dxccy.com' // 测试接口
// const httpUrl = 'http://repairtest.dxccy.com' // 测试接口
// const h5Url = 'http://repair.test.h5.dxccy.com' // 测试h5线上地址
// const h5Url = 'http://repair.test.h5.dxccy.com' // 测试h5线上地址
const
httpUrl
=
'
https://repair.dxccy.com
'
// 正式接口
// const httpUrl = 'https://repair.dxccy.com' // 正式接口
const
h5Url
=
'
https://repair.h5.dxccy.com
'
// 正式h5线上地址
// const h5Url = 'https://repair.h5.dxccy.com' // 正式h5线上地址
// todo: 育英
// todo: url
// const httpUrl = 'https://yuyingtest.dxccy.com' // 测试接口
// const h5Url = 'http://yuying.test.h5.dxccy.com' // 测试h5线上地址
// const httpUrl = 'https://yuying.dxccy.com' // 正式接口
// const h5Url = 'https://yuying.h5.dxccy.com' // 正式h5线上地址
const
wxLogin
=
'
/api/worker/login
'
// 微信登录获取token、登录状态
const
wxLogin
=
'
/api/worker/login
'
// 微信登录获取token、登录状态
const
curScope
=
'
scopes=snsapi_base&type=1
'
const
curScope
=
'
scopes=snsapi_base&type=1
'
...
...
src/api/urlconfig.js
0 → 100644
View file @
e17da679
export
function
GetUrl
(
type
=
''
,
online
)
{
let
httpUrl
=
''
let
h5Url
=
''
switch
(
type
)
{
case
'
yuying
'
:
// 育英中学
if
(
!
online
)
{
// 测试
httpUrl
=
'
http://yuyingtest.dxccy.com
'
// 测试接口
h5Url
=
'
http://yuying.test.h5.dxccy.com
'
// 测试h5线上地址
}
else
{
// 正式
httpUrl
=
'
https://yuying.dxccy.com
'
// 正式接口
h5Url
=
'
https://yuying.h5.dxccy.com
'
// 正式h5线上地址
}
break
default
:
// 默认自身项目
if
(
!
online
)
{
// 测试
httpUrl
=
'
http://repairtest.dxccy.com
'
// 测试接口
h5Url
=
'
http://repair.test.h5.dxccy.com
'
// 测试h5线上地址
}
else
{
// 正式
httpUrl
=
'
https://repair.dxccy.com
'
// 正式接口
h5Url
=
'
https://repair.h5.dxccy.com
'
// 正式h5线上地址
}
}
return
{
httpUrl
,
h5Url
}
}
src/router/index.js
View file @
e17da679
...
@@ -157,6 +157,7 @@ router.beforeEach((to, from, next) => {
...
@@ -157,6 +157,7 @@ router.beforeEach((to, from, next) => {
return
true
return
true
}
else
{
}
else
{
console
.
log
(
'
ok-------3
'
)
console
.
log
(
'
ok-------3
'
)
console
.
log
(
selfApi
.
WINDOWHREF_LOGIN_TOKEN
,
'
selfApi.WINDOWHREF_LOGIN_TOKEN--------
'
)
// return
// return
window
.
document
.
location
=
selfApi
.
WINDOWHREF_LOGIN_TOKEN
// url-
window
.
document
.
location
=
selfApi
.
WINDOWHREF_LOGIN_TOKEN
// url-
return
true
return
true
...
...
vue.config.js
View file @
e17da679
...
@@ -61,8 +61,10 @@ module.exports = {
...
@@ -61,8 +61,10 @@ module.exports = {
proxy
:
{
proxy
:
{
'
/api/
'
:
{
'
/api/
'
:
{
// todo: url
// todo: url
// target: 'http://repairtest.dxccy.com/api', // 测试
target
:
'
http://repairtest.dxccy.com/api
'
,
// 测试
target
:
'
https://repair.dxccy.com/api
'
,
// 正式
// target: 'https://repair.dxccy.com/api', // 正式
// target: 'http://yuyingtest.dxccy.com/api', // 育英测试
// target: 'https://yuying.dxccy.com/api', // 育英正式
autoRewrite
:
true
,
autoRewrite
:
true
,
changeOrigin
:
true
,
changeOrigin
:
true
,
ws
:
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