Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
028600cc
提交
028600cc
编写于
10月 26, 2018
作者:
guojing.hao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
yqy-home-keepon
上级
ff7b9de3
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
92 行增加
和
1 行删除
+92
-1
yqy-home-keepon.vue
src/components/business/yqy-home-keepon.vue
+82
-0
global.scss
src/style/global.scss
+6
-0
home.vue
src/views/home/home.vue
+4
-1
未找到文件。
src/components/business/yqy-home-keepon.vue
0 → 100644
浏览文件 @
028600cc
<
template
>
<div
class=
"header bgWhite"
>
<div
v-show=
"isShow"
class=
"border-bottom space-between"
>
<div>
<div
class=
"gray keeponTitle"
>
{{
resourceData
.
message
}}
</div>
<div>
<span
class=
"gray fs24 keeponRight"
>
已学习:
{{
resourceData
.
week
}}
周
</span>
<span
class=
"gray fs24 keeponRight"
>
剩余:
{{
resourceData
.
Remaining
}}
%
</span>
<span
class=
"gray fs24 continueStudy"
@
click=
"continueStudy"
>
继续学习>
</span>
</div>
</div>
<div>
<img
@
click=
"cancel"
src=
"../../images/Shape@2x.png"
/>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'YqyHomeKeepon'
,
components
:
{
},
props
:
{
resourceData
:
{
type
:
Object
,
default
:()
=>
{
return
{
message
:
'动态'
,
week
:
2
,
Remaining
:
2
}
}
}
},
watch
:
{
},
data
()
{
return
{
isShow
:
true
}
},
mounted
(){
},
methods
:
{
continueStudy
(){
console
.
log
(
'continueStudy'
);
this
.
$emit
(
'continueStudy'
)
},
cancel
(){
console
.
log
(
'cancel'
);
this
.
isShow
=
false
;
this
.
$emit
(
'cancel'
)
}
}
}
</
script
>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<
style
lang=
"scss"
scoped
>
@import
'../../style/mixin.scss'
;
@import
'../../style/global.scss'
;
.header
{
width
:
100%
;
padding
:
0
px2rem
(
15px
);
.border-bottom
{
width
:
100%
;
border-bottom
:
1px
solid
RGBA
(
231
,
231
,
231
,
1
);
padding-bottom
:
px2rem
(
10px
);
}
.keeponTitle
{
font-size
:
px2rem
(
14px
);
}
.continueStudy
{
color
:
RGBA
(
31
,
121
,
115
,
1
);
}
.keeponRight
{
margin-right
:
px2rem
(
15px
);
}
}
</
style
>
15px
\ No newline at end of file
src/style/global.scss
浏览文件 @
028600cc
...
@@ -39,6 +39,9 @@
...
@@ -39,6 +39,9 @@
.fs11
{
.fs11
{
font-size
:
px2rem
(
11px
);
font-size
:
px2rem
(
11px
);
}
}
.fs13
{
font-size
:
px2rem
(
13px
);
}
.fs14
{
.fs14
{
font-size
:
px2rem
(
14px
);
font-size
:
px2rem
(
14px
);
}
}
...
@@ -51,6 +54,9 @@
...
@@ -51,6 +54,9 @@
.fs26
{
.fs26
{
font-size
:
px2rem
(
13px
);
font-size
:
px2rem
(
13px
);
}
}
.fs28
{
font-size
:
px2rem
(
14px
);
}
.fw
{
.fw
{
font-weight
:
600
;
font-weight
:
600
;
}
}
...
...
src/views/home/home.vue
浏览文件 @
028600cc
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
<span
@
click=
"toast('Hi, 你好,宾宾!')"
>
toast 3
</span>
<span
@
click=
"toast('Hi, 你好,宾宾!')"
>
toast 3
</span>
<YqyHotLabel/>
<YqyHotLabel/>
<YqyHomeBanner/>
<YqyHomeBanner/>
<YqyHomeKeepon/>
<YqyHomeAdv/>
<YqyHomeAdv/>
<YqyCategoryThree1/>
<YqyCategoryThree1/>
<YqyFiveMinutes/>
<YqyFiveMinutes/>
...
@@ -44,6 +45,7 @@ import YqyHomeAdv from '../../components/business/yqy-home-adv';
...
@@ -44,6 +45,7 @@ import YqyHomeAdv from '../../components/business/yqy-home-adv';
import
YqyFiveMinutes
from
'../../components/business/yqy-five-minutes'
;
import
YqyFiveMinutes
from
'../../components/business/yqy-five-minutes'
;
import
YqyCategoryThree1
from
'../../components/business/yqy-category-three-1'
;
import
YqyCategoryThree1
from
'../../components/business/yqy-category-three-1'
;
import
YqyHomeBanner
from
'../../components/business/yqy-home-banner'
;
import
YqyHomeBanner
from
'../../components/business/yqy-home-banner'
;
import
YqyHomeKeepon
from
'../../components/business/yqy-home-keepon'
;
export
default
{
export
default
{
data
(){
data
(){
return
{
return
{
...
@@ -61,7 +63,8 @@ export default {
...
@@ -61,7 +63,8 @@ export default {
YqyHomeAdv
,
YqyHomeAdv
,
YqyFiveMinutes
,
YqyFiveMinutes
,
YqyCategoryThree1
,
YqyCategoryThree1
,
YqyHomeBanner
YqyHomeBanner
,
YqyHomeKeepon
},
},
mounted
(){
mounted
(){
this
.
init
()
this
.
init
()
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录