diff --git a/src/api/server.js b/src/api/server.js index fe90c28..01b6bf1 100644 --- a/src/api/server.js +++ b/src/api/server.js @@ -301,6 +301,11 @@ export const Login = new (class { export const SysConf = new (class { constructor() { + //钱包初始额度 + this.insertWalletInitApi = sysconfApi + "/walletInit/insert"; //新增 + this.updWalletInitApi = sysconfApi + "/walletInit/update"; //修改 + this.delWalletInitApi = sysconfApi + "/walletInit/delete"; //删除 + this.getWalletInitListApi = sysconfApi + "/walletInit/list"; //列表 //版本 this.insertVersionApi = sysconfApi + "/version/add"; //新增版本 this.updVersionApi = sysconfApi + "/version/edit"; //修改版本 @@ -370,6 +375,33 @@ export const SysConf = new (class { this.deleteReportApi = sysconfApi + "/projectCenterReport/remove"; //删除 } + //钱包初始额度 + insertWalletInit(params) { + return axios + .post(this.insertWalletInitApi, qs.stringify(params)) + .then(res => res.data); + } + + updWalletInit(params) { + return axios + .post(this.updWalletInitApi, qs.stringify(params)) + .then(res => res.data); + } + + delWalletInit(params) { + return axios + .post(this.delWalletInitApi, qs.stringify(params)) + .then(res => res.data); + } + + getWalletInitList(params) { + return axios + .get(this.getWalletInitListApi, { + params: params + }) + .then(res => res.data); + } + //服务协议 insertAgreement(params) { return axios @@ -397,6 +429,7 @@ export const SysConf = new (class { .then(res => res.data); } + //版本 insertVersion(params) { return axios diff --git a/src/common/js/route-list.js b/src/common/js/route-list.js index 1ac94af..0a3579c 100644 --- a/src/common/js/route-list.js +++ b/src/common/js/route-list.js @@ -97,6 +97,7 @@ const Version = resolve => require(['@/views/system/version.vue'], resolve) const SystemApi = resolve => require(['@/views/system/system-api.vue'], resolve) const SystemImage = resolve => require(['@/views/system/system-image.vue'], resolve) const SystemNotice = resolve => require(['@/views/system/system-notice.vue'], resolve) +const WalletInit = resolve => require(['@/views/system/wallet-init.vue'], resolve) const ContactUs = resolve => require(['@/views/system/contact-us.vue'], resolve) const ConfNews = resolve => require(['@/views/system/conf-news.vue'], resolve) const TradeNews = resolve => require(['@/views/system/trade-news.vue'], resolve) @@ -1007,6 +1008,14 @@ export default { Name: '公告管理' } }, + 'WalletInit': { + path: '/system/wallet-init', + component: WalletInit, + name: 'WalletInit', + meta: { + Name: '充值额度' + } + }, 'ContactUs': { path: '/system/contact-us', component: ContactUs, diff --git a/src/views/system/wallet-init.vue b/src/views/system/wallet-init.vue new file mode 100644 index 0000000..d3f4df6 --- /dev/null +++ b/src/views/system/wallet-init.vue @@ -0,0 +1,228 @@ + + + + + + \ No newline at end of file