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
提交
f1c4d42e
提交
f1c4d42e
编写于
6月 05, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
跳转到学习卡列表页面
上级
32c22b0a
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
50 行增加
和
37 行删除
+50
-37
I-card-item.vue
src/components/cme/I-card-item.vue
+22
-8
card-banner.vue
src/components/cme/card-banner.vue
+3
-1
mixins.js
src/utils/mixins.js
+1
-1
I-credit-detail.vue
src/views/I-credit-detail.vue
+16
-21
index.vue
src/views/index.vue
+8
-6
未找到文件。
src/components/cme/I-card-item.vue
浏览文件 @
f1c4d42e
...
@@ -11,12 +11,26 @@
...
@@ -11,12 +11,26 @@
</section>
</section>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getWebPageUrl
}
from
"@/utils/index"
import
{
getWebPageUrl
}
from
"@/utils/index"
;
import
{
mapGetters
}
from
'vuex'
import
{
mapGetters
}
from
"vuex"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{};
return
{};
},
},
props
:
{
oneLevelUrl
:
{
type
:
String
,
default
:
""
},
provinceId
:
{
type
:
String
|
Number
,
default
:
""
},
organizationId
:
{
type
:
String
|
Number
,
default
:
""
}
},
computed
:
{
computed
:
{
...
mapGetters
([
"userInfo"
])
...
mapGetters
([
"userInfo"
])
},
},
...
@@ -28,18 +42,18 @@ export default {
...
@@ -28,18 +42,18 @@ export default {
return
;
return
;
}
}
if
(
window
.
__isWeb
)
{
if
(
window
.
__isWeb
)
{
console
.
log
(
'in jumpToCardList'
);
console
.
log
(
"in jumpToCardList"
);
return
;
return
;
}
else
{
}
else
{
let
pageUrl
=
getWebPageUrl
(
'cme/#/icredit-detail'
);
let
pageUrl
=
getWebPageUrl
(
"cme/#/icredit-detail"
);
let
paramList
=
[
let
paramList
=
[
{
{
key
:
"pageUrl"
,
key
:
"pageUrl"
,
value
:
pageUrl
,
value
:
`
${
pageUrl
}
?provinceId=
${
provinceId
}
&organizationId=
${
organizationId
}
&oneLevelUrl=`
+
encodeURIComponent
(
this
.
oneLevelUrl
)
,
type
:
4
,
type
:
4
,
seqNo
:
1
seqNo
:
1
}
}
]
]
;
rocNative
.
dispatchEventByModuleCode
({
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
"M300"
,
modeCode
:
"M300"
,
jsonString
:
paramList
jsonString
:
paramList
...
@@ -63,7 +77,7 @@ export default {
...
@@ -63,7 +77,7 @@ export default {
align-items
:
center
;
align-items
:
center
;
// box-sizing: border-box;
// box-sizing: border-box;
padding
:
0
px2rem
(
15px
);
padding
:
0
px2rem
(
15px
);
background
:
#
F8F9FA
;
background
:
#
f8f9fa
;
border-radius
:
px2rem
(
6px
);
border-radius
:
px2rem
(
6px
);
.left-icon
{
.left-icon
{
width
:
px2rem
(
40px
);
width
:
px2rem
(
40px
);
...
@@ -85,7 +99,7 @@ export default {
...
@@ -85,7 +99,7 @@ export default {
line-height
:
px2rem
(
26px
);
line-height
:
px2rem
(
26px
);
font-size
:
px2rem
(
16px
);
font-size
:
px2rem
(
16px
);
font-weight
:
700
;
font-weight
:
700
;
color
:
rgba
(
55
,
56
,
57
,
1
);
color
:
rgba
(
55
,
56
,
57
,
1
);
}
}
.bottom
{
.bottom
{
font-size
:
px2rem
(
14px
);
font-size
:
px2rem
(
14px
);
...
...
src/components/cme/card-banner.vue
浏览文件 @
f1c4d42e
...
@@ -11,7 +11,9 @@
...
@@ -11,7 +11,9 @@
import
{
getHactiveUrl
}
from
"@/utils/index"
;
import
{
getHactiveUrl
}
from
"@/utils/index"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{};
return
{
}
},
},
methods
:
{
methods
:
{
// 跳转到学习卡列表页面
// 跳转到学习卡列表页面
...
...
src/utils/mixins.js
浏览文件 @
f1c4d42e
...
@@ -13,7 +13,7 @@ module.exports = {
...
@@ -13,7 +13,7 @@ module.exports = {
query
=
this
.
$route
.
query
query
=
this
.
$route
.
query
}
}
// alert('this.token' + this.token)
// alert('this.token' + this.token)
this
.
token
=
this
.
getUrlKey
(
'token'
)
||
(
query
&&
query
.
token
)
||
'E
F1CB4B4133F403ABF088F2B7947738F
'
this
.
token
=
this
.
getUrlKey
(
'token'
)
||
(
query
&&
query
.
token
)
||
'E
EF69589911F4D3CAC8700AC11EE8096
'
},
},
mounted
()
{
mounted
()
{
...
...
src/views/I-credit-detail.vue
浏览文件 @
f1c4d42e
...
@@ -14,9 +14,7 @@
...
@@ -14,9 +14,7 @@
<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=
"isBuy(1)"
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"
:isShow=
"showGoUpdate"
@
cancle=
"jumpToCardList"
@
confirm=
"confirm"
></CardPopup>
<CardPopup
:cardInfo=
"cardInfo"
:isShow=
"showGoUpdate"
@
cancle=
"jumpToCardList"
@
confirm=
"confirm"
></CardPopup>
</section>
</section>
</
template
>
</
template
>
...
@@ -32,6 +30,9 @@ export default {
...
@@ -32,6 +30,9 @@ export default {
showNavBar
:
true
,
showNavBar
:
true
,
showGoUpdate
:
false
,
showGoUpdate
:
false
,
isFixNavbar
:
true
,
isFixNavbar
:
true
,
oneLevelUrl
:
''
,
provinceId
:
0
,
organizationId
:
0
,
cardInfo
:
{
cardInfo
:
{
}
}
...
@@ -45,47 +46,41 @@ export default {
...
@@ -45,47 +46,41 @@ export default {
...
mapGetters
([
'jumpURLForI'
,
'organizationInfo'
])
...
mapGetters
([
'jumpURLForI'
,
'organizationInfo'
])
},
},
created
()
{
created
()
{
// TEST
// TEST
let
_this
=
this
;
let
_this
=
this
;
window
.
__getPositionData
=
function
(
param
)
{
window
.
__getPositionData
=
function
(
param
)
{
console
.
log
(
param
);
console
.
log
(
param
);
_this
.
getProvinceIdByPosition
(
param
);
_this
.
getProvinceIdByPosition
(
param
);
}
}
this
.
oneLevelUrl
=
decodeURIComponent
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
oneLevelUrl
||
''
);
alert
(
this
.
jumpURLForI
);
this
.
provinceId
=
this
.
$route
.
query
&&
this
.
$route
.
query
.
provinceId
||
0
;
// TODO TEST
this
.
organizationId
=
this
.
$route
.
query
&&
this
.
$route
.
query
.
organizationId
||
0
;
// this.getCardInfoByProvinceId(110);
console
.
log
(
this
.
oneLevelUrl
,
this
.
provinceId
,
this
.
organizationId
);
// this.isBuy(1);
},
},
methods
:
{
methods
:
{
/*
TODO
1、判断用户是否购买过I类学习卡,没有购买过,则弹出Popup框(之前要调用接口)
2、判断用户是否购买过I类学习卡,没有购买过,则弹出Popup框(之前要调用接口)
*/
// 判断用户是否购买过I类学习卡
// 判断用户是否购买过I类学习卡
isBuy
(
cardType
)
{
isBuy
(
cardType
)
{
let
param
=
{
let
param
=
{
"cardType"
:
cardType
,
cardType
:
cardType
,
setEntry
:
true
,
}
}
this
.
GET
(
"trade/storage/card/isBuy"
,
param
).
then
(
res
=>
{
this
.
GET
(
"trade/storage/card/isBuy"
,
param
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
console
.
log
(
'isBuy'
,
res
);
// 如果购买过,则直接跳转到中华医学会页面
// 如果购买过,则直接跳转到中华医学会页面
if
(
true
)
{
if
(
res
.
data
)
{
this
.
jumpToCardList
();
this
.
jumpToCardList
();
}
else
{
}
else
{
this
.
j
umper
();
this
.
preJ
umper
();
}
}
}
}
});
});
},
},
j
umper
()
{
preJ
umper
()
{
// 如果有机构,则直接获取学习卡信息
// 如果有机构,则直接获取学习卡信息
console
.
log
(
'in jumper this.organizationInfo'
,
this
.
organizationInfo
,
''
);
console
.
log
(
'in jumper this.organizationInfo'
,
this
.
organizationInfo
,
''
);
if
(
this
.
organizationI
nfo
.
organizationId
&&
this
.
organizationInfo
.
provinceId
)
{
if
(
this
.
organizationI
d
!=
0
&&
this
.
provinceId
!=
0
)
{
this
.
getCardInfoByProvinceId
(
this
.
organizationInfo
.
provinceId
);
this
.
getCardInfoByProvinceId
(
this
.
provinceId
);
// 否则获取地理位置信息
// 否则获取地理位置信息
}
else
{
}
else
{
this
.
getPositionData
();
this
.
getPositionData
();
...
...
src/views/index.vue
浏览文件 @
f1c4d42e
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
</article>
</article>
<article
class=
"page-content-list"
>
<article
class=
"page-content-list"
>
<CommonTitle
v-show=
"tabIndex === 2"
title=
"I类学分项目"
:isShowCert=
"false"
></CommonTitle>
<CommonTitle
v-show=
"tabIndex === 2"
title=
"I类学分项目"
:isShowCert=
"false"
></CommonTitle>
<ICardItem
v-show=
"tabIndex === 2"
></ICardItem>
<ICardItem
v-show=
"tabIndex === 2"
:oneLevelUrl=
"oneLevelUrl"
:provinceId=
"provinceId"
:organizationId=
"organizationId"
></ICardItem>
<CommonTitle
title=
"II类学分项目"
:isShowCert=
"false"
></CommonTitle>
<CommonTitle
title=
"II类学分项目"
:isShowCert=
"false"
></CommonTitle>
<section
v-if=
"tabIndex === 1"
>
<section
v-if=
"tabIndex === 1"
>
<CoopListItem
<CoopListItem
...
@@ -200,11 +200,13 @@ export default {
...
@@ -200,11 +200,13 @@ export default {
// let organizationInfo = {}
// let organizationInfo = {}
_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
;
_this
.
provinceId
=
res
.
data
.
provinceId
;
_this
.
organizationInfo
.
organizationId
=
res
.
data
.
organizationId
;
_this
.
organizationId
=
res
.
data
.
organizationId
;
// _this.oneLevelUrl = res.data.oneLevelUrl; // I类学习卡列表地址
// _this.organizationInfo.provinceId = res.data.provinceId;
_this
.
setJumpURLForI
(
res
.
data
.
oneLevelUrl
);
// _this.organizationInfo.organizationId = res.data.organizationId;
_this
.
setOrganizationInfo
(
_this
.
organizationInfo
);
_this
.
oneLevelUrl
=
res
.
data
.
oneLevelUrl
;
// I类学习卡列表地址
// _this.setJumpURLForI(res.data.oneLevelUrl);
// _this.setOrganizationInfo(_this.organizationInfo);
if
(
_this
.
userMobile
)
{
if
(
_this
.
userMobile
)
{
_this
.
tabIndex
=
1
;
_this
.
tabIndex
=
1
;
}
else
{
}
else
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录