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
ec249fa4
Commit
ec249fa4
authored
Oct 15, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
50f8bbfb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
11 deletions
+28
-11
index.vue
src/components/Loan/LoanCard2/index.vue
+17
-9
index.vue
src/views/LoanDetail/index.vue
+11
-2
No files found.
src/components/Loan/LoanCard2/index.vue
View file @
ec249fa4
<
script
lang=
"tsx"
>
import
router
from
"@/router"
;
import
{
goToChatWithOutletRoboot
}
from
"@/router/navigate"
;
import
AddressService
from
"@/service/AddressService"
;
import
{
chatAuthCheck
}
from
"@/utils/authCheck"
;
import
{
defineComponent
,
ref
}
from
"vue"
;
export
default
defineComponent
({
props
:
[
"setRef"
,
"min_amount"
,
"max_amount"
,
"rate_lower"
,
"rate_upper"
],
setup
(
props
)
{
const
handleClick
=
async
()
=>
{
console
.
log
(
1
);
const
ret
=
await
AddressService
.
getInstance
().
getNearby
({
bank_code
:
Number
(
process
.
env
.
VUE_APP_BANK_CODE
),
number
:
1
,
})
if
(
ret
.
code
===
200
)
{
goToChatWithOutletRoboot
({
outletId
:
ret
.
data
[
0
].
outlet_id
chatAuthCheck
(
async
()
=>
{
const
ret
=
await
AddressService
.
getInstance
().
getNearby
({
bank_code
:
Number
(
process
.
env
.
VUE_APP_BANK_CODE
),
number
:
1
,
})
}
if
(
ret
.
code
===
200
)
{
goToChatWithOutletRoboot
({
outletId
:
ret
.
data
[
0
].
outlet_id
})
}
},
()
=>
{
router
.
push
({
name
:
'Login'
})
})
}
return
()
=>
(
...
...
src/views/LoanDetail/index.vue
View file @
ec249fa4
...
...
@@ -17,6 +17,7 @@ import AddressService from "@/service/AddressService"
import
router
from
"@/router"
;
import
UserService
from
"@/service/UserService"
;
import
{
goToChatWithOutletRoboot
}
from
"@/router/navigate"
;
import
{
chatAuthCheck
}
from
"@/utils/authCheck"
;
function
isInViewPort
(
element
:
HTMLElement
,
barHeight
:
number
)
{
const
viewWidth
=
window
.
innerWidth
||
document
.
documentElement
.
clientWidth
;
...
...
@@ -113,11 +114,19 @@ export default defineComponent({
});
const
handleClickApply
=
async
()
=>
{
getOutletAndNavigateToChat
();
chatAuthCheck
(
getOutletAndNavigateToChat
,
()
=>
{
router
.
push
({
name
:
'Login'
})
})
}
const
clickChatIcon
=
async
()
=>
{
getOutletAndNavigateToChat
()
chatAuthCheck
(
getOutletAndNavigateToChat
,
()
=>
{
router
.
push
({
name
:
'Login'
})
})
}
const
getOutletAndNavigateToChat
=
async
()
=>
{
...
...
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