Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-annual-summary
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-annual-summary
提交
7707305e
提交
7707305e
编写于
6月 05, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
二期功能等
上级
61acf590
变更
15
展开全部
显示空白字符变更
内嵌
并排
正在显示
15 个修改的文件
包含
1360 行增加
和
132 行删除
+1360
-132
comp-list-item.vue
src/components/business/comp-list-item.vue
+1
-1
coop-list-item copy.vue
src/components/business/coop-list-item copy.vue
+2
-2
coop-list-item.vue
src/components/business/coop-list-item.vue
+2
-2
I-card-item.vue
src/components/cme/I-card-item.vue
+31
-1
basic-info.vue
src/components/cme/basic-info.vue
+7
-2
card-banner.vue
src/components/cme/card-banner.vue
+27
-4
getters.js
src/store/getters.js
+4
-1
coop.js
src/store/modules/coop.js
+40
-1
env-config.js
src/utils/env-config.js
+13
-4
index.js
src/utils/index.js
+5
-0
I-credit-detail.vue
src/views/I-credit-detail.vue
+12
-1
index copy 2.vue
src/views/index copy 2.vue
+399
-0
index.vue
src/views/index.vue
+25
-111
merge-detail copy.vue
src/views/merge-detail copy.vue
+789
-0
merge-detail.vue
src/views/merge-detail.vue
+3
-2
未找到文件。
src/components/business/comp-list-item.vue
浏览文件 @
7707305e
...
@@ -75,7 +75,7 @@ export default {
...
@@ -75,7 +75,7 @@ export default {
});
});
return
;
return
;
}
}
let
pageUrl
=
getWebPageUrl
(
'c
oopv2
/#/comp2'
);
let
pageUrl
=
getWebPageUrl
(
'c
me
/#/comp2'
);
let
moduleName
=
encodeURIComponent
(
item
.
moduleName
)
let
moduleName
=
encodeURIComponent
(
item
.
moduleName
)
let
paramList
=
[
let
paramList
=
[
{
{
...
...
src/components/business/coop-list-item copy.vue
浏览文件 @
7707305e
...
@@ -212,7 +212,7 @@ export default {
...
@@ -212,7 +212,7 @@ export default {
// let pageUrl = "";
// let pageUrl = "";
// let paramList = [];
// let paramList = [];
// if(item.parent === false)
{
// if(item.parent === false)
{
// pageUrl = getWebPageUrl('c
oopv2
/#/coop');
// pageUrl = getWebPageUrl('c
me
/#/coop');
// paramList = [
// paramList = [
//
{
//
{
// key: "pageUrl",
// key: "pageUrl",
...
@@ -222,7 +222,7 @@ export default {
...
@@ -222,7 +222,7 @@ export default {
//
}
//
}
// ]
// ]
//
}
else {
//
}
else {
// pageUrl = getWebPageUrl('c
oopv2
/#/parent');
// pageUrl = getWebPageUrl('c
me
/#/parent');
// paramList = [
// paramList = [
// {
// {
// key: "pageUrl",
// key: "pageUrl",
...
...
src/components/business/coop-list-item.vue
浏览文件 @
7707305e
...
@@ -225,7 +225,7 @@ export default {
...
@@ -225,7 +225,7 @@ export default {
// let pageUrl = "";
// let pageUrl = "";
// let paramList = [];
// let paramList = [];
// if(item.parent === false)
{
// if(item.parent === false)
{
// pageUrl = getWebPageUrl('c
oopv2
/#/coop');
// pageUrl = getWebPageUrl('c
me
/#/coop');
// paramList = [
// paramList = [
//
{
//
{
// key: "pageUrl",
// key: "pageUrl",
...
@@ -235,7 +235,7 @@ export default {
...
@@ -235,7 +235,7 @@ export default {
//
}
//
}
// ]
// ]
//
}
else {
//
}
else {
// pageUrl = getWebPageUrl('c
oopv2
/#/parent');
// pageUrl = getWebPageUrl('c
me
/#/parent');
// paramList = [
// paramList = [
// {
// {
// key: "pageUrl",
// key: "pageUrl",
...
...
src/components/cme/I-card-item.vue
浏览文件 @
7707305e
...
@@ -11,11 +11,41 @@
...
@@ -11,11 +11,41 @@
</section>
</section>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getWebPageUrl
}
from
"@/utils/index"
import
{
mapGetters
}
from
'vuex'
export
default
{
export
default
{
data
()
{
data
()
{
return
{};
return
{};
},
},
methods
:
{}
computed
:
{
...
mapGetters
([
"userInfo"
])
},
methods
:
{
// 跳转I类学习详情页面
jumpToCardList
()
{
if
(
!
this
.
userInfo
.
userMobile
)
{
rocNative
.
gotoLogin
();
}
if
(
window
.
__isWeb
)
{
console
.
log
(
'in jumpToCardList'
);
return
;
}
else
{
let
pageUrl
=
getWebPageUrl
(
'cme/#/icreditdetail'
);
let
paramList
=
[
{
key
:
"pageUrl"
,
value
:
pageUrl
,
type
:
4
,
seqNo
:
1
}
]
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
"M300"
,
jsonString
:
paramList
});
}
}
}
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
...
src/components/cme/basic-info.vue
浏览文件 @
7707305e
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<span>
申请范围
</span>
<span>
申请范围
</span>
<span>
{{
scope
}}
</span>
<span>
{{
scope
}}
</span>
</div>
</div>
<div
class=
"remind"
v-if=
"remind"
>
<div
class=
"remind"
v-if=
"remind
&& cmeType != 2
"
>
<span>
{{
remind
}}
</span>
<span>
{{
remind
}}
</span>
</div>
</div>
<div
class=
"content"
>
<div
class=
"content"
>
...
@@ -26,7 +26,8 @@
...
@@ -26,7 +26,8 @@
<span>
{{
startDate
|
formatTime
(
'{y
}
.{m
}
.{d
}
'
)
}}
至
{{
endDate
|
formatTime
(
'{y
}
.{m
}
.{d
}
'
)
}}
<
/span
>
<span>
{{
startDate
|
formatTime
(
'{y
}
.{m
}
.{d
}
'
)
}}
至
{{
endDate
|
formatTime
(
'{y
}
.{m
}
.{d
}
'
)
}}
<
/span
>
<
/div
>
<
/div
>
<
div
class
=
"content"
>
<
div
class
=
"content"
>
<
span
>
发起机构
<
/span
>
<
span
>
{{
cmeType
==
2
?
'主办单位'
:
'发起机构'
}}
<
/span
>
<!--
<
span
>
发起机构
<
/span> --
>
<
span
>
{{
organName
}}
<
/span
>
<
span
>
{{
organName
}}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -69,6 +70,10 @@ export default {
...
@@ -69,6 +70,10 @@ export default {
projectCredit
:
{
projectCredit
:
{
type
:
String
,
type
:
String
,
default
:
""
default
:
""
}
,
cmeType
:
{
type
:
String
|
Number
,
default
:
1
}
}
}
}
}
;
}
;
...
...
src/components/cme/card-banner.vue
浏览文件 @
7707305e
<
template
>
<
template
>
<section
class=
"card-banner-wrapper"
>
<section
@
click=
"jumpToCardList"
class=
"card-banner-wrapper"
>
<article
class=
"left"
>
<article
class=
"left"
>
<img
src=
"../../images/cme/phrase2/what.png"
alt
/>
<img
src=
"../../images/cme/phrase2/what.png"
alt
/>
<span>
学习项目必须使用学习卡哦~
</span>
<span>
学习项目必须使用学习卡哦~
</span>
...
@@ -8,11 +8,34 @@
...
@@ -8,11 +8,34 @@
</section>
</section>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getHactiveUrl
}
from
"@/utils/index"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{};
return
{};
},
},
methods
:
{}
methods
:
{
// 跳转到学习卡列表页面
jumpToCardList
()
{
if
(
window
.
__isWeb
)
{
console
.
log
(
"in jumpToCardList"
);
return
;
}
else
{
let
pageUrl
=
getHactiveUrl
(
"/message_push/#/study-card"
);
let
paramList
=
[
{
key
:
"pageUrl"
,
value
:
pageUrl
,
type
:
4
,
seqNo
:
1
}
];
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
"M300"
,
jsonString
:
paramList
});
}
}
}
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
@@ -25,7 +48,7 @@ export default {
...
@@ -25,7 +48,7 @@ export default {
padding
:
0
px2rem
(
15px
);
padding
:
0
px2rem
(
15px
);
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
background
:
#
FEFAF
5
;
background
:
#
fefaf
5
;
.left
{
.left
{
display
:
flex
;
display
:
flex
;
height
:
px2rem
(
40px
);
height
:
px2rem
(
40px
);
...
@@ -49,7 +72,7 @@ export default {
...
@@ -49,7 +72,7 @@ export default {
background
:
rgba
(
230
,
162
,
60
,
1
);
background
:
rgba
(
230
,
162
,
60
,
1
);
border-radius
:
px2rem
(
25px
);
border-radius
:
px2rem
(
25px
);
border
:
px2rem
(
1px
)
solid
rgba
(
230
,
162
,
60
,
1
);
border
:
px2rem
(
1px
)
solid
rgba
(
230
,
162
,
60
,
1
);
color
:
#
FFFFFF
;
color
:
#
ffffff
;
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
src/store/getters.js
浏览文件 @
7707305e
const
getters
=
{
const
getters
=
{
userInfo
:
state
=>
state
.
coop
.
userInfo
,
userInfo
:
state
=>
state
.
coop
.
userInfo
,
statusBarHeight
:
state
=>
state
.
coop
.
statusBarHeight
,
statusBarHeight
:
state
=>
state
.
coop
.
statusBarHeight
,
projectTabIndex
:
state
=>
state
.
coop
.
projectTabIndex
projectTabIndex
:
state
=>
state
.
coop
.
projectTabIndex
,
jumpURLForII
:
state
=>
state
.
coop
.
jumpURLForII
,
positionInfo
:
state
=>
state
.
coop
.
positionInfo
,
organizationInfo
:
state
=>
state
.
coop
.
organizationInfo
,
}
}
export
default
getters
export
default
getters
src/store/modules/coop.js
浏览文件 @
7707305e
...
@@ -2,7 +2,28 @@ const coop = {
...
@@ -2,7 +2,28 @@ const coop = {
state
:
{
state
:
{
userInfo
:
{},
userInfo
:
{},
statusBarHeight
:
{},
statusBarHeight
:
{},
projectTabIndex
:
1
projectTabIndex
:
1
,
jumpURLForII
:
""
,
//中华医学会一类或二类跳转地址
positionInfo
:
{
accuracy
:
""
,
address
:
""
,
city
:
""
,
city_code
:
""
,
country
:
""
,
district
:
""
,
district_code
:
""
,
latitude
:
""
,
longitude
:
""
,
poi_name
:
""
,
province
:
""
,
},
organizationInfo
:
{
provinceId
:
0
,
cityId
:
0
,
countyId
:
0
,
townId
:
0
,
organizationId
:
0
}
},
},
mutations
:
{
mutations
:
{
SET_USER_INFO
:
(
state
,
userInfo
)
=>
{
SET_USER_INFO
:
(
state
,
userInfo
)
=>
{
...
@@ -14,6 +35,15 @@ const coop = {
...
@@ -14,6 +35,15 @@ const coop = {
SET_PROJECT_TAB_INDEX
:
(
state
,
projectTabIndex
)
=>
{
SET_PROJECT_TAB_INDEX
:
(
state
,
projectTabIndex
)
=>
{
state
.
projectTabIndex
=
projectTabIndex
state
.
projectTabIndex
=
projectTabIndex
},
},
SET_JUMP_URL_FOR_I_AND_II
:
(
state
,
jumpURLForII
)
=>
{
state
.
jumpURLForII
=
jumpURLForII
},
SET_POSITION_INFO
:
(
state
,
positionInfo
)
=>
{
state
.
positionInfo
=
positionInfo
},
SET_ORGANIZATION_INFO
:
(
state
,
organizationInfo
)
=>
{
state
.
organizationInfo
=
organizationInfo
},
},
},
actions
:
{
actions
:
{
setUserInfo
({
commit
},
userInfo
)
{
setUserInfo
({
commit
},
userInfo
)
{
...
@@ -25,6 +55,15 @@ const coop = {
...
@@ -25,6 +55,15 @@ const coop = {
setProjectTabIndex
({
commit
},
projectTabIndex
)
{
setProjectTabIndex
({
commit
},
projectTabIndex
)
{
commit
(
'SET_PROJECT_TAB_INDEX'
,
projectTabIndex
)
commit
(
'SET_PROJECT_TAB_INDEX'
,
projectTabIndex
)
},
},
setJumpURLForII
({
commit
},
jumpURLForII
)
{
commit
(
'SET_JUMP_URL_FOR_I_AND_II'
,
jumpURLForII
)
},
setPositionInfo
({
commit
},
positionInfo
)
{
commit
(
'SET_POSITION_INFO'
,
positionInfo
)
},
setOrganizationInfo
({
commit
},
organizationInfo
)
{
commit
(
'SET_ORGANIZATION_INFO'
,
organizationInfo
)
},
}
}
}
}
...
...
src/utils/env-config.js
浏览文件 @
7707305e
...
@@ -10,38 +10,47 @@ export const envConfig = {
...
@@ -10,38 +10,47 @@ export const envConfig = {
apiUrl
:
'https://dev-api.yunqueyi.com/'
,
apiUrl
:
'https://dev-api.yunqueyi.com/'
,
webPageUrl
:
'https://dev-phome.yunqueyi.com/'
,
webPageUrl
:
'https://dev-phome.yunqueyi.com/'
,
baseUrl
:
'https://dev-sc.yunqueyi.com/'
,
baseUrl
:
'https://dev-sc.yunqueyi.com/'
,
hactiveUrl
:
'https://dev-hactive.yunqueyi.com'
,
// http://dev-hactive.yunqueyi.com/message_push/#/study-card
// baseUrl: 'https://test1-sc.yunqueyi.com/',
// baseUrl: 'https://test1-sc.yunqueyi.com/',
// apiUrl: 'https://test1-api.yunqueyi.com/',
// apiUrl: 'https://test1-api.yunqueyi.com/',
// webPageUrl: 'https://test1-phome.yunqueyi.com/'
// webPageUrl: 'https://test1-phome.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',
// 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',
},
},
dev
:
{
dev
:
{
baseUrl
:
'https://dev-sc.yunqueyi.com/'
,
baseUrl
:
'https://dev-sc.yunqueyi.com/'
,
apiUrl
:
'https://dev-api.yunqueyi.com/'
,
apiUrl
:
'https://dev-api.yunqueyi.com/'
,
webPageUrl
:
'https://dev-phome.yunqueyi.com/'
webPageUrl
:
'https://dev-phome.yunqueyi.com/'
,
hactiveUrl
:
'https://dev-hactive.yunqueyi.com'
,
},
},
test
:
{
test
:
{
baseUrl
:
'https://test1-sc.yunqueyi.com/'
,
baseUrl
:
'https://test1-sc.yunqueyi.com/'
,
apiUrl
:
'https://test1-api.yunqueyi.com/'
,
apiUrl
:
'https://test1-api.yunqueyi.com/'
,
webPageUrl
:
'https://test1-phome.yunqueyi.com/'
webPageUrl
:
'https://test1-phome.yunqueyi.com/'
,
hactiveUrl
:
'https://test1-hactive.yunqueyi.com'
,
},
},
uat
:
{
uat
:
{
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'
,
},
},
pro
:
{
pro
:
{
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'
,
}
}
}
}
src/utils/index.js
浏览文件 @
7707305e
...
@@ -18,6 +18,11 @@ export function getWebPageUrl(url) {
...
@@ -18,6 +18,11 @@ export function getWebPageUrl(url) {
return
getConfigByEnvType
(
'webPageUrl'
)
+
(
url
||
''
)
return
getConfigByEnvType
(
'webPageUrl'
)
+
(
url
||
''
)
}
}
// 获取推送域名地址(message_push)
export
function
getHactiveUrl
(
url
)
{
return
getConfigByEnvType
(
'hactiveUrl'
)
+
(
url
||
''
)
}
// 根据不同环境,生成URL
// 根据不同环境,生成URL
function
getConfigByEnvType
(
urlType
)
{
function
getConfigByEnvType
(
urlType
)
{
return
envConfig
[
process
.
env
.
BUILD_ENV
][
urlType
]
return
envConfig
[
process
.
env
.
BUILD_ENV
][
urlType
]
...
...
src/views/I-credit-detail.vue
浏览文件 @
7707305e
...
@@ -8,17 +8,28 @@
...
@@ -8,17 +8,28 @@
<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>
</section>
</section>
</
template
>
</
template
>
<
script
>
<
script
>
import
CardPopup
from
"@/components/cme/card-popup"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
showGoUpdate
:
false
,
}
}
},
},
components
:
{
CardPopup
},
methods
:
{
methods
:
{
/*
1、判断用户是否购买过I类学习卡,没有购买过,则弹出Popup框(之前要调用接口)
2、判断用户是否购买过I类学习卡,没有购买过,则弹出Popup框(之前要调用接口)
*/
jumper
()
{
jumper
()
{
this
.
showGoUpdate
=
true
;
console
.
log
(
'in jumper'
);
console
.
log
(
'in jumper'
);
}
}
},
},
...
...
src/views/index copy 2.vue
0 → 100644
浏览文件 @
7707305e
此差异已折叠。
点击以展开。
src/views/index.vue
浏览文件 @
7707305e
...
@@ -10,9 +10,6 @@
...
@@ -10,9 +10,6 @@
borderStyle=
"1px solid #fff"
borderStyle=
"1px solid #fff"
></CommonNavbar>
></CommonNavbar>
<section
class=
"page-content"
>
<section
class=
"page-content"
>
<!--
<button
@
click=
"jumpToExamAction"
style=
"margin: 20px;font-size:20px;text-align:center;padding:10px;border-radius:10px;"
>
测试按钮1
</button>
<button
@
click=
"jumpToExamAction2"
style=
"margin: 20px;font-size:20px;text-align:center;padding:10px;border-radius:10px;"
>
测试按钮2
</button>
-->
<!--
{{
token
}}
-->
<table
class=
"page-content-table"
>
<table
class=
"page-content-table"
>
<tr>
<tr>
<td
@
click=
"changeTab(1)"
:class=
"
{'active': tabIndex === 1}">
<td
@
click=
"changeTab(1)"
:class=
"
{'active': tabIndex === 1}">
...
@@ -67,7 +64,7 @@
...
@@ -67,7 +64,7 @@
<img
src=
"../images/cme/phrase2/back-top.png"
alt
/>
<img
src=
"../images/cme/phrase2/back-top.png"
alt
/>
</article>
</article>
</transition>
</transition>
<
CardPopup
:showGoUpdate=
"showGoUpdate"
></CardPopup
>
<
!--
<CardPopup
:showGoUpdate=
"showGoUpdate"
></CardPopup>
--
>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -77,7 +74,7 @@ import Loading from "@/components/common/common-loading";
...
@@ -77,7 +74,7 @@ import Loading from "@/components/common/common-loading";
import
Toast
from
"@/components/common/common-toast"
;
import
Toast
from
"@/components/common/common-toast"
;
import
CardBanner
from
"@/components/cme/card-banner"
;
import
CardBanner
from
"@/components/cme/card-banner"
;
import
ICardItem
from
"@/components/cme/I-card-item"
;
import
ICardItem
from
"@/components/cme/I-card-item"
;
import
CardPopup
from
"@/components/cme/card-popup"
;
//
import CardPopup from "@/components/cme/card-popup";
import
CommonTitle
from
"@/components/common/common-title"
;
import
CommonTitle
from
"@/components/common/common-title"
;
import
{
mapGetters
,
mapActions
}
from
"vuex"
;
import
{
mapGetters
,
mapActions
}
from
"vuex"
;
...
@@ -105,7 +102,7 @@ export default {
...
@@ -105,7 +102,7 @@ export default {
};
};
},
},
computed
:
{
computed
:
{
...
mapGetters
([
"projectTabIndex"
])
...
mapGetters
([
"projectTabIndex"
,
"organizationInfo"
])
},
},
components
:
{
components
:
{
...
@@ -117,7 +114,7 @@ export default {
...
@@ -117,7 +114,7 @@ export default {
CardBanner
,
CardBanner
,
CommonTitle
,
CommonTitle
,
ICardItem
,
ICardItem
,
CardPopup
//
CardPopup
},
},
created
()
{
created
()
{
var
_this
=
this
;
var
_this
=
this
;
...
@@ -141,73 +138,31 @@ export default {
...
@@ -141,73 +138,31 @@ export default {
component_tag
:
"210#0#0#0"
component_tag
:
"210#0#0#0"
});
});
// TEST
window
.
__getPositionData
=
function
(
param
)
{
window
.
__getPositionData
=
function
(
param
)
{
console
.
log
(
param
)
console
.
log
(
param
)
}
}
// TEST
this
.
getPositionData
();
this
.
getPositionData
();
window
.
addEventListener
(
"scroll"
,
this
.
scrollFun
);
window
.
addEventListener
(
"scroll"
,
this
.
scrollFun
);
},
},
mounted
()
{
mounted
()
{
var
_this
=
this
;
var
_this
=
this
;
this
.
tabIndex
=
this
.
projectTabIndex
;
this
.
tabIndex
=
this
.
projectTabIndex
;
// let param = {
// id: 12 };
// this.API_GET("app/certificate/downLoad", param).then(res => {
// });
},
},
methods
:
{
methods
:
{
// 跳转到第三方考试页面
...
mapActions
([
"setUserInfo"
,
"setOrganizationInfo"
]),
//
jumpToExamAction
()
{
let
paramList
=
[
{
key
:
"pageUrl"
,
value
:
"http://cmeonline.cma-cmc.com.cn/cms/weixinCourseDetail.htm?courseId=a245b2060ac0495cae440de859321b91&openCourseId=2d9b152a85dc4833892aeaa713362b9f"
,
type
:
4
,
seqNo
:
1
},
// 此字段不配置,则用原来的逻辑
{
key
:
"needCache"
,
value
:
"1"
,
// 0不缓存,其它值都做缓存
type
:
4
,
seqNo
:
1
}
];
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
"M300"
,
jsonString
:
paramList
});
},
jumpToExamAction2
()
{
//获取位置信息 测试代码 TEST
let
paramList
=
[
getPositionData
()
{
{
console
.
log
(
'getPositionData'
);
key
:
"pageUrl"
,
rocNative
.
getPositionData
({
value
:
__funcName
:
"__getPositionData"
"http://cmeonline.cma-cmc.com.cn/cms/weixinCourseDetail.htm?courseId=0aeee9f7712b4543ab8eadb0571a78a7&openCourseId=e9e124392d3f4e2494d46e8f990b085e"
,
type
:
4
,
seqNo
:
1
},
// 此字段不配置,则用原来的逻辑
{
key
:
"needCache"
,
value
:
"1"
,
// 0不缓存,其它值都做缓存
type
:
4
,
seqNo
:
1
}
];
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
"M300"
,
jsonString
:
paramList
});
});
},
},
...
mapActions
([
"setUserInfo"
]),
//获取版本号
//获取版本号
getUserInfo
()
{
getUserInfo
()
{
rocNative
.
getUserInfo
({
rocNative
.
getUserInfo
({
...
@@ -215,14 +170,7 @@ export default {
...
@@ -215,14 +170,7 @@ export default {
});
});
},
},
//获取位置信息
// 切换列表
getPositionData
()
{
console
.
log
(
'getPositionData'
);
rocNative
.
getPositionData
({
__funcName
:
"__getPositionData"
});
},
changeTab
(
index
)
{
changeTab
(
index
)
{
let
tag
=
index
==
1
?
"210#210001#0"
:
"210#210001#1"
;
let
tag
=
index
==
1
?
"210#210001#0"
:
"210#210001#1"
;
this
.
tabIndex
=
index
;
this
.
tabIndex
=
index
;
...
@@ -234,79 +182,43 @@ export default {
...
@@ -234,79 +182,43 @@ export default {
component_tag
:
tag
component_tag
:
tag
});
});
},
},
// 获取所有项目:我的项目、其它项目
// 获取所有项目:我的项目、其它项目
getCoopData
()
{
getCoopData
()
{
// debugger
let
_this
=
this
;
let
_this
=
this
;
let
param
=
{
let
param
=
{
token
:
_this
.
token
,
token
:
_this
.
token
,
setEntry
:
true
setEntry
:
true
};
};
let
cachedJoinProjectList
=
[];
_this
.
joinProjectList
=
[];
let
cachedOtherProjectList
=
[];
_this
.
otherProjectList
=
[];
_this
.
otherProjectList
=
[];
_this
.
showLoading
=
true
;
_this
.
showLoading
=
true
;
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"
)
{
// let oldProjects1 = [];
// let oldProjects2 = [];
// for(let i = 0; i
<
res
.
data
.
oldProjects
.
length
;
i
++
)
{
// if(res.data.oldProjects[i].roleFlag == 1) {
// oldProjects1.push(res.data.oldProjects[i]);
// } else if (res.data.oldProjects[i].roleFlag == 0) {
// oldProjects2.push(res.data.oldProjects[i]);
// }
// }
// console.log('项目1',oldProjects1,'项目2',oldProjects2);
cachedJoinProjectList
=
res
.
data
.
myCMEProjectListDtoList
;
cachedJoinProjectList
=
res
.
data
.
myCMEProjectListDtoList
;
cachedOtherProjectList
=
res
.
data
.
allCMEProjectListDtoList
;
cachedOtherProjectList
=
res
.
data
.
allCMEProjectListDtoList
;
_this
.
joinProjectList
=
res
.
data
.
myCMEProjectListDtoList
;
_this
.
joinProjectList
=
res
.
data
.
myCMEProjectListDtoList
;
_this
.
otherProjectList
=
res
.
data
.
allCMEProjectListDtoList
;
_this
.
otherProjectList
=
res
.
data
.
allCMEProjectListDtoList
;
// cachedJoinProjectList = _this.handleOldProject(
_this
.
organizationInfo
.
provinceId
=
res
.
data
.
provinceId
;
// oldProjects1,
_this
.
organizationInfo
.
organizationId
=
res
.
data
.
organizationId
;
// res.data.myProjectList
_this
.
oneLevelUrl
=
res
.
data
.
oneLevelUrl
;
// 学习卡列表地址
// );
// _this.setJumpURLForIAndII(res.data.oneLevelUrl);
// cachedOtherProjectList = _this.handleOldProject(
_this
.
setOrganizationInfo
(
organizationInfo
);
// oldProjects2,
// res.data.otherProjectList
// );
// 如果用户已经登陆,则将"至今"的几个项目移到我的列表中
if
(
_this
.
userMobile
)
{
if
(
_this
.
userMobile
)
{
// cachedOtherProjectList.map(item => {
// if(item.projectName && item.projectName.indexOf('国家基本公共卫生服务项目基层高血压管理办公室') >= 0) {
// cachedJoinProjectList.unshift(item);
// } else {
// _this.otherProjectList.push(item);
// }
// })
_this
.
tabIndex
=
1
;
_this
.
tabIndex
=
1
;
}
else
{
}
else
{
_this
.
tabIndex
=
2
;
_this
.
tabIndex
=
2
;
// _this.otherProjectList = cachedOtherProjectList
}
}
// _this.joinProjectList = cachedJoinProjectList;
if
(
_this
.
joinProjectList
&&
_this
.
joinProjectList
.
length
===
0
)
{
if
(
_this
.
joinProjectList
&&
_this
.
joinProjectList
.
length
===
0
)
{
_this
.
tabIndex
=
2
;
_this
.
tabIndex
=
2
;
}
}
_this
.
isShow
=
true
;
_this
.
isShow
=
true
;
// console.log('otherProjectList',_this.otherProjectList);
}
}
});
});
},
},
handleOldProject
(
oldProjects
,
otherProjectList
)
{
let
oldList
=
oldProjects
.
map
(
item
=>
{
// 监听滚动事件
item
.
pType
=
1
;
return
item
;
}),
otherList
=
otherProjectList
.
map
(
item
=>
{
item
.
pType
=
2
;
return
item
;
});
return
oldList
.
concat
(
otherList
);
},
scrollFun
()
{
scrollFun
()
{
let
scrollTop
=
window
.
scrollY
;
let
scrollTop
=
window
.
scrollY
;
if
(
scrollTop
>=
500
)
{
if
(
scrollTop
>=
500
)
{
...
@@ -315,6 +227,8 @@ export default {
...
@@ -315,6 +227,8 @@ export default {
this
.
needShowBackup
=
false
;
this
.
needShowBackup
=
false
;
}
}
},
},
// 滚动到顶部
scrollTop
()
{
scrollTop
()
{
window
.
scrollTo
(
0
,
0
);
window
.
scrollTo
(
0
,
0
);
}
}
...
...
src/views/merge-detail copy.vue
0 → 100644
浏览文件 @
7707305e
此差异已折叠。
点击以展开。
src/views/merge-detail.vue
浏览文件 @
7707305e
...
@@ -67,6 +67,7 @@
...
@@ -67,6 +67,7 @@
:organName=
"project.organName"
:organName=
"project.organName"
:remind=
"project.remind"
:remind=
"project.remind"
:projectCredit=
"project.projectCredit"
:projectCredit=
"project.projectCredit"
:cmeType=
"project.cmeType"
/>
/>
<LearnKnow
:mustKnow=
"project.mustKnow"
></LearnKnow>
<LearnKnow
:mustKnow=
"project.mustKnow"
></LearnKnow>
<CommonSpliteLine></CommonSpliteLine>
<CommonSpliteLine></CommonSpliteLine>
...
@@ -112,10 +113,10 @@
...
@@ -112,10 +113,10 @@
/>
/>
<ExjumperButton
<ExjumperButton
@
btnClick=
"beforeJumpToExam"
@
btnClick=
"beforeJumpToExam"
v-if=
"project.cmeType == 2
&& project.inScope !== 0"
v-if=
"project.cmeType == 2
"
:btnText=
"project.currentProgress > 1 ? '参加考试' : '学完全部课程,可参加考试'"
:btnText=
"project.currentProgress > 1 ? '参加考试' : '学完全部课程,可参加考试'"
:type=
"project.currentProgress > 1 ? 'primary' : 'disabled'"
></ExjumperButton>
:type=
"project.currentProgress > 1 ? 'primary' : 'disabled'"
></ExjumperButton>
<div
v-if=
"project.cmeType == 2
&& project.inScope !== 0
"
style=
"padding-top: 30px"
></div>
<div
v-if=
"project.cmeType == 2"
style=
"padding-top: 30px"
></div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录