Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
36873e64
提交
36873e64
编写于
1月 16, 2019
作者:
杨广俊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
支持环境变量
上级
9462ff57
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
61 行增加
和
61 行删除
+61
-61
package.json
package.json
+1
-1
yqy-home-header.vue
src/componentsn/business/yqy-home-header.vue
+3
-3
yqy-hot-lecturer.vue
src/componentsn/business/yqy-hot-lecturer.vue
+0
-1
yqy-teacher-list.vue
src/componentsn/business/yqy-teacher-list.vue
+0
-1
index.js
src/utils/index.js
+57
-55
未找到文件。
package.json
浏览文件 @
36873e64
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
"private"
:
true
,
"private"
:
true
,
"license"
:
"GPL"
,
"license"
:
"GPL"
,
"scripts"
:
{
"scripts"
:
{
"dev"
:
"cross-env NODE_ENV=
online
node build/dev-server.js"
,
"dev"
:
"cross-env NODE_ENV=
dev
node build/dev-server.js"
,
"local"
:
"cross-env NODE_ENV=local node build/dev-server.js"
,
"local"
:
"cross-env NODE_ENV=local node build/dev-server.js"
,
"build"
:
"node build/build.js"
,
"build"
:
"node build/build.js"
,
"build:dev"
:
"cross-env NODE_ENV=dev node build/build.js"
,
"build:dev"
:
"cross-env NODE_ENV=dev node build/build.js"
,
...
...
src/componentsn/business/yqy-home-header.vue
浏览文件 @
36873e64
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
jump
WebPageUrl
}
from
"@/utils/index"
;
import
{
get
WebPageUrl
}
from
"@/utils/index"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -70,7 +70,7 @@ export default {
...
@@ -70,7 +70,7 @@ export default {
},
},
goSearch
()
{
goSearch
()
{
let
_this
=
this
,
let
_this
=
this
,
url
=
jumpWebPageUrl
;
url
=
getWebPageUrl
(
'sousuo/#/index'
)
;
let
itemData
=
{
let
itemData
=
{
title
:
""
,
title
:
""
,
imageUrl
:
""
,
imageUrl
:
""
,
...
@@ -82,7 +82,7 @@ export default {
...
@@ -82,7 +82,7 @@ export default {
paramList
:
[
paramList
:
[
{
{
key
:
"pageUrl"
,
key
:
"pageUrl"
,
value
:
url
+
'sousuo/#/index'
,
value
:
url
,
type
:
4
,
type
:
4
,
seqNo
:
1
seqNo
:
1
},
},
...
...
src/componentsn/business/yqy-hot-lecturer.vue
浏览文件 @
36873e64
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
<
script
>
<
script
>
// import { setEventByModuleCode } from '@/utils/index'
// import { setEventByModuleCode } from '@/utils/index'
import
{
teacher
}
from
'../../utils/buryingPoint'
;
import
{
teacher
}
from
'../../utils/buryingPoint'
;
import
{
jumpWebPageUrl
}
from
'@/utils/index'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
...
src/componentsn/business/yqy-teacher-list.vue
浏览文件 @
36873e64
...
@@ -35,7 +35,6 @@
...
@@ -35,7 +35,6 @@
<
script
>
<
script
>
import
{
teacher
}
from
'../../utils/buryingPoint'
;
import
{
teacher
}
from
'../../utils/buryingPoint'
;
import
{
mapGetters
}
from
'vuex'
import
{
mapGetters
}
from
'vuex'
import
{
jumpWebPageUrl
}
from
'@/utils/index'
import
YqyLecturerOrder
from
'@/componentsn/business/yqy-lecturer-order'
;
import
YqyLecturerOrder
from
'@/componentsn/business/yqy-lecturer-order'
;
export
default
{
export
default
{
...
...
src/utils/index.js
浏览文件 @
36873e64
...
@@ -75,72 +75,74 @@ export function sortParmData(originData, orderCol, index) {
...
@@ -75,72 +75,74 @@ export function sortParmData(originData, orderCol, index) {
})
})
}
}
//跳转个人评价页面
// // dev地址
export
function
jumpEvaluatPage
(){
// // const baseUrl = 'http://10.177.10.149:8080/'
return
evaluatPageUrl
// // const baseUrl = 'https://dev-sc.yunqueyi.com/'
}
// // const baseUrl = 'http://10.177.15.180:10202/'
// // const baseUrl = 'http://192.168.140.14:10201/'
// // const apiUrl = 'https://dev-api.yunqueyi.com/'
// // test1地址
// const baseUrl = 'https://test1-sc.yunqueyi.com/'
// const apiUrl = 'https://test1-api.yunqueyi.com/'
// // // uat地址
// // const baseUrl = 'https://uat-sc.yunqueyi.com/'
// // const apiUrl = 'https://uat-api.yunqueyi.com/'
// // // pro地址
// // const baseUrl = 'https://sc.yunqueyi.com/'
// // const apiUrl = 'https://api.yunqueyi.com/'
// dev地址
// const baseUrl = 'http://10.177.10.149:8080/'
// const baseUrl = 'https://dev-sc.yunqueyi.com/'
// const baseUrl = 'http://10.177.15.180:10202/'
// const baseUrl = 'http://192.168.140.14:10201/'
// const apiUrl = 'https://dev-api.yunqueyi.com/'
// const evaluatPageUrl = 'https://dev-phome.yunqueyi.com/gpr/#/home'
// export const jumpWebPageUrl = 'https://dev-phome.yunqueyi.com/'
// test1地址
const
baseUrl
=
'https://test1-sc.yunqueyi.com/'
const
apiUrl
=
'https://test1-api.yunqueyi.com/'
const
evaluatPageUrl
=
'https://test1-phome.yunqueyi.com/gpr/#/home'
export
const
jumpWebPageUrl
=
'https://test1-phome.yunqueyi.com/'
// // uat地址
// const baseUrl = 'https://uat-sc.yunqueyi.com/'
// const apiUrl = 'https://uat-api.yunqueyi.com/'
// const evaluatPageUrl = 'https://uat-phome.yunqueyi.com/gpr/#/home'
// export const jumpWebPageUrl = 'https://uat-phome.yunqueyi.com/'
// // pro地址
// const baseUrl = 'https://sc.yunqueyi.com/'
// const apiUrl = 'https://api.yunqueyi.com/'
// const evaluatPageUrl = 'https://phome.yunqueyi.com/gpr/#/home'
// export const jumpWebPageUrl = 'https://phome.yunqueyi.com/'
// 为每个URL添加应用校验密钥
export
function
getBaseUrl
(
url
)
{
export
function
getBaseUrl
(
url
)
{
return
baseUrl
+
url
return
getConfigByEvtType
(
'baseUrl'
)
+
url
}
}
export
function
getApiUrl
(
url
)
{
export
function
getApiUrl
(
url
)
{
return
apiUrl
+
url
return
getConfigByEvtType
(
'apiUrl'
)
+
url
}
}
console
.
log
(
'XXXXXXXX: '
,
process
.
env
.
NODE_ENV
)
export
function
getWebPageUrl
(
url
)
{
const
devEvtConfig
=
{
return
getConfigByEvtType
(
'webPageUrl'
)
+
url
baseUrl
:
'https://dev-sc.yunqueyi.com/'
,
// baseUrl: 'http://10.177.15.180:10202/',
// baseUrl: 'http://192.168.140.14:10201/',
apiUrl
:
'https://dev-api.yunqueyi.com/'
,
webPageUrl
:
'https://dev-phome.yunqueyi.com/'
}
}
const
testEvtConfig
=
{
console
.
log
(
'XXXXXXXX: '
,
process
.
env
.
NODE_ENV
)
baseUrl
:
'https://test1-sc.yunqueyi.com/'
,
apiUrl
:
'https://test1-api.yunqueyi.com/'
,
webPageUrl
:
'https://test1-phome.yunqueyi.com/'
}
const
uatEvtConfig
=
{
const
evtConfig
=
{
baseUrl
:
'https://uat-sc.yunqueyi.com/'
,
development
:
{
apiUrl
:
'https://uat-api.yunqueyi.com/'
,
baseUrl
:
'https://dev-sc.yunqueyi.com/'
,
webPageUrl
:
'https://uat-phome.yunqueyi.com/'
// baseUrl: 'http://10.177.15.180:10202/',
// baseUrl: 'http://192.168.140.14:10201/',
apiUrl
:
'https://dev-api.yunqueyi.com/'
,
webPageUrl
:
'https://dev-phome.yunqueyi.com/'
},
dev
:
{
baseUrl
:
'https://dev-sc.yunqueyi.com/'
,
// baseUrl: 'http://10.177.15.180:10202/',
// baseUrl: 'http://192.168.140.14:10201/',
apiUrl
:
'https://dev-api.yunqueyi.com/'
,
webPageUrl
:
'https://dev-phome.yunqueyi.com/'
},
test
:
{
baseUrl
:
'https://test1-sc.yunqueyi.com/'
,
apiUrl
:
'https://test1-api.yunqueyi.com/'
,
webPageUrl
:
'https://test1-phome.yunqueyi.com/'
},
uat
:
{
baseUrl
:
'https://uat-sc.yunqueyi.com/'
,
apiUrl
:
'https://uat-api.yunqueyi.com/'
,
webPageUrl
:
'https://uat-phome.yunqueyi.com/'
},
pro
:
{
baseUrl
:
'https://sc.yunqueyi.com/'
,
apiUrl
:
'https://api.yunqueyi.com/'
,
webPageUrl
:
'https://phome.yunqueyi.com/'
}
}
}
const
proEvtConfig
=
{
function
getConfigByEvtType
(
url
)
{
baseUrl
:
'https://sc.yunqueyi.com/'
,
console
.
log
(
process
.
env
.
NODE_ENV
)
apiUrl
:
'https://api.yunqueyi.com/'
,
return
evtConfig
[
process
.
env
.
NODE_ENV
][
url
]
webPageUrl
:
'https://phome.yunqueyi.com/'
}
}
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录