Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
f9e3b3ee
提交
f9e3b3ee
编写于
11月 12, 2018
作者:
chendeli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add
上级
57666add
变更
7
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
170 行增加
和
16 行删除
+170
-16
yqy-five-minutes.vue
src/components/business-new/yqy-five-minutes.vue
+129
-3
yqy-home-banner.vue
src/components/business-new/yqy-home-banner.vue
+7
-4
yqy-home-keepon.vue
src/components/business-new/yqy-home-keepon.vue
+12
-1
mixins.js
src/utils/mixins.js
+1
-2
yqyServerRegister.js
src/utils/yqyServerRegister.js
+12
-1
activity.vue
src/views/activity/activity.vue
+5
-3
home-new.vue
src/views/home/home-new.vue
+4
-2
未找到文件。
src/components/business-new/yqy-five-minutes.vue
浏览文件 @
f9e3b3ee
...
@@ -15,7 +15,18 @@
...
@@ -15,7 +15,18 @@
<div
class=
"five-tag fs11"
>
<div
class=
"five-tag fs11"
>
<span
class=
"m-tag"
>
#
{{
item
.
categoryName
}}
</span>
<span
class=
"m-tag"
>
#
{{
item
.
categoryName
}}
</span>
<span
class=
"m-play"
@
click
.
stop=
"playFun(item)"
>
<span
class=
"m-play"
@
click
.
stop=
"playFun(item)"
>
<img
class=
"five-radio"
src=
"../../images/play.png"
/>
<div
class=
"play-opt play-start"
v-if=
"item.play =='1'"
>
<span></span>
<span></span>
<span></span>
</div>
<div
class=
"play-opt play-stop"
v-if=
"item.play == '2'"
>
<span></span>
<span></span>
<span></span>
</div>
<img
class=
"five-radio"
src=
"../../images/play.png"
v-if=
"item.play == '0'"
/>
</span>
</span>
</div>
</div>
...
@@ -30,9 +41,29 @@ export default {
...
@@ -30,9 +41,29 @@ export default {
name
:
'YqyFiveMinutes'
,
name
:
'YqyFiveMinutes'
,
data
(){
data
(){
return
{
return
{
list
:[]
list
:[],
isPlay
:
false
,
id
:
''
}
}
},
},
created
(){
let
_this
=
this
;
//暂停
window
.
__pauseAudioView
=
function
(
parm
){
_this
.
changePlay
(
_this
.
id
,
'2'
);
}
//开始
window
.
__playAudioView
=
function
(
parm
){
_this
.
changePlay
(
_this
.
id
,
'1'
);
}
window
.
__closeAudioView
=
function
(
parm
){
_this
.
changePlay
(
_this
.
id
,
'0'
);
}
},
mounted
(){
mounted
(){
this
.
getData
();
this
.
getData
();
},
},
...
@@ -124,7 +155,7 @@ export default {
...
@@ -124,7 +155,7 @@ export default {
this
.
API_GET
(
'contents/fiveMinutes/contents'
,
parm
).
then
(
res
=>
{
this
.
API_GET
(
'contents/fiveMinutes/contents'
,
parm
).
then
(
res
=>
{
if
(
res
.
respCode
==
'200'
){
if
(
res
.
respCode
==
'200'
){
_this
.
list
=
res
.
fiveMinutesMedicalContentList
||
[]
_this
.
list
=
_this
.
handel
(
res
.
fiveMinutesMedicalContentList
)
||
[]
}
}
})
})
},
},
...
@@ -132,8 +163,37 @@ export default {
...
@@ -132,8 +163,37 @@ export default {
playMore
(){
playMore
(){
},
},
handel
(
d
){
for
(
let
i
=
0
;
i
<
d
.
length
;
i
++
){
d
[
i
].
play
=
'0'
;
}
return
d
;
},
changePlay
(
id
,
str
){
//play : 1播放 2:暂停 0:初始状态
for
(
let
i
=
0
;
i
<
this
.
list
.
length
;
i
++
){
if
(
id
==
this
.
list
[
i
].
id
){
if
(
str
==
'1'
){
this
.
list
[
i
].
play
=
'1'
;
}
else
if
(
str
==
'2'
){
this
.
list
[
i
].
play
=
'2'
;
// alert(str)
}
else
if
(
str
==
'0'
){
this
.
list
[
i
].
play
=
'0'
;
}
}
else
{
this
.
list
[
i
].
play
=
'0'
;
}
}
},
playFun
(
item
){
playFun
(
item
){
this
.
id
=
item
.
id
;
//保存id
this
.
changePlay
(
item
.
id
,
'1'
);
this
.
pageBurialPoin
({
this
.
pageBurialPoin
({
menuLevel
:
1
,
menuLevel
:
1
,
menuCode
:
'm_home'
,
menuCode
:
'm_home'
,
...
@@ -232,6 +292,8 @@ export default {
...
@@ -232,6 +292,8 @@ export default {
border
:
1px
solid
#FAE5AF
;
border
:
1px
solid
#FAE5AF
;
}
}
}
}
.m-play
{
.m-play
{
width
:
px2rem
(
28px
);
width
:
px2rem
(
28px
);
height
:
px2rem
(
28px
);
height
:
px2rem
(
28px
);
...
@@ -239,6 +301,70 @@ export default {
...
@@ -239,6 +301,70 @@ export default {
position
:absolute
;
position
:absolute
;
right
:
0
;
right
:
0
;
bottom
:
0
;
bottom
:
0
;
.play-stop
{
}
.play-opt
{
position
:relative
;
width
:
px2rem
(
28px
);
height
:
px2rem
(
28px
);
border
:
1px
solid
#56c3bb
;
border-radius
:
50%
;
span
{
width
:px2rem
(
3px
)
;
height
:
px2rem
(
5px
);
bottom
:px2rem
(
5px
)
;
position
:absolute
;
background
:
#56c3bb
;
}
}
.play-stop
{
span
:first-child
{
left
:px2rem
(
8px
)
;
height
:
px2rem
(
5px
);
}
span
:nth-child
(
2
)
{
left
:px2rem
(
12px
)
;
height
:
px2rem
(
15px
);
}
span
:nth-child
(
3
)
{
left
:px2rem
(
16px
)
;
height
:
px2rem
(
10px
);
}
}
.play-start
{
span
{
-webkit-animation
:
bodong
0
.5s
infinite
ease-in-out
alternate
;
}
span
:first-child
{
left
:px2rem
(
8px
)
;
-webkit-animation-delay
:
.1s
;
}
span
:nth-child
(
2
)
{
left
:px2rem
(
12px
)
;
-webkit-animation-delay
:
.3s
;
}
span
:nth-child
(
3
)
{
left
:px2rem
(
16px
)
;
-webkit-animation-delay
:
.5s
;
}
@-webkit-keyframes
bodong
{
0
%
{
height
:px2rem
(
5px
)
;
}
30
%
{
height
:px2rem
(
10px
)
;}
60
%
{
height
:px2rem
(
15px
)
;}
80
%
{
height
:px2rem
(
10px
)
;}
100
%
{
height
:px2rem
(
5px
)
;}
}
}
img
{
img
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
...
...
src/components/business-new/yqy-home-banner.vue
浏览文件 @
f9e3b3ee
...
@@ -36,10 +36,13 @@ export default {
...
@@ -36,10 +36,13 @@ export default {
labelvalue
:
itemData
.
name
,
labelvalue
:
itemData
.
name
,
})
})
let
paramList
=
this
.
setEventByModuleCode
(
itemData
);
let
paramList
=
this
.
setEventByModuleCode
(
itemData
);
rocNative
.
dispatchEventByModuleCode
({
if
(
itemData
.
appModuleInfo
&&
itemData
.
appModuleInfo
.
code
!=
'M400'
){
modeCode
:
itemData
.
appModuleInfo
.
code
,
rocNative
.
dispatchEventByModuleCode
({
jsonString
:
paramList
modeCode
:
itemData
.
appModuleInfo
.
code
,
})
jsonString
:
paramList
})
}
},
},
getData
(){
getData
(){
...
...
src/components/business-new/yqy-home-keepon.vue
浏览文件 @
f9e3b3ee
...
@@ -28,8 +28,19 @@ export default {
...
@@ -28,8 +28,19 @@ export default {
parmObj
:{}
parmObj
:{}
}
}
},
},
props
:{
userMobile
:{
default
:
''
,
type
:
String
}
},
mounted
(){
mounted
(){
this
.
getData
();
if
(
this
.
userMobile
!=
''
){
this
.
getData
();
}
else
{
this
.
isShow
=
false
;
}
},
},
methods
:
{
methods
:
{
continueStudy
(
item
){
continueStudy
(
item
){
...
...
src/utils/mixins.js
浏览文件 @
f9e3b3ee
...
@@ -102,12 +102,11 @@ module.exports = {
...
@@ -102,12 +102,11 @@ module.exports = {
let
path
=
paramList
[
0
][
'key'
];
let
path
=
paramList
[
0
][
'key'
];
let
v
=
paramList
[
0
][
'value'
];
let
v
=
paramList
[
0
][
'value'
];
let
query
=
this
.
setRouterParm
(
paramList
);
let
query
=
this
.
setRouterParm
(
paramList
);
console
.
log
(
this
);
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
v
,
path
:
v
,
query
:
query
query
:
query
})
})
}
}
if
(
typeof
paramList
===
'string'
&&
!
paramList
){
if
(
typeof
paramList
===
'string'
&&
!
paramList
){
paramList
=
[]
paramList
=
[]
...
...
src/utils/yqyServerRegister.js
浏览文件 @
f9e3b3ee
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
e
.
rocNative
=
{
e
.
rocNative
=
{
// 参数说明 e:回传回来的移动端服务名称; t:前端自己传递的回调JS方法
// 参数说明 e:回传回来的移动端服务名称; t:前端自己传递的回调JS方法
__nativeCall
:
function
(
e
,
t
,
n
)
{
__nativeCall
:
function
(
e
,
t
,
n
)
{
///alert(t);
// if (t === '__gotoAuthentication') {
// if (t === '__gotoAuthentication') {
// __gotoAuthentication()
// __gotoAuthentication()
// }
// }
...
@@ -19,6 +20,16 @@
...
@@ -19,6 +20,16 @@
__getStatusBarHeight
(
n
);
__getStatusBarHeight
(
n
);
}
}
if
(
t
==
'pauseAudioView'
){
__pauseAudioView
(
n
);
}
if
(
t
==
'playAudioView'
){
__playAudioView
(
n
);
}
if
(
t
==
'closeAudioView'
){
__closeAudioView
(
n
);
}
},
},
__callNative
:
function
(
t
,
a
,
o
)
{
__callNative
:
function
(
t
,
a
,
o
)
{
...
@@ -72,7 +83,7 @@
...
@@ -72,7 +83,7 @@
})
})
}
}
})
})
}(
"dispatchEventByModuleCode"
,
"gotoAuthentication"
,
"shareWechat"
,
"backPreviousPage"
,
"bindingWechat"
,
"gotoLogin"
,
"getDeviceInfo"
,
"goBack"
,
"appBuryingPointEntrust"
,
"getAuthPermission"
,
"getAppVersionCode"
,
"getToken"
,
"gotoNewActivity"
,
"gotoNewActivityWithParams"
,
"gotoNewWebActivity"
,
"gotoYidianActivity"
,
"readMessage"
,
"openFiveMintusAudio"
,
"getStatusBarSize"
,
"showNativeDialog"
,
"showNativeToast"
,
"gotoViewTop"
,
"appInit"
,
"checkPermissions"
,
"getStatusBarHeight"
,
"setTabMiniIcon"
,
"getUserInfo"
)
}(
"dispatchEventByModuleCode"
,
"gotoAuthentication"
,
"shareWechat"
,
"backPreviousPage"
,
"bindingWechat"
,
"gotoLogin"
,
"getDeviceInfo"
,
"goBack"
,
"appBuryingPointEntrust"
,
"getAuthPermission"
,
"getAppVersionCode"
,
"getToken"
,
"gotoNewActivity"
,
"gotoNewActivityWithParams"
,
"gotoNewWebActivity"
,
"gotoYidianActivity"
,
"readMessage"
,
"openFiveMintusAudio"
,
"getStatusBarSize"
,
"showNativeDialog"
,
"showNativeToast"
,
"gotoViewTop"
,
"appInit"
,
"checkPermissions"
,
"getStatusBarHeight"
,
"setTabMiniIcon"
,
"getUserInfo"
,
"pauseAudioView"
)
if
(
e
.
__rocAndroid
)
{
if
(
e
.
__rocAndroid
)
{
e
.
__isAndroid
=
true
e
.
__isAndroid
=
true
e
.
__isIOS
=
false
e
.
__isIOS
=
false
...
...
src/views/activity/activity.vue
浏览文件 @
f9e3b3ee
...
@@ -135,13 +135,15 @@ export default {
...
@@ -135,13 +135,15 @@ export default {
.activity-item
{
.activity-item
{
position
:
relative
;
position
:
relative
;
width
:
px2rem
(
345px
);
width
:
px2rem
(
345px
);
/* height: px2rem(170px);*/
max-height
:
px2rem
(
170px
);
margin-top
:px2rem
(
15px
)
;
margin-top
:px2rem
(
15px
)
;
box-shadow
:
0
px2rem
(
2px
)
px2rem
(
6px
)
RGBA
(
42
,
94
,
161
,
0
.15
);
box-shadow
:
0
px2rem
(
2px
)
px2rem
(
6px
)
RGBA
(
42
,
94
,
161
,
0
.15
);
display
:
block
;
overflow
:
hidden
;
.img
{
.img
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
display
:
block
;
max-height
:
100%
;
}
}
.time
{
.time
{
position
:
absolute
;
position
:
absolute
;
...
...
src/views/home/home-new.vue
浏览文件 @
f9e3b3ee
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
</div>
</div>
<!--继续学习-->
<!--继续学习-->
<YqyHomeKeepon/>
<YqyHomeKeepon
:userMobile=
"userMobile"
/>
<!--专题分类-->
<!--专题分类-->
<YqyCategoryThree1/>
<YqyCategoryThree1/>
...
@@ -103,6 +103,7 @@ export default {
...
@@ -103,6 +103,7 @@ export default {
userToken
:
''
,
userToken
:
''
,
searchFix
:
false
,
searchFix
:
false
,
statusBarHeight
:
20
,
statusBarHeight
:
20
,
userMobile
:
''
}
}
},
},
components
:{
components
:{
...
@@ -128,10 +129,11 @@ export default {
...
@@ -128,10 +129,11 @@ export default {
}
}
window
.
__getUserInfo
=
function
(
parm
){
window
.
__getUserInfo
=
function
(
parm
){
///userMobile userName userToken systemType(Andriod: 1, iOS: 2) appVersion doctorId
_this
.
systemType
=
parm
.
systemType
;
_this
.
systemType
=
parm
.
systemType
;
_this
.
appVersion
=
parm
.
appVersion
;
_this
.
appVersion
=
parm
.
appVersion
;
_this
.
userToken
=
parm
.
userToken
;
_this
.
userToken
=
parm
.
userToken
;
_this
.
userMobile
=
parm
.
userMobile
;
if
(
!!
_this
.
systemType
&&
!!
_this
.
appVersion
){
if
(
!!
_this
.
systemType
&&
!!
_this
.
appVersion
){
_this
.
getSwiper
();
_this
.
getSwiper
();
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录