Commit b69eff64 by 展昭

upte

parent 097540a7
......@@ -2,40 +2,34 @@ var VUE_APP_API_BASEURL = process.env.VUE_APP_API_BASEURL
export default {
getPeriod(accountId) {
// http://organization.test.hrs100.cn:18080/api/user/bill/account/period
let url = VUE_APP_API_BASEURL + 'account/period';
let url = VUE_APP_API_BASEURL + 'api/user/bill/account/period';
url = url.replace('{accountId}', accountId);
return url;
},
getBillSummary(accountId) {
//account/period/2176426/summary
let url = VUE_APP_API_BASEURL + 'account/period/{accountId}/summary';
let url = VUE_APP_API_BASEURL + 'api/user/bill/account/period/{accountId}/summary';
url = url.replace('{accountId}', accountId);
return url;
},
getBillHosting(accountId) {
// http://organization.test.hrs100.cn:18080/api/user/bill/account/hosting/2176426/summary
let url = VUE_APP_API_BASEURL + 'account/hosting/{accountId}/summary'
let url = VUE_APP_API_BASEURL + 'api/user/bill/account/hosting/{accountId}/summary'
url = url.replace('{accountId}', accountId);
return url;
},
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 + 'account/period/{accountId}/flow?page={page}&pageSize={pageSize}';
let url = VUE_APP_API_BASEURL + 'api/user/bill/account/period/{accountId}/flow?page={page}&pageSize={pageSize}';
url = url.replace('{accountId}', accountId);
url = url.replace('{page}', page);
url = url.replace('{pageSize}', pageSize);
return url;
},
getReceiptList(accountId) {
// http://organization.test.hrs100.cn:18080/api/user/bill/account/period/2176426/receipt/list
let url = VUE_APP_API_BASEURL + 'account/period/{accountId}/receipt/list'
let url = VUE_APP_API_BASEURL + 'api/user/bill/account/period/{accountId}/receipt/list'
url = url.replace('{accountId}', accountId);
return url;
},
getReceiptDetail(accountId, type) {
// http://organization.test.hrs100.cn:18080/api/user/bill/account/period/2176426/receipt/service/detail
let url = VUE_APP_API_BASEURL + 'account/period/{accountId}/receipt/{type}/detail'
let url = VUE_APP_API_BASEURL + 'api/user/bill/account/period/{accountId}/receipt/{type}/detail'
url = url.replace('{accountId}', accountId);
url = url.replace('{type}', type);
return url;
......
......@@ -14,7 +14,7 @@ export default {
return AjaxRequest.get(url);
},
async getPayUrl() {
const url = 'http://organization.test.hrs100.cn:18080/api/common/pay/getPaymentUrl'
const url = urls=getPayUrlUrl();
return AjaxRequest.get(url);
}
};
......@@ -2,13 +2,15 @@ var VUE_APP_API_BASEURL = process.env.VUE_APP_API_BASEURL
export default {
getMoreList() {
// http://organization.test.hrs100.cn:18080/api/user/bill/account/moresvc/receipt/list
let url = VUE_APP_API_BASEURL + 'account/moresvc/receipt/list';
let url = VUE_APP_API_BASEURL + 'api/user/bill/account/moresvc/receipt/list';
return url;
},
getMoreSummary() {
// http://organization.test.hrs100.cn:18080/api/user/bill/account/moresvc/summary
let url = VUE_APP_API_BASEURL + 'account/moresvc/summary';
let url = VUE_APP_API_BASEURL + 'api/user/bill/account/moresvc/summary';
return url;
},
getMoreSummary() {
let url = VUE_APP_API_BASEURL + 'api/common/pay/getPaymentUrl';
return url;
}
};
......@@ -260,7 +260,7 @@ export default {
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}`;
//window.location.href = payUrl;
window.location.href = payUrl;
},
toPage(flag) {
switch (flag) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment