提交 901e5603 编写于 作者: 杨广俊's avatar 杨广俊

课程优化等

上级 c5652d10
此差异已折叠。
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<img v-lazy="item.appImageUrl"/> <img v-lazy="item.appImageUrl"/>
</div> </div>
<div class="five-text"> <div class="five-text">
<div class="teacher-itemname fs14">{{item.title}}</div> <div class="teacher-itemname fs14" v-html="item.title">{{item.title}}</div>
<div class="five-tag fs11"> <div class="five-tag fs11">
<span class="m-tag">#{{item.categoryName}}</span> <span class="m-tag">#{{item.categoryName}}</span>
<span class="m-play" @click.stop="playFun(item)"> <span class="m-play" @click.stop="playFun(item)">
......
...@@ -72,7 +72,7 @@ export default { ...@@ -72,7 +72,7 @@ export default {
&-item { &-item {
position: relative; position: relative;
span { span {
margin-right: px2rem(20px); margin-right: px2rem(30px);
} }
img { img {
position: absolute; position: absolute;
......
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
</div> </div>
<div class="tea-txt"> <div class="tea-txt">
<!-- <div class="tea-name">{{item.doctorName}}</div> --> <!-- <div class="tea-name">{{item.doctorName}}</div> -->
<div class="tea-position"> <div class="tea-position" v-html="item.headerName">
{{item.headerName}} <!-- {{item.headerName}} -->
</div> </div>
</div> </div>
</div> </div>
......
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
<span>{{title}}</span> <span>{{title}}</span>
</section> </section>
<section class="history-labels-item" @click="hotLabel(item.resourceType, item.structureId, item.resourceUrl, item.labelName, item)" v-for="(item, index) in allLabels" :key="index"> <!-- <section class="history-labels-item" @click="hotLabel(item.resourceType, item.structureId, item.resourceUrl, item.labelName, item)" v-for="(item, index) in allLabels" :key="index"> -->
<section class="history-labels-item" @click="gotoPage(item)" v-for="(item, index) in allLabels" :key="index">
<span class="history-labels-item-name">{{item.keyword}}</span> <span class="history-labels-item-name">{{item.keyword}}</span>
</section> </section>
</article> </article>
...@@ -31,6 +32,39 @@ export default { ...@@ -31,6 +32,39 @@ export default {
this.getData() this.getData()
}, },
methods: { methods: {
gotoPage(itemData){
console.log('itemData', itemData)
// 如果没有跳转信息,则直接到搜索结果页面
if(!itemData.appModuleInfo){
this.searchAction(itemData.keyword)
return
}
let paramList = this.setEventByModuleCode(itemData);
if(paramList !== 'NO') {
rocNative.dispatchEventByModuleCode({
modeCode: itemData.appModuleInfo.code,
jsonString: paramList
})
}
this.pageBurialPoin({
menuLevel: 1,
menuCode: 'm_home',
functionCode: 'f_module',
actionCode: 'c_module',
labelId: itemData.id,
labelValue: itemData.keyword,
})
},
searchAction(searchText) {
if(this.showDelete) return
this.$router.push({
path: '/result',
query: {
searchText: searchText
}
})
},
// ...mapMutations([ // ...mapMutations([
// 'SET_CLEAR_VUEX' // 'SET_CLEAR_VUEX'
// ]), // ]),
......
...@@ -23,6 +23,10 @@ Vue.use(VueLazyload, { ...@@ -23,6 +23,10 @@ Vue.use(VueLazyload, {
// lazyComponent: true // lazyComponent: true
}) })
Vue.filter('filterName2', function (item) {
return '222'
})
// 可调试 // 可调试
Vue.config.devtools = true; Vue.config.devtools = true;
Vue.use(Mint) Vue.use(Mint)
......
...@@ -228,7 +228,7 @@ export function jumpEvaluatPage(){ ...@@ -228,7 +228,7 @@ export function jumpEvaluatPage(){
// dev地址 // dev地址
// const baseUrl = 'http://192.168.140.14:10201/' // const baseUrl = 'http://192.168.140.14:10201/'
const baseUrl = 'http://10.177.10.110:10201/' const baseUrl = 'http://10.177.10.149:10201/'
// const baseUrl = 'http://192.168.140.14:10201/' // const baseUrl = 'http://192.168.140.14:10201/'
// 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/'
......
...@@ -100,6 +100,7 @@ module.exports = { ...@@ -100,6 +100,7 @@ module.exports = {
} }
} }
} else if (modeCode === 'M400') { } else if (modeCode === 'M400') {
debugger
let path = paramList[0]['key']; let path = paramList[0]['key'];
let v = paramList[0]['value']; let v = paramList[0]['value'];
let query = this.setRouterParm(paramList); let query = this.setRouterParm(paramList);
...@@ -107,8 +108,12 @@ module.exports = { ...@@ -107,8 +108,12 @@ module.exports = {
url:v, url:v,
query:query query:query
}] }]
this.$router.push({
path: v,
query: query
})
//alert(this.token); //alert(this.token);
return 'NO'
} }
if(typeof paramList === 'string' && !paramList){ if(typeof paramList === 'string' && !paramList){
paramList = [] paramList = []
......
...@@ -9,11 +9,11 @@ ...@@ -9,11 +9,11 @@
<section></section> <section></section>
<NoResultPage/> <NoResultPage/>
<SplitLine borderWidth="3px"/> <SplitLine borderWidth="3px"/>
<CourseAdjust v-show="adjustList.length > 0" :paraData="adjustList"/> <CourseAdjust v-show="adjustList.length > 0" :parmData="adjustList"/>
</article> </article>
<!-- 有结果页面 --> <!-- 有结果页面 -->
<article v-show="showTab1 || showTab2 || showTab3 || showTab4"> <article v-show="showTab1 || showTab2 || showTab3 || showTab4" style="position:relative;">
<div class="navbar-container" > <div class="navbar-container" >
<div class="navbar-container-item" v-show="showTab0" :class="{'bt-2': navIndex === '0'}" @click="navIndex = '0'">综合</div> <div class="navbar-container-item" v-show="showTab0" :class="{'bt-2': navIndex === '0'}" @click="navIndex = '0'">综合</div>
<div class="navbar-container-item" v-show="showTab1" :class="{'bt-2': navIndex === '1'}" @click="navIndex = '1'">课程</div> <div class="navbar-container-item" v-show="showTab1" :class="{'bt-2': navIndex === '1'}" @click="navIndex = '1'">课程</div>
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
<div class="navbar-container-item" v-show="showTab3" :class="{'bt-2': navIndex === '3'}" @click="navIndex = '3'">讲师</div> <div class="navbar-container-item" v-show="showTab3" :class="{'bt-2': navIndex === '3'}" @click="navIndex = '3'">讲师</div>
<div class="navbar-container-item" v-show="showTab4" :class="{'bt-2': navIndex === '4'}" @click="navIndex = '4'">健康漫画</div> <div class="navbar-container-item" v-show="showTab4" :class="{'bt-2': navIndex === '4'}" @click="navIndex = '4'">健康漫画</div>
</div> </div>
<div class="fixed-split-line"></div>
<div class="list-container" v-show="navIndex === '0' && showTab0"> <div class="list-container" v-show="navIndex === '0' && showTab0">
<!-- 课程 --> <!-- 课程 -->
<div v-show="showTab1"> <div v-show="showTab1">
...@@ -146,14 +147,14 @@ export default { ...@@ -146,14 +147,14 @@ export default {
} }
if(window.__isWeb) { if(window.__isWeb) {
_this.getAdjustData() _this.getAdjustData()
// _this.search() _this.search()
} }
window.__refresh = function(){ window.__refresh = function(){
_this.getUserInfo() _this.getUserInfo()
} }
}, },
mounted(){ mounted(){
// this.search(this.searchText) this.search()
// this.searchAll(this.searchText, '1', 'contentAppModels', 'contentAppModelsAll') // this.searchAll(this.searchText, '1', 'contentAppModels', 'contentAppModelsAll')
}, },
methods: { methods: {
...@@ -168,6 +169,7 @@ export default { ...@@ -168,6 +169,7 @@ export default {
para = { para = {
searchCategory: '1,2,3,4', searchCategory: '1,2,3,4',
searchValue: _this.searchText, searchValue: _this.searchText,
keywordColor: 'rgba(244,122,72,1)',
sortItem: 1, sortItem: 1,
pageNo: 1, pageNo: 1,
pageSize: 100, pageSize: 100,
...@@ -290,7 +292,7 @@ export default { ...@@ -290,7 +292,7 @@ export default {
.mint-search { .mint-search {
position: fixed; position: fixed;
top: 0px; top: 0px;
z-index: 20; z-index: 3 !important;
height: 66px; height: 66px;
width: 100%; width: 100%;
border-bottom: 1px solid #E7E7E7 !important; border-bottom: 1px solid #E7E7E7 !important;
...@@ -306,7 +308,7 @@ export default { ...@@ -306,7 +308,7 @@ export default {
display: -ms-flexbox; display: -ms-flexbox;
display: flex; display: flex;
padding: 30px 10px 8px; padding: 30px 10px 8px;
z-index: 1; z-index: 3;
} }
.mint-searchbar-cancel { .mint-searchbar-cancel {
margin-left: 10px; margin-left: 10px;
...@@ -326,32 +328,41 @@ export default { ...@@ -326,32 +328,41 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import '../style/mixin.scss'; @import '../style/mixin.scss';
.navbar-container { .navbar-container {
width: 100%;
height: px2rem(57px);
display: flex; display: flex;
position: fixed; position: fixed;
top: px2rem(60px); top: px2rem(60px);
left: 0; left: 0;
z-index: 2; z-index: 2;
flex-direction: row; flex-direction: row;
border-bottom: 1px solid #E7E7E7; // border-bottom: 1px solid #E7E7E7;
background: #fff; background: #fff;
padding-top: 10px; // margin-top: 10px;
margin-bottom: 6px; margin-bottom: 6px;
&-item { &-item {
display: inline-flex; display: inline-flex;
margin: px2rem(15px) px2rem(15px) px2rem(-1px); margin: px2rem(25px) px2rem(15px) px2rem(-1px);
padding-bottom: px2rem(11px); padding-bottom: px2rem(11px);
font-size: px2rem(14px); font-size: px2rem(14px);
color: #666; color: #666;
} }
.bt-2 { .bt-2 {
color: #449284; color: #449284;
border-bottom: px2rem(3px) solid #449284; border-bottom: px2rem(2px) solid #449284;
} }
} }
.list-container { .list-container {
margin: 0; margin: 0;
padding-top: px2rem(120px); padding-top: px2rem(120px);
} }
.fixed-split-line {
position: fixed;
width: 100%;
top: 117px;
z-index: 1;
border-bottom: 1px solid #e7e7e7;
}
.mt-80 { .mt-80 {
padding-top: px2rem(80px); padding-top: px2rem(80px);
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册