Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-professional-exam
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Culm
pica-professional-exam
提交
5a50886d
提交
5a50886d
编写于
6月 05, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
则直接获取学习卡信息
3e541bde
guangjun.yang <guangjun.yang@picahealth.com> 2020年6月5日 下午2:21
上级
3e541bde
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
19 行增加
和
11 行删除
+19
-11
getters.js
src/store/getters.js
+1
-0
coop.js
src/store/modules/coop.js
+9
-2
I-credit-detail.vue
src/views/I-credit-detail.vue
+5
-6
index.vue
src/views/index.vue
+4
-3
未找到文件。
src/store/getters.js
浏览文件 @
5a50886d
...
...
@@ -2,6 +2,7 @@ const getters = {
userInfo
:
state
=>
state
.
coop
.
userInfo
,
statusBarHeight
:
state
=>
state
.
coop
.
statusBarHeight
,
projectTabIndex
:
state
=>
state
.
coop
.
projectTabIndex
,
jumpURLForI
:
state
=>
state
.
coop
.
jumpURLForI
,
jumpURLForII
:
state
=>
state
.
coop
.
jumpURLForII
,
positionInfo
:
state
=>
state
.
coop
.
positionInfo
,
organizationInfo
:
state
=>
state
.
coop
.
organizationInfo
,
...
...
src/store/modules/coop.js
浏览文件 @
5a50886d
...
...
@@ -3,7 +3,8 @@ const coop = {
userInfo
:
{},
statusBarHeight
:
{},
projectTabIndex
:
1
,
jumpURLForII
:
""
,
//中华医学会一类或二类跳转地址
jumpURLForI
:
""
,
//中华医学会一类跳转地址
jumpURLForII
:
""
,
//中华医学会二类跳转地址
positionInfo
:
{
accuracy
:
""
,
address
:
""
,
...
...
@@ -35,6 +36,9 @@ const coop = {
SET_PROJECT_TAB_INDEX
:
(
state
,
projectTabIndex
)
=>
{
state
.
projectTabIndex
=
projectTabIndex
},
SET_JUMP_URL_FOR_I_AND_II
:
(
state
,
jumpURLForI
)
=>
{
state
.
jumpURLForI
=
jumpURLForI
},
SET_JUMP_URL_FOR_I_AND_II
:
(
state
,
jumpURLForII
)
=>
{
state
.
jumpURLForII
=
jumpURLForII
},
...
...
@@ -55,8 +59,11 @@ const coop = {
setProjectTabIndex
({
commit
},
projectTabIndex
)
{
commit
(
'SET_PROJECT_TAB_INDEX'
,
projectTabIndex
)
},
setJumpURLForI
({
commit
},
jumpURLForI
)
{
commit
(
'SET_JUMP_URL_FOR_I'
,
jumpURLForI
)
},
setJumpURLForII
({
commit
},
jumpURLForII
)
{
commit
(
'SET_JUMP_URL_FOR_I
_AND_I
I'
,
jumpURLForII
)
commit
(
'SET_JUMP_URL_FOR_II'
,
jumpURLForII
)
},
setPositionInfo
({
commit
},
positionInfo
)
{
commit
(
'SET_POSITION_INFO'
,
positionInfo
)
...
...
src/views/I-credit-detail.vue
浏览文件 @
5a50886d
...
...
@@ -15,7 +15,7 @@
<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
@
click=
"jumper"
class=
"img"
src=
"https://file.yunqueyi.com/h5/images/tinified/i-detail-8.png"
>
<img
@
click=
"confirm"
class=
"img"
src=
"https://file.yunqueyi.com/h5/images/tinified/i-detail-8.png"
>
<img
@
click=
"confirm
(1)
"
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>
...
...
@@ -42,7 +42,7 @@ export default {
CardPopup
},
computed
:
{
...
mapGetters
([
'jumpURLForI
I
'
,
'organizationInfo'
])
...
mapGetters
([
'jumpURLForI'
,
'organizationInfo'
])
},
created
()
{
// TEST
...
...
@@ -62,14 +62,13 @@ export default {
jumper
()
{
// this.showGoUpdate = true;
// 如果有机构,则直接获取学习卡信息
console
.
log
(
'in jumper this.organizationInfo'
,
this
.
organizationInfo
,
''
);
if
(
this
.
organizationInfo
.
organizationId
&&
this
.
organizationInfo
.
provinceId
)
{
this
.
getCardInfoByProvinceId
(
this
.
organizationInfo
.
provinceId
);
// 否则获取地理位置信息
}
else
{
this
.
getPositionData
();
}
console
.
log
(
this
.
organizationInfo
)
console
.
log
(
'in jumper'
);
},
// 获取地理位置信息
...
...
@@ -132,12 +131,12 @@ export default {
// 跳转I类学习详情页面(中华医学会项目列表页面)
jumpToCardList
()
{
console
.
log
(
this
.
jumpURLForI
I
);
console
.
log
(
this
.
jumpURLForI
);
if
(
window
.
__isWeb
)
{
console
.
log
(
'in jumpToCardList'
);
return
;
}
else
{
let
pageUrl
=
this
.
jumpURLForI
I
;
let
pageUrl
=
this
.
jumpURLForI
;
let
paramList
=
[
{
key
:
"pageUrl"
,
...
...
src/views/index.vue
浏览文件 @
5a50886d
...
...
@@ -99,6 +99,7 @@ export default {
userMobile
:
""
,
needShowBackup
:
false
,
showGoUpdate
:
false
,
oneLevelUrl
:
''
,
};
},
computed
:
{
...
...
@@ -153,7 +154,7 @@ export default {
},
methods
:
{
...
mapActions
([
"setUserInfo"
,
"setOrganizationInfo"
]),
...
mapActions
([
"setUserInfo"
,
"setOrganizationInfo"
,
"setJumpURLForI"
]),
//获取位置信息 测试代码 TEST
getPositionData
()
{
...
...
@@ -201,8 +202,8 @@ export default {
_this
.
otherProjectList
=
res
.
data
.
allCMEProjectListDtoList
;
organizationInfo
.
provinceId
=
res
.
data
.
provinceId
;
organizationInfo
.
organizationId
=
res
.
data
.
organizationId
;
_this
.
oneLevelUrl
=
res
.
data
.
oneLevelUrl
;
//
学习卡列表地址
// _this.setJumpURLForIAndI
I(res.data.oneLevelUrl);
// _this.oneLevelUrl = res.data.oneLevelUrl; // I类
学习卡列表地址
_this
.
setJumpURLFor
I
(
res
.
data
.
oneLevelUrl
);
_this
.
setOrganizationInfo
(
organizationInfo
);
if
(
_this
.
userMobile
)
{
_this
.
tabIndex
=
1
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录