Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_front_2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenqikuai
fns_front_2
Commits
cb04f89f
Commit
cb04f89f
authored
Oct 22, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d2e5dee8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
index.vue
src/views/withMenu/Loan/index.vue
+11
-5
No files found.
src/views/withMenu/Loan/index.vue
View file @
cb04f89f
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
>
>
<LoanCard
<LoanCard
v-for=
"item in state.allProductList"
v-for=
"item in state.allProductList"
:key=
"item.
value
"
:key=
"item.
uuid
"
:max_amount=
"item.max_amount"
:max_amount=
"item.max_amount"
:product_name=
"item.product_name"
:product_name=
"item.product_name"
:features=
"item.features"
:features=
"item.features"
...
@@ -217,26 +217,32 @@ const fetchList = () => {
...
@@ -217,26 +217,32 @@ const fetchList = () => {
}).
then
((
ret
)
=>
{
}).
then
((
ret
)
=>
{
if
(
ret
.
code
===
200
)
{
if
(
ret
.
code
===
200
)
{
skeLoading
.
value
=
false
;
skeLoading
.
value
=
false
;
const
promiseList
=
[]
as
Promise
<
any
>
[]
ret
.
data
.
uuid
.
map
((
uuid
)
=>
{
ret
.
data
.
uuid
.
map
((
uuid
)
=>
{
queryLoanProductInfo
({
uuid
}).
then
((
ret
)
=>
{
const
promise
=
queryLoanProductInfo
({
uuid
}).
then
((
ret
)
=>
{
const
{
const
{
max_amount
,
max_amount
,
inst_name
,
inst_name
,
uuid
,
uuid
,
features
,
features
,
product_name
,
product_name
,
product_status
,
}
=
ret
.
data
;
}
=
ret
.
data
;
count
.
value
=
count
.
value
+
1
;
count
.
value
=
count
.
value
+
1
;
state
.
allProductList
.
push
(
{
return
{
max_amount
,
max_amount
,
product_name
,
product_name
,
features
,
features
,
inst_name
,
inst_name
,
uuid
,
uuid
,
}
);
}
});
});
promiseList
.
push
(
promise
)
});
});
Promise
.
all
(
promiseList
).
then
(
list
=>
{
list
.
forEach
(
i
=>
{
state
.
allProductList
.
push
(
i
)
})
})
}
}
});
});
count
.
value
=
0
;
count
.
value
=
0
;
...
...
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