Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-professional-exam
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-professional-exam
提交
2a14c838
提交
2a14c838
编写于
12月 25, 2019
作者:
huangwensu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
详情页进度调试
上级
fb8ae893
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
112 行增加
和
24 行删除
+112
-24
cell-list-detail.vue
src/components/business/cell-list-detail.vue
+1
-1
cme-step.vue
src/components/cme/cme-step.vue
+69
-8
common-navbar.vue
src/components/common/common-navbar.vue
+2
-1
global.scss
src/style/global.scss
+4
-1
merge-detail.vue
src/views/merge-detail.vue
+36
-13
未找到文件。
src/components/business/cell-list-detail.vue
浏览文件 @
2a14c838
...
...
@@ -539,7 +539,7 @@ export default {
// font-family: "PingFangSC-Medium", "PingFangSC", "Microsoft Yahei";
width
:
px2rem
(
231px
);
font-size
:
px2rem
(
15px
);
font-weight
:
5
00
;
font-weight
:
7
00
;
line-height
:
px2rem
(
22px
);
color
:
#333333
;
float
:
left
;
...
...
src/components/cme/cme-step.vue
浏览文件 @
2a14c838
...
...
@@ -18,7 +18,7 @@
<p
:class=
"
{'actived': step3 || step4}">学分审核
</p>
</div>
<div
class=
"step-line step-three-line"
:class=
"
{'actived': step4}">
</div>
<p
class=
"step-text step4-text"
v-if=
"step4"
@
click=
"getScore"
>
获得
{{
credit
}}
学分
>
</p>
<p
class=
"step-text step4-text"
v-if=
"step4"
@
click=
"getScore"
>
获得
{{
credit
}}
>
</p>
<div
class=
"step-item"
>
<span
:class=
"
{'actived': step4}">4
</span>
<p
:class=
"
{'actived': step4}">申请成功
</p>
...
...
@@ -39,15 +39,19 @@ export default {
credit
:
{
type
:
String
,
default
:
""
},
creditId
:
{
type
:
Number
,
default
:
0
}
},
data
()
{
return
{
step1
:
false
,
step2
:
tru
e
,
step3
:
fals
e
,
step2
:
fals
e
,
step3
:
tru
e
,
step4
:
false
,
progressText
:
""
progressText
:
"
审核中
"
}
},
watch
:
{
...
...
@@ -93,14 +97,71 @@ export default {
// 审核
verifyResult
()
{
if
(
this
.
currentProgress
==
3
)
{
// 审核中
this
.
$router
.
push
({
path
:
'/credit-detail'
,
query
:
{
flag
:
false
}})
// let paramList = [
// {
// "key":"pageUrl",
// "value": url,
// "type":4,
// "seqNo":1
// },{
// "key":"showTitle",
// "value": false,
// "type":1,
// "seqNo":2
// },{
// "key":"title",
// "value": '',
// "type":1,
// "seqNo":3
// }
// ];
// this.$rocNative.dispatchEventByModuleCode({
// modeCode: 'M300',
// jsonString: paramList
// });
this
.
$router
.
push
({
path
:
'/credit-detail'
,
query
:
{
flag
:
false
,
id
:
this
.
creditId
}});
}
else
if
(
this
.
currentProgress
==
4
)
{
// 审核失败
this
.
$router
.
push
({
path
:
'/credit-detail'
,
query
:
{
flag
:
true
}})
this
.
$router
.
push
({
path
:
'/credit-detail'
,
query
:
{
flag
:
true
,
id
:
this
.
creditId
}});
}
},
// 获得学分
// 获得学分
--下载证书
getScore
()
{
let
paramList
=
[
{
key
:
"className"
,
value
:
"com.picahealth.yunque.activitys.honor.CheckCertificatesActivity###YQWebView"
,
type
:
4
,
seqNo
:
1
},
{
key
:
"url"
,
value
:
this
.
certificateUrl
,
type
:
4
,
seqNo
:
2
},
{
key
:
"navTitle"
,
value
:
"学分详情"
,
type
:
4
,
seqNo
:
4
},
{
key
:
"isNotTab"
,
value
:
true
,
type
:
4
,
seqNo
:
5
},
{
key
:
"isShowDownload"
,
value
:
true
,
type
:
4
,
seqNo
:
6
}
];
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
"M200"
,
jsonString
:
paramList
});
}
}
}
...
...
src/components/common/common-navbar.vue
浏览文件 @
2a14c838
...
...
@@ -108,7 +108,8 @@ export default {
// } else {
// rocNative.goBack();
// }
rocNative
.
goBack
();
this
.
$router
.
back
(
-
1
);
//rocNative.goBack();
},
//分享
goShare
()
{
...
...
src/style/global.scss
浏览文件 @
2a14c838
...
...
@@ -85,7 +85,7 @@
}
.van-cell
{
padding
:
px2rem
(
20px
)
0
!
important
;
padding
:
px2rem
(
17px
)
px2rem
(
15px
)
!
important
;
font-size
:
px2rem
(
15px
)
!
important
;
color
:
#373839
!
important
;
}
...
...
@@ -106,4 +106,7 @@
.van-field__label
,
.van-field__body
{
height
:
px2rem
(
15px
)
!
important
;
line-height
:
px2rem
(
15px
)
!
important
;
}
.van-cell__title
span
{
font-weight
:
700
!
important
;
}
\ No newline at end of file
src/views/merge-detail.vue
浏览文件 @
2a14c838
...
...
@@ -32,6 +32,7 @@
:currentProgress=
"project.currentProgress"
:studyProgress=
"project.studyProgress"
:credit=
"project.credit"
:creditId=
"project.creditId"
@
applicationCredit=
"applicationCredit"
/>
<!-- 简介和目录 -->
<div
class=
"intro-catalogue-container"
>
...
...
@@ -72,6 +73,7 @@
<CommonDialog
:isShowDialog=
"isShowDialog"
:isSingle=
"isSingle"
:cancleBtnText=
"cancleBtnText"
:confirmBtnText=
"confirmBtnText"
:content=
"dialogContent"
@
handlerAction=
"handlerAction"
/>
...
...
@@ -108,6 +110,7 @@ export default {
isSingle
:
false
,
dialogContent
:
""
,
// 弹框内容
confirmBtnText
:
""
,
// 弹框按钮
cancleBtnText
:
""
,
isShowDialog
:
false
,
tabFlag
:
true
,
// 显示目录还是简介
fixedFlag
:
false
,
// 目录和简介是否固定
...
...
@@ -189,13 +192,12 @@ export default {
// this.moduleId = this.$route.query.moduleId;
this
.
moduleName
=
this
.
$route
.
query
.
moduleName
;
this
.
courseRequire
=
this
.
$route
.
query
.
courseRequire
;
window
.
__getUserInfo64Comp
=
function
(
param
)
{
_this
.
token
=
param
.
userToken
;
_this
.
setUserInfo
(
param
);
_this
.
checkToken
();
_this
.
getProjectParticularsV2
();
_this
.
permission
();
};
_this
.
getUserInfo
();
if
(
__isWeb
&&
process
.
env
.
BUILD_ENV
==
"development"
)
{
...
...
@@ -207,6 +209,7 @@ export default {
// _this.getProjectParticularsV2();
_this
.
getUserInfo
();
};
_this
.
permission
();
// 提示是否有机构和在申请范围内
},
mounted
()
{
window
.
addEventListener
(
"scroll"
,
this
.
scrollFun
);
...
...
@@ -255,22 +258,42 @@ export default {
setEntry
:
true
};
_this
.
NEW_POST
(
"cme/credit/applyCheck"
,
param
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
data
==
"219004"
||
res
.
data
==
"219012"
)
{
// 未加入机构 219004 未身份认证 219005 不在申请范围 219012
this
.
dialogContent
=
`该项目仅对
${
_this
.
project
.
scope
}
的用户开放`
;
this
.
confirmBtnText
=
"我知道了"
;
this
.
isShowDialog
=
true
;
this
.
isSingle
=
true
;
}
else
{
this
.
isShowDialog
=
false
;
//this.$router.push('/credit-edit');
}
if
(
res
.
code
==
"219004"
||
res
.
code
==
"219012"
)
{
// 未加入机构 219004 未身份认证 219005 不在申请范围 219012
this
.
dialogContent
=
`该项目仅对
${
_this
.
project
.
scope
}
的用户开放`
;
this
.
cancleBtnText
=
"我知道了"
;
this
.
isShowDialog
=
true
;
this
.
isSingle
=
true
;
}
else
{
this
.
isShowDialog
=
false
;
}
});
},
// 立即申请学分
applicationCredit
()
{
let
_this
=
this
;
let
param
=
{
id
:
_this
.
projectId
,
creditId
:
_this
.
project
.
creditId
||
1
,
token
:
_this
.
userInfo
.
userToken
||
'AAA613F74B7A4746AEE8354458FF4896'
,
setEntry
:
true
};
_this
.
NEW_POST
(
"cme/credit/applyCheck"
,
param
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
this
.
$router
.
push
({
path
:
'/credit-edit'
,
query
:
{}});
}
else
if
(
res
.
code
==
"219004"
||
res
.
code
==
"219005"
)
{
// 未加入机构 219004 未身份认证 219005 不在申请范围 219012
let
params
=
{
__funcName
:
"__checkPermissions"
,
permCode
:
'009014'
};
rocNative
.
checkPermissions
(
params
);
}
else
if
(
res
.
code
==
"219012"
)
{
this
.
dialogContent
=
`您的所属机构不在可申请范围(
${
_this
.
project
.
scope
}
)内`
;
this
.
cancleBtnText
=
"我知道了"
;
this
.
isShowDialog
=
true
;
this
.
isSingle
=
true
;
}
});
},
// 弹框按钮事件
handlerAction
(
data
)
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录