Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
40b40b75
Commit
40b40b75
authored
Nov 17, 2022
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
认证详情
parent
6f528d33
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
11 deletions
+18
-11
api/api.ts
+2
-2
pages/certifyDetail/certifyDetail.vue
+6
-4
pages/learnCertify/learnCertify.vue
+3
-3
pages/myCertify/myCertify.vue
+7
-2
No files found.
api/api.ts
View file @
40b40b75
...
@@ -63,11 +63,11 @@ export default {
...
@@ -63,11 +63,11 @@ export default {
},
},
// 学习认证列表
// 学习认证列表
querySignupList
(
params
){
querySignupList
(
params
){
return
request
(
`
${
cffpURL
}
/
signup
/querySignupList`
,
"POST"
,
params
)
return
request
(
`
${
cffpURL
}
/
certificate
/querySignupList`
,
"POST"
,
params
)
},
},
// 个人认证列表
// 个人认证列表
userCertificateList
(
params
){
userCertificateList
(
params
){
return
request
(
`
${
cffpURL
}
/
signup
/userCertificateList`
,
"POST"
,
params
)
return
request
(
`
${
cffpURL
}
/
certificate
/userCertificateList`
,
"POST"
,
params
)
},
},
// 认证详情
// 认证详情
queryCertificateInfo
(
params
){
queryCertificateInfo
(
params
){
...
...
pages/certifyDetail/certifyDetail.vue
View file @
40b40b75
...
@@ -82,7 +82,6 @@
...
@@ -82,7 +82,6 @@
<view
class=
"signBtn"
@
click=
"registerNow()"
>
立即报名
</view>
<view
class=
"signBtn"
@
click=
"registerNow()"
>
立即报名
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -94,11 +93,14 @@
...
@@ -94,11 +93,14 @@
certificateInfo
:{}
certificateInfo
:{}
};
};
},
},
onLoad
(
options
)
{
this
.
queryCertificateInfo
(
options
.
certificateId
,
options
.
userSignupId
)
},
methods
:{
methods
:{
queryCertificateInfo
(
certificateId
=
null
,
userSignupId
=
null
){
queryCertificateInfo
(
certificateId
,
userSignupId
){
const
params
=
{
const
params
=
{
certificateId
:
certificateId
,
certificateId
:
certificateId
!=
'null'
?
certificateId
:
null
,
userSignupId
:
userSignupId
userSignupId
:
userSignupId
!=
'null'
?
userSignupId
:
null
}
}
api
.
queryCertificateInfo
(
params
).
then
(
res
=>
{
api
.
queryCertificateInfo
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
...
...
pages/learnCertify/learnCertify.vue
View file @
40b40b75
...
@@ -9,8 +9,8 @@
...
@@ -9,8 +9,8 @@
</view>
</view>
<view
class=
"list_wrapper"
>
<view
class=
"list_wrapper"
>
<view
class=
"list_content"
v-for=
"(certifyItem,idx) in certificates"
>
<view
class=
"list_content"
v-for=
"(certifyItem,idx) in certificates"
>
<
!--
<view
class=
""
v-if=
"certifyItem.isAdopt=='2'"
>
--
>
<
view
class=
""
v-if=
"certifyItem.isAdopt=='2'"
>
<
view
class=
"isAdopt"
>
<
!--
<view
class=
"isAdopt"
>
--
>
通过认证
通过认证
</view>
</view>
<image
:src=
"certifyItem.cerLogoUrl"
mode=
"widthFix"
></image>
<image
:src=
"certifyItem.cerLogoUrl"
mode=
"widthFix"
></image>
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
//2通过跳到证书页,1跳到证书详情
//2通过跳到证书页,1跳到证书详情
if
(
certifyItem
.
isAdopt
==
1
){
if
(
certifyItem
.
isAdopt
==
1
){
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'../certifyDetail/certifyDetail'
url
:
`../certifyDetail/certifyDetail?certificateId=
${
certifyItem
.
certificateId
}
&userSignupId=null`
})
})
}
else
if
(
certifyItem
.
isAdopt
==
2
){
}
else
if
(
certifyItem
.
isAdopt
==
2
){
uni
.
navigateTo
({
uni
.
navigateTo
({
...
...
pages/myCertify/myCertify.vue
View file @
40b40b75
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<!-- 报名项目 -->
<!-- 报名项目 -->
<view
class=
"signItemsInfoBox"
v-if=
"tabType===1"
>
<view
class=
"signItemsInfoBox"
v-if=
"tabType===1"
>
<view
class=
"signListsBox"
v-if=
"signupInfos.length>0"
>
<view
class=
"signListsBox"
v-if=
"signupInfos.length>0"
>
<view
class=
"signItem"
v-for=
"item in signupInfos"
:key=
"item.cerNo"
>
<view
class=
"signItem"
v-for=
"item in signupInfos"
:key=
"item.cerNo"
@
click=
"toDetail(item)"
>
<view
class=
"seriesNo"
>
{{
item
.
cerNo
}}
</view>
<view
class=
"seriesNo"
>
{{
item
.
cerNo
}}
</view>
<view
class=
"certifyInfo"
>
<view
class=
"certifyInfo"
>
<text>
报名时间:
{{
item
.
signupDate
}}
</text>
<text>
报名时间:
{{
item
.
signupDate
}}
</text>
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
}
}
},
},
querySignupList
(){
querySignupList
(){
api
.
querySignupList
({
user
_i
d
:
1
}).
then
(
res
=>
{
api
.
querySignupList
({
user
I
d
:
1
}).
then
(
res
=>
{
console
.
log
(
res
);
console
.
log
(
res
);
if
(
res
[
'success'
]){
if
(
res
[
'success'
]){
this
.
signupInfos
=
res
[
'data'
][
'signupInfos'
]
this
.
signupInfos
=
res
[
'data'
][
'signupInfos'
]
...
@@ -84,6 +84,11 @@
...
@@ -84,6 +84,11 @@
this
.
userCertificates
=
res
[
'data'
][
'userCertificates'
]
this
.
userCertificates
=
res
[
'data'
][
'userCertificates'
]
}
}
})
})
},
toDetail
(
item
){
uni
.
navigateTo
({
url
:
`/pages/certifyDetail/certifyDetail?userSignupId=
${
item
.
userSignupId
}
&certificateId=null`
})
}
}
},
},
onLoad
(){
onLoad
(){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment