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
fdd39ac7
Commit
fdd39ac7
authored
Sep 28, 2021
by
Zhang Xiaojie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:贷款-网点
parent
8bdecc66
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
2 deletions
+43
-2
index.vue
src/components/NavBar/index.vue
+1
-0
index.vue
src/views/LoanDetail/index.vue
+42
-2
No files found.
src/components/NavBar/index.vue
View file @
fdd39ac7
...
...
@@ -18,6 +18,7 @@
name=
"icon-kefu"
class=
"absolute left-11"
size=
"18"
@
click=
"$router.push(
{name:'Chat'})"
:color="iconColor"
/>
<icon
...
...
src/views/LoanDetail/index.vue
View file @
fdd39ac7
...
...
@@ -11,6 +11,9 @@ import { useRoute } from "vue-router";
import
{
queryLoanProductInfo
}
from
"@/service/LoanProductService/index"
import
{
iLoanProdcutItem
,
eGuaranteeType
}
from
"@/service/LoanProductService/type"
import
{
filterGuaranteeType
}
from
"@/utils/guarantee-type"
import
{
Skeleton
}
from
"vant"
import
{
iNearbyOutLet
}
from
"@/service/AddressService/types"
import
AddressService
from
"@/service/AddressService"
function
isInViewPort
(
element
:
HTMLElement
,
barHeight
:
number
)
{
const
viewWidth
=
window
.
innerWidth
||
document
.
documentElement
.
clientWidth
;
...
...
@@ -30,6 +33,7 @@ export default defineComponent({
LoanDetailDescribe
,
Branch
,
Transition
,
Skeleton
},
setup
()
{
const
applyEl
=
ref
();
...
...
@@ -50,6 +54,24 @@ export default defineComponent({
const
apply_to
=
ref
(
''
)
const
apply_cond
=
ref
(
''
)
const
submit_cond
=
ref
(
''
)
const
state
=
reactive
({
outletList
:
[]
as
iNearbyOutLet
[],
loading
:
false
,
})
const
fetchBranch
=
async
()
=>
{
state
.
loading
=
true
;
const
ret
=
await
AddressService
.
getInstance
().
getNearby
({
bank_code
:
Number
(
process
.
env
.
VUE_APP_BANK_CODE
),
number
:
1
,
})
if
(
ret
.
code
===
200
)
{
state
.
outletList
=
ret
.
data
;
console
.
log
(
state
.
outletList
[
0
]);
}
state
.
loading
=
false
;
}
onMounted
(()
=>
{
uuid
.
value
=
useRoute
().
params
.
uuid
as
string
...
...
@@ -72,6 +94,8 @@ export default defineComponent({
apply_cond
.
value
=
productItem
.
apply_cond
submit_cond
.
value
=
productItem
.
submit_cond
}
fetchBranch
()
})
const
barEle
=
document
.
querySelector
(
".theBar"
);
...
...
@@ -203,8 +227,24 @@ export default defineComponent({
<
/div
>
<
/div
>
<
LoanDetailDescribe
class
=
" mt-5"
products
=
{
products
.
value
}
features
=
{
features
.
value
}
apply_to
=
{
apply_to
.
value
}
apply_cond
=
{
apply_cond
.
value
}
submit_cond
=
{
submit_cond
.
value
}
/
>
<
div
class
=
"title mx-5 mt-5"
>
营业网点
<
/div
>
<
Branch
class
=
" mx-5 mt-2.5 mb-4"
/>
<
div
class
=
"title mx-5 mt-5"
>
营业网点
<
/div
>
<
Skeleton
loading
=
{
state
.
loading
}
row
=
{
4
}
class
=
"mt-2"
>
{
state
.
outletList
[
0
]
&&
(
<
branch
class
=
"my-3 mx-5"
name
=
{
state
.
outletList
[
0
].
name
}
distance
=
{
state
.
outletList
[
0
].
distance
}
is_normal_work
=
{
state
.
outletList
[
0
].
is_normal_work
}
latitude
=
{
state
.
outletList
[
0
].
latitude
}
location
=
{
state
.
outletList
[
0
].
location
}
longitude
=
{
state
.
outletList
[
0
].
longitude
}
opening_hours
=
{
state
.
outletList
[
0
].
opening_hours
}
weekend_status
=
{
state
.
outletList
[
0
].
weekend_status
}
outlet_id
=
{
state
.
outletList
[
0
].
outlet_id
}
/
>
)
}
<
/Skeleton
>
<
/div
>
<
div
class
=
"h-12"
><
/div
>
<
transition
name
=
"fade"
mode
=
"out-in"
>
...
...
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