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
d2e5dee8
Commit
d2e5dee8
authored
Oct 22, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d5856bbe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
17 deletions
+22
-17
index.vue
src/views/LoanList/index.vue
+22
-17
No files found.
src/views/LoanList/index.vue
View file @
d2e5dee8
...
@@ -2,12 +2,7 @@
...
@@ -2,12 +2,7 @@
<div
class=
"page"
>
<div
class=
"page"
>
<NavBar
title=
"全部产品"
/>
<NavBar
title=
"全部产品"
/>
<div
class=
"layer1 flex-col"
>
<div
class=
"layer1 flex-col"
>
<GroupTitle
<GroupTitle
class=
"mt-4"
title=
"产品精选"
iconName=
"icon-shaixuan"
@
filter=
"showFilter"
/>
class=
"mt-4"
title=
"产品精选"
iconName=
"icon-shaixuan"
@
filter=
"showFilter"
/>
</div>
</div>
<!-- 产品列表 -->
<!-- 产品列表 -->
<van-list
<van-list
...
@@ -19,7 +14,7 @@
...
@@ -19,7 +14,7 @@
>
>
<LoanCard
<LoanCard
v-for=
"item in state"
v-for=
"item in state"
: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"
...
@@ -153,24 +148,34 @@ export default defineComponent({
...
@@ -153,24 +148,34 @@ export default defineComponent({
limit
:
LIST_SIZE
,
limit
:
LIST_SIZE
,
offset
:
offset
.
value
,
offset
:
offset
.
value
,
loan_type
:
mode
.
value
,
loan_type
:
mode
.
value
,
product_status
:
eProductStatus
.
published
product_status
:
eProductStatus
.
published
}).
then
((
ret
)
=>
{
}).
then
((
ret
)
=>
{
loading
.
value
=
false
;
loading
.
value
=
false
;
if
(
ret
.
code
===
200
)
{
if
(
ret
.
code
===
200
)
{
total
.
value
=
ret
.
data
.
total
;
total
.
value
=
ret
.
data
.
total
;
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
{
max_amount
,
inst_name
,
uuid
,
features
,
product_name
}
=
const
{
max_amount
,
inst_name
,
uuid
,
features
,
product_name
}
=
ret
.
data
;
ret
.
data
;
setSearchResult
(
{
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
=>
{
setSearchResult
(
i
)
})
})
}
}
});
});
};
};
...
@@ -198,9 +203,9 @@ export default defineComponent({
...
@@ -198,9 +203,9 @@ export default defineComponent({
return
{
return
{
show
:
false
,
show
:
false
,
peridList
:
[
peridList
:
[
{
id
:
{
date
:
1
},
name
:
"1年"
},
{
id
:
{
date
:
1
},
name
:
"1年"
},
{
id
:
{
date
:
3
},
name
:
"3年"
},
{
id
:
{
date
:
3
},
name
:
"3年"
},
{
id
:
{
date
:
10
},
name
:
"10年"
},
{
id
:
{
date
:
10
},
name
:
"10年"
},
],
],
typeList
:
[
typeList
:
[
{
id
:
{
guarantee_type
:
1
},
name
:
"信用"
},
{
id
:
{
guarantee_type
:
1
},
name
:
"信用"
},
...
@@ -314,11 +319,11 @@ export default defineComponent({
...
@@ -314,11 +319,11 @@ export default defineComponent({
queryList
()
{
queryList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
queryDirectLoanReq
({
queryDirectLoanReq
({
rate
:
+
this
.
reqParams
.
min
!
?
+
this
.
reqParams
.
min
!
:
0
,
rate
:
+
this
.
reqParams
.
min
!
?
+
this
.
reqParams
.
min
!
:
0
,
min_amount
:
+
this
.
reqParams
.
min2
!
?
+
this
.
reqParams
.
min2
!
:
0
,
min_amount
:
+
this
.
reqParams
.
min2
!
?
+
this
.
reqParams
.
min2
!
:
0
,
max_amount
:
+
this
.
reqParams
.
max2
!
?
+
this
.
reqParams
.
max2
!
:
9999
,
max_amount
:
+
this
.
reqParams
.
max2
!
?
+
this
.
reqParams
.
max2
!
:
9999
,
bank_code
:
this
.
reqParams
.
selectedBanks
[
0
],
bank_code
:
this
.
reqParams
.
selectedBanks
[
0
],
date
:
this
.
reqParams
.
selectedPerids
[
0
]?
this
.
reqParams
.
selectedPerids
[
0
].
date
:
undefined
,
date
:
this
.
reqParams
.
selectedPerids
[
0
]
?
this
.
reqParams
.
selectedPerids
[
0
].
date
:
undefined
,
loan_type
:
this
.
mode
,
loan_type
:
this
.
mode
,
product_status
:
4
,
product_status
:
4
,
guarantee_type
:
this
.
reqParams
.
selectedTypes
[
0
]
guarantee_type
:
this
.
reqParams
.
selectedTypes
[
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