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
7f28b354
Commit
7f28b354
authored
Dec 14, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 接口调整,前端修复
parent
69319571
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
73 additions
and
61 deletions
+73
-61
.eslintrc.js
.eslintrc.js
+2
-0
index.vue
src/components/Loan/LoanCard2/index.vue
+1
-2
branch.vue
src/components/Mine/Branch/branch.vue
+5
-3
OutletDBService.ts
src/db/OutletDBService.ts
+18
-13
index.ts
src/db/index.ts
+3
-3
navigate.ts
src/router/navigate.ts
+13
-10
index.ts
src/service/AddressService/index.ts
+3
-3
index.ts
src/service/UserService/index.ts
+1
-1
displayName.ts
src/utils/displayName.ts
+10
-10
Chat.vue
src/views/Chat/Chat.vue
+3
-3
index.vue
src/views/LoanDetail/index.vue
+2
-3
branch.vue
src/views/withMenu/Mine/branch.vue
+7
-5
index.vue
src/views/withMenu/Mine/index.vue
+2
-2
vue.config.js
vue.config.js
+3
-3
No files found.
.eslintrc.js
View file @
7f28b354
...
@@ -3,6 +3,8 @@ module.exports = {
...
@@ -3,6 +3,8 @@ module.exports = {
browser
:
true
,
browser
:
true
,
es2021
:
true
,
es2021
:
true
,
"vue/setup-compiler-macros"
:
true
,
"vue/setup-compiler-macros"
:
true
,
node
:
true
,
commonjs
:
true
,
},
},
extends
:
[
extends
:
[
"eslint:recommended"
,
"eslint:recommended"
,
...
...
src/components/Loan/LoanCard2/index.vue
View file @
7f28b354
...
@@ -19,13 +19,12 @@ export default defineComponent({
...
@@ -19,13 +19,12 @@ export default defineComponent({
chatAuthCheck
(
chatAuthCheck
(
async
()
=>
{
async
()
=>
{
const
ret
=
await
AddressService
.
getInstance
().
getNearby
({
const
ret
=
await
AddressService
.
getInstance
().
getNearby
({
// eslint-disable-next-line no-undef
bank_code
:
Number
(
process
.
env
.
VUE_APP_BANK_CODE
),
bank_code
:
Number
(
process
.
env
.
VUE_APP_BANK_CODE
),
number
:
1
,
number
:
1
,
});
});
if
(
ret
.
code
===
200
)
{
if
(
ret
.
code
===
200
)
{
goToChatWithOutletRoboot
({
goToChatWithOutletRoboot
({
outlet
Id
:
ret
.
data
[
0
].
outlet
_id
,
outlet
PosId
:
ret
.
data
[
0
].
pos
_id
,
});
});
}
}
},
},
...
...
src/components/Mine/Branch/branch.vue
View file @
7f28b354
...
@@ -183,6 +183,10 @@ const props = defineProps({
...
@@ -183,6 +183,10 @@ const props = defineProps({
opening_hours
:
String
,
opening_hours
:
String
,
weekend_status
:
Number
,
weekend_status
:
Number
,
outlet_id
:
Number
,
outlet_id
:
Number
,
outlet_posId
:
{
type
:
String
,
required
:
true
,
},
});
});
const
judgeWeekend
=
()
=>
{
const
judgeWeekend
=
()
=>
{
...
@@ -285,11 +289,9 @@ const handleClickNagigate = () => {
...
@@ -285,11 +289,9 @@ const handleClickNagigate = () => {
};
};
const
handleClickChatWithClientManager
=
async
()
=>
{
const
handleClickChatWithClientManager
=
async
()
=>
{
console
.
log
(
props
.
outlet_id
,
"show outlet id"
);
authCheck
(
async
()
=>
{
authCheck
(
async
()
=>
{
goToChatWithOutletRoboot
({
goToChatWithOutletRoboot
({
outlet
Id
:
props
.
outlet_id
as
number
,
outlet
PosId
:
props
.
outlet_posId
,
});
});
});
});
};
};
...
...
src/db/OutletDBService.ts
View file @
7f28b354
import
{
iOutLet
,
MyAppDatabase
}
from
'.'
import
{
iOutLet
,
MyAppDatabase
}
from
"."
;
export
default
class
OutletDBService
{
export
default
class
OutletDBService
{
static
instance
:
OutletDBService
static
instance
:
OutletDBService
;
outlet
:
Dexie
.
Table
<
iOutLet
,
number
>
outlet
:
Dexie
.
Table
<
iOutLet
,
number
>
;
static
getInstance
()
{
static
getInstance
()
{
if
(
!
OutletDBService
.
instance
)
if
(
!
OutletDBService
.
instance
)
OutletDBService
.
instance
=
new
OutletDBService
()
OutletDBService
.
instance
=
new
OutletDBService
()
;
return
OutletDBService
.
instance
return
OutletDBService
.
instance
;
}
}
constructor
()
{
constructor
()
{
const
db
=
new
MyAppDatabase
()
const
db
=
new
MyAppDatabase
()
;
this
.
outlet
=
db
.
outlet
this
.
outlet
=
db
.
outlet
;
}
}
add
(
outlet
:
iOutLet
)
{
add
(
outlet
:
iOutLet
)
{
return
this
.
outlet
.
add
(
outlet
)
return
this
.
outlet
.
add
(
outlet
)
;
}
}
update
(
outlet
:
Partial
<
Omit
<
iOutLet
,
'id'
>>
&
Pick
<
iOutLet
,
'id'
>
)
{
update
(
outlet
:
Partial
<
Omit
<
iOutLet
,
"id"
>>
&
Pick
<
iOutLet
,
"posId"
>
)
{
return
this
.
outlet
.
update
(
outlet
.
id
,
outlet
)
return
this
.
outlet
.
filter
((
i
)
=>
i
.
posId
===
outlet
.
posId
)
.
modify
((
i
)
=>
{
outlet
.
name
&&
(
i
.
name
=
outlet
.
name
);
outlet
.
isDeleted
&&
(
i
.
isDeleted
=
outlet
.
isDeleted
);
});
}
}
delete
(
id
:
number
)
{
delete
(
id
:
number
)
{
return
this
.
outlet
.
delete
(
id
)
return
this
.
outlet
.
delete
(
id
)
;
}
}
get
(
id
:
number
)
{
get
(
posId
:
string
)
{
return
this
.
outlet
.
get
(
id
)
return
this
.
outlet
.
filter
((
i
)
=>
i
.
posId
===
posId
).
first
();
}
}
}
}
src/db/index.ts
View file @
7f28b354
...
@@ -18,7 +18,7 @@ export interface iChatListCard {
...
@@ -18,7 +18,7 @@ export interface iChatListCard {
}
}
export
interface
iOutLet
{
export
interface
iOutLet
{
id
:
number
;
posId
:
string
;
name
:
string
;
name
:
string
;
isDeleted
?:
boolean
;
isDeleted
?:
boolean
;
}
}
...
@@ -33,14 +33,14 @@ export class MyAppDatabase extends Dexie {
...
@@ -33,14 +33,14 @@ export class MyAppDatabase extends Dexie {
constructor
()
{
constructor
()
{
super
(
"MyAppDatabase"
);
super
(
"MyAppDatabase"
);
this
.
version
(
1.
5
).
stores
({
this
.
version
(
1.
7
).
stores
({
chatMessage
:
chatMessage
:
"++id, content, from, uuid, state, uploadProgress, type, datetime, hideDatetime, logid, masterId, readed"
,
"++id, content, from, uuid, state, uploadProgress, type, datetime, hideDatetime, logid, masterId, readed"
,
chatListCard
:
chatListCard
:
"++id, masterId, targetId, unreadMsgCount, content, inChat, isRobootCard,isDeleted"
,
"++id, masterId, targetId, unreadMsgCount, content, inChat, isRobootCard,isDeleted"
,
contactPerson
:
"++id, addr, bank, phone, user_name, out_let_name"
,
contactPerson
:
"++id, addr, bank, phone, user_name, out_let_name"
,
userInfo
:
"++id, created_at, phone, remark, user_name, uuid, addr"
,
userInfo
:
"++id, created_at, phone, remark, user_name, uuid, addr"
,
outlet
:
"
i
d, name, isDeleted"
,
outlet
:
"
posI
d, name, isDeleted"
,
});
});
this
.
chatMessage
=
this
.
table
(
"chatMessage"
);
this
.
chatMessage
=
this
.
table
(
"chatMessage"
);
...
...
src/router/navigate.ts
View file @
7f28b354
import
router
from
'.'
import
router
from
"."
;
export
function
goToChatWithOutletRoboot
(
data
:
{
outlet
Id
:
number
})
{
export
function
goToChatWithOutletRoboot
(
data
:
{
outlet
PosId
:
string
})
{
router
.
push
({
router
.
push
({
name
:
'Chat'
,
name
:
"Chat"
,
query
:
{
query
:
{
targetId
:
data
.
outletId
,
targetId
:
data
.
outlet
Pos
Id
,
outlet
:
'true'
,
outlet
:
"true"
,
},
},
})
})
;
}
}
export
function
gotoChatWithStaff
(
data
:
{
address
:
string
;
beginChat
?:
boolean
})
{
export
function
gotoChatWithStaff
(
data
:
{
address
:
string
;
beginChat
?:
boolean
;
})
{
router
.
push
({
router
.
push
({
name
:
'Chat'
,
name
:
"Chat"
,
query
:
{
query
:
{
targetId
:
data
.
address
,
targetId
:
data
.
address
,
beginChat
:
data
.
beginChat
?
'true'
:
undefined
,
beginChat
:
data
.
beginChat
?
"true"
:
undefined
,
},
},
})
})
;
}
}
src/service/AddressService/index.ts
View file @
7f28b354
...
@@ -56,15 +56,15 @@ class AddressService {
...
@@ -56,15 +56,15 @@ class AddressService {
});
});
}
}
getOutlet
(
data
:
{
outlet_name
?:
string
;
id
?:
number
})
{
getOutlet
(
data
:
{
outlet_name
?:
string
;
pos_id
?:
string
})
{
const
theData
=
{
const
theData
=
{
bank_code
:
Number
(
process
.
env
.
VUE_APP_BANK_CODE
),
bank_code
:
Number
(
process
.
env
.
VUE_APP_BANK_CODE
),
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
}
as
any
;
}
as
any
;
if
(
data
.
outlet_name
)
{
if
(
data
.
outlet_name
)
{
theData
.
outlet_name
=
data
.
outlet_name
;
theData
.
outlet_name
=
data
.
outlet_name
;
}
else
if
(
data
.
id
!==
undefined
)
{
}
else
if
(
data
.
pos_
id
!==
undefined
)
{
theData
.
id
=
data
.
id
;
theData
.
pos_id
=
data
.
pos_
id
;
}
}
return
baseAxios
<
iOutLetDetail
>
({
return
baseAxios
<
iOutLetDetail
>
({
url
:
"/address/getOutlet"
,
url
:
"/address/getOutlet"
,
...
...
src/service/UserService/index.ts
View file @
7f28b354
...
@@ -10,7 +10,7 @@ class UserService {
...
@@ -10,7 +10,7 @@ class UserService {
return
UserService
.
instance
;
return
UserService
.
instance
;
}
}
contact_custom_service
(
data
:
{
outLetID
:
number
})
{
contact_custom_service
(
data
:
{
outLetID
:
string
})
{
return
baseAxios
<
iContact
>
({
return
baseAxios
<
iContact
>
({
url
:
"/user/contact_custom_service"
,
url
:
"/user/contact_custom_service"
,
method
:
"post"
,
method
:
"post"
,
...
...
src/utils/displayName.ts
View file @
7f28b354
...
@@ -64,17 +64,17 @@ export const getDisplayNamesFromAddress = async (
...
@@ -64,17 +64,17 @@ export const getDisplayNamesFromAddress = async (
};
};
/* 获取网点名称 */
/* 获取网点名称 */
export
const
getDisplayNamesFromOutletId
=
async
(
outlet
ids
:
number
[])
=>
{
export
const
getDisplayNamesFromOutletId
=
async
(
outlet
PosId
:
string
[])
=>
{
const
promiseList
=
outlet
ids
.
map
(
async
(
id
)
=>
{
const
promiseList
=
outlet
PosId
.
map
(
async
(
id
)
=>
{
const
outlet
=
await
OutletDBService
.
getInstance
().
get
(
id
);
const
outlet
=
await
OutletDBService
.
getInstance
().
get
(
id
);
if
(
!
outlet
)
{
if
(
!
outlet
)
{
const
ret
=
await
AddressService
.
getInstance
().
getOutlet
({
const
ret
=
await
AddressService
.
getInstance
().
getOutlet
({
id
,
pos_id
:
id
,
});
});
if
(
ret
.
code
===
200
)
{
if
(
ret
.
code
===
200
)
{
await
OutletDBService
.
getInstance
().
add
({
await
OutletDBService
.
getInstance
().
add
({
name
:
ret
.
data
.
outlet_name
,
name
:
ret
.
data
.
outlet_name
,
id
:
ret
.
data
.
id
,
posId
:
ret
.
data
.
pos_
id
,
});
});
return
ret
.
data
.
outlet_name
;
return
ret
.
data
.
outlet_name
;
}
}
...
@@ -82,17 +82,17 @@ export const getDisplayNamesFromOutletId = async (outletids: number[]) => {
...
@@ -82,17 +82,17 @@ export const getDisplayNamesFromOutletId = async (outletids: number[]) => {
!
outlet
.
isDeleted
&&
!
outlet
.
isDeleted
&&
AddressService
.
getInstance
()
AddressService
.
getInstance
()
.
getOutlet
({
.
getOutlet
({
id
,
pos_id
:
id
,
})
})
.
then
((
ret
)
=>
{
.
then
((
ret
)
=>
{
if
(
ret
.
code
===
200
)
{
if
(
ret
.
code
===
200
)
{
OutletDBService
.
getInstance
().
update
({
OutletDBService
.
getInstance
().
update
({
name
:
ret
.
data
.
outlet_name
,
name
:
ret
.
data
.
outlet_name
,
id
:
ret
.
data
.
id
,
posId
:
ret
.
data
.
pos_
id
,
});
});
}
else
{
}
else
{
OutletDBService
.
getInstance
().
update
({
OutletDBService
.
getInstance
().
update
({
id
,
posId
:
id
,
isDeleted
:
true
,
isDeleted
:
true
,
});
});
}
}
...
@@ -105,11 +105,11 @@ export const getDisplayNamesFromOutletId = async (outletids: number[]) => {
...
@@ -105,11 +105,11 @@ export const getDisplayNamesFromOutletId = async (outletids: number[]) => {
};
};
export
const
getDisplayNames
=
async
(
export
const
getDisplayNames
=
async
(
list
:
{
outlet
Id
?:
number
;
address
?:
string
}[]
list
:
{
outlet
PosId
?:
string
;
address
?:
string
}[]
)
=>
{
)
=>
{
const
promiseList
=
list
.
map
((
i
)
=>
{
const
promiseList
=
list
.
map
((
i
)
=>
{
if
(
i
.
outletId
!==
undefined
)
{
if
(
i
.
outlet
Pos
Id
!==
undefined
)
{
return
getDisplayNamesFromOutletId
([
i
.
outletId
]).
then
((
ret
)
=>
ret
[
0
]);
return
getDisplayNamesFromOutletId
([
i
.
outlet
Pos
Id
]).
then
((
ret
)
=>
ret
[
0
]);
}
else
if
(
i
.
address
!==
undefined
)
{
}
else
if
(
i
.
address
!==
undefined
)
{
return
getDisplayNamesFromAddress
([
i
.
address
]).
then
((
ret
)
=>
ret
[
0
]);
return
getDisplayNamesFromAddress
([
i
.
address
]).
then
((
ret
)
=>
ret
[
0
]);
}
else
return
""
;
}
else
return
""
;
...
...
src/views/Chat/Chat.vue
View file @
7f28b354
...
@@ -153,7 +153,7 @@ export default defineComponent({
...
@@ -153,7 +153,7 @@ export default defineComponent({
if
(
serviceShowValue
.
value
===
"人工服务"
)
{
if
(
serviceShowValue
.
value
===
"人工服务"
)
{
questionSelected
.
value
=
false
;
questionSelected
.
value
=
false
;
const
ret
=
await
UserService
.
getInstance
().
contact_custom_service
({
const
ret
=
await
UserService
.
getInstance
().
contact_custom_service
({
outLetID
:
Number
(
route
.
query
.
targetId
)
as
number
,
outLetID
:
route
.
query
.
targetId
as
string
,
});
});
if
(
ret
.
code
===
200
)
{
if
(
ret
.
code
===
200
)
{
gotoChatWithStaff
({
gotoChatWithStaff
({
...
@@ -203,7 +203,7 @@ export default defineComponent({
...
@@ -203,7 +203,7 @@ export default defineComponent({
const
handleClickCall
=
async
()
=>
{
const
handleClickCall
=
async
()
=>
{
if
(
isChatWithRoboot
.
value
)
{
if
(
isChatWithRoboot
.
value
)
{
const
ret
=
await
UserService
.
getInstance
().
contact_custom_service
({
const
ret
=
await
UserService
.
getInstance
().
contact_custom_service
({
outLetID
:
Number
(
target
)
as
number
,
outLetID
:
target
,
});
});
if
(
ret
.
code
===
200
)
{
if
(
ret
.
code
===
200
)
{
callPhone
.
value
=
ret
.
data
.
phone
;
callPhone
.
value
=
ret
.
data
.
phone
;
...
@@ -311,7 +311,7 @@ export default defineComponent({
...
@@ -311,7 +311,7 @@ export default defineComponent({
// console.log(isChatWithRoboot.value, "show isChatWithRoboot");
// console.log(isChatWithRoboot.value, "show isChatWithRoboot");
if
(
isChatWithRoboot
.
value
)
{
if
(
isChatWithRoboot
.
value
)
{
const
list
=
await
getDisplayNames
([
const
list
=
await
getDisplayNames
([
{
outlet
Id
:
Number
(
route
.
query
.
targetId
)
},
{
outlet
PosId
:
route
.
query
.
targetId
as
string
},
]);
]);
title
.
value
=
list
[
0
]
as
string
;
title
.
value
=
list
[
0
]
as
string
;
}
else
{
}
else
{
...
...
src/views/LoanDetail/index.vue
View file @
7f28b354
...
@@ -78,7 +78,6 @@ export default defineComponent({
...
@@ -78,7 +78,6 @@ export default defineComponent({
const
fetchBranch
=
async
()
=>
{
const
fetchBranch
=
async
()
=>
{
state
.
loading
=
true
;
state
.
loading
=
true
;
const
ret
=
await
AddressService
.
getInstance
().
getNearby
({
const
ret
=
await
AddressService
.
getInstance
().
getNearby
({
// eslint-disable-next-line no-undef
bank_code
:
Number
(
process
.
env
.
VUE_APP_BANK_CODE
),
bank_code
:
Number
(
process
.
env
.
VUE_APP_BANK_CODE
),
number
:
1
,
number
:
1
,
});
});
...
@@ -143,13 +142,12 @@ export default defineComponent({
...
@@ -143,13 +142,12 @@ export default defineComponent({
const
getOutletAndNavigateToChat
=
async
()
=>
{
const
getOutletAndNavigateToChat
=
async
()
=>
{
const
ret
=
await
AddressService
.
getInstance
().
getNearby
({
const
ret
=
await
AddressService
.
getInstance
().
getNearby
({
// eslint-disable-next-line no-undef
bank_code
:
Number
(
process
.
env
.
VUE_APP_BANK_CODE
),
bank_code
:
Number
(
process
.
env
.
VUE_APP_BANK_CODE
),
number
:
1
,
number
:
1
,
});
});
if
(
ret
.
code
===
200
)
{
if
(
ret
.
code
===
200
)
{
goToChatWithOutletRoboot
({
goToChatWithOutletRoboot
({
outlet
Id
:
ret
.
data
[
0
].
outlet
_id
,
outlet
PosId
:
ret
.
data
[
0
].
pos
_id
,
});
});
}
}
};
};
...
@@ -302,6 +300,7 @@ export default defineComponent({
...
@@ -302,6 +300,7 @@ export default defineComponent({
opening_hours
=
{
state
.
outletList
[
0
].
opening_hours
}
opening_hours
=
{
state
.
outletList
[
0
].
opening_hours
}
weekend_status
=
{
state
.
outletList
[
0
].
weekend_status
}
weekend_status
=
{
state
.
outletList
[
0
].
weekend_status
}
outlet_id
=
{
state
.
outletList
[
0
].
outlet_id
}
outlet_id
=
{
state
.
outletList
[
0
].
outlet_id
}
outlet_posId
=
{
state
.
outletList
[
0
].
pos_id
}
/
>
/
>
)}
)}
<
/Skeleton
>
<
/Skeleton
>
...
...
src/views/withMenu/Mine/branch.vue
View file @
7f28b354
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
:opening_hours=
"result.topItem.opening_hours"
:opening_hours=
"result.topItem.opening_hours"
:weekend_status=
"result.topItem.weekend_status"
:weekend_status=
"result.topItem.weekend_status"
:outlet_id=
"result.topItem.outlet_id"
:outlet_id=
"result.topItem.outlet_id"
:outlet_posId=
"result.topItem.pos_id"
class=
"mt-3 shadow-sm z-20 relative"
class=
"mt-3 shadow-sm z-20 relative"
/>
/>
</Skeleton>
</Skeleton>
...
@@ -52,10 +53,10 @@
...
@@ -52,10 +53,10 @@
:longitude=
"item.longitude"
:longitude=
"item.longitude"
:opening_hours=
"item.opening_hours"
:opening_hours=
"item.opening_hours"
:weekend_status=
"item.weekend_status"
:weekend_status=
"item.weekend_status"
:outlet_posId=
"item.pos_id"
:outlet_id=
"item.outlet_id"
:outlet_id=
"item.outlet_id"
class=
"mt-3 shadow-sm"
class=
"mt-3 shadow-sm"
/>
/>
<!--
<branch
:isOpen=
"false"
class=
"mt-3 shadow-sm"
/>
-->
</div>
</div>
</Skeleton>
</Skeleton>
<!-- 附近网点 -->
<!-- 附近网点 -->
...
@@ -93,14 +94,15 @@ export default defineComponent({
...
@@ -93,14 +94,15 @@ export default defineComponent({
result
.
loading
=
true
;
result
.
loading
=
true
;
addressService
addressService
.
getNearby
({
.
getNearby
({
// eslint-disable-next-line no-undef
bank_code
:
Number
(
process
.
env
.
VUE_APP_BANK_CODE
),
bank_code
:
Number
(
process
.
env
.
VUE_APP_BANK_CODE
),
number
:
4
,
number
:
4
,
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
result
.
loading
=
false
;
if
(
res
.
data
.
length
!==
0
)
{
result
.
topItem
=
res
.
data
[
0
];
result
.
loading
=
false
;
result
.
lists
=
res
.
data
.
slice
(
1
);
result
.
topItem
=
res
.
data
[
0
];
result
.
lists
=
res
.
data
.
slice
(
1
);
}
});
});
};
};
getAddressList
();
getAddressList
();
...
...
src/views/withMenu/Mine/index.vue
View file @
7f28b354
...
@@ -71,6 +71,7 @@
...
@@ -71,6 +71,7 @@
:opening_hours=
"state.branchinfo.opening_hours"
:opening_hours=
"state.branchinfo.opening_hours"
:weekend_status=
"state.branchinfo.weekend_status"
:weekend_status=
"state.branchinfo.weekend_status"
:outlet_id=
"state.branchinfo.outlet_id"
:outlet_id=
"state.branchinfo.outlet_id"
:outlet_posId=
"state.branchinfo.pos_id"
/>
/>
</Skeleton>
</Skeleton>
</div>
</div>
...
@@ -123,11 +124,10 @@ export default defineComponent({
...
@@ -123,11 +124,10 @@ export default defineComponent({
if
(
userMsg
?.
value
?.
role2
===
undefined
||
isUser
.
value
)
{
if
(
userMsg
?.
value
?.
role2
===
undefined
||
isUser
.
value
)
{
const
ret
=
await
AddressService
.
getInstance
().
getNearby
({
const
ret
=
await
AddressService
.
getInstance
().
getNearby
({
// eslint-disable-next-line no-undef
bank_code
:
Number
(
process
.
env
.
VUE_APP_BANK_CODE
),
bank_code
:
Number
(
process
.
env
.
VUE_APP_BANK_CODE
),
number
:
1
,
number
:
1
,
});
});
if
(
ret
.
code
===
200
)
{
if
(
ret
.
code
===
200
&&
ret
.
data
.
length
!==
0
)
{
state
.
branchinfo
=
ret
.
data
[
0
];
state
.
branchinfo
=
ret
.
data
[
0
];
}
}
}
else
{
}
else
{
...
...
vue.config.js
View file @
7f28b354
...
@@ -5,9 +5,9 @@ module.exports = {
...
@@ -5,9 +5,9 @@ module.exports = {
devServer
:
{
devServer
:
{
proxy
:
{
proxy
:
{
"/proxyApi"
:
{
"/proxyApi"
:
{
// target: "http://172.16.102.150:8091",
target
:
"http://172.16.102.150:8091"
,
// 测试环境
target
:
"http://172.16.101.129:8091"
,
// target: "http://172.16.101.129:8091", // posId环境
// target: 'https://www.puhuijr.net/proxyApi',
// target: 'https://www.puhuijr.net/proxyApi',
// 正式环境
pathRewrite
:
{
pathRewrite
:
{
"^/proxyApi"
:
""
,
"^/proxyApi"
:
""
,
},
},
...
...
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