Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
study
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Damon
study
Commits
0373aabd
Commit
0373aabd
authored
Aug 04, 2021
by
linwenqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor:证书题库样式调整和log去除
parent
4ad806da
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
19 deletions
+3
-19
cert.vue
src/pages/index/cert.vue
+1
-16
bank.vue
src/pages/mine/bank.vue
+2
-2
certify.vue
src/pages/mine/certify.vue
+0
-1
No files found.
src/pages/index/cert.vue
View file @
0373aabd
...
@@ -193,7 +193,6 @@ export default {
...
@@ -193,7 +193,6 @@ export default {
},
},
methods
:
{
methods
:
{
submit
(){
submit
(){
console
.
log
(
'cert'
,
this
.
certId
)
if
(
!
this
.
certId
){
if
(
!
this
.
certId
){
this
.
$u
.
toast
(
'请填写证件号码!'
)
this
.
$u
.
toast
(
'请填写证件号码!'
)
return
return
...
@@ -206,9 +205,7 @@ export default {
...
@@ -206,9 +205,7 @@ export default {
personalCertNum
:
this
.
certId
,
personalCertNum
:
this
.
certId
,
personalName
:
this
.
certName
personalName
:
this
.
certName
}
}
console
.
log
(
param
)
this
.
$u
.
api
.
getCertFromOut
(
param
).
then
((
res
)
=>
{
this
.
$u
.
api
.
getCertFromOut
(
param
).
then
((
res
)
=>
{
console
.
log
(
'证书查询结果'
,
res
)
if
(
!
res
){
if
(
!
res
){
this
.
$u
.
toast
(
'证书暂未公布'
)
this
.
$u
.
toast
(
'证书暂未公布'
)
return
return
...
@@ -232,7 +229,6 @@ export default {
...
@@ -232,7 +229,6 @@ export default {
//获取国家证书数据
//获取国家证书数据
getCountryCert
(){
getCountryCert
(){
this
.
$u
.
api
.
getCountryCertList
().
then
((
res
)
=>
{
this
.
$u
.
api
.
getCountryCertList
().
then
((
res
)
=>
{
console
.
log
(
'国家证'
,
res
)
if
(
!
res
||
res
.
length
==
0
){
if
(
!
res
||
res
.
length
==
0
){
return
return
}
}
...
@@ -259,13 +255,11 @@ export default {
...
@@ -259,13 +255,11 @@ export default {
}
}
this
.
logTime
=
logDate
this
.
logTime
=
logDate
this
.
countryCertList
=
JSON
.
parse
(
JSON
.
stringify
(
data
))
this
.
countryCertList
=
JSON
.
parse
(
JSON
.
stringify
(
data
))
console
.
log
(
'list data'
,
this
.
countryCertList
)
})
})
},
},
//获取学时数据
//获取学时数据
getLearnCert
(){
getLearnCert
(){
this
.
$u
.
api
.
getlearnCertList
().
then
((
res
)
=>
{
this
.
$u
.
api
.
getlearnCertList
().
then
((
res
)
=>
{
console
.
log
(
'学时证'
,
res
);
if
(
!
res
||
res
.
length
==
0
){
if
(
!
res
||
res
.
length
==
0
){
//空显示缺醒
//空显示缺醒
return
return
...
@@ -284,15 +278,12 @@ export default {
...
@@ -284,15 +278,12 @@ export default {
item
.
key
=
key
item
.
key
=
key
data
.
push
(
item
)
data
.
push
(
item
)
}
}
console
.
log
(
'学时证处理结果'
,
data
)
this
.
learnCertList
=
JSON
.
parse
(
JSON
.
stringify
(
data
))
this
.
learnCertList
=
JSON
.
parse
(
JSON
.
stringify
(
data
))
})
})
},
},
goDetail
(
param
){
goDetail
(
param
){
console
.
log
(
'goto param'
,
param
)
if
(
param
[
0
].
type
==
'learn'
){
if
(
param
[
0
].
type
==
'learn'
){
param
=
param
[
0
]
param
=
param
[
0
]
console
.
log
(
'点击学时证,请求详情,组装参数再传过去'
)
this
.
$u
.
api
.
getlearnCertDetail
(
param
.
id
).
then
((
res
)
=>
{
this
.
$u
.
api
.
getlearnCertDetail
(
param
.
id
).
then
((
res
)
=>
{
param
.
data
=
res
param
.
data
=
res
getApp
().
globalData
.
certItemData
=
param
getApp
().
globalData
.
certItemData
=
param
...
@@ -303,7 +294,6 @@ export default {
...
@@ -303,7 +294,6 @@ export default {
console
.
log
(
err
)
console
.
log
(
err
)
})
})
}
else
{
}
else
{
console
.
log
(
'点击国家证,直接参数带过去'
,
param
)
getApp
().
globalData
.
certItemData
=
param
getApp
().
globalData
.
certItemData
=
param
this
.
$u
.
route
({
this
.
$u
.
route
({
url
:
'pages/cert/detail'
,
url
:
'pages/cert/detail'
,
...
@@ -315,10 +305,8 @@ export default {
...
@@ -315,10 +305,8 @@ export default {
var
oDate2
=
new
Date
(
date2
)
var
oDate2
=
new
Date
(
date2
)
if
(
oDate1
.
getTime
()
>
oDate2
.
getTime
()){
if
(
oDate1
.
getTime
()
>
oDate2
.
getTime
()){
return
date1
return
date1
// console.log('第一个大')
}
else
{
}
else
{
return
date2
return
date2
// console.log('第二个大')
}
}
},
},
actionSheetCallback
(
index
)
{
actionSheetCallback
(
index
)
{
...
@@ -337,9 +325,7 @@ export default {
...
@@ -337,9 +325,7 @@ export default {
onRestore
()
{
onRestore
()
{
this
.
triggered
=
'restore'
// 需要重置
this
.
triggered
=
'restore'
// 需要重置
},
},
onAbort
()
{
onAbort
()
{},
console
.
log
(
'onAbort'
)
},
transition
(
e
)
{
transition
(
e
)
{
// swiper-item左右移动,通知tabs的滑块跟随移动
// swiper-item左右移动,通知tabs的滑块跟随移动
let
dx
=
e
.
detail
.
dx
let
dx
=
e
.
detail
.
dx
...
@@ -358,7 +344,6 @@ export default {
...
@@ -358,7 +344,6 @@ export default {
},
},
//tabs通知swiper切换
//tabs通知swiper切换
tabsChange
(
index
)
{
tabsChange
(
index
)
{
console
.
log
(
'当前tabs index'
,
index
)
this
.
swiperCurrent
=
Number
(
index
)
this
.
swiperCurrent
=
Number
(
index
)
switch
(
this
.
swiperCurrent
)
{
switch
(
this
.
swiperCurrent
)
{
case
1
:
case
1
:
...
...
src/pages/mine/bank.vue
View file @
0373aabd
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
:statusStyle=
"item.statusStyle"
:statusStyle=
"item.statusStyle"
></my-subject>
></my-subject>
</view>
</view>
<view
class=
"content"
v-else
>
<view
class=
"content"
v-else
style=
"padding-top: 300rpx;"
>
<u-image
width=
"374rpx"
height=
"322rpx"
:src=
"nothing"
></u-image>
<u-image
width=
"374rpx"
height=
"322rpx"
:src=
"nothing"
></u-image>
<text
style=
"margin-top: 20rpx;font-size: 28rpx;color: #9EA5BB;"
<text
style=
"margin-top: 20rpx;font-size: 28rpx;color: #9EA5BB;"
>
当前暂无题库内容
</text
>
当前暂无题库内容
</text
...
@@ -167,7 +167,7 @@ page {
...
@@ -167,7 +167,7 @@ page {
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
/* justify-content: center; */
padding
:
30rpx
;
padding
:
30rpx
;
height
:
100%
;
height
:
100%
;
overflow
:
auto
;
overflow
:
auto
;
...
...
src/pages/mine/certify.vue
View file @
0373aabd
...
@@ -188,7 +188,6 @@ export default {
...
@@ -188,7 +188,6 @@ export default {
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
uni
.
hideLoading
()
uni
.
hideLoading
()
console
.
log
(
'识别结果'
,
res
)
this
.
student
.
certificateValidityDate
=
res
.
expire
this
.
student
.
certificateValidityDate
=
res
.
expire
})
})
.
catch
((
data
)
=>
{
.
catch
((
data
)
=>
{
...
...
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