Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
1570730b
提交
1570730b
编写于
11月 19, 2018
作者:
gjyang
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev-app-home-1029' into Branch_tag-app
上级
310d1633
014cfc7b
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
94 行增加
和
53 行删除
+94
-53
yqy-adjust.vue
src/components/business-new/yqy-adjust.vue
+9
-8
yqy-home-adv.vue
src/components/business-new/yqy-home-adv.vue
+1
-1
yqy-home-banner.vue
src/components/business-new/yqy-home-banner.vue
+2
-2
yqy-home-header.vue
src/components/business-new/yqy-home-header.vue
+12
-12
home-new.vue
src/views/home/home-new.vue
+70
-30
未找到文件。
src/components/business-new/yqy-adjust.vue
浏览文件 @
1570730b
...
@@ -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
=
par
m
.
statusBarHeight
/
2
_this
.
popHeight
=
par
seInt
(
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
;
}
}
}
}
...
...
src/components/business-new/yqy-home-adv.vue
浏览文件 @
1570730b
...
@@ -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.a
pp
ImageUrl"
/>
<img
class=
"tea-itemimg"
:src=
"item.a
vatar
ImageUrl"
/>
</div>
</div>
<span
class=
"tea-itemname"
>
{{
item
.
name
}}
</span>
<span
class=
"tea-itemname"
>
{{
item
.
name
}}
</span>
</div>
</div>
...
...
src/components/business-new/yqy-home-banner.vue
浏览文件 @
1570730b
...
@@ -144,9 +144,9 @@ html,body{
...
@@ -144,9 +144,9 @@ html,body{
z-index
:
2
;
z-index
:
2
;
}
}
.banner-item
{
.banner-item
{
width
:
px2rem
(
5
0px
);
width
:
px2rem
(
6
0px
);
display
:
inline-block
;
display
:
inline-block
;
margin-right
:
px2rem
(
1
8
px
);
margin-right
:
px2rem
(
1
5
px
);
text-align
:
center
;
text-align
:
center
;
}
}
...
...
src/components/business-new/yqy-home-header.vue
浏览文件 @
1570730b
...
@@ -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/msg
2
.png'
>
<img
v-if=
"searchFix"
class=
"info"
src=
'../../images/msg
1
.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
=
par
m
.
statusBarHeight
/
2
_this
.
popHeight
=
par
seInt
(
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
(
4
0px
)
;
height
:px2rem
(
3
0px
)
;
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
(
4
0px
);
height
:
px2rem
(
3
0px
);
padding-top
:
px2rem
(
7px
)
/* padding-top: px2rem(7px)*/
}
}
.search-menu
{
.search-menu
{
...
...
src/views/home/home-new.vue
浏览文件 @
1570730b
...
@@ -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
:
8
px
;
height
:
7
px
;
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
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录