Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-h5-ailipay
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6870e34f
authored
May 23, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
分页增加加载
1 parent
99982d8c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
6 deletions
src/views/coupon/verificationList.vue
src/views/coupon/verificationList.vue
View file @
6870e34
...
...
@@ -79,7 +79,11 @@
</div>
<
template
v-if=
"type == 0"
>
<div
class=
"bottom flex"
>
<img
class=
"icon-img-wh"
:src=
"require(`@/assets/images/coupon/icon-$
{attrToIcon[item.discountType]}.png`)" alt="">
<img
class=
"icon-img-wh"
:src=
"require(`@/assets/images/coupon/icon-$
{attrToIcon[item.discountType]}.png`)"
alt=""
>
<div
class=
"name"
>
<template
v-if=
"tabIndex == 0"
>
核销时间:
{{
new
Date
(
item
.
verificationTime
).
format
(
'yyyy/MM/dd'
)
}}
...
...
@@ -94,7 +98,10 @@
</div>
</template>
</template>
<div
v-else-if=
"type == 0 && item.discountType == 7"
class=
"type-3"
>
<div
v-else-if=
"type == 0 && item.discountType == 7"
class=
"type-3"
>
<div
class=
"item"
>
<div
class=
"title flex"
>
{{item.phone}}
...
...
@@ -151,7 +158,11 @@
<template v-else>不限次数</template>
</template>
</div> -->
<img
class=
"icon-img-wh"
:src=
"require(`@/assets/images/coupon/icon-${attrToIcon[item.discountType]}.png`)"
alt=
""
>
<img
class=
"icon-img-wh"
:src=
"require(`@/assets/images/coupon/icon-${attrToIcon[item.discountType]}.png`)"
alt=
""
>
<div
class=
"name"
>
{{tabIndex == 0?'核销时间':'购买时间'}}:{{new Date(tabIndex == 0 ?item.verificationTime:item.receiveTime).format('yyyy/MM/dd')}}
</div>
</div>
</div>
...
...
@@ -451,12 +462,17 @@ export default {
onReachBottom
()
{
let
{
total
,
pageNum
,
list
}
=
this
this
.
$refs
.
scrollView
.
loading
=
false
if
(
list
.
length
==
total
||
Math
.
ceil
(
total
/
10
)
<
pageNum
)
{
if
(
list
.
length
==
total
)
{
this
.
$refs
.
scrollView
.
finished
=
true
return
}
this
.
pageNum
=
pageNum
+
1
this
.
getList
()
if
(
Math
.
ceil
(
total
/
10
)
>
pageNum
)
{
this
.
showLoading
()
this
.
pageNum
=
pageNum
+
1
this
.
getList
()
}
else
{
this
.
$refs
.
scrollView
.
finished
=
true
}
},
scan
()
{
// let resultStr = 't=1&c=3510671342174081024'
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment