Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
hrs_app_h5
/
bill
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b69eff64
authored
May 17, 2020
by
展昭
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
upte
parent
097540a7
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
18 deletions
src/api/Bill/urls.js
src/api/More/index.js
src/api/More/urls.js
src/views/Bill/index.vue
src/api/Bill/urls.js
View file @
b69eff64
...
@@ -2,40 +2,34 @@ var VUE_APP_API_BASEURL = process.env.VUE_APP_API_BASEURL
...
@@ -2,40 +2,34 @@ var VUE_APP_API_BASEURL = process.env.VUE_APP_API_BASEURL
export
default
{
export
default
{
getPeriod
(
accountId
)
{
getPeriod
(
accountId
)
{
// http://organization.test.hrs100.cn:18080/api/user/bill/account/period
let
url
=
VUE_APP_API_BASEURL
+
'api/user/bill/account/period'
;
let
url
=
VUE_APP_API_BASEURL
+
'account/period'
;
url
=
url
.
replace
(
'{accountId}'
,
accountId
);
url
=
url
.
replace
(
'{accountId}'
,
accountId
);
return
url
;
return
url
;
},
},
getBillSummary
(
accountId
)
{
getBillSummary
(
accountId
)
{
//account/period/2176426/summary
let
url
=
VUE_APP_API_BASEURL
+
'api/user/bill/account/period/{accountId}/summary'
;
let
url
=
VUE_APP_API_BASEURL
+
'account/period/{accountId}/summary'
;
url
=
url
.
replace
(
'{accountId}'
,
accountId
);
url
=
url
.
replace
(
'{accountId}'
,
accountId
);
return
url
;
return
url
;
},
},
getBillHosting
(
accountId
)
{
getBillHosting
(
accountId
)
{
// http://organization.test.hrs100.cn:18080/api/user/bill/account/hosting/2176426/summary
let
url
=
VUE_APP_API_BASEURL
+
'api/user/bill/account/hosting/{accountId}/summary'
let
url
=
VUE_APP_API_BASEURL
+
'account/hosting/{accountId}/summary'
url
=
url
.
replace
(
'{accountId}'
,
accountId
);
url
=
url
.
replace
(
'{accountId}'
,
accountId
);
return
url
;
return
url
;
},
},
getFlow
(
accountId
,
page
,
pageSize
)
{
getFlow
(
accountId
,
page
,
pageSize
)
{
// http://organization.test.hrs100.cn:18080/api/user/bill/account/period/2176426/flow?page=1&pageSize=10
let
url
=
VUE_APP_API_BASEURL
+
'api/user/bill/account/period/{accountId}/flow?page={page}&pageSize={pageSize}'
;
let
url
=
VUE_APP_API_BASEURL
+
'account/period/{accountId}/flow?page={page}&pageSize={pageSize}'
;
url
=
url
.
replace
(
'{accountId}'
,
accountId
);
url
=
url
.
replace
(
'{accountId}'
,
accountId
);
url
=
url
.
replace
(
'{page}'
,
page
);
url
=
url
.
replace
(
'{page}'
,
page
);
url
=
url
.
replace
(
'{pageSize}'
,
pageSize
);
url
=
url
.
replace
(
'{pageSize}'
,
pageSize
);
return
url
;
return
url
;
},
},
getReceiptList
(
accountId
)
{
getReceiptList
(
accountId
)
{
// http://organization.test.hrs100.cn:18080/api/user/bill/account/period/2176426/receipt/list
let
url
=
VUE_APP_API_BASEURL
+
'api/user/bill/account/period/{accountId}/receipt/list'
let
url
=
VUE_APP_API_BASEURL
+
'account/period/{accountId}/receipt/list'
url
=
url
.
replace
(
'{accountId}'
,
accountId
);
url
=
url
.
replace
(
'{accountId}'
,
accountId
);
return
url
;
return
url
;
},
},
getReceiptDetail
(
accountId
,
type
)
{
getReceiptDetail
(
accountId
,
type
)
{
// http://organization.test.hrs100.cn:18080/api/user/bill/account/period/2176426/receipt/service/detail
let
url
=
VUE_APP_API_BASEURL
+
'api/user/bill/account/period/{accountId}/receipt/{type}/detail'
let
url
=
VUE_APP_API_BASEURL
+
'account/period/{accountId}/receipt/{type}/detail'
url
=
url
.
replace
(
'{accountId}'
,
accountId
);
url
=
url
.
replace
(
'{accountId}'
,
accountId
);
url
=
url
.
replace
(
'{type}'
,
type
);
url
=
url
.
replace
(
'{type}'
,
type
);
return
url
;
return
url
;
...
...
src/api/More/index.js
View file @
b69eff64
...
@@ -14,7 +14,7 @@ export default {
...
@@ -14,7 +14,7 @@ export default {
return
AjaxRequest
.
get
(
url
);
return
AjaxRequest
.
get
(
url
);
},
},
async
getPayUrl
()
{
async
getPayUrl
()
{
const
url
=
'http://organization.test.hrs100.cn:18080/api/common/pay/getPaymentUrl'
const
url
=
urls
=
getPayUrlUrl
();
return
AjaxRequest
.
get
(
url
);
return
AjaxRequest
.
get
(
url
);
}
}
};
};
src/api/More/urls.js
View file @
b69eff64
...
@@ -2,13 +2,15 @@ var VUE_APP_API_BASEURL = process.env.VUE_APP_API_BASEURL
...
@@ -2,13 +2,15 @@ var VUE_APP_API_BASEURL = process.env.VUE_APP_API_BASEURL
export
default
{
export
default
{
getMoreList
()
{
getMoreList
()
{
// http://organization.test.hrs100.cn:18080/api/user/bill/account/moresvc/receipt/list
let
url
=
VUE_APP_API_BASEURL
+
'api/user/bill/account/moresvc/receipt/list'
;
let
url
=
VUE_APP_API_BASEURL
+
'account/moresvc/receipt/list'
;
return
url
;
return
url
;
},
},
getMoreSummary
()
{
getMoreSummary
()
{
// http://organization.test.hrs100.cn:18080/api/user/bill/account/moresvc/summary
let
url
=
VUE_APP_API_BASEURL
+
'api/user/bill/account/moresvc/summary'
;
let
url
=
VUE_APP_API_BASEURL
+
'account/moresvc/summary'
;
return
url
;
},
getMoreSummary
()
{
let
url
=
VUE_APP_API_BASEURL
+
'api/common/pay/getPaymentUrl'
;
return
url
;
return
url
;
}
}
};
};
src/views/Bill/index.vue
View file @
b69eff64
...
@@ -260,7 +260,7 @@ export default {
...
@@ -260,7 +260,7 @@ export default {
const
fee
=
this
.
data
.
waitPay
;
const
fee
=
this
.
data
.
waitPay
;
let
payUrl
=
`
${
this
.
payUrl
}
&accountType=1&periodId=
${
this
.
currentPerId
}
&payMethod=
${
payMethod
}
&payType=
${
payType
}
&fee=
${
fee
}
&selected=0&failUrl=
${
failUrl
}
&successUrl=
${
successUrl
}
`
;
let
payUrl
=
`
${
this
.
payUrl
}
&accountType=1&periodId=
${
this
.
currentPerId
}
&payMethod=
${
payMethod
}
&payType=
${
payType
}
&fee=
${
fee
}
&selected=0&failUrl=
${
failUrl
}
&successUrl=
${
successUrl
}
`
;
//
window.location.href = payUrl;
window
.
location
.
href
=
payUrl
;
},
},
toPage
(
flag
)
{
toPage
(
flag
)
{
switch
(
flag
)
{
switch
(
flag
)
{
...
...
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