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
提交
cf5625b0
提交
cf5625b0
编写于
11月 14, 2018
作者:
chendeli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add
上级
f3ae885d
变更
8
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
72 行增加
和
32 行删除
+72
-32
yqy-category-three-1.vue
src/components/business-new/yqy-category-three-1.vue
+3
-3
yqy-five-minutes.vue
src/components/business-new/yqy-five-minutes.vue
+1
-1
yqy-home-header.vue
src/components/business-new/yqy-home-header.vue
+2
-2
yqy-home-keepon.vue
src/components/business-new/yqy-home-keepon.vue
+20
-4
yqy-home-learn-evaluation.vue
src/components/business-new/yqy-home-learn-evaluation.vue
+2
-2
yqy-teacher-list.vue
src/components/business-new/yqy-teacher-list.vue
+2
-2
yqyServerRegister.js
src/utils/yqyServerRegister.js
+3
-0
home-new.vue
src/views/home/home-new.vue
+39
-18
未找到文件。
src/components/business-new/yqy-category-three-1.vue
浏览文件 @
cf5625b0
...
@@ -108,7 +108,7 @@ export default {
...
@@ -108,7 +108,7 @@ export default {
}
}
.teacher-item
{
.teacher-item
{
width
:
100%
;
width
:
100%
;
height
:
px2rem
(
190px
);
/* height: px2rem(190px);*/
.category-left
{
.category-left
{
width
:
px2rem
(
170px
);
width
:
px2rem
(
170px
);
height
:
px2rem
(
195px
);
height
:
px2rem
(
195px
);
...
@@ -137,9 +137,9 @@ export default {
...
@@ -137,9 +137,9 @@ export default {
}
}
.holder-img
{
.holder-img
{
margin-top
:px2rem
(
1
5px
)
;
margin-top
:px2rem
(
5px
)
;
width
:
100%
;
width
:
100%
;
height
:
px2rem
(
252
px
);
height
:
px2rem
(
126
px
);
border-radius
:
px2rem
(
3px
);
border-radius
:
px2rem
(
3px
);
img
{
img
{
border-radius
:
px2rem
(
3px
);
border-radius
:
px2rem
(
3px
);
...
...
src/components/business-new/yqy-five-minutes.vue
浏览文件 @
cf5625b0
...
@@ -150,7 +150,7 @@ export default {
...
@@ -150,7 +150,7 @@ export default {
parm
=
{
parm
=
{
pageNo
:
1
,
pageNo
:
1
,
token
:
_this
.
userToken
,
token
:
_this
.
userToken
,
pageSize
:
10
,
pageSize
:
3
,
data
:{
data
:{
setEntry
:
'headers'
setEntry
:
'headers'
}
}
...
...
src/components/business-new/yqy-home-header.vue
浏览文件 @
cf5625b0
<
template
>
<
template
>
<div
:class=
"searchFix?'header fixed' : 'header' "
id=
"search-top"
:style=
"
{height:menuptop}">
<div
:class=
"searchFix?'header fixed' : 'header' "
id=
"search-top"
:style=
"
{height:menuptop}">
<div
class=
"search-menu"
:style=
"
{paddingTop:ptop}">
<div
class=
"search-menu"
:style=
"
{paddingTop:ptop}">
<div
:class=
"isTransparent?'search-transparent':'bgWhite'"
class=
"search"
>
<
!--
<
div
:class=
"isTransparent?'search-transparent':'bgWhite'"
class=
"search"
>
<input
type=
"search"
:class=
"isTransparent?'search-transparent':''"
class=
"input"
v-model=
"searchVal"
:placeholder=
"placeholder"
:disabled=
"disabled"
/>
<input
type=
"search"
:class=
"isTransparent?'search-transparent':''"
class=
"input"
v-model=
"searchVal"
:placeholder=
"placeholder"
:disabled=
"disabled"
/>
<img
v-if=
"searchFix"
class=
"search-img"
src=
'../../images/search-grey.png'
>
<img
v-if=
"searchFix"
class=
"search-img"
src=
'../../images/search-grey.png'
>
<img
v-else
class=
"search-img"
src=
'../../images/search-white.png'
>
<img
v-else
class=
"search-img"
src=
'../../images/search-white.png'
>
</div>
</div>
-->
<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/msg2.png'
>
<img
e-else
class=
"info"
src=
'../../images/msg1.png'
>
<img
e-else
class=
"info"
src=
'../../images/msg1.png'
>
...
...
src/components/business-new/yqy-home-keepon.vue
浏览文件 @
cf5625b0
<
template
>
<
template
>
<div
class=
"keep-learn"
>
<div
class=
"keep-learn"
>
<div
v-show=
"isShow"
class=
"border-bottom
space-between
keep-learnbox"
>
<div
v-show=
"isShow"
class=
"border-bottom keep-learnbox"
>
<div
class=
"learning-txt"
>
<div
class=
"learning-txt"
>
<div
class=
"gray keepon-title"
>
{{
parmObj
.
name
}}
</div>
<div
class=
"gray keepon-title"
>
{{
parmObj
.
name
||
'糖尿病诊疗'
}}
</div>
<div>
<div
class=
"keepon-txt"
>
<span
class=
"gray fs24 keepon-right"
>
已学习:
{{
parmObj
.
day
}}
天
</span>
<span
class=
"gray fs24 keepon-right"
>
已学习:
{{
parmObj
.
day
}}
天
</span>
<span
class=
"gray fs24 keepon-right"
>
剩余:
{{
parmObj
.
remanentCourseNum
}}
%
</span>
<span
class=
"gray fs24 keepon-right"
>
剩余:
{{
parmObj
.
remanentCourseNum
}}
%
</span>
<span
class=
"gray fs24 continue-study"
@
click=
"continueStudy(parmObj)"
>
继续学习>
</span>
<span
class=
"gray fs24 continue-study"
@
click=
"continueStudy(parmObj)"
>
继续学习>
</span>
...
@@ -32,9 +32,15 @@ export default {
...
@@ -32,9 +32,15 @@ export default {
userMobile
:{
userMobile
:{
default
:
''
,
default
:
''
,
type
:
String
type
:
String
},
userToken
:{
type
:
String
,
default
:
''
}
}
},
},
mounted
(){
mounted
(){
if
(
this
.
userMobile
!=
''
){
if
(
this
.
userMobile
!=
''
){
this
.
getData
();
this
.
getData
();
}
else
{
}
else
{
...
@@ -99,7 +105,7 @@ export default {
...
@@ -99,7 +105,7 @@ export default {
let
_this
=
this
,
let
_this
=
this
,
parm
=
{
parm
=
{
token
:
_this
.
t
oken
,
token
:
_this
.
userT
oken
,
setEntry
:
'headers'
setEntry
:
'headers'
}
}
_this
.
GET
(
'contents/courses/continueLearningCourse'
,
parm
).
then
(
function
(
res
){
_this
.
GET
(
'contents/courses/continueLearningCourse'
,
parm
).
then
(
function
(
res
){
...
@@ -139,6 +145,16 @@ export default {
...
@@ -139,6 +145,16 @@ export default {
}
}
.keepon-title
{
.keepon-title
{
font-size
:
px2rem
(
14px
);
font-size
:
px2rem
(
14px
);
color
:
#666
;
line-height
:
px2rem
(
19px
);
}
.keepon-txt
{
margin-top
:px2rem
(
5px
)
;
line-height
:
px2rem
(
17px
);
height
:
px2rem
(
17px
);
span
{
float
:
left
;
}
}
}
.continue-study
{
.continue-study
{
color
:
RGBA
(
31
,
121
,
115
,
1
);
color
:
RGBA
(
31
,
121
,
115
,
1
);
...
...
src/components/business-new/yqy-home-learn-evaluation.vue
浏览文件 @
cf5625b0
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"top-evaluat"
v-if=
"isShow"
>
<div
class=
"top-evaluat"
v-if=
"isShow"
>
<div
class=
"evaluat-info"
>
<div
class=
"evaluat-info"
>
<span
class=
"evaluat-icon"
>
<span
class=
"evaluat-icon"
>
<img
src=
'../../images/552064153@2x.png
'
/>
<img
:src=
'parmObj.avatarImageUrl
'
/>
</span>
</span>
<span
class=
"evaluat-persent"
>
您的学习速度战胜了本院内
{{
setStyle
(
parmObj
.
gradePKToHospital
)
}}
%的医生
</span>
<span
class=
"evaluat-persent"
>
您的学习速度战胜了本院内
{{
setStyle
(
parmObj
.
gradePKToHospital
)
}}
%的医生
</span>
</div>
</div>
...
@@ -171,7 +171,7 @@ export default {
...
@@ -171,7 +171,7 @@ export default {
img
{
img
{
margin-top
:px2rem
(
3px
)
;
margin-top
:px2rem
(
3px
)
;
height
:
px2rem
(
23px
);
height
:
px2rem
(
23px
);
width
:
px2rem
(
2
6
px
);
width
:
px2rem
(
2
3
px
);
display
:
inline-block
;
display
:
inline-block
;
border-radius
:
50%
;
border-radius
:
50%
;
}
}
...
...
src/components/business-new/yqy-teacher-list.vue
浏览文件 @
cf5625b0
...
@@ -36,7 +36,7 @@ export default {
...
@@ -36,7 +36,7 @@ export default {
list
:
[],
list
:
[],
title
:
'最新课程'
,
title
:
'最新课程'
,
pageNo
:
1
,
pageNo
:
1
,
pageSize
:
10
,
pageSize
:
6
,
}
}
},
},
mounted
(){
mounted
(){
...
@@ -205,7 +205,7 @@ export default {
...
@@ -205,7 +205,7 @@ export default {
margin-top
:
px2rem
(
5px
);
margin-top
:
px2rem
(
5px
);
font-size
:
px2rem
(
14px
);
font-size
:
px2rem
(
14px
);
line-height
:
px2rem
(
19px
);
line-height
:
px2rem
(
19px
);
height
:
px2rem
(
38px
);
max-
height
:
px2rem
(
38px
);
color
:
#333
;
color
:
#333
;
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
...
...
src/utils/yqyServerRegister.js
浏览文件 @
cf5625b0
...
@@ -13,6 +13,9 @@
...
@@ -13,6 +13,9 @@
if
(
t
==
'__nativeCallMsg'
){
if
(
t
==
'__nativeCallMsg'
){
__nativeCallMsg
(
n
)
__nativeCallMsg
(
n
)
}
}
if
(
t
==
'__refresh'
){
__refresh
(
n
)
}
if
(
t
==
'__getUserInfo'
){
if
(
t
==
'__getUserInfo'
){
__getUserInfo
(
n
);
__getUserInfo
(
n
);
}
}
...
...
src/views/home/home-new.vue
浏览文件 @
cf5625b0
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<YqyHomeHeader
:msgCount=
"msgCount"
:searchFix=
"searchFix"
:statusBarHeight=
"statusBarHeight"
/>
<YqyHomeHeader
:msgCount=
"msgCount"
:searchFix=
"searchFix"
:statusBarHeight=
"statusBarHeight"
/>
</div>
</div>
<div
class=
"swiper"
>
<div
class=
"swiper"
>
<mt-swipe
:auto=
"0"
:speed=
"speedSwiper"
>
<mt-swipe
:auto=
"
300
0"
:speed=
"speedSwiper"
>
<mt-swipe-item
v-for=
"(item,index) in listSwiper"
:key=
"index"
>
<mt-swipe-item
v-for=
"(item,index) in listSwiper"
:key=
"index"
>
<img
:src=
"item.picturePath"
@
click=
"goLinkByswiper(item)"
/>
<img
:src=
"item.picturePath"
@
click=
"goLinkByswiper(item)"
/>
</mt-swipe-item>
</mt-swipe-item>
...
@@ -127,19 +127,26 @@ export default {
...
@@ -127,19 +127,26 @@ export default {
window
.
__nativeCallMsg
=
function
(
params
){
window
.
__nativeCallMsg
=
function
(
params
){
_this
.
msgCount
=
params
.
msgNum
||
''
;
_this
.
msgCount
=
params
.
msgNum
||
''
;
}
}
window
.
__refresh
=
function
(
params
){
_this
.
init
()
}
window
.
__getUserInfo
=
function
(
parm
){
window
.
__getUserInfo
=
function
(
parm
){
//alert(parm.userToken);
_this
.
systemType
=
parm
.
systemType
;
_this
.
systemType
=
parm
.
systemType
;
_this
.
appVersion
=
parm
.
appVersion
;
_this
.
appVersion
=
parm
.
appVersion
;
_this
.
token
=
parm
.
userToken
;
_this
.
token
=
parm
.
userToken
;
_this
.
userToken
=
parm
.
userToken
;
_this
.
userToken
=
parm
.
userToken
;
_this
.
userMobile
=
parm
.
userMobile
;
_this
.
userMobile
=
parm
.
userMobile
;
_this
.
getSwiper
(
_this
.
appVersion
,
_this
.
systemType
);
_this
.
getSwiper
(
_this
.
appVersion
,
_this
.
systemType
);
_this
.
init
()
}
}
//_this.token = 'AF22B142535B440883135309BBF3F3B0'
// _this.token = 'AA093EC1A2084B17B098515F2A04A6';
// _this.init()
this
.
getUserInfo
();
this
.
getUserInfo
();
window
.
__getStatusBarHeight
=
function
(
parm
){
window
.
__getStatusBarHeight
=
function
(
parm
){
...
@@ -159,20 +166,7 @@ export default {
...
@@ -159,20 +166,7 @@ export default {
},
},
mounted
(){
mounted
(){
//alert(this.token);
if
(
this
.
token
!=
null
){
this
.
getStatusHight
();
this
.
getUpdateData
();
this
.
getMiddel
();
// if(!!this.systemType && !!this.appVersion){
// this.getSwiper();
// }
window
.
addEventListener
(
'scroll'
,
this
.
scrollFun
);
}
//this.getSwiper();
},
},
beforeDestroyed
(){
beforeDestroyed
(){
...
@@ -200,6 +194,20 @@ export default {
...
@@ -200,6 +194,20 @@ export default {
methods
:{
methods
:{
init
(){
if
(
this
.
token
!=
null
){
this
.
getStatusHight
();
this
.
getUpdateData
();
this
.
getMiddel
();
// if(!!this.systemType && !!this.appVersion){
// this.getSwiper();
// }
window
.
addEventListener
(
'scroll'
,
this
.
scrollFun
);
}
},
//获取状态栏高度
//获取状态栏高度
getStatusHight
(){
getStatusHight
(){
rocNative
.
getStatusBarHeight
({
rocNative
.
getStatusBarHeight
({
...
@@ -272,8 +280,20 @@ export default {
...
@@ -272,8 +280,20 @@ 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
;
_this
.
showNewCorse
=
_this
.
updateTotal
>
0
?
true
:
false
if
(
res
.
data
.
courseCount
+
res
.
data
.
fiveHospCount
>
0
){
_this
.
showNewCorse
=
true
;
if
((
res
.
data
.
courseCount
+
res
.
data
.
fiveHospCount
)
>
9
){
//_this.showNewCorse = _this.updateTotal > 0 ? true : false
_this
.
updateTotal
=
'9+'
;
}
}
else
{
_this
.
showNewCorse
=
false
}
}
}
}
}
...
@@ -411,6 +431,7 @@ export default {
...
@@ -411,6 +431,7 @@ export default {
setEntry
:
'headers'
,
setEntry
:
'headers'
,
token
:
_this
.
token
token
:
_this
.
token
}
}
this
.
GET
(
'contents/HomeColumn/Information'
,
para
).
then
(
res
=>
{
this
.
GET
(
'contents/HomeColumn/Information'
,
para
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
){
if
(
res
.
code
==
'000000'
){
// console.log(res);
// console.log(res);
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录