提交 4fb17476 编写于 作者: chendeli's avatar chendeli

add

上级 b0ceb7a8
...@@ -75,9 +75,10 @@ export default { ...@@ -75,9 +75,10 @@ export default {
}, },
}, },
mounted(){ mounted(){
///alert(this.statusBarHeight);
this.list = this.parmData; this.list = this.parmData;
this.menuHeight = this.statusBarHeight + 7 + 40 + "px"; this.menuHeight = this.statusBarHeight + 7 + 40 + "px";
this.ptop = this.statusBarHeight +7 + "px"; this.ptop = this.statusBarHeight + "px";
// this.getData(); // this.getData();
}, },
...@@ -252,7 +253,7 @@ export default { ...@@ -252,7 +253,7 @@ export default {
.cource-header{ .cource-header{
/* margin: 0 0 px2rem(11px) 0;*/ /* margin: 0 0 px2rem(11px) 0;*/
overflow: hidden; overflow: hidden;
.font-title{ .font-title{
line-height: px2rem(40px); line-height: px2rem(40px);
height: px2rem(40px); height: px2rem(40px);
......
...@@ -52,21 +52,30 @@ export default { ...@@ -52,21 +52,30 @@ export default {
goToPage(item,parm){ goToPage(item,parm){
console.log(item); console.log(item);
let _this = this; let _this = this;
let url = location.host+'/#/'
if(parm == 'list'){ if(parm == 'list'){
this.$router.push({
path: '/teachers', rocNative.gotoNewWebActivity({
query:{ url: 'http://10.177.10.231:8000/#/teachers'
userToken:_this.userToken
}
}) })
// this.$router.push({
// path: '/teachers',
// query:{
// userToken:_this.userToken
// }
// })
}else{ }else{
this.$router.push({ rocNative.gotoNewWebActivity({
path: '/teachersDetail', url: 'http://10.177.10.231:8000/#/teachersDetail?id='+item.id
query:{
id:item.id,
userToken:_this.userToken
}
}) })
// this.$router.push({
// path: '/teachersDetail',
// query:{
// id:item.id,
// userToken:_this.userToken
// }
// })
} }
// let obj = {} // let obj = {}
......
...@@ -46,7 +46,7 @@ export default { ...@@ -46,7 +46,7 @@ export default {
}, },
mounted(){ mounted(){
// console.log(this.msgCount);
this.count = this.msgCount; this.count = this.msgCount;
this.ptop = this.statusBarHeight+7+'px'; this.ptop = this.statusBarHeight+7+'px';
this.menuptop = this.statusBarHeight+7+43+'px' this.menuptop = this.statusBarHeight+7+43+'px'
......
...@@ -119,6 +119,15 @@ export default { ...@@ -119,6 +119,15 @@ export default {
}else{ }else{
_this.isShow = _this.parmObj.showFlag; _this.isShow = _this.parmObj.showFlag;
if(!_this.isShow){
rocNative.setTabMiniIcon({
tabIndex:3,
iconTitle:'学习评价',
iconColor:'',
isSet:true
})
}
let isPullIndex = _this.isShow ? '1' : '2'; let isPullIndex = _this.isShow ? '1' : '2';
_this.$emit('evluatFun',{isPull:isPullIndex}); _this.$emit('evluatFun',{isPull:isPullIndex});
} }
......
<template> <template>
<div class="teach-top"> <div class="teach-top">
<span class="back" @click="goBack"> <span class="back" @click="backPre">
<img src="../../images/left-icon.png"> <img src="../../images/left-icon.png">
</span> </span>
<div class="tc title">{{parmObj}}</div> <div class="tc title">{{parmObj}}</div>
...@@ -40,8 +40,10 @@ export default { ...@@ -40,8 +40,10 @@ export default {
}, },
methods: { methods: {
goBack(){ backPre(){
this.$router.back(-1); alert("999");
rocNative.goBack()
// this.$router.back(-1);
}, },
} }
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<section class="home-header"> <section class="home-header">
<div class="home-topMenu"> <div class="home-topMenu">
<YqyHomeHeader :msgCount="msgCount" :searchFix="searchFix" :statusBarHeight="statusBarHeight"/> <YqyHomeHeader :msgCount="msgCount" :searchFix="searchFix" :statusBarHeight="statusBarHeight" v-if="isHeightFromApp"/>
</div> </div>
<div class="swiper"> <div class="swiper">
<mt-swipe :auto="0" :speed="speedSwiper"> <mt-swipe :auto="0" :speed="speedSwiper">
...@@ -112,6 +112,7 @@ export default { ...@@ -112,6 +112,7 @@ export default {
statusBarHeight:20, statusBarHeight:20,
userMobile:'', userMobile:'',
userToken:'', userToken:'',
isHeightFromApp:false,
} }
}, },
components:{ components:{
...@@ -132,50 +133,57 @@ export default { ...@@ -132,50 +133,57 @@ export default {
}, },
created () { created () {
let _this = this; let _this = this;
window.__nativeCallMsg = function(params){ window.__nativeCallMsg = function(params){
_this.msgCount = params.msgNum || ''; _this.msgCount = params.msgNum || '';
} }
window.__refresh = function(params){ window.__refresh = function(params){
_this.fiveTimePull(); // _this.fiveTimePull();
_this.initByToken() _this.initByToken()
} }
window.__getStatusBarHeight = function(parm){ window.__getStatusBarHeight = function(parm){
alert(parm.statusBarHeight);
_this.statusBarHeight = parm.statusBarHeight _this.statusBarHeight = parm.statusBarHeight;
_this.isHeightFromApp = true;
// alert(_this.statusBarHeight);
} }
window.__getUserInfo = function(parm){ window.__getUserInfo = function(parm){
// alert(parm.userToken); alert(parm.userToken);
_this.systemType = parm.systemType; _this.systemType = parm.systemType;
_this.appVersion = parm.appVersion; _this.appVersion = parm.appVersion;
_this.token = parm.userToken; // _this.token = parm.userToken;
_this.userToken = parm.userToken; _this.userToken = parm.userToken;
_this.userMobile = parm.userMobile; _this.userMobile = parm.userMobile;
if(parm.userMobile != ''){ if(parm.userMobile != ''){
_this.getKeepData(); _this.getKeepData();
} }
_this.initByToken(); _this.initByToken();
_this.getSwiper(_this.appVersion,_this.systemType); _this.getSwiper(_this.appVersion,_this.systemType);
} }
_this.initAll() _this.initAll()
// _this.token = '63C3FA92AF8A45A48B31EB7FD97B95EB'; // _this.token = '63C3FA92AF8A45A48B31EB7FD97B95EB';
// _this.isHeightFromApp = true;
// _this.initByToken(); // _this.initByToken();
_this.getUserInfo(); _this.getUserInfo();
_this.getStatusHight(); _this.getStatusHight();
}, },
mounted(){ mounted(){
console.log(this.isShowEvluat); //console.log(this.isShowEvluat);
}, },
beforeDestroyed(){ beforeDestroyed(){
...@@ -202,8 +210,10 @@ export default { ...@@ -202,8 +210,10 @@ export default {
initByToken(){ initByToken(){
//alert("0999");
this.getAdjustData(); this.getAdjustData();
this.getNewsData(); this.getNewsData();
//alert("加入学");
this.getEvaluctData(); this.getEvaluctData();
window.addEventListener('scroll', this.scrollFun); window.addEventListener('scroll', this.scrollFun);
}, },
...@@ -422,6 +432,7 @@ export default { ...@@ -422,6 +432,7 @@ export default {
//为您推荐 //为您推荐
getAdjustData(){ getAdjustData(){
let _this = this, let _this = this,
parm = { parm = {
pageNo:1, pageNo:1,
...@@ -533,6 +544,7 @@ export default { ...@@ -533,6 +544,7 @@ export default {
} }
if(scrollTop+30 >= adjustTop){ if(scrollTop+30 >= adjustTop){
this.isFixed = true; this.isFixed = true;
this.searchFix = false;
}else{ }else{
this.isFixed = false; this.isFixed = false;
} }
......
...@@ -55,8 +55,7 @@ export default { ...@@ -55,8 +55,7 @@ export default {
this.$router.push({ this.$router.push({
path: '/teachersDetail', path: '/teachersDetail',
query:{ query:{
id:id, id:id
userToken:_this.$route.query.userToken
} }
}) })
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册