Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
vite-integral
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 59567ba5
authored
Aug 16, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'huy_v2.8.1' of
http://192.168.3.233:8090/h5/vite-integral
into huy_v2.8.1
2 parents
b9b17c54
d0ebefea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
src/views/home/useHistory.vue
src/views/home/useHistory.vue
View file @
59567ba
<
template
>
<
div
class=
"info-content
"
>
<
van-list
finished-text=
"- 没有更多啦 -"
loading-text=
"加载中..."
v-model:loading=
"loading"
:finished=
"finished"
@
load=
"getHistoryList"
>
<
template
v-if=
"useList.length == 0"
>
<div
class=
"nodata"
:style=
"
{ height: innerHeight + 'px' }">
<img
class=
"nodata-img"
src=
"@/assets/images/nodata.png"
alt=
""
/>
<div
class=
"nodata-word"
>
暂无积分使用记录
</div>
</div>
</
template
>
<
template
v-else
>
<
template
v-if=
"useList.length == 0
"
>
<
div
class=
"nodata"
:style=
"
{ height: innerHeight + 'px' }">
<img
class=
"nodata-img"
src=
"@/assets/images/nodata.png"
alt=
""
/>
<div
class=
"nodata-word"
>
暂无积分使用记录
</div>
</div>
</
template
>
<
template
v-else
>
<div
class=
"info-content"
>
<
van-list
finished-text=
"- 没有更多啦 -"
loading-text=
"加载中..."
v-model:loading=
"loading"
:finished=
"finished"
@
load=
"getHistoryList"
>
<div
v-for=
"item in useList"
:key=
"item.id"
>
<div
class=
"info-content-list"
>
<div
class=
"info-content-list-left"
>
...
...
@@ -29,21 +29,20 @@
<div
class=
"info-content-right"
>
<div
class=
"info-content-right-top"
>
{{
item
.
name
}}
</div>
<div
class=
"info-content-right-middle"
>
{{
item
.
bankName
}}
(
{{
item
.
bankNo
}}
}
)
{{
item
.
bankName
}}
(
{{
item
.
bankNo
}}
)
</div>
<div
class=
"info-content-right-bottom"
>
处理时间:
{{
item
.
cardNam
e
}}
处理时间:
{{
item
.
approverDat
e
}}
</div>
</div>
</div>
<div
class=
"finish-img"
>
已完成
</div>
</div>
</div>
</
template
>
</
van-list
>
</
div
>
</
van-list
>
</
div
>
</
template
>
</template>
<
script
lang=
"ts"
setup
>
import
{
ref
,
reactive
,
onMounted
}
from
"vue"
;
import
{
Toast
}
from
"vant"
;
...
...
@@ -78,7 +77,6 @@ let total = ref<number>(1);
// 获取积分使用记录
const
getHistoryList
=
async
()
=>
{
console
.
log
(
222222222
);
loading
.
value
=
true
;
let
params
:
{
pageNum
?:
number
;
...
...
@@ -114,7 +112,9 @@ const getHistoryList = async () => {
};
// 组件挂载完成
onMounted
(()
=>
{});
onMounted
(()
=>
{
getHistoryList
();
});
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
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