提交 1570730b 编写于 作者: gjyang's avatar gjyang

Merge branch 'dev-app-home-1029' into Branch_tag-app

...@@ -60,8 +60,8 @@ export default { ...@@ -60,8 +60,8 @@ export default {
isShowLoading:true, isShowLoading:true,
menuHeight:0, menuHeight:0,
ptop:20, ptop:20,
popHeight:27, popHeight:0,
menuptop:45, menuptop:0,
} }
}, },
props:{ props:{
...@@ -101,14 +101,14 @@ export default { ...@@ -101,14 +101,14 @@ export default {
window.__getStatusBarHeight = function(parm){ window.__getStatusBarHeight = function(parm){
if(window.__isAndroid){ if(window.__isAndroid){
_this.popHeight = parm.statusBarHeight/2 _this.popHeight = parseInt(parm.statusBarHeight)/2
}else{ }else{
_this.popHeight = parm.statusBarHeight _this.popHeight = parm.statusBarHeight
} }
_this.ptop = _this.popHeight+7+'px'; _this.ptop = _this.popHeight+'px';
_this.menuptop = _this.popHeight+7+36+'px' _this.menuptop = _this.popHeight+36+'px'
// alert(parm.statusBarHeight+'kkkkk'); ///alert(_this.menuptop);
} }
this.getStatusHight() this.getStatusHight()
...@@ -361,12 +361,13 @@ export default { ...@@ -361,12 +361,13 @@ export default {
z-index: 112; z-index: 112;
.font-title{ .font-title{
background: #fff; background: #44A99B;
padding:0 px2rem(15px); padding:0 px2rem(15px);
color:#fff;
} }
} }
.bgFill{ .bgFill{
background: #ddd background: #44A99B;
} }
} }
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<div class="tea-listbox"> <div class="tea-listbox">
<div class="tea-item" :key="index" v-for="(item,index) in parmData" @click="goToPage(item)"> <div class="tea-item" :key="index" v-for="(item,index) in parmData" @click="goToPage(item)">
<div class="head-pic"> <div class="head-pic">
<img class="tea-itemimg" :src="item.appImageUrl"/> <img class="tea-itemimg" :src="item.avatarImageUrl"/>
</div> </div>
<span class="tea-itemname">{{item.name}}</span> <span class="tea-itemname">{{item.name}}</span>
</div> </div>
......
...@@ -144,9 +144,9 @@ html,body{ ...@@ -144,9 +144,9 @@ html,body{
z-index: 2; z-index: 2;
} }
.banner-item{ .banner-item{
width: px2rem(50px); width: px2rem(60px);
display: inline-block; display: inline-block;
margin-right: px2rem(18px); margin-right: px2rem(15px);
text-align: center; text-align: center;
} }
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<div class="bgFill" :style="{height:ptop}"></div> <div class="bgFill" :style="{height:ptop}"></div>
<div class="fixBox"> <div class="fixBox">
<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/msg1.png'>
<img v-else class="info" src='../../images/msg1.png'> <img v-else class="info" src='../../images/msg1.png'>
<div :class="isMax?'num-max':'num-min'" class="info-count fs10" v-show="msgCount>0">{{msgCount>99?'99+':msgCount}}</div> <div :class="isMax?'num-max':'num-min'" class="info-count fs10" v-show="msgCount>0">{{msgCount>99?'99+':msgCount}}</div>
</div> </div>
...@@ -59,15 +59,15 @@ export default { ...@@ -59,15 +59,15 @@ export default {
created(){ created(){
let _this = this; let _this = this;
window.__getStatusBarHeight = function(parm){ window.__getStatusBarHeight = function(parm){
//lert(parm.statusBarHeight)
if(window.__isAndroid){ if(window.__isAndroid){
_this.popHeight = parm.statusBarHeight/2 _this.popHeight = parseInt(parm.statusBarHeight)/2.5
}else{ }else{
_this.popHeight = parm.statusBarHeight _this.popHeight = parm.statusBarHeight
} }
_this.ptop = _this.popHeight+7+'px'; _this.ptop = _this.popHeight+'px';
_this.menuptop = _this.popHeight+7+'px' _this.menuptop = _this.popHeight+'px'
// alert(parm.statusBarHeight); // alert(parm.statusBarHeight);
} }
...@@ -145,7 +145,7 @@ html,body{ ...@@ -145,7 +145,7 @@ html,body{
width: px2rem(20px); width: px2rem(20px);
height: px2rem(20px); height: px2rem(20px);
position: relative; position: relative;
margin:px2rem(5px) 0; margin-top:px2rem(5px);
float: right; float: right;
img{ img{
width: 100%; width: 100%;
...@@ -183,14 +183,14 @@ html,body{ ...@@ -183,14 +183,14 @@ html,body{
} }
.fixBox{ .fixBox{
background: #fff; background: #44A99B;
height:px2rem(40px); height:px2rem(30px);
padding:0 px2rem(25px); padding:0 px2rem(25px);
padding-top: px2rem(7px) /* padding-top: px2rem(7px)*/
} }
.bgFill{ .bgFill{
background: #ddd; background: #44A99B;
} }
.search-transparent::-webkit-input-placeholder{ .search-transparent::-webkit-input-placeholder{
color:#666; color:#666;
...@@ -205,8 +205,8 @@ html,body{ ...@@ -205,8 +205,8 @@ html,body{
} }
.fixBox{ .fixBox{
padding:0 px2rem(25px); padding:0 px2rem(25px);
height: px2rem(40px); height: px2rem(30px);
padding-top: px2rem(7px) /* padding-top: px2rem(7px)*/
} }
.search-menu{ .search-menu{
......
...@@ -138,6 +138,13 @@ export default { ...@@ -138,6 +138,13 @@ export default {
updateStr:'', updateStr:'',
isRefreshFromBack:false, isRefreshFromBack:false,
isRefrshMsg:false, isRefrshMsg:false,
isFailSwiper:1,
isFailCatagory1:false,
isFailCatagory2:false,
isFailCatagory3:false,
isFailTeaches:false,
isFailFive:false,
} }
}, },
components:{ components:{
...@@ -175,15 +182,11 @@ export default { ...@@ -175,15 +182,11 @@ export default {
} }
window.__refresh = function(params){ window.__refresh = function(params){
//__getToken() _this.isShowEvluat = false;
// alert('__refresh'); _this.isIntStyle = '';
//alert(JSON.stringify(params))
//返回 //返回
if(_this.isRefreshFromBack){ if(_this.isRefreshFromBack){
//alert("返回了,token:"+_this.userToken);
// _this.adjustList = [];
// _this.newsDatalist = [];
_this.getAdjustData(_this.userToken); _this.getAdjustData(_this.userToken);
_this.getNewsData(_this.userToken); _this.getNewsData(_this.userToken);
} else if(_this.isShowEvluat && !_this.isRefreshFromBack){ } else if(_this.isShowEvluat && !_this.isRefreshFromBack){
...@@ -230,13 +233,13 @@ export default { ...@@ -230,13 +233,13 @@ export default {
// _this.token = 'BE1D60CAE8F24649B4F72D47E964A58B'; // _this.token = 'BE1D60CAE8F24649B4F72D47E964A58B';
// _this.msgCount = '2' // _this.msgCount = '2'
// _this.isShowKeep = true; // _this.isShowKeep = true;
// _this.isHeightFromApp = true; // _this.isHeightFromApp = true;
// _this.getKeepData(_this.userToken); // _this.getKeepData(_this.userToken);
// _this.initByToken(_this.token); // _this.initByToken(_this.token);
// _this.getIconData(_this.token); // _this.getIconData(_this.token);
// _this.isIntStyle = 'font-style pull-down'; // _this.isIntStyle = 'font-style pull-down';
// _this.fiveTimePull(); // _this.fiveTimePull();
...@@ -273,6 +276,30 @@ export default { ...@@ -273,6 +276,30 @@ export default {
methods:{ methods:{
//再次执行请求
sendAgain(){
let _this = this;
if(_this.isFailSwiper == 2){
_this.getSwiper()
}
if(_this.isFailCatagory1){
_this.getIconData();
}
if(_this.isFailCatagory2){
_this.this.getMiddel();
}
if(_this.isFailCatagory3){
_this.this.getCategoryData();
}
if(_this.isFailTeaches){
_this.getYqDoctorData();
}
if(_this.isFailFive){
_this.getFiveData();
}
},
goAppMsg(){ goAppMsg(){
this.isRefrshMsg = true; this.isRefrshMsg = true;
...@@ -318,7 +345,7 @@ export default { ...@@ -318,7 +345,7 @@ export default {
initAll(){ initAll(){
this.getSwiper() this.getSwiper()
this.getUpdateData(); /// this.getUpdateData();
this.getMiddel(); this.getMiddel();
this.getIconData(); this.getIconData();
this.getCategoryData(); this.getCategoryData();
...@@ -400,16 +427,17 @@ export default { ...@@ -400,16 +427,17 @@ export default {
}else{ }else{
_this.isShowEvluat = _this.evaluctObj.showFlag; _this.isShowEvluat = _this.evaluctObj.showFlag;
if(!_this.isShowEvluat){
_this.isIntStyle = ''
}else{
_this.fiveTimePull();
_this.isIntStyle = 'font-style pull-down'
}
} }
}else{
// alert(res.message);
// rocNative.showNativeToast({
// message: res.message
// })
} }
if(!_this.isShowEvluat){ if(!_this.isShowEvluat){
...@@ -435,11 +463,10 @@ export default { ...@@ -435,11 +463,10 @@ export default {
} }
this.GET('contents/HomeColumn/Information', para).then(res => { this.GET('contents/HomeColumn/Information', para).then(res => {
if(res.code == '000000'){ if(res.code == '000000'){
//alert("000");
_this.iconList = res.data && res.data.iconColumnInformationModels || [] _this.iconList = res.data && res.data.iconColumnInformationModels || []
//alert(_this.userToken);
//_this.userToken = userToken
} }
}) })
}, },
...@@ -459,6 +486,7 @@ export default { ...@@ -459,6 +486,7 @@ export default {
/// console.log(_this.list); /// console.log(_this.list);
} }
}) })
}, },
...@@ -502,6 +530,7 @@ export default { ...@@ -502,6 +530,7 @@ export default {
if(res.code == '000000'){ if(res.code == '000000'){
_this.yqDoctorList = res.data && res.data.pCourseDoctorModels || [] _this.yqDoctorList = res.data && res.data.pCourseDoctorModels || []
} }
}) })
}, },
...@@ -547,6 +576,7 @@ export default { ...@@ -547,6 +576,7 @@ export default {
_this.fiveList = _this.handelFive(res.fiveMinutesMedicalContentList) || [] _this.fiveList = _this.handelFive(res.fiveMinutesMedicalContentList) || []
} }
}) })
}, },
...@@ -601,14 +631,14 @@ export default { ...@@ -601,14 +631,14 @@ 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 || 0 // _this.updateTotal = res.data.courseCount + res.data.fiveHospCount || 0
if(_this.updateTotal > 0){ // if(_this.updateTotal > 0){
_this.showNewCorse = true; // _this.showNewCorse = true;
_this.updateStr = _this.updateTotal>9 ? '9+' : _this.updateTotal // _this.updateStr = _this.updateTotal>9 ? '9+' : _this.updateTotal
}else{ // }else{
_this.showNewCorse = false // _this.showNewCorse = false
} // }
} }
} }
...@@ -711,6 +741,7 @@ export default { ...@@ -711,6 +741,7 @@ export default {
let setTimer = setInterval(function(){ let setTimer = setInterval(function(){
_this.isIntStyle = 'font-style pull-up'; _this.isIntStyle = 'font-style pull-up';
_this.isShowEvluat = false; _this.isShowEvluat = false;
///alert("0")
clearInterval(setTimer) clearInterval(setTimer)
},5000); },5000);
...@@ -744,9 +775,17 @@ export default { ...@@ -744,9 +775,17 @@ export default {
this.GET('/contents/HomeColumn/Information', para).then(res => { this.GET('/contents/HomeColumn/Information', para).then(res => {
if(res.code == '000000'){ if(res.code == '000000'){
_this.listSwiper = res.data.iconColumnInformationModels || [] _this.listSwiper = res.data.iconColumnInformationModels || [];
_this.swiperFun(); _this.swiperFun();
} }
if( _this.listSwiper.length == 0){
_this.isFailSwiper += 1;
}
_this.isFailSwiper = _this.listSwiper.length == 0 ? 2 : 1 ;
}) })
}, },
...@@ -765,6 +804,7 @@ export default { ...@@ -765,6 +804,7 @@ export default {
// console.log(res); // console.log(res);
_this.listMiddle = res.data && res.data.iconColumnInformationModels || [] _this.listMiddle = res.data && res.data.iconColumnInformationModels || []
} }
_this.isFailCatagory2 = _this.listMiddle.length == 0 ? true : false;
}) })
}, },
...@@ -826,20 +866,20 @@ export default { ...@@ -826,20 +866,20 @@ export default {
} }
.banner-container.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet{ .banner-container.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet{
width: 2px; width: 2px;
height: 8px; height: 7px;
background: #fff; background: #fff;
margin:6px 0 0 0; margin:6px 0 0 0;
float: left; float: left;
opacity: 0.4; opacity: 0.4;
} }
.banner-container .swiper-pagination-bullet-active{ .banner-container.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet-active{
opacity: 1 opacity: 1
} }
.banner-pagination{ .banner-pagination{
width: 2px; width: 2px;
background: #fff; z-index: 100;
right: 10px; right: 10px;
top:10px; top:10px;
position: absolute; position: absolute;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册