提交 6824bda7 编写于 作者: 杨广俊's avatar 杨广俊

讲师

上级 e1e3441f
import App from '../App' 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 result = r => require.ensure([], () => r(require('../views/result')), 'result')
// const details = r => require.ensure([], () => r(require('../views/teacher-details')), 'details') // const details = r => require.ensure([], () => r(require('../views/teacher-details')), 'details')
...@@ -14,15 +14,7 @@ export default [{ ...@@ -14,15 +14,7 @@ export default [{
}, },
{ {
path: '/index', path: '/index',
component: search component: index
},
{
path: '/search',
component: search
},
{
path: '/result',
component: result
} }
] ]
}] }]
...@@ -81,18 +81,18 @@ export function jumpEvaluatPage(){ ...@@ -81,18 +81,18 @@ export function jumpEvaluatPage(){
return evaluatPageUrl return evaluatPageUrl
} }
// // dev地址 // dev地址
// // const baseUrl = 'http://10.177.10.149:8080/' // const baseUrl = 'http://10.177.10.149:8080/'
// const baseUrl = 'https://dev-sc.yunqueyi.com/' const baseUrl = 'https://dev-sc.yunqueyi.com/'
// const apiUrl = 'https://dev-api.yunqueyi.com/' const apiUrl = 'https://dev-api.yunqueyi.com/'
// const evaluatPageUrl = 'https://dev-phome.yunqueyi.com/gpr/#/home' const evaluatPageUrl = 'https://dev-phome.yunqueyi.com/gpr/#/home'
// export const jumpWebPageUrl = 'https://dev-phome.yunqueyi.com/' export const jumpWebPageUrl = 'https://dev-phome.yunqueyi.com/'
// test1地址 // // test1地址
const baseUrl = 'https://test1-sc.yunqueyi.com/' // const baseUrl = 'https://test1-sc.yunqueyi.com/'
const apiUrl = 'https://test1-api.yunqueyi.com/' // const apiUrl = 'https://test1-api.yunqueyi.com/'
const evaluatPageUrl = 'https://test1-phome.yunqueyi.com/gpr/#/home' // const evaluatPageUrl = 'https://test1-phome.yunqueyi.com/gpr/#/home'
export const jumpWebPageUrl = 'https://test1-phome.yunqueyi.com/' // export const jumpWebPageUrl = 'https://test1-phome.yunqueyi.com/'
// // uat地址 // // uat地址
// const baseUrl = 'https://uat-sc.yunqueyi.com/' // const baseUrl = 'https://uat-sc.yunqueyi.com/'
......
<template> <template>
<section > <div class="lect-container">
<!-- <input type="search" @click="gotoPage"/> --> <!-- Banner -->
<!-- <form @submit.prevent="search"> --> <!-- <LectureBanner/> -->
<!-- <mt-search @onkeydown="gotoPage"></mt-search> -->
<!-- <button v-show="false" type="submit" /> --> <!-- Hot Lecturers -->
<!-- </form> --> <!-- <HotLecturer/> -->
<img src="https://test1-file.yunqueyi.com/image/HJ_B001_YD_002_A.jpg" @click="gotoPage">
<img :src="imgUrl" @click="gotoPage"> <!-- All Lecturers -->
</section> <div class="all-lect">
<!-- <SelectTitle/> -->
<!-- <GroupTitle/> -->
<!-- <LecturerList/> -->
</div>
</div>
</template> </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 = {
} <script>
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'
})
},
export default {
data() {
return {
} }
} },
</script> components: {
<style >
.mint-search { },
position: fixed; created(){
top: 0px;
z-index: 2; },
height: 66px; computed: {
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> },
created() {
},
mounted(){
},
methods: {
}
}
</script>
\ No newline at end of file
<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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册