Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
ybf
Project
Project
Details
Activity
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
xulili
ybf
Commits
91df9c82
Commit
91df9c82
authored
Mar 15, 2020
by
xulili
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改环境api
parent
3e5c8148
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
48 additions
and
9 deletions
+48
-9
.env
ybf_wx/.env
+9
-0
.env.dev
ybf_wx/.env.dev
+9
-0
.env.prod
ybf_wx/.env.prod
+9
-0
env-config.js
ybf_wx/config/env-config.js
+7
-0
package.json
ybf_wx/package.json
+3
-1
aRequest.js
ybf_wx/src/utils/aRequest.js
+3
-1
aWxRequest.js
ybf_wx/src/utils/aWxRequest.js
+4
-3
bRequestEa.js
ybf_wx/src/utils/bRequestEa.js
+2
-2
bRequestEaPost.js
ybf_wx/src/utils/bRequestEaPost.js
+2
-2
No files found.
ybf_wx/.env
0 → 100644
View file @
91df9c82
# 页面 title 前缀
NODE_ENV = development
VUE_APP_TITLE = 亿百分-dev
VUE_OY_API = /api/
VUE_APP_API_A = http://139.155.48.151:8085
VUE_APP_API_B = http://111.26.165.55:8010/crminterface.ashx
ybf_wx/.env.dev
0 → 100644
View file @
91df9c82
# 页面 title 前缀
NODE_ENV = development
VUE_APP_TITLE = 亿百分-dev
VUE_OY_API = http://111.26.165.55:8010/crminterface.ashx
VUE_APP_API_A = http://139.155.48.151:8085
VUE_APP_API_B = http://111.26.165.55:8010/crminterface.ashx
ybf_wx/.env.prod
0 → 100644
View file @
91df9c82
# 页面 title 前缀
NODE_ENV = production
VUE_APP_TITLE = 亿百分-prod
VUE_OY_API = http://111.26.165.55:8010/crminterface.ashx
VUE_APP_API_A = http://139.155.48.151:8085
VUE_APP_API_B = http://111.26.165.55:8010/crminterface.ashx
ybf_wx/config/env-config.js
0 → 100644
View file @
91df9c82
const
envConfig
=
{
appOyAPI
:
process
.
env
.
VUE_OX_API
,
appBaseUrlA
:
process
.
env
.
VUE_APP_API_A
,
appBaseUrlB
:
process
.
env
.
VUE_APP_API_B
,
}
export
default
envConfig
ybf_wx/package.json
View file @
91df9c82
...
...
@@ -6,7 +6,9 @@
"start"
:
"vue-cli-service serve"
,
"serve"
:
"vue-cli-service serve"
,
"build"
:
"vue-cli-service build"
,
"lint"
:
"vue-cli-service lint"
"lint"
:
"vue-cli-service lint"
,
"build:dev"
:
"vue-cli-service build --mode dev"
,
"build:prod"
:
"vue-cli-service build --mode prod"
},
"dependencies"
:
{
"axios"
:
"^0.19.1"
,
...
...
ybf_wx/src/utils/aRequest.js
View file @
91df9c82
import
axios
from
'axios'
import
{
Message
,
MessageBox
}
from
'element-ui'
import
Router
from
'../router'
import
envConfig
from
'@/config/env-config'
// import store from '../store'
// import { getToken } from '@/utils/auth'
...
...
@@ -9,7 +10,8 @@ import Router from '../router'
let
INFO
=
{
corpId
:
'wwd1cdbca7b8b2b6c4'
,
agentId
:
'1000015'
,
url
:
'http://139.155.48.151:8085'
,
// url: 'http://139.155.48.151:8085',
url
:
envConfig
.
appBaseUrlA
,
}
// 创建axios实例
...
...
ybf_wx/src/utils/aWxRequest.js
View file @
91df9c82
import
axios
from
'axios'
import
envConfig
from
'@/config/env-config'
export
function
wxRequest
(
inUrl
,
data
=
{},
header
=
{},
method
=
'post'
)
{
// let URL = `http://172.16.0.111:8081${url}`
// let URL = `http://139.155.48.151:8081${url}`
...
...
@@ -8,7 +8,8 @@ export function wxRequest(inUrl, data = {}, header = {}, method = 'post') {
let
INFO
=
{
corpId
:
'wwd1cdbca7b8b2b6c4'
,
agentId
:
'1000015'
,
url
:
'http://139.155.48.151:8085'
+
inUrl
,
// url: 'http://139.155.48.151:8085' + inUrl,
url
:
envConfig
.
appBaseUrlA
+
inUrl
,
}
if
(
method
==
'post'
)
{
...
...
@@ -41,4 +42,4 @@ export function wxRequest(inUrl, data = {}, header = {}, method = 'post') {
})
}
}
\ No newline at end of file
}
ybf_wx/src/utils/bRequestEa.js
View file @
91df9c82
import
axios
from
'axios'
import
md5
from
"js-md5"
import
envConfig
from
'@/config/env-config'
// let BASE_API = "https://gd.chfatech.com/guangdian"
// let BASE_API = "/api/"
let
BASE_API
=
"/api"
let
BASE_API
=
envConfig
.
appOyAPI
const
zlog
=
console
.
log
.
bind
(
console
)
...
...
ybf_wx/src/utils/bRequestEaPost.js
View file @
91df9c82
import
axios
from
'axios'
import
md5
from
"js-md5"
import
envConfig
from
'@/config/env-config'
// let BASE_API = "https://gd.chfatech.com/guangdian"
let
BASE_API
=
"/api/"
let
BASE_API
=
envConfig
.
appOyAPI
const
zlog
=
console
.
log
.
bind
(
console
)
...
...
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