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
提交
61b8b1ca
提交
61b8b1ca
编写于
6月 05, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
中华医学教育在线
上级
7707305e
变更
6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
152 行增加
和
26 行删除
+152
-26
I-card-item.vue
src/components/cme/I-card-item.vue
+2
-2
card-popup.vue
src/components/cme/card-popup.vue
+5
-5
exjumper-dialog.vue
src/components/cme/exjumper-dialog.vue
+1
-1
I-credit-detail.vue
src/views/I-credit-detail.vue
+116
-11
index.vue
src/views/index.vue
+26
-5
merge-detail.vue
src/views/merge-detail.vue
+2
-2
未找到文件。
src/components/cme/I-card-item.vue
浏览文件 @
61b8b1ca
<
template
>
<
template
>
<section
class=
"I-card-item-wrapper"
>
<section
@
click=
"jumpToCardList"
class=
"I-card-item-wrapper"
>
<article
class=
"item"
>
<article
class=
"item"
>
<img
class=
"left-icon"
src=
"../../images/cme/phrase2/I-img.png"
alt
/>
<img
class=
"left-icon"
src=
"../../images/cme/phrase2/I-img.png"
alt
/>
<article
class=
"center"
>
<article
class=
"center"
>
...
@@ -21,7 +21,7 @@ export default {
...
@@ -21,7 +21,7 @@ export default {
...
mapGetters
([
"userInfo"
])
...
mapGetters
([
"userInfo"
])
},
},
methods
:
{
methods
:
{
// 跳转I类学习详情页面
// 跳转I类学习详情
(介绍)
页面
jumpToCardList
()
{
jumpToCardList
()
{
if
(
!
this
.
userInfo
.
userMobile
)
{
if
(
!
this
.
userInfo
.
userMobile
)
{
rocNative
.
gotoLogin
();
rocNative
.
gotoLogin
();
...
...
src/components/cme/card-popup.vue
浏览文件 @
61b8b1ca
...
@@ -20,10 +20,10 @@
...
@@ -20,10 +20,10 @@
<div
class=
"btn"
>
<div
class=
"btn"
>
<span
class=
"left"
@
click=
"cancle"
>
已购买去学习
</span>
<span
class=
"left"
@
click=
"cancle"
>
已购买去学习
</span>
<span
class=
"vert-line"
></span>
<span
class=
"vert-line"
></span>
<span
class=
"right"
@
click=
"conf
o
rm"
>
去购买
</span>
<span
class=
"right"
@
click=
"conf
i
rm"
>
去购买
</span>
</div>
</div>
<!--
<p
class=
"update-btn v-hairline-top confirm-btn"
@
click=
"cancle"
>
确定
</p>
<!--
<p
class=
"update-btn v-hairline-top confirm-btn"
@
click=
"cancle"
>
确定
</p>
<p
class=
"update-btn v-hairline-top"
@
click=
"conf
o
rm"
>
取消
</p>
-->
<p
class=
"update-btn v-hairline-top"
@
click=
"conf
i
rm"
>
取消
</p>
-->
</article>
</article>
</van-popup>
</van-popup>
</section>
</section>
...
@@ -44,10 +44,10 @@ export default {
...
@@ -44,10 +44,10 @@ export default {
},
},
methods
:
{
methods
:
{
cancle
()
{
cancle
()
{
this
.
$emit
(
'cancle'
);
},
},
conf
o
rm
()
{
conf
i
rm
()
{
this
.
$emit
(
'confirm'
);
}
}
},
},
}
}
...
...
src/components/cme/exjumper-dialog.vue
浏览文件 @
61b8b1ca
...
@@ -23,7 +23,7 @@ export default {
...
@@ -23,7 +23,7 @@ export default {
props
:
{
props
:
{
title
:
{
title
:
{
type
:
String
,
type
:
String
,
default
:
'即将打开<br/>“中华医学教育在线”平台'
default
:
'即将打开<br/>
“中华医学教育在线”平台'
},
},
content
:
{
content
:
{
type
:
String
,
type
:
String
,
...
...
src/views/I-credit-detail.vue
浏览文件 @
61b8b1ca
<
template
>
<
template
>
<section
class=
"cd-wrapper"
>
<section
class=
"cd-wrapper"
>
<img
class=
"img"
src=
"https://file.yunqueyi.com/h5/images/tinified/
i
-detail-1.png"
>
<img
class=
"img"
src=
"https://file.yunqueyi.com/h5/images/tinified/
I
-detail-1.png"
>
<img
class=
"img"
src=
"https://file.yunqueyi.com/h5/images/tinified/
i
-detail-2.png"
>
<img
class=
"img"
src=
"https://file.yunqueyi.com/h5/images/tinified/
I
-detail-2.png"
>
<img
class=
"img"
src=
"https://file.yunqueyi.com/h5/images/tinified/
i
-detail-3.png"
>
<img
class=
"img"
src=
"https://file.yunqueyi.com/h5/images/tinified/
I
-detail-3.png"
>
<img
class=
"img"
src=
"https://file.yunqueyi.com/h5/images/tinified/
i
-detail-4.png"
>
<img
class=
"img"
src=
"https://file.yunqueyi.com/h5/images/tinified/
I
-detail-4.png"
>
<img
class=
"img"
src=
"https://file.yunqueyi.com/h5/images/tinified/
i
-detail-5.png"
>
<img
class=
"img"
src=
"https://file.yunqueyi.com/h5/images/tinified/
I
-detail-5.png"
>
<img
class=
"img"
src=
"https://file.yunqueyi.com/h5/images/tinified/
i
-detail-6.png"
>
<img
class=
"img"
src=
"https://file.yunqueyi.com/h5/images/tinified/
I
-detail-6.png"
>
<img
class=
"img"
src=
"https://file.yunqueyi.com/h5/images/tinified/
i
-detail-7.png"
>
<img
class=
"img"
src=
"https://file.yunqueyi.com/h5/images/tinified/
I
-detail-7.png"
>
<img
@
click=
"jumper"
class=
"img"
src=
"https://file.yunqueyi.com/h5/images/tinified/i-detail-8.png"
>
<img
@
click=
"jumper"
class=
"img"
src=
"https://file.yunqueyi.com/h5/images/tinified/i-detail-8.png"
>
<CardPopup
:showGoUpdate=
"showGoUpdate"
></CardPopup>
<img
@
click=
"confirm"
class=
"img"
src=
"https://file.yunqueyi.com/h5/images/tinified/i-detail-8.png"
>
<img
@
click=
"jumpToCardList"
class=
"img"
src=
"https://file.yunqueyi.com/h5/images/tinified/i-detail-8.png"
>
<CardPopup
:cardInfo=
"cardInfo"
:showGoUpdate=
"showGoUpdate"
@
cancle=
"jumpToCardList"
@
confirm=
"confirm"
></CardPopup>
</section>
</section>
</
template
>
</
template
>
<
script
>
<
script
>
import
CardPopup
from
"@/components/cme/card-popup"
;
import
CardPopup
from
"@/components/cme/card-popup"
;
import
{
mapGetters
}
from
'vuex'
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
showGoUpdate
:
false
,
showGoUpdate
:
false
,
cardInfo
:
{
}
}
}
},
},
components
:
{
components
:
{
CardPopup
CardPopup
},
},
computed
:
{
...
mapGetters
(
'jumpURLForII'
,
'organizationInfo'
)
},
created
()
{
// TEST
window
.
__getPositionData
=
function
(
param
)
{
console
.
log
(
param
);
this
.
getProvinceIdByPosition
(
param
);
// this.getCardInfoByProvinceId(param.city_code);
}
},
methods
:
{
methods
:
{
/*
/*
TODO
1、判断用户是否购买过I类学习卡,没有购买过,则弹出Popup框(之前要调用接口)
1、判断用户是否购买过I类学习卡,没有购买过,则弹出Popup框(之前要调用接口)
2、判断用户是否购买过I类学习卡,没有购买过,则弹出Popup框(之前要调用接口)
2、判断用户是否购买过I类学习卡,没有购买过,则弹出Popup框(之前要调用接口)
*/
*/
jumper
()
{
jumper
()
{
this
.
showGoUpdate
=
true
;
// this.showGoUpdate = true;
// 如果有机构,则直接获取学习卡信息
if
(
organizationInfo
.
organizationId
&&
organizationInfo
.
provinceId
)
{
this
.
getCardInfoByProvinceId
(
organizationInfo
.
provinceId
);
// 否则获取地理位置信息
}
else
{
this
.
getPositionData
();
}
console
.
log
(
organizationInfo
)
console
.
log
(
'in jumper'
);
console
.
log
(
'in jumper'
);
}
},
// 获取地理位置信息
getPositionData
()
{
console
.
log
(
'getPositionData'
);
rocNative
.
getPositionData
({
__funcName
:
"__getPositionData"
});
},
// 根据省ID,获取学习卡信息
getCardInfoByProvinceId
(
provinceId
)
{
let
param
=
{
"area"
:
provinceId
+
''
,
"cardType"
:
1
,
"pageNum"
:
1
,
"pageSize"
:
1
}
this
.
GET
(
"trade/goods/cardList"
,
param
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
this
.
showGoUpdate
=
true
;
console
.
log
(
'getCardInfoByProvinceId'
,
res
);
this
.
cardInfo
=
res
.
data
&&
res
.
data
[
0
]
||
{}
;
}
});
},
// 根据位置信息获取省ID
getProvinceIdByPosition
(
param
)
{
this
.
GET
(
"aggregate/cme/convertLocationToProvinceId"
,
param
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
console
.
log
(
'getProvinceIdByPosition'
,
res
);
this
.
getCardInfoByProvinceId
(
res
.
data
);
}
});
},
// 跳转到原生的购买页面
confirm
(
goodId
)
{
console
.
log
(
goodId
);
let
paramList
=
[
{
key
:
"className"
,
value
:
"com.picahealth.yunque.activitys.studycard.StudyCardDetailActivity###PicaDo.LearningCardVC"
,
type
:
4
,
seqNo
:
1
},
{
key
:
"goodId"
,
value
:
goodId
,
type
:
4
,
seqNo
:
1
},
];
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
"M200"
,
jsonString
:
paramList
});
},
// 跳转I类学习详情页面(中华医学会项目列表页面)
jumpToCardList
()
{
if
(
window
.
__isWeb
)
{
console
.
log
(
'in jumpToCardList'
);
return
;
}
else
{
let
pageUrl
=
this
.
jumpURLForII
;
let
paramList
=
[
{
key
:
"pageUrl"
,
value
:
pageUrl
,
type
:
4
,
seqNo
:
1
}
]
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
"M300"
,
jsonString
:
paramList
});
}
}
},
},
}
}
</
script
>
</
script
>
...
...
src/views/index.vue
浏览文件 @
61b8b1ca
...
@@ -196,12 +196,11 @@ export default {
...
@@ -196,12 +196,11 @@ export default {
this
.
GET
(
"cme/project/list"
,
param
).
then
(
res
=>
{
this
.
GET
(
"cme/project/list"
,
param
).
then
(
res
=>
{
_this
.
showLoading
=
false
;
_this
.
showLoading
=
false
;
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
cachedJoinProjectList
=
res
.
data
.
myCMEProjectListDtoList
;
let
organizationInfo
=
{}
cachedOtherProjectList
=
res
.
data
.
allCMEProjectListDtoList
;
_this
.
joinProjectList
=
res
.
data
.
myCMEProjectListDtoList
;
_this
.
joinProjectList
=
res
.
data
.
myCMEProjectListDtoList
;
_this
.
otherProjectList
=
res
.
data
.
allCMEProjectListDtoList
;
_this
.
otherProjectList
=
res
.
data
.
allCMEProjectListDtoList
;
_this
.
organizationInfo
.
provinceId
=
res
.
data
.
provinceId
;
organizationInfo
.
provinceId
=
res
.
data
.
provinceId
;
_this
.
organizationInfo
.
organizationId
=
res
.
data
.
organizationId
;
organizationInfo
.
organizationId
=
res
.
data
.
organizationId
;
_this
.
oneLevelUrl
=
res
.
data
.
oneLevelUrl
;
// 学习卡列表地址
_this
.
oneLevelUrl
=
res
.
data
.
oneLevelUrl
;
// 学习卡列表地址
// _this.setJumpURLForIAndII(res.data.oneLevelUrl);
// _this.setJumpURLForIAndII(res.data.oneLevelUrl);
_this
.
setOrganizationInfo
(
organizationInfo
);
_this
.
setOrganizationInfo
(
organizationInfo
);
...
@@ -231,7 +230,29 @@ export default {
...
@@ -231,7 +230,29 @@ export default {
// 滚动到顶部
// 滚动到顶部
scrollTop
()
{
scrollTop
()
{
window
.
scrollTo
(
0
,
0
);
window
.
scrollTo
(
0
,
0
);
}
},
// 跳转到原生的购买页面
confirm
(
goodId
)
{
let
paramList
=
[
{
key
:
"className"
,
value
:
"com.picahealth.yunque.activitys.studycard.StudyCardDetailActivity###PicaDo.LearningCardVC"
,
type
:
4
,
seqNo
:
1
},
{
key
:
"goodId"
,
value
:
goodId
,
type
:
4
,
seqNo
:
1
},
];
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
"M200"
,
jsonString
:
paramList
});
},
}
}
};
};
</
script
>
</
script
>
...
...
src/views/merge-detail.vue
浏览文件 @
61b8b1ca
...
@@ -106,8 +106,8 @@
...
@@ -106,8 +106,8 @@
:isShowDialog=
"isShowEJDialog"
:isShowDialog=
"isShowEJDialog"
isSingle
isSingle
needSubContent
needSubContent
content=
"
确保您已经从云鹊平台购买优惠学习卡。跳转后请申请考试、激活学习卡,考试通过后申请证书。
"
content=
"
请确保您已经在云鹊平台购买学员优惠学习卡
"
subContent=
"
学分由中华医学电子音像出版社授予,如有问题可致电400-920-8899云鹊医客服咨询。
"
subContent=
"
1. 跳转后点击“购买学习”,注册登录“中华医学教育在线”平台(首次登录需用手机号注册)
<br/>
2. 支付方式选择 “学习卡支付”,输入在云鹊平台已购学习卡的激活码,即可参加考试申请学分
"
cancleBtnText="我知道了"
cancleBtnText="我知道了"
@handlerAction="handlerEJAction"
@handlerAction="handlerEJAction"
/>
/>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录