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

add

上级 f3ae885d
...@@ -108,7 +108,7 @@ export default { ...@@ -108,7 +108,7 @@ export default {
} }
.teacher-item{ .teacher-item{
width: 100%; width: 100%;
height: px2rem(190px); /* height: px2rem(190px);*/
.category-left{ .category-left{
width: px2rem(170px); width: px2rem(170px);
height: px2rem(195px); height: px2rem(195px);
...@@ -137,9 +137,9 @@ export default { ...@@ -137,9 +137,9 @@ export default {
} }
.holder-img{ .holder-img{
margin-top:px2rem(15px); margin-top:px2rem(5px);
width: 100%; width: 100%;
height: px2rem(252px); height: px2rem(126px);
border-radius: px2rem(3px); border-radius: px2rem(3px);
img{ img{
border-radius: px2rem(3px); border-radius: px2rem(3px);
......
...@@ -150,7 +150,7 @@ export default { ...@@ -150,7 +150,7 @@ export default {
parm = { parm = {
pageNo: 1, pageNo: 1,
token: _this.userToken, token: _this.userToken,
pageSize: 10, pageSize: 3,
data:{ data:{
setEntry: 'headers' setEntry: 'headers'
} }
......
<template> <template>
<div :class="searchFix?'header fixed' : 'header' " id="search-top" :style="{height:menuptop}"> <div :class="searchFix?'header fixed' : 'header' " id="search-top" :style="{height:menuptop}">
<div class="search-menu" :style="{paddingTop:ptop}"> <div class="search-menu" :style="{paddingTop:ptop}">
<div :class="isTransparent?'search-transparent':'bgWhite'" class="search"> <!-- <div :class="isTransparent?'search-transparent':'bgWhite'" class="search">
<input type="search" :class="isTransparent?'search-transparent':''" class="input" v-model="searchVal" :placeholder="placeholder" :disabled="disabled" /> <input type="search" :class="isTransparent?'search-transparent':''" class="input" v-model="searchVal" :placeholder="placeholder" :disabled="disabled" />
<img v-if="searchFix" class="search-img" src='../../images/search-grey.png'> <img v-if="searchFix" class="search-img" src='../../images/search-grey.png'>
<img v-else class="search-img" src='../../images/search-white.png'> <img v-else class="search-img" src='../../images/search-white.png'>
</div> </div> -->
<div class="header-right" @click="goToPage"> <div class="header-right" @click="goToPage">
<img v-if="searchFix" class="info" src='../../images/msg2.png'> <img v-if="searchFix" class="info" src='../../images/msg2.png'>
<img e-else class="info" src='../../images/msg1.png'> <img e-else class="info" src='../../images/msg1.png'>
......
<template> <template>
<div class="keep-learn"> <div class="keep-learn">
<div v-show="isShow" class="border-bottom space-between keep-learnbox"> <div v-show="isShow" class="border-bottom keep-learnbox">
<div class="learning-txt"> <div class="learning-txt">
<div class="gray keepon-title">{{parmObj.name}}</div> <div class="gray keepon-title">{{parmObj.name || '糖尿病诊疗'}}</div>
<div> <div class="keepon-txt">
<span class="gray fs24 keepon-right">已学习:{{parmObj.day}}</span> <span class="gray fs24 keepon-right">已学习:{{parmObj.day}}</span>
<span class="gray fs24 keepon-right">剩余:{{parmObj.remanentCourseNum}}%</span> <span class="gray fs24 keepon-right">剩余:{{parmObj.remanentCourseNum}}%</span>
<span class="gray fs24 continue-study" @click="continueStudy(parmObj)">继续学习></span> <span class="gray fs24 continue-study" @click="continueStudy(parmObj)">继续学习></span>
...@@ -32,9 +32,15 @@ export default { ...@@ -32,9 +32,15 @@ export default {
userMobile:{ userMobile:{
default:'', default:'',
type:String type:String
},
userToken:{
type:String,
default:''
} }
}, },
mounted(){ mounted(){
if(this.userMobile != ''){ if(this.userMobile != ''){
this.getData(); this.getData();
}else{ }else{
...@@ -99,7 +105,7 @@ export default { ...@@ -99,7 +105,7 @@ export default {
let _this = this, let _this = this,
parm = { parm = {
token:_this.token, token:_this.userToken,
setEntry: 'headers' setEntry: 'headers'
} }
_this.GET('contents/courses/continueLearningCourse',parm).then(function(res){ _this.GET('contents/courses/continueLearningCourse',parm).then(function(res){
...@@ -139,6 +145,16 @@ export default { ...@@ -139,6 +145,16 @@ export default {
} }
.keepon-title{ .keepon-title{
font-size: px2rem(14px); font-size: px2rem(14px);
color:#666;
line-height: px2rem(19px);
}
.keepon-txt{
margin-top:px2rem(5px);
line-height: px2rem(17px);
height: px2rem(17px);
span{
float: left;
}
} }
.continue-study{ .continue-study{
color: RGBA(31, 121, 115, 1); color: RGBA(31, 121, 115, 1);
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="top-evaluat" v-if="isShow"> <div class="top-evaluat" v-if="isShow">
<div class="evaluat-info"> <div class="evaluat-info">
<span class="evaluat-icon"> <span class="evaluat-icon">
<img src='../../images/552064153@2x.png'/> <img :src='parmObj.avatarImageUrl'/>
</span> </span>
<span class="evaluat-persent">您的学习速度战胜了本院内{{setStyle(parmObj.gradePKToHospital)}}%的医生</span> <span class="evaluat-persent">您的学习速度战胜了本院内{{setStyle(parmObj.gradePKToHospital)}}%的医生</span>
</div> </div>
...@@ -171,7 +171,7 @@ export default { ...@@ -171,7 +171,7 @@ export default {
img{ img{
margin-top:px2rem(3px); margin-top:px2rem(3px);
height: px2rem(23px); height: px2rem(23px);
width: px2rem(26px); width: px2rem(23px);
display: inline-block; display: inline-block;
border-radius: 50%; border-radius: 50%;
} }
......
...@@ -36,7 +36,7 @@ export default { ...@@ -36,7 +36,7 @@ export default {
list: [], list: [],
title:'最新课程', title:'最新课程',
pageNo:1, pageNo:1,
pageSize:10, pageSize:6,
} }
}, },
mounted(){ mounted(){
...@@ -205,7 +205,7 @@ export default { ...@@ -205,7 +205,7 @@ export default {
margin-top: px2rem(5px); margin-top: px2rem(5px);
font-size: px2rem(14px); font-size: px2rem(14px);
line-height: px2rem(19px); line-height: px2rem(19px);
height: px2rem(38px); max-height: px2rem(38px);
color: #333; color: #333;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
......
...@@ -13,6 +13,9 @@ ...@@ -13,6 +13,9 @@
if(t == '__nativeCallMsg'){ if(t == '__nativeCallMsg'){
__nativeCallMsg(n) __nativeCallMsg(n)
} }
if(t == '__refresh'){
__refresh(n)
}
if(t == '__getUserInfo'){ if(t == '__getUserInfo'){
__getUserInfo(n); __getUserInfo(n);
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<YqyHomeHeader :msgCount="msgCount" :searchFix="searchFix" :statusBarHeight="statusBarHeight"/> <YqyHomeHeader :msgCount="msgCount" :searchFix="searchFix" :statusBarHeight="statusBarHeight"/>
</div> </div>
<div class="swiper"> <div class="swiper">
<mt-swipe :auto="0" :speed="speedSwiper"> <mt-swipe :auto="3000" :speed="speedSwiper">
<mt-swipe-item v-for="(item,index) in listSwiper" :key="index" > <mt-swipe-item v-for="(item,index) in listSwiper" :key="index" >
<img :src="item.picturePath" @click="goLinkByswiper(item)"/> <img :src="item.picturePath" @click="goLinkByswiper(item)"/>
</mt-swipe-item> </mt-swipe-item>
...@@ -127,19 +127,26 @@ export default { ...@@ -127,19 +127,26 @@ export default {
window.__nativeCallMsg = function(params){ window.__nativeCallMsg = function(params){
_this.msgCount = params.msgNum || ''; _this.msgCount = params.msgNum || '';
} }
window.__refresh = function(params){
_this.init()
}
window.__getUserInfo = function(parm){
window.__getUserInfo = function(parm){
//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;
_this.getSwiper(_this.appVersion,_this.systemType); _this.getSwiper(_this.appVersion,_this.systemType);
_this.init()
} }
//_this.token = 'AF22B142535B440883135309BBF3F3B0' // _this.token = 'AA093EC1A2084B17B098515F2A04A6';
// _this.init()
this.getUserInfo(); this.getUserInfo();
window.__getStatusBarHeight = function(parm){ window.__getStatusBarHeight = function(parm){
...@@ -159,20 +166,7 @@ export default { ...@@ -159,20 +166,7 @@ export default {
}, },
mounted(){ mounted(){
//alert(this.token);
if(this.token != null ){
this.getStatusHight();
this.getUpdateData();
this.getMiddel();
// if(!!this.systemType && !!this.appVersion){
// this.getSwiper();
// }
window.addEventListener('scroll', this.scrollFun);
}
//this.getSwiper();
}, },
beforeDestroyed(){ beforeDestroyed(){
...@@ -200,6 +194,20 @@ export default { ...@@ -200,6 +194,20 @@ export default {
methods:{ methods:{
init(){
if(this.token != null ){
this.getStatusHight();
this.getUpdateData();
this.getMiddel();
// if(!!this.systemType && !!this.appVersion){
// this.getSwiper();
// }
window.addEventListener('scroll', this.scrollFun);
}
},
//获取状态栏高度 //获取状态栏高度
getStatusHight(){ getStatusHight(){
rocNative.getStatusBarHeight({ rocNative.getStatusBarHeight({
...@@ -272,8 +280,20 @@ export default { ...@@ -272,8 +280,20 @@ export default {
this.GET('contents/courses/queryCourseCount', para).then(res => { this.GET('contents/courses/queryCourseCount', para).then(res => {
if(res.code == '000000'){ if(res.code == '000000'){
if(res.data != null){ if(res.data != null){
_this.updateTotal = res.data.courseCount + res.data.fiveHospCount;
_this.showNewCorse = _this.updateTotal > 0 ? true : false if(res.data.courseCount + res.data.fiveHospCount > 0){
_this.showNewCorse = true;
if((res.data.courseCount + res.data.fiveHospCount)>9){
//_this.showNewCorse = _this.updateTotal > 0 ? true : false
_this.updateTotal = '9+';
}
}else{
_this.showNewCorse = false
}
} }
} }
...@@ -411,6 +431,7 @@ export default { ...@@ -411,6 +431,7 @@ export default {
setEntry: 'headers', setEntry: 'headers',
token:_this.token token:_this.token
} }
this.GET('contents/HomeColumn/Information', para).then(res => { this.GET('contents/HomeColumn/Information', para).then(res => {
if(res.code == '000000'){ if(res.code == '000000'){
// console.log(res); // console.log(res);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册