Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-cooperation-cme
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-cooperation-cme
提交
35029eb2
提交
35029eb2
编写于
7月 26, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
去试看去试看
上级
c920446d
变更
7
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
139 行增加
和
30 行删除
+139
-30
cell-list-detail.vue
src/components/business/cell-list-detail.vue
+10
-0
coop-list-item.vue
src/components/business/coop-list-item.vue
+7
-2
bind-card-button.vue
src/components/cme/bind-card-button.vue
+10
-9
env-config.js
src/utils/env-config.js
+10
-9
fetch.js
src/utils/fetch.js
+2
-2
index.vue
src/views/index.vue
+1
-0
merge-detail.vue
src/views/merge-detail.vue
+99
-8
未找到文件。
src/components/business/cell-list-detail.vue
浏览文件 @
35029eb2
...
@@ -32,6 +32,16 @@
...
@@ -32,6 +32,16 @@
<p
class=
"name-title"
:class=
"
{'name-title-no': item.useFlag == 2}">
{{
item
.
name
|
shortName
(
30
)
}}
</p>
<p
class=
"name-title"
:class=
"
{'name-title-no': item.useFlag == 2}">
{{
item
.
name
|
shortName
(
30
)
}}
</p>
</div>
</div>
<span
<span
v-if=
"!hasBindCard"
@
click=
"gotoExamOrCourse(item)"
class=
"text-action"
:class=
"
{'text-action-no': item.useFlag == 2}"
style="background: #f28662;border: none;color: #fff;"
>
去试看
</span>
<span
v-else
@
click=
"gotoExamOrCourse(item)"
@
click=
"gotoExamOrCourse(item)"
class=
"text-action"
class=
"text-action"
:class=
"
{'text-action-no': item.useFlag == 2}"
:class=
"
{'text-action-no': item.useFlag == 2}"
...
...
src/components/business/coop-list-item.vue
浏览文件 @
35029eb2
...
@@ -20,7 +20,9 @@
...
@@ -20,7 +20,9 @@
<span
class=
"coop-item-right-title"
>
{{
item
.
name
}}
</span>
<span
class=
"coop-item-right-title"
>
{{
item
.
name
}}
</span>
<span
v-if=
"item.cmeType == 2"
class=
"coop-item-right-other"
>
{{
item
.
level
}}
|
{{
item
.
scope
}}
</span>
<span
v-if=
"item.cmeType == 2"
class=
"coop-item-right-other"
>
{{
item
.
level
}}
|
{{
item
.
scope
}}
</span>
<span
v-if=
"item.cmeType != 2"
class=
"coop-item-right-other"
>
{{
item
.
level
}}
|
{{
item
.
credit
}}
|
{{
item
.
scope
}}
</span>
<span
v-if=
"item.cmeType != 2"
class=
"coop-item-right-other"
>
{{
item
.
level
}}
|
{{
item
.
credit
}}
|
{{
item
.
scope
}}
</span>
<span
class=
"coop-item-right-other"
>
{{
item
.
startDate
|
formatTime
(
'{y
}
.{m
}
.{d
}
'
)
}}
至
{{
item
.
endDate
|
formatTime
(
'{y
}
.{m
}
.{d
}
'
)
}}
<
span
v
-
if
=
"item.cardStatus == 1"
class
=
"active"
><
span
>
已激活
<
/span></
span
><
/span
>
<span
class=
"coop-item-right-other"
>
{{
item
.
startDate
|
formatTime
(
'{y
}
.{m
}
.{d
}
'
)
}}
至
{{
item
.
endDate
|
formatTime
(
'{y
}
.{m
}
.{d
}
'
)
}}
<
span
v
-
if
=
"item.cardStatus != 1"
class
=
"active sk"
><
span
>
可试看
<
/span></
span
><
/span
>
<
span
v
-
if
=
"item.cardStatus == 1"
class
=
"active"
><
span
>
已激活
<
/span></
span
><
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
NoMoreContent
v
-
show
=
"paramData.length > 9"
><
/NoMoreContent
>
<
NoMoreContent
v
-
show
=
"paramData.length > 9"
><
/NoMoreContent
>
...
@@ -300,7 +302,10 @@ export default {
...
@@ -300,7 +302,10 @@ export default {
line
-
height
:
px2rem
(
18
px
);
line
-
height
:
px2rem
(
18
px
);
color
:
#
CAA861
;
color
:
#
CAA861
;
border
-
radius
:
px2rem
(
3
px
);
border
-
radius
:
px2rem
(
3
px
);
border
:
1
px
solid
rgba
(
202
,
168
,
97
,
1
);
// border: 1px solid rgba(202,168,97,1);
&
.
sk
{
color
:
rgba
(
68
,
146
,
132
,
1
);
}
span
{
span
{
position
:
relative
;
position
:
relative
;
top
:
px2rem
(
-
1.1
px
);
top
:
px2rem
(
-
1.1
px
);
...
...
src/components/cme/bind-card-button.vue
浏览文件 @
35029eb2
...
@@ -98,22 +98,23 @@ export default {
...
@@ -98,22 +98,23 @@ export default {
justify-content
:
center
;
justify-content
:
center
;
width
:
px2rem
(
80px
);
width
:
px2rem
(
80px
);
font-size
:
px2rem
(
14px
);
font-size
:
px2rem
(
14px
);
font-weight
:
7
00
;
font-weight
:
4
00
;
text-align
:
center
;
text-align
:
center
;
color
:
#7f7f7f
;
border
:
1px
solid
#d2b573
;
&
.left
{
&
.left
{
border-radius
:
px2rem
(
20px
)
0px
0px
px2rem
(
20px
);
border-radius
:
px2rem
(
20px
)
0px
0px
px2rem
(
20px
);
border
:
1px
solid
rgba
(
255
,
122
,
75
,
1
);
border-right-style
:
none
;
border-right-style
:
none
;
color
:
#ff7a4b
;
//
color: #ff7a4b;
}
}
&
.right
{
&
.right
{
background
:
linear-gradient
(
//
background: linear-gradient(
137deg
,
//
137deg,
rgba
(
255
,
166
,
95
,
1
)
0%
,
//
rgba(255, 166, 95, 1) 0%,
rgba
(
255
,
122
,
75
,
1
)
100%
//
rgba(255, 122, 75, 1) 100%
);
//
);
border-radius
:
0px
px2rem
(
20px
)
px2rem
(
20px
)
0px
;
border-radius
:
0px
px2rem
(
20px
)
px2rem
(
20px
)
0px
;
color
:
#fff
;
//
color: #fff;
}
}
}
}
}
}
...
...
src/utils/env-config.js
浏览文件 @
35029eb2
...
@@ -7,10 +7,11 @@ export const envConfig = {
...
@@ -7,10 +7,11 @@ export const envConfig = {
// baseUrl: 'https://dev-sc.yunqueyi.com/',
// baseUrl: 'https://dev-sc.yunqueyi.com/',
// baseUrl: 'http://10.177.15.180:10202/',
// baseUrl: 'http://10.177.15.180:10202/',
// baseUrl: 'http://192.168.140.14:10201/',
// baseUrl: 'http://192.168.140.14:10201/',
apiUrl
:
'https://dev-api.yunqueyi.com/'
,
webPageUrl
:
'https://dev-phome.yunqueyi.com/'
,
// apiUrl: 'https://dev-api.yunqueyi.com/',
baseUrl
:
'https://dev-sc.yunqueyi.com/'
,
// webPageUrl: 'https://dev-phome.yunqueyi.com/',
hactiveUrl
:
'https://dev-hactive.yunqueyi.com'
,
// baseUrl: 'https://dev-sc.yunqueyi.com/',
// hactiveUrl: 'https://dev-hactive.yunqueyi.com',
// http://dev-hactive.yunqueyi.com/message_push/#/study-card
// http://dev-hactive.yunqueyi.com/message_push/#/study-card
// baseUrl: 'https://test1-sc.yunqueyi.com/',
// baseUrl: 'https://test1-sc.yunqueyi.com/',
...
@@ -18,14 +19,14 @@ export const envConfig = {
...
@@ -18,14 +19,14 @@ export const envConfig = {
// webPageUrl: 'https://test1-phome.yunqueyi.com/'
// webPageUrl: 'https://test1-phome.yunqueyi.com/'
// hactiveUrl: 'https://dev-hactive.yunqueyi.com',
// hactiveUrl: 'https://dev-hactive.yunqueyi.com',
//
baseUrl: 'https://uat-sc.yunqueyi.com/',
baseUrl
:
'https://uat-sc.yunqueyi.com/'
,
//
apiUrl: 'https://uat-api.yunqueyi.com/',
apiUrl
:
'https://uat-api.yunqueyi.com/'
,
// webPageUrl: 'https://uat-phome.yunqueyi.com/'
webPageUrl
:
'https://uat-phome.yunqueyi.com/'
,
//
hactiveUrl: 'https://uat-hactive.yunqueyi.com',
hactiveUrl
:
'https://uat-hactive.yunqueyi.com'
,
// baseUrl: 'https://sc.yunqueyi.com/',
// baseUrl: 'https://sc.yunqueyi.com/',
// apiUrl: 'https://api.yunqueyi.com/',
// apiUrl: 'https://api.yunqueyi.com/',
// webPageUrl: 'https://phome.yunqueyi.com/'
// webPageUrl: 'https://phome.yunqueyi.com/'
,
// hactiveUrl: 'https://hactive.yunqueyi.com',
// hactiveUrl: 'https://hactive.yunqueyi.com',
},
},
...
...
src/utils/fetch.js
浏览文件 @
35029eb2
...
@@ -15,9 +15,9 @@ service.interceptors.request.use(config => {
...
@@ -15,9 +15,9 @@ service.interceptors.request.use(config => {
if
(
config
.
data
&&
config
.
data
.
setEntry
)
{
if
(
config
.
data
&&
config
.
data
.
setEntry
)
{
config
.
headers
[
'sysCode'
]
=
config
.
data
.
sysCode
||
10
config
.
headers
[
'sysCode'
]
=
config
.
data
.
sysCode
||
10
if
(
config
.
data
.
token
){
if
(
config
.
data
.
token
){
config
.
headers
[
'token'
]
=
config
.
data
.
token
||
'
891F256CC48A4D57905F79C8F7628A74
'
config
.
headers
[
'token'
]
=
config
.
data
.
token
||
'
CAF8336E76514F07BF195EFCEBE60775
'
if
(
process
.
env
.
BUILD_ENV
==
"development"
){
// 本地开发环境
if
(
process
.
env
.
BUILD_ENV
==
"development"
){
// 本地开发环境
config
.
headers
[
'token'
]
=
config
.
data
.
token
||
'
891F256CC48A4D57905F79C8F7628A74
'
;
config
.
headers
[
'token'
]
=
config
.
data
.
token
||
'
CAF8336E76514F07BF195EFCEBE60775
'
;
}
}
delete
config
.
data
.
setEntry
;
delete
config
.
data
.
setEntry
;
delete
config
.
data
.
token
;
delete
config
.
data
.
token
;
...
...
src/views/index.vue
浏览文件 @
35029eb2
...
@@ -315,6 +315,7 @@ export default {
...
@@ -315,6 +315,7 @@ export default {
}
}
.back-up-icon
{
.back-up-icon
{
position
:
fixed
;
position
:
fixed
;
z-index
:
110
;
bottom
:
px2rem
(
50px
);
bottom
:
px2rem
(
50px
);
right
:
px2rem
(
15px
);
right
:
px2rem
(
15px
);
img
{
img
{
...
...
src/views/merge-detail.vue
浏览文件 @
35029eb2
...
@@ -17,11 +17,14 @@
...
@@ -17,11 +17,14 @@
></CommonNavbar>
></CommonNavbar>
<div
class=
"page-content list-container"
>
<div
class=
"page-content list-container"
>
<!-- banner图片 -->
<!-- banner图片 -->
<div
v-if=
"bannerType == 1"
class=
"page-content-img-container
"
>
<div
@
click=
"gotoCourse()"
v-if=
"bannerType == 1"
class=
"page-content-img-container"
style=
"position:relative;
"
>
<img
class=
"banner-img"
:src=
"attachmentUrl"
/>
<img
class=
"banner-img"
:src=
"attachmentUrl"
/>
<!--
<img
v-show=
"project.status == 1"
class=
"banner-img-1"
src=
"../images/status-join.png"
/>
-->
<!--
<img
v-show=
"project.status == 1"
class=
"banner-img-1"
src=
"../images/status-join.png"
/>
-->
<img
v-show=
"project.status == 5"
class=
"banner-img-5"
src=
"../images/status-keep-on.png"
/>
<img
v-show=
"project.status == 5"
class=
"banner-img-5"
src=
"../images/status-keep-on.png"
/>
<img
v-show=
"project.status == 10"
class=
"banner-img-10"
src=
"../images/status-end-cme.png"
/>
<img
v-show=
"project.status == 10"
class=
"banner-img-10"
src=
"../images/status-end-cme.png"
/>
<div
v-if=
"skCourseId"
class=
"sk-btn-cover"
>
去试看
</div>
</div>
</div>
<!-- banner视频 -->
<!-- banner视频 -->
<CommonTcPlayer
v-if=
"bannerType == 2"
style=
"flex"
:options=
"videoOptions"
></CommonTcPlayer>
<CommonTcPlayer
v-if=
"bannerType == 2"
style=
"flex"
:options=
"videoOptions"
></CommonTcPlayer>
...
@@ -126,7 +129,7 @@
...
@@ -126,7 +129,7 @@
:type=
"project.currentProgress > 1 ? 'primary' : 'disabled'"
:type=
"project.currentProgress > 1 ? 'primary' : 'disabled'"
></ExjumperButton>
></ExjumperButton>
<div
v-if=
"project.cmeType == 2 && !isWeb"
style=
"padding-top: 30px"
></div>
<div
v-if=
"project.cmeType == 2 && !isWeb"
style=
"padding-top: 30px"
></div>
<BindCardButton
<BindCardButton
v-if=
"project.cmeType == 2 && !hasBindCard && !isWeb"
v-if=
"project.cmeType == 2 && !hasBindCard && !isWeb"
:cardInfo=
"cardInfo"
:cardInfo=
"cardInfo"
...
@@ -176,13 +179,14 @@ import ExjumperButton from "@/components/cme/exjumper-button";
...
@@ -176,13 +179,14 @@ import ExjumperButton from "@/components/cme/exjumper-button";
import
NoMoreContent
from
"@/components/business/no-more-content"
;
import
NoMoreContent
from
"@/components/business/no-more-content"
;
import
CommonAdertImg
from
"@/components/common/common-advert-img"
;
import
CommonAdertImg
from
"@/components/common/common-advert-img"
;
import
{
getWebPageUrl
,
gotoPage
}
from
"@/utils/index"
;
import
{
getWebPageUrl
,
gotoPage
,
getAppVersion
}
from
"@/utils/index"
;
import
{
mapGetters
,
mapActions
}
from
"vuex"
;
import
{
mapGetters
,
mapActions
}
from
"vuex"
;
import
vueFilters
from
"@/utils/filter"
;
import
vueFilters
from
"@/utils/filter"
;
import
{
Toast
}
from
"vant"
;
import
{
Toast
}
from
"vant"
;
// import CardPopup from "@/components/cme/card-popup";
// import CardPopup from "@/components/cme/card-popup";
import
BindCardButton
from
"@/components/cme/bind-card-button"
;
import
BindCardButton
from
"@/components/cme/bind-card-button"
;
import
ChangeCard
from
"@/components/cme/change-card"
;
import
ChangeCard
from
"@/components/cme/change-card"
;
let
cataOffsetTop
=
0
;
let
cataOffsetTop
=
0
;
let
intorOffsetTop
=
0
;
let
intorOffsetTop
=
0
;
let
titleOffsetHeight
=
50
;
let
titleOffsetHeight
=
50
;
...
@@ -195,7 +199,7 @@ export default {
...
@@ -195,7 +199,7 @@ export default {
textContent
:
""
,
textContent
:
""
,
leaderText
:
""
,
leaderText
:
""
,
pageTitle
:
""
,
pageTitle
:
""
,
isShowShare
:
tru
e
,
isShowShare
:
fals
e
,
premissionFlag
:
false
,
premissionFlag
:
false
,
isSingle
:
false
,
isSingle
:
false
,
dialogContent
:
""
,
// 弹框内容
dialogContent
:
""
,
// 弹框内容
...
@@ -283,7 +287,8 @@ export default {
...
@@ -283,7 +287,8 @@ export default {
},
},
advertInfoList
:
[],
advertInfoList
:
[],
showChangeCard
:
false
,
//是否展示激活弹框,
showChangeCard
:
false
,
//是否展示激活弹框,
changeCardErrorMsg
:
""
changeCardErrorMsg
:
""
,
skCourseId
:
0
,
};
};
},
},
components
:
{
components
:
{
...
@@ -369,6 +374,10 @@ export default {
...
@@ -369,6 +374,10 @@ export default {
methods
:
{
methods
:
{
...
mapActions
([
"setUserInfo"
]),
...
mapActions
([
"setUserInfo"
]),
skAction
()
{
},
cancleChangeCard
()
{
cancleChangeCard
()
{
this
.
showChangeCard
=
false
;
this
.
showChangeCard
=
false
;
},
},
...
@@ -894,6 +903,13 @@ export default {
...
@@ -894,6 +903,13 @@ export default {
:
this
.
projectLeader
.
info
;
:
this
.
projectLeader
.
info
;
}
}
_this
.
doctorList
=
res
.
data
.
doctorList
;
_this
.
doctorList
=
res
.
data
.
doctorList
;
_this
.
skCourseId
=
0
;
if
(
res
.
data
.
projectComponentDTOS
.
length
&&
res
.
data
.
projectComponentDTOS
[
0
].
portalModuleDTOS
.
length
&&
res
.
data
.
projectComponentDTOS
[
0
].
portalModuleDTOS
[
0
].
contentList
.
length
)
{
_this
.
skCourseId
=
res
.
data
.
projectComponentDTOS
[
0
].
portalModuleDTOS
[
0
].
contentList
[
0
].
id
;
}
//_this.projectStatus = res.data.projectStatus;
//_this.projectStatus = res.data.projectStatus;
_this
.
projectComponentDTOS
=
_this
.
setListData
(
_this
.
projectComponentDTOS
=
_this
.
setListData
(
...
@@ -925,8 +941,8 @@ export default {
...
@@ -925,8 +941,8 @@ export default {
cataOffsetTop
,
cataOffsetTop
,
intorOffsetTop
intorOffsetTop
);
);
// 直接跳转
// 直接跳转
cmeType == 2
if
(
_this
.
project
.
jumpToContents
)
{
if
(
_this
.
project
.
jumpToContents
||
this
.
project
.
cmeType
==
2
)
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
jumpCatalogue
();
this
.
jumpCatalogue
();
},
200
);
},
200
);
...
@@ -1026,7 +1042,68 @@ export default {
...
@@ -1026,7 +1042,68 @@ export default {
}
else
if
(
len
<=
30
&&
certificate
!=
2
)
{
}
else
if
(
len
<=
30
&&
certificate
!=
2
)
{
return
1
;
return
1
;
}
}
}
},
// 跳转到课程
gotoCourse
:
function
()
{
let
courseId
=
''
;
let
appVersion
=
getAppVersion
(
this
.
userInfo
.
appVersion
);
// 弹框提示下载新版本可以试看
if
(
appVersion
<
343
&&
!
this
.
hasBindCard
)
{
this
.
$dialog
.
confirm
({
className
:
'con-dialog'
,
showCancelButton
:
false
,
// message: '激活/购买后可学习完整课程',
message
:
'升级最新版本可试看课程'
,
confirmButtonText
:
'我知道了'
,
}).
then
(
res
=>
{
})
return
;
}
let
paramList
=
[]
let
limitTimes
=
this
.
limitTimes
-
0
;
if
(
this
.
hasBindCard
)
{
limitTimes
=
-
1
;
}
paramList
=
[
{
key
:
"className"
,
value
:
"com.picahealth.yunque.activitys.courseplaynew.MyTcPlayVideoActivity###CourseMultiMediaPlayController"
,
type
:
4
,
seqNo
:
1
},
{
key
:
"isCHC"
,
value
:
0
,
type
:
4
,
seqNo
:
1
},
{
key
:
"courseId"
,
value
:
courseId
,
type
:
4
,
seqNo
:
1
},
{
key
:
"courseRequire"
,
value
:
this
.
courseRequire
-
0
,
type
:
4
,
seqNo
:
1
},
{
key
:
"limitTimes"
,
value
:
limitTimes
,
type
:
4
,
seqNo
:
1
},
];
console
.
log
(
paramList
);
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
"M200"
,
jsonString
:
paramList
});
},
}
}
};
};
</
script
>
</
script
>
...
@@ -1065,6 +1142,20 @@ export default {
...
@@ -1065,6 +1142,20 @@ export default {
}
}
.list-container
{
.list-container
{
// margin-bottom: px2rem(40px);
// margin-bottom: px2rem(40px);
.sk-btn-cover
{
position
:
absolute
;
top
:
px2rem
(
82px
);
left
:
px2rem
(
163px
);
z-index
:
100
;
width
:
px2rem
(
50px
);
height
:
px2rem
(
50px
);
line-height
:
px2rem
(
50px
);
text-align
:
center
;
background
:
#fff
;
color
:
rgba
(
68
,
146
,
132
,
1
);
font-size
:
px2rem
(
13px
);
border-radius
:
50%
;
}
}
}
.intro-catalogue-container
{
.intro-catalogue-container
{
.title
{
.title
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录