Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-IM
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-admin-IM
提交
ad1160af
提交
ad1160af
编写于
11月 17, 2018
作者:
chendeli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add
上级
a1156208
变更
3
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
64 行增加
和
26 行删除
+64
-26
yqy-adjust.vue
src/components/business-new/yqy-adjust.vue
+22
-1
yqy-home-header.vue
src/components/business-new/yqy-home-header.vue
+12
-2
home-new.vue
src/views/home/home-new.vue
+30
-23
未找到文件。
src/components/business-new/yqy-adjust.vue
浏览文件 @
ad1160af
...
...
@@ -3,7 +3,7 @@
<div
:class=
"isFixed ? 'cource-header fixed' : 'cource-header'"
>
<div
class=
"fixBox"
>
<div
class=
"bgFill"
></div>
<div
class=
"bgFill"
:style=
"
{height:ptop}"
>
</div>
<div
class=
"font-title"
>
{{
title
}}
</div>
...
...
@@ -94,11 +94,32 @@ export default {
this
.
ptop
=
this
.
popHeight
+
"px"
;
// this.getData();
},
created
(){
let
_this
=
this
;
window
.
__getStatusBarHeight
=
function
(
parm
){
if
(
window
.
__isAndroid
){
_this
.
popHeight
=
parm
.
statusBarHeight
/
2
}
else
{
_this
.
popHeight
=
parm
.
statusBarHeight
}
_this
.
ptop
=
_this
.
popHeight
+
7
+
'px'
;
_this
.
menuptop
=
_this
.
popHeight
+
7
+
'px'
//alert(parm.statusBarHeight+'kkkkk');
}
this
.
getStatusHight
()
},
watch
:{
},
components
:{
// LOADING
},
methods
:
{
getStatusHight
(){
rocNative
.
getStatusBarHeight
({
__funcName
:
'__getStatusBarHeight'
...
...
src/components/business-new/yqy-home-header.vue
浏览文件 @
ad1160af
...
...
@@ -6,7 +6,7 @@
<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
class=
"bgFill"
></div>
<div
class=
"bgFill"
:style=
"
{height:ptop}"
>
</div>
<div
class=
"fixBox"
>
<div
class=
"header-right"
@
click=
"goToPage"
>
<img
v-if=
"searchFix"
class=
"info"
src=
'../../images/msg2.png'
>
...
...
@@ -49,6 +49,13 @@ export default {
default
:
false
,
}
},
watch
:{
// searchFix:function(n){
// if(n){
// alert(this.searchFix)
// }
// }
},
created
(){
let
_this
=
this
;
window
.
__getStatusBarHeight
=
function
(
parm
){
...
...
@@ -59,13 +66,16 @@ export default {
_this
.
popHeight
=
parm
.
statusBarHeight
}
_this
.
ptop
=
_this
.
popHeight
+
7
+
'px'
;
_this
.
menuptop
=
_this
.
popHeight
+
7
+
'px'
// alert(parm.statusBarHeight);
}
this
.
getStatusHight
()
},
mounted
(){
// this.getStatusHight();
// if(window.__isAndroid){
// this.popHeight = this.statusBarHeight/2
...
...
src/views/home/home-new.vue
浏览文件 @
ad1160af
...
...
@@ -130,7 +130,7 @@ export default {
msgCount
:
''
,
userToken
:
''
,
searchFix
:
false
,
statusBarHeight
:
2
0
,
statusBarHeight
:
0
,
userMobile
:
''
,
userToken
:
''
,
isHeightFromApp
:
false
,
...
...
@@ -158,6 +158,7 @@ export default {
},
created
()
{
let
_this
=
this
;
_this
.
initAll
()
_this
.
getUserInfo
();
window
.
__nativeCallMsg
=
function
(
params
){
...
...
@@ -175,8 +176,8 @@ export default {
window
.
__refresh
=
function
(
params
){
//__getToken()
alert
(
'__refresh'
);
alert
(
JSON
.
stringify
(
params
))
//
alert('__refresh');
//
alert(JSON.stringify(params))
//返回
if
(
_this
.
isRefreshFromBack
){
...
...
@@ -194,19 +195,20 @@ export default {
}
window
.
__getStatusBarHeight
=
function
(
parm
){
alert
(
"__getStatusBarHeight"
);
_this
.
statusBarHeight
=
parm
.
statusBarHeight
;
_this
.
isHeightFromApp
=
true
;
// alert(parm.statusBarHeight);
// window.__getStatusBarHeight = function(parm){
// alert(JSON.stringify(parm))
// _this.statusBarHeight = parm.statusBarHeight;
// _this.isHeightFromApp = true;
// // alert(parm.statusBarHeight);
// }
}
// alert("token之前");
window
.
__getUserInfo
=
function
(
parm
){
alert
(
"__getUserInfo"
);
alert
(
JSON
.
stringify
(
parm
))
//
alert("__getUserInfo");
//
alert(JSON.stringify(parm))
_this
.
systemType
=
parm
.
systemType
;
_this
.
appVersion
=
parm
.
appVersion
;
_this
.
token
=
parm
.
userToken
;
...
...
@@ -220,8 +222,9 @@ export default {
_this
.
initByToken
(
parm
.
userToken
);
}
_this
.
getStatusHight
();
_this
.
initAll
()
//_this.getStatusHight();
// _this.token = 'BE1D60CAE8F24649B4F72D47E964A58B';
...
...
@@ -242,6 +245,7 @@ export default {
mounted
(){
this
.
wrapperHeight
=
document
.
documentElement
.
clientHeight
-
this
.
$refs
.
wrapper
.
getBoundingClientRect
().
top
;
window
.
addEventListener
(
'scroll'
,
this
.
scrollFun
);
},
beforeDestroyed
(){
...
...
@@ -306,7 +310,7 @@ export default {
this
.
getAdjustData
(
userToken
);
this
.
getNewsData
(
userToken
);
this
.
getEvaluctData
(
userToken
);
window
.
addEventListener
(
'scroll'
,
this
.
scrollFun
);
},
initAll
(){
...
...
@@ -672,7 +676,7 @@ export default {
}
var
searchBox
=
document
.
querySelector
(
'#search-top'
).
offsetParent
.
offsetTop
;
//console.log(
newCourseTop
);
//console.log(
searchBox
);
if
(
scrollTop
+
clientHeight
/
2
>=
newCourseTop
){
//alert('scrollTop:'+scrollTop+'newCourseTop:'+newCourseTop);
//this.showNewCorse = false;
...
...
@@ -680,12 +684,7 @@ export default {
}
else
{
this
.
isShowBackTop
=
false
;
}
if
(
scrollTop
>
searchBox
){
///console.log(scrollTop,searchBox);
this
.
searchFix
=
true
;
}
else
{
this
.
searchFix
=
false
;
}
if
(
scrollTop
+
30
>=
adjustTop
){
this
.
isFixed
=
true
;
this
.
searchFix
=
false
;
...
...
@@ -693,6 +692,14 @@ export default {
this
.
isFixed
=
false
;
}
if
(
scrollTop
>
searchBox
){
//alert("000");
///console.log(scrollTop,searchBox);
this
.
searchFix
=
true
;
}
else
{
this
.
searchFix
=
false
;
}
},
//五秒之后收起
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录