Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mingPayPc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fengzhaoyu
mingPayPc
Commits
64efcad8
Commit
64efcad8
authored
Aug 15, 2019
by
liang ce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input选人bug禁用
parent
1af991d1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
16 deletions
+8
-16
axios.js
src/api/axios.js
+2
-2
config.js
src/api/config.js
+3
-11
AccountManagement.vue
src/components/pages/PaymentManagement/AccountManagement.vue
+1
-1
RechargeRecord.vue
src/components/pages/PaymentManagement/RechargeRecord.vue
+1
-1
RecordsOfConsumption.vue
...mponents/pages/PaymentManagement/RecordsOfConsumption.vue
+1
-1
No files found.
src/api/axios.js
View file @
64efcad8
import
axios
from
'axios'
import
axios
from
'axios'
import
qs
from
'qs'
import
qs
from
'qs'
// axios.defaults.baseURL = 'http://192.168.1.101:83
00' // 本地荣
axios
.
defaults
.
baseURL
=
'http://192.168.1.106:84
00'
// 本地荣
// axios.defaults.baseURL = 'http://192.168.1.102:8300' // 本地钱
// axios.defaults.baseURL = 'http://192.168.1.102:8300' // 本地钱
axios
.
defaults
.
baseURL
=
'http://139.196.213.18:8300'
// beta环境
//
axios.defaults.baseURL = 'http://139.196.213.18:8300' // beta环境
let
loadingInstance
// 创建Loading 的实例
let
loadingInstance
// 创建Loading 的实例
axios
.
defaults
.
headers
[
'Authorization'
]
=
`Bearer
${
localStorage
.
getItem
(
'token'
)}
`
// 设置请求头为 Authorization
axios
.
defaults
.
headers
[
'Authorization'
]
=
`Bearer
${
localStorage
.
getItem
(
'token'
)}
`
// 设置请求头为 Authorization
// 配置发送请求前的拦截器可以设置token信息
// 配置发送请求前的拦截器可以设置token信息
...
...
src/api/config.js
View file @
64efcad8
...
@@ -7,21 +7,13 @@ const config = {
...
@@ -7,21 +7,13 @@ const config = {
ddconfig
:
()
=>
{
ddconfig
:
()
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
let
senddate
=
qs
.
stringify
({
let
senddate
=
qs
.
stringify
({
orgId
:
localStorage
.
getItem
(
'orgId'
)
})
return
axios
.
post
(
`http://139.196.213.18:8300/v1/auth/query_org_agent_id?
${
senddate
}
`
).
then
((
res
)
=>
{
localStorage
.
setItem
(
'agentId'
,
res
.
data
.
data
)
resolve
(
res
.
data
.
data
)
})
}).
then
((
res
)
=>
{
let
senddate
=
qs
.
stringify
({
version
:
MINGPAY_CONSTANT
.
MINGPAY_CONSTANT_VERSION
,
version
:
MINGPAY_CONSTANT
.
MINGPAY_CONSTANT_VERSION
,
url
:
location
.
href
.
replace
(
window
.
location
.
hash
,
''
),
url
:
location
.
href
.
replace
(
window
.
location
.
hash
,
''
),
agentId
:
res
,
agentId
:
25255
,
orgId
:
localStorage
.
getItem
(
'orgId'
)
orgId
:
localStorage
.
getItem
(
'orgId'
)
})
})
return
axios
.
post
(
`http://1
39.196.213.18:83
00/v1/auth/getJsAuthenticationParameter?
${
senddate
}
`
).
then
((
res
)
=>
{
return
axios
.
post
(
`http://1
92.168.1.106:84
00/v1/auth/getJsAuthenticationParameter?
${
senddate
}
`
).
then
((
res
)
=>
{
let
agentId
=
localStorage
.
getItem
(
'agentId'
)
let
agentId
=
25255
let
timeStamp
=
res
.
data
.
data
.
timeStamp
let
timeStamp
=
res
.
data
.
data
.
timeStamp
let
nonceStr
=
res
.
data
.
data
.
nonceStr
let
nonceStr
=
res
.
data
.
data
.
nonceStr
let
signature
=
res
.
data
.
data
.
signature
let
signature
=
res
.
data
.
data
.
signature
...
...
src/components/pages/PaymentManagement/AccountManagement.vue
View file @
64efcad8
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<a-spin
:spinning=
"spinning"
>
<a-spin
:spinning=
"spinning"
>
<div
class=
"AccountManagement"
>
<div
class=
"AccountManagement"
>
<div
class=
"searchBox"
>
<div
class=
"searchBox"
>
<a-input
placeholder=
"选择成员"
@
click=
"choosePeople"
style=
"width: 120px"
/>
<a-input
placeholder=
"选择成员"
disabled
@
click=
"choosePeople"
style=
"width: 120px"
/>
<a-input
placeholder=
"输入卡号"
v-model=
"searchSource.cardNum"
style=
"width: 120px"
/>
<a-input
placeholder=
"输入卡号"
v-model=
"searchSource.cardNum"
style=
"width: 120px"
/>
<a-select
placeholder=
"卡片状态"
style=
"width: 120px;margin-right: 20px;"
:allowClear=
"true"
@
change=
"selectHandleChangeCard"
>
<a-select
placeholder=
"卡片状态"
style=
"width: 120px;margin-right: 20px;"
:allowClear=
"true"
@
change=
"selectHandleChangeCard"
>
<a-select-option
value=
"ACTIVE"
>
已绑卡
</a-select-option>
<a-select-option
value=
"ACTIVE"
>
已绑卡
</a-select-option>
...
...
src/components/pages/PaymentManagement/RechargeRecord.vue
View file @
64efcad8
<
template
>
<
template
>
<div
class=
"RechargeRecord"
>
<div
class=
"RechargeRecord"
>
<div
class=
"searchBox"
>
<div
class=
"searchBox"
>
<a-input
placeholder=
"选择成员"
@
click=
"choosePeople"
/>
<a-input
placeholder=
"选择成员"
disabled
@
click=
"choosePeople"
/>
<a-select
placeholder=
"经办人"
:allowClear=
"true"
style=
"width: 120px;margin-right: 20px;"
@
change=
"selectAgent"
>
<a-select
placeholder=
"经办人"
:allowClear=
"true"
style=
"width: 120px;margin-right: 20px;"
@
change=
"selectAgent"
>
<a-select-option
v-for=
"(item, index) in agentList"
:key=
"index"
:value=
"item.ddUserId"
>
{{
item
.
name
}}
</a-select-option>
<a-select-option
v-for=
"(item, index) in agentList"
:key=
"index"
:value=
"item.ddUserId"
>
{{
item
.
name
}}
</a-select-option>
</a-select>
</a-select>
...
...
src/components/pages/PaymentManagement/RecordsOfConsumption.vue
View file @
64efcad8
<
template
>
<
template
>
<div
class=
"RecordsOfConsumption"
>
<div
class=
"RecordsOfConsumption"
>
<div
class=
"searchBox"
>
<div
class=
"searchBox"
>
<a-input
placeholder=
"消费人"
@
click=
"choosePeople"
style=
"width: 120px"
/>
<a-input
placeholder=
"消费人"
@
click=
"choosePeople"
disabled
style=
"width: 120px"
/>
<a-select
placeholder=
"状态"
:allowClear=
"true"
style=
"width: 120px;margin-right: 20px;"
@
change=
"selectHandRecords"
>
<a-select
placeholder=
"状态"
:allowClear=
"true"
style=
"width: 120px;margin-right: 20px;"
@
change=
"selectHandRecords"
>
<a-select-option
value=
"SUCCESS"
>
已消费
</a-select-option>
<a-select-option
value=
"SUCCESS"
>
已消费
</a-select-option>
<a-select-option
value=
"REFUND_SUCCESS"
>
已退款
</a-select-option>
<a-select-option
value=
"REFUND_SUCCESS"
>
已退款
</a-select-option>
...
...
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