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

add

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