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
3d5e8525
Commit
3d5e8525
authored
Jul 27, 2021
by
linwenqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor:证书列表缺醒页
parent
ddae4473
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
2 deletions
+32
-2
cert.vue
src/pages/index/cert.vue
+32
-2
No files found.
src/pages/index/cert.vue
View file @
3d5e8525
...
@@ -90,7 +90,7 @@
...
@@ -90,7 +90,7 @@
@
refresherrestore=
"onRestore"
@
refresherrestore=
"onRestore"
@
refresherabort=
"onAbort"
@
refresherabort=
"onAbort"
>
>
<view
class=
"list-view"
>
<view
v-if=
"hasData"
class=
"list-view"
>
<view
class=
"item"
v-for=
"(item, key) in countryCertList"
:key=
"key"
@
tap=
"goDetail(item)"
>
<view
class=
"item"
v-for=
"(item, key) in countryCertList"
:key=
"key"
@
tap=
"goDetail(item)"
>
<u-image
:src=
"item.bgImage"
width=
"100%"
height=
"100%"
class=
"bg-image"
></u-image>
<u-image
:src=
"item.bgImage"
width=
"100%"
height=
"100%"
class=
"bg-image"
></u-image>
<view
class=
"name"
>
<view
class=
"name"
>
...
@@ -104,6 +104,17 @@
...
@@ -104,6 +104,17 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
v-else
class=
"list-view empty-value"
>
<u-image
width=
"374rpx"
height=
"322rpx"
:src=
"nothing"
style=
"margin-top: 100rpx;"
></u-image>
<text
style=
"margin-top: 20rpx;font-size: 28rpx;color: #9EA5BB;"
>
当前暂无证书内容
</text
>
</view>
</scroll-view>
</scroll-view>
</swiper-item>
</swiper-item>
</swiper>
</swiper>
...
@@ -127,6 +138,7 @@ export default {
...
@@ -127,6 +138,7 @@ export default {
learnCertList
:
[],
learnCertList
:
[],
countryCertImage
:
process
.
uniEnv
.
qn_base_url
+
'zhengshubeijing@2x.png'
,
countryCertImage
:
process
.
uniEnv
.
qn_base_url
+
'zhengshubeijing@2x.png'
,
learnCertImage
:
process
.
uniEnv
.
qn_base_url
+
'xueshizhengmingbeijing@2x.png'
,
learnCertImage
:
process
.
uniEnv
.
qn_base_url
+
'xueshizhengmingbeijing@2x.png'
,
nothing
:
process
.
uniEnv
.
qn_base_url
+
'zanwucuoti@3x.png'
,
isEmptyList
:
true
,
//学时证和国家证都为空显示空
isEmptyList
:
true
,
//学时证和国家证都为空显示空
value
:
''
,
value
:
''
,
type
:
'select'
,
type
:
'select'
,
...
@@ -160,7 +172,17 @@ export default {
...
@@ -160,7 +172,17 @@ export default {
_freshing
:
false
,
_freshing
:
false
,
}
}
},
},
computed
:
{},
computed
:
{
hasData
(){
if
(
this
.
countryCertList
&&
this
.
countryCertList
.
length
>
0
){
return
true
}
else
if
(
this
.
learnCertList
&&
this
.
learnCertList
.
length
>
0
){
return
true
}
else
{
return
false
}
}
},
onLoad
()
{
onLoad
()
{
this
.
checkType
=
'特种作业操作证查询'
this
.
checkType
=
'特种作业操作证查询'
},
},
...
@@ -610,4 +632,12 @@ page {
...
@@ -610,4 +632,12 @@ page {
}
}
}
}
}
}
.empty-value
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
padding
:
30rpx
;
text-align
:
center
;
}
</
style
>
</
style
>
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