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
提交
f6d76630
提交
f6d76630
编写于
11月 13, 2018
作者:
chendeli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add
上级
d64afe85
变更
9
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
63 行增加
和
44 行删除
+63
-44
yqy-adjust.vue
src/components/business-new/yqy-adjust.vue
+24
-30
yqy-category-three-1.vue
src/components/business-new/yqy-category-three-1.vue
+7
-1
yqy-five-minutes.vue
src/components/business-new/yqy-five-minutes.vue
+1
-0
yqy-home-adv.vue
src/components/business-new/yqy-home-adv.vue
+4
-4
yqy-home-learn-evaluation.vue
src/components/business-new/yqy-home-learn-evaluation.vue
+4
-0
topNav.vue
src/components/common/topNav.vue
+1
-1
mixins.js
src/utils/mixins.js
+9
-3
activity.vue
src/views/activity/activity.vue
+12
-4
home-new.vue
src/views/home/home-new.vue
+1
-1
未找到文件。
src/components/business-new/yqy-adjust.vue
浏览文件 @
f6d76630
...
@@ -3,11 +3,7 @@
...
@@ -3,11 +3,7 @@
<div
:class=
"isFixed ? 'cource-header fixed' : 'cource-header'"
:style=
"
{paddingTop:ptop,height:menuHeight}">
<div
:class=
"isFixed ? 'cource-header fixed' : 'cource-header'"
:style=
"
{paddingTop:ptop,height:menuHeight}">
<div
class=
"font-title"
:style=
"
{top:isFixed?ptop:'0'}">
<div
class=
"font-title"
:style=
"
{top:isFixed?ptop:'0'}">
{{
title
}}
{{
title
}}
<div
class=
"change-part gray"
@
click=
"changeFun"
>
换一批
<img
src=
"../../images/change.png"
/>
</div>
</div>
</div>
</div>
</div>
...
@@ -50,6 +46,7 @@ export default {
...
@@ -50,6 +46,7 @@ export default {
return
{
return
{
list
:[],
list
:[],
pageNo
:
1
,
pageNo
:
1
,
isDisabled
:
false
,
pageSize
:
10
,
pageSize
:
10
,
title
:
'为您推荐'
,
title
:
'为您推荐'
,
isCollected
:
''
,
isCollected
:
''
,
...
@@ -57,7 +54,7 @@ export default {
...
@@ -57,7 +54,7 @@ export default {
loading
:
true
,
//是否滚动加载
loading
:
true
,
//是否滚动加载
isLoading
:
false
,
//加载中
isLoading
:
false
,
//加载中
noMore
:
false
,
noMore
:
false
,
clientHeight
:
0
,
clientHeight
:
'auto'
,
isShowLoading
:
true
,
isShowLoading
:
true
,
menuHeight
:
0
,
menuHeight
:
0
,
ptop
:
0
,
ptop
:
0
,
...
@@ -138,19 +135,20 @@ export default {
...
@@ -138,19 +135,20 @@ export default {
actionCode
:
'c_change'
,
actionCode
:
'c_change'
,
})
})
this
.
clientHeight
=
document
.
documentElement
.
clientHeight
+
'px'
;
document
.
documentElement
.
scrollTop
=
document
.
documentElement
.
scrollTop
-
20
;
// this.clientHeight = document.documentElement.clientHeight+'px';
document
.
body
.
scrollTop
=
document
.
body
.
scrollTop
-
20
;
// document.documentElement.scrollTop = document.documentElement.scrollTop - 100;
// document.body.scrollTop = document.body.scrollTop - 100;
//console.log(document.documentElement.scrollTop);
//console.log(document.documentElement.scrollTop);
this
.
loading
=
true
;
this
.
loading
=
true
;
this
.
noMore
=
false
;
this
.
noMore
=
false
;
this
.
pageNo
++
;
this
.
list
=
[];
this
.
list
=
[];
this
.
getData
();
this
.
getData
(
"change"
);
},
},
//滑动加载更多
//滑动加载更多
loadMore
(){
loadMore
(){
let
_this
=
this
;
let
_this
=
this
;
if
(
!
_this
.
noMore
){
if
(
!
_this
.
noMore
){
_this
.
pageNo
+=
1
;
_this
.
pageNo
+=
1
;
...
@@ -215,35 +213,31 @@ export default {
...
@@ -215,35 +213,31 @@ export default {
token
:
_this
.
token
,
token
:
_this
.
token
,
setEntry
:
'headers'
setEntry
:
'headers'
}
}
_this
.
GET
(
'contents/courses/recommendCourseList'
,
parm
).
then
(
function
(
res
){
_this
.
GET
(
'contents/courses/recommendCourseList'
,
parm
).
then
(
function
(
res
){
if
(
res
.
code
===
'000000'
){
if
(
res
.
code
===
'000000'
){
if
(
res
.
data
==
null
||
!
res
.
data
){
res
.
data
=
[];
_this
.
isLoading
=
false
;
_this
.
noMore
=
true
;
_this
.
loading
=
true
;
}
else
{
_this
.
isLoading
=
true
;
_this
.
noMore
=
false
;
_this
.
loading
=
false
;
}
if
(
type
==
'loadMore'
){
if
(
type
==
'loadMore'
){
if
(
res
.
data
==
null
||
!
res
.
data
){
_this
.
list
=
[...
_this
.
list
,...
res
.
data
];
res
.
data
=
[];
_this
.
isLoading
=
false
;
_this
.
noMore
=
true
;
_this
.
loading
=
false
;
}
_this
.
list
=
[...
_this
.
list
,...
res
.
data
]
||
[];
}
else
{
}
else
{
_this
.
noMore
=
false
;
_this
.
isLoading
=
false
;
_this
.
list
=
res
.
data
||
[];
_this
.
list
=
res
.
data
||
[];
}
}
}
else
{
_this
.
isLoading
=
false
;
_this
.
noMore
=
false
;
_this
.
loading
=
false
;
}
}
_this
.
clientHeight
=
'auto'
///
_this.clientHeight = 'auto'
_this
.
isLoading
=
false
;
_this
.
loading
=
false
;
},
function
(){
},
function
(){
_this
.
isLoading
=
false
;
_this
.
isLoading
=
false
;
_this
.
noMore
=
false
;
_this
.
noMore
=
false
;
...
@@ -273,7 +267,7 @@ export default {
...
@@ -273,7 +267,7 @@ export default {
padding
:
0
px2rem
(
15px
);
padding
:
0
px2rem
(
15px
);
}
}
.cource-header
{
.cource-header
{
margin
:
0
0
px2rem
(
11px
)
0
;
/* margin: 0 0 px2rem(11px) 0;*/
overflow
:
hidden
;
overflow
:
hidden
;
.font-title
{
.font-title
{
...
...
src/components/business-new/yqy-category-three-1.vue
浏览文件 @
f6d76630
...
@@ -112,11 +112,13 @@ export default {
...
@@ -112,11 +112,13 @@ export default {
.category-left
{
.category-left
{
width
:
px2rem
(
170px
);
width
:
px2rem
(
170px
);
height
:
px2rem
(
195px
);
height
:
px2rem
(
195px
);
border-radius
:
px2rem
(
3px
);
}
}
.category-img
{
.category-img
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
display
:
block
;
display
:
block
;
border-radius
:
px2rem
(
3px
);
}
}
.mt5
{
.mt5
{
margin-top
:
px2rem
(
5px
);
margin-top
:
px2rem
(
5px
);
...
@@ -128,6 +130,7 @@ export default {
...
@@ -128,6 +130,7 @@ export default {
.right-img
{
.right-img
{
width
:
px2rem
(
170px
);
width
:
px2rem
(
170px
);
height
:
px2rem
(
95px
);
height
:
px2rem
(
95px
);
border-radius
:
px2rem
(
3px
);
}
}
}
}
...
@@ -137,7 +140,10 @@ export default {
...
@@ -137,7 +140,10 @@ export default {
margin-top
:px2rem
(
15px
)
;
margin-top
:px2rem
(
15px
)
;
width
:
100%
;
width
:
100%
;
height
:
px2rem
(
65px
);
height
:
px2rem
(
65px
);
border-radius
:
px2rem
(
3px
);
img
{
border-radius
:
px2rem
(
3px
);
}
}
}
}
}
</
style
>
</
style
>
src/components/business-new/yqy-five-minutes.vue
浏览文件 @
f6d76630
...
@@ -268,6 +268,7 @@ export default {
...
@@ -268,6 +268,7 @@ export default {
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
display
:
inline-block
;
display
:
inline-block
;
border-radius
:
px2rem
(
3px
);
}
}
}
}
.five-text
{
.five-text
{
...
...
src/components/business-new/yqy-home-adv.vue
浏览文件 @
f6d76630
...
@@ -203,12 +203,12 @@ export default {
...
@@ -203,12 +203,12 @@ export default {
width
:
px2rem
(
50px
);
width
:
px2rem
(
50px
);
height
:
px2rem
(
50px
);
height
:
px2rem
(
50px
);
border-radius
:
50%
;
border-radius
:
50%
;
text-align
:
center
;
}
}
.tea-itemimg
{
.tea-itemimg
{
width
:
px2rem
(
39
px
);
width
:
px2rem
(
45
px
);
height
:
px2rem
(
4
4
px
);
height
:
px2rem
(
4
5
px
);
margin-top
:
px2rem
(
6
px
);
margin-top
:
px2rem
(
5
px
);
border-radius
:
50%
;
border-radius
:
50%
;
}
}
.tea-itemname
{
.tea-itemname
{
...
...
src/components/business-new/yqy-home-learn-evaluation.vue
浏览文件 @
f6d76630
...
@@ -108,6 +108,10 @@ export default {
...
@@ -108,6 +108,10 @@ export default {
let
isPullIndex
=
_this
.
isShow
?
'1'
:
'2'
;
let
isPullIndex
=
_this
.
isShow
?
'1'
:
'2'
;
_this
.
$emit
(
'evluatFun'
,{
isPull
:
isPullIndex
});
_this
.
$emit
(
'evluatFun'
,{
isPull
:
isPullIndex
});
}
}
// _this.isShow = _this.parmObj.showFlag;
// let isPullIndex = _this.isShow ? '1' : '2';
// _this.$emit('evluatFun',{isPull:isPullIndex});
}
else
{
}
else
{
///alert(res.message);
///alert(res.message);
...
...
src/components/common/topNav.vue
浏览文件 @
f6d76630
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
},
},
title
:{
//标题
title
:{
//标题
type
:
String
,
type
:
String
,
default
:
''
default
:
'
暂无数据
'
},
},
isNavFix
:{
//是否fix定位
isNavFix
:{
//是否fix定位
type
:
Boolean
,
type
:
Boolean
,
...
...
src/utils/mixins.js
浏览文件 @
f6d76630
...
@@ -92,9 +92,15 @@ module.exports = {
...
@@ -92,9 +92,15 @@ module.exports = {
paramList
=
''
paramList
=
''
}
else
if
(
modeCode
===
'M100'
||
modeCode
===
'M300'
)
{
}
else
if
(
modeCode
===
'M100'
||
modeCode
===
'M300'
)
{
let
urlPara
=
this
.
getUrlParmByCode
(
paramList
)
let
urlPara
=
this
.
getUrlParmByCode
(
paramList
);
// paramList[0].value += urlPara;
// paramList[0].value += urlPara;
paramList
[
0
]
&&
(
paramList
[
0
].
value
+=
urlPara
);
if
(
paramList
[
0
]){
if
(
paramList
[
0
].
value
.
indexOf
(
"?"
)
==
-
1
){
paramList
[
0
].
value
+=
urlPara
}
}
// paramList[0] && (paramList[0].value += urlPara);
}
else
if
(
modeCode
===
'M400'
)
{
}
else
if
(
modeCode
===
'M400'
)
{
...
@@ -112,7 +118,7 @@ module.exports = {
...
@@ -112,7 +118,7 @@ module.exports = {
if
(
typeof
paramList
===
'string'
&&
!
paramList
){
if
(
typeof
paramList
===
'string'
&&
!
paramList
){
paramList
=
[]
paramList
=
[]
}
}
console
.
log
(
paramList
);
return
paramList
;
return
paramList
;
},
},
...
...
src/views/activity/activity.vue
浏览文件 @
f6d76630
...
@@ -8,6 +8,9 @@
...
@@ -8,6 +8,9 @@
<img
:src=
"item.imageUrl"
class=
"img"
/>
<img
:src=
"item.imageUrl"
class=
"img"
/>
<!--
<div
class=
"time"
>
活动时间:9月3日-9月9日
</div>
-->
<!--
<div
class=
"time"
>
活动时间:9月3日-9月9日
</div>
-->
</div>
</div>
<div
class=
"no-show"
>
暂无数据
</div>
</div>
</div>
<BackTop
v-if=
"isShowBackTop"
:burialPoint=
"pointStyle"
></BackTop>
<BackTop
v-if=
"isShowBackTop"
:burialPoint=
"pointStyle"
></BackTop>
</section>
</section>
...
@@ -25,7 +28,7 @@ export default {
...
@@ -25,7 +28,7 @@ export default {
tittle
:
''
,
tittle
:
''
,
list
:[],
list
:[],
bgColor
:
'#fff'
,
bgColor
:
'#fff'
,
navTitle
:
''
,
navTitle
:
'
活动
'
,
isBorder
:
true
,
isBorder
:
true
,
isNavFix
:
true
,
isNavFix
:
true
,
id
:
'1'
,
id
:
'1'
,
...
@@ -46,9 +49,9 @@ export default {
...
@@ -46,9 +49,9 @@ export default {
let
jh
=
JSON
.
stringify
(
parm
)
let
jh
=
JSON
.
stringify
(
parm
)
_this
.
token
=
parm
.
userToken
;
_this
.
token
=
parm
.
userToken
;
}
}
//_this.token = 'AF22B142535B440883135309BBF3F3B0'
this
.
getBaseInfo
();
this
.
getBaseInfo
();
},
},
watch
:{
watch
:{
...
@@ -64,7 +67,7 @@ export default {
...
@@ -64,7 +67,7 @@ export default {
mounted
(){
mounted
(){
},
},
beforeDestroyed
(){
beforeDestroyed
(){
window
.
removeEventListener
(
'scroll'
,
this
.
scrollFun
)
window
.
removeEventListener
(
'scroll'
,
this
.
scrollFun
)
...
@@ -158,6 +161,11 @@ export default {
...
@@ -158,6 +161,11 @@ export default {
padding
:
px2rem
(
15px
);
padding
:
px2rem
(
15px
);
background
:
#fff
;
background
:
#fff
;
}
}
.no-show
{
font-size
:
px2rem
(
15px
);
color
:
#999
;
text-align
:
center
;
}
.activity-count
{
.activity-count
{
color
:
#999
;
color
:
#999
;
font-size
:
px2rem
(
15px
);
font-size
:
px2rem
(
15px
);
...
...
src/views/home/home-new.vue
浏览文件 @
f6d76630
...
@@ -134,7 +134,7 @@ export default {
...
@@ -134,7 +134,7 @@ export default {
_this
.
userMobile
=
parm
.
userMobile
;
_this
.
userMobile
=
parm
.
userMobile
;
}
}
//
_this.token = 'AF22B142535B440883135309BBF3F3B0'
//
_this.token = 'AF22B142535B440883135309BBF3F3B0'
this
.
getUserInfo
();
this
.
getUserInfo
();
window
.
__getStatusBarHeight
=
function
(
parm
){
window
.
__getStatusBarHeight
=
function
(
parm
){
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录