Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
6824bda7
提交
6824bda7
编写于
1月 07, 2019
作者:
杨广俊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
讲师
上级
e1e3441f
变更
4
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
191 行增加
和
152 行删除
+191
-152
router.js
src/router/router.js
+2
-10
index.js
src/utils/index.js
+12
-12
index.vue
src/views/index.vue
+40
-130
s-index.vue
src/views/s-index.vue
+137
-0
未找到文件。
src/router/router.js
浏览文件 @
6824bda7
import
App
from
'../App'
const
search
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/search-
index'
)),
'search'
)
const
index
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/
index'
)),
'search'
)
const
result
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/result'
)),
'result'
)
// const details = r => require.ensure([], () => r(require('../views/teacher-details')), 'details')
...
...
@@ -14,15 +14,7 @@ export default [{
},
{
path
:
'/index'
,
component
:
search
},
{
path
:
'/search'
,
component
:
search
},
{
path
:
'/result'
,
component
:
result
component
:
index
}
]
}]
src/utils/index.js
浏览文件 @
6824bda7
...
...
@@ -81,18 +81,18 @@ export function jumpEvaluatPage(){
return
evaluatPageUrl
}
//
//
dev地址
//
//
const baseUrl = 'http://10.177.10.149:8080/'
//
const baseUrl = 'https://dev-sc.yunqueyi.com/'
//
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/'
// dev地址
// const baseUrl = 'http://10.177.10.149:8080/'
const
baseUrl
=
'https://dev-sc.yunqueyi.com/'
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/'
...
...
src/views/index.vue
浏览文件 @
6824bda7
<
template
>
<section
>
<!--
<input
type=
"search"
@
click=
"gotoPage"
/>
-->
<!--
<form
@
submit
.
prevent=
"search"
>
-->
<!--
<mt-search
@
onkeydown=
"gotoPage"
></mt-search>
-->
<!--
<button
v-show=
"false"
type=
"submit"
/>
-->
<!--
</form>
-->
<img
src=
"https://test1-file.yunqueyi.com/image/HJ_B001_YD_002_A.jpg"
@
click=
"gotoPage"
>
<img
:src=
"imgUrl"
@
click=
"gotoPage"
>
</section>
<div
class=
"lect-container"
>
<!-- Banner -->
<!--
<LectureBanner/>
-->
<!-- Hot Lecturers -->
<!--
<HotLecturer/>
-->
<!-- All Lecturers -->
<div
class=
"all-lect"
>
<!--
<SelectTitle/>
-->
<!--
<GroupTitle/>
-->
<!--
<LecturerList/>
-->
</div>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
imgUrl
:
'https://test1-file.yunqueyi.com/image/HJ_B001_TS_012_A.jpg'
}
},
created
()
{
window
.
__isFirstTime
=
function
(
param
)
{
if
(
param
.
isFirst
==
'true'
)
{
rocNative
.
setFirstTime
({
projectName
:
'YQY_PROJECT_SOUSUO'
,
isFirst
:
'false'
})
}
}
// this.isFirstTime()
},
methods
:
{
gotoPage
()
{
this
.
$router
.
push
(
'/search'
)
components
:
{
},
gotoPage
(
item
)
{
let
obj
=
{
created
(){
}
console
.
log
(
item
);
// let url = pageJumpUrl();
// console.log(url.pageListUrl);
let
itemData
=
{
"imageUrl"
:
""
,
"appModuleInfo"
:
{
"code"
:
"M300"
,
"type"
:
4
,
"name"
:
"课程介绍页"
,
"paramFlag"
:
1
,
"paramList"
:
[]
}
};
obj
=
{
menuLevel
:
1
,
menuCode
:
'm_home'
,
functionCode
:
'f_five_minutes'
,
actionCode
:
'c_content'
,
labelId
:
item
.
id
,
labelValue
:
item
.
title
,
}
itemData
.
title
=
item
.
name
;
itemData
.
appModuleInfo
[
"paramList"
]
=
[{
"key"
:
"pageUrl"
,
"value"
:
'http://10.177.10.211:8019/#/search'
,
// "value": 'com.picahealth.yunque.activitys.music.WebMusicListActivity###FiveMinutesMedicalSchoolWebViewController',
"type"
:
4
,
"seqNo"
:
1
}
]
},
computed
:
{
// this.pageBurialPoin(obj)
},
created
()
{
let
paramList
=
this
.
setEventByModuleCode
(
itemData
);
// alert(itemData.appModuleInfo.code)
// alert(JSON.stringify(paramList))
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
itemData
.
appModuleInfo
.
code
,
jsonString
:
paramList
})
},
isFirstTime
()
{
rocNative
.
isFirstTime
({
projectName
:
'YQY_PROJECT_SOUSUO'
,
__funcName
:
'__isFirstTime'
})
mounted
(){
},
methods
:
{
}
}
</
script
>
\ No newline at end of file
<
style
>
.mint-search
{
position
:
fixed
;
top
:
0px
;
z-index
:
2
;
height
:
66px
;
width
:
100%
;
border-bottom
:
1px
solid
#E7E7E7
;
}
.mint-searchbar
{
position
:
relative
;
-webkit-box-align
:
center
;
-ms-flex-align
:
center
;
align-items
:
center
;
background
:
#fff
;
box-sizing
:
border-box
;
display
:
-webkit-box
;
display
:
-ms-flexbox
;
display
:
flex
;
padding
:
30px
10px
8px
;
z-index
:
1
;
}
.mint-searchbar-cancel
{
margin-left
:
10px
;
font-size
:
14px
;
color
:
#999
;
text-decoration
:
none
;
}
.mint-searchbar-inner
{
background
:
#F5F6F6
;
}
.mint-searchbar-core
{
background
:
#F5F6F6
;
}
</
style
>
<
style
lang=
"scss"
>
.search-container
{
height
:
200px
;
text-align
:
center
;
background-color
:
#E7E7E7
;
padding-top
:
60px
;
input
{
width
:
320px
;
padding
:
4px
10px
;
}
}
</
style
>
src/views/s-index.vue
0 → 100644
浏览文件 @
6824bda7
<
template
>
<section
>
<!--
<input
type=
"search"
@
click=
"gotoPage"
/>
-->
<!--
<form
@
submit
.
prevent=
"search"
>
-->
<!--
<mt-search
@
onkeydown=
"gotoPage"
></mt-search>
-->
<!--
<button
v-show=
"false"
type=
"submit"
/>
-->
<!--
</form>
-->
<img
src=
"https://test1-file.yunqueyi.com/image/HJ_B001_YD_002_A.jpg"
@
click=
"gotoPage"
>
<img
:src=
"imgUrl"
@
click=
"gotoPage"
>
</section>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
imgUrl
:
'https://test1-file.yunqueyi.com/image/HJ_B001_TS_012_A.jpg'
}
},
created
()
{
window
.
__isFirstTime
=
function
(
param
)
{
if
(
param
.
isFirst
==
'true'
)
{
rocNative
.
setFirstTime
({
projectName
:
'YQY_PROJECT_SOUSUO'
,
isFirst
:
'false'
})
}
}
// this.isFirstTime()
},
methods
:
{
gotoPage
()
{
this
.
$router
.
push
(
'/search'
)
},
gotoPage
(
item
)
{
let
obj
=
{
}
console
.
log
(
item
);
// let url = pageJumpUrl();
// console.log(url.pageListUrl);
let
itemData
=
{
"imageUrl"
:
""
,
"appModuleInfo"
:
{
"code"
:
"M300"
,
"type"
:
4
,
"name"
:
"课程介绍页"
,
"paramFlag"
:
1
,
"paramList"
:
[]
}
};
obj
=
{
menuLevel
:
1
,
menuCode
:
'm_home'
,
functionCode
:
'f_five_minutes'
,
actionCode
:
'c_content'
,
labelId
:
item
.
id
,
labelValue
:
item
.
title
,
}
itemData
.
title
=
item
.
name
;
itemData
.
appModuleInfo
[
"paramList"
]
=
[{
"key"
:
"pageUrl"
,
"value"
:
'http://10.177.10.211:8019/#/search'
,
// "value": 'com.picahealth.yunque.activitys.music.WebMusicListActivity###FiveMinutesMedicalSchoolWebViewController',
"type"
:
4
,
"seqNo"
:
1
}
]
// this.pageBurialPoin(obj)
let
paramList
=
this
.
setEventByModuleCode
(
itemData
);
// alert(itemData.appModuleInfo.code)
// alert(JSON.stringify(paramList))
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
itemData
.
appModuleInfo
.
code
,
jsonString
:
paramList
})
},
isFirstTime
()
{
rocNative
.
isFirstTime
({
projectName
:
'YQY_PROJECT_SOUSUO'
,
__funcName
:
'__isFirstTime'
})
},
}
}
</
script
>
<
style
>
.mint-search
{
position
:
fixed
;
top
:
0px
;
z-index
:
2
;
height
:
66px
;
width
:
100%
;
border-bottom
:
1px
solid
#E7E7E7
;
}
.mint-searchbar
{
position
:
relative
;
-webkit-box-align
:
center
;
-ms-flex-align
:
center
;
align-items
:
center
;
background
:
#fff
;
box-sizing
:
border-box
;
display
:
-webkit-box
;
display
:
-ms-flexbox
;
display
:
flex
;
padding
:
30px
10px
8px
;
z-index
:
1
;
}
.mint-searchbar-cancel
{
margin-left
:
10px
;
font-size
:
14px
;
color
:
#999
;
text-decoration
:
none
;
}
.mint-searchbar-inner
{
background
:
#F5F6F6
;
}
.mint-searchbar-core
{
background
:
#F5F6F6
;
}
</
style
>
<
style
lang=
"scss"
>
.search-container
{
height
:
200px
;
text-align
:
center
;
background-color
:
#E7E7E7
;
padding-top
:
60px
;
input
{
width
:
320px
;
padding
:
4px
10px
;
}
}
</
style
>
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录