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

add

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