diff --git a/.env.development b/.env.development index 275d6fc..e033be2 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,7 @@ ENV = 'development' # VUE_APP_BASE_API = '/dev-api' # VUE_APP_BASE_API = 'http://106.75.49.247:20400' # VUE_APP_BASE_API = 'https://yruibao.com/admin' -VUE_APP_BASE_API = 'http://192.168.2.26:20401' +VUE_APP_BASE_API = 'http://192.168.2.5:20401' # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, diff --git a/.env.production b/.env.production index 4cfe70a..fe26717 100644 --- a/.env.production +++ b/.env.production @@ -5,4 +5,4 @@ ENV = 'production' # VUE_APP_BASE_API = '/prod-api' # VUE_APP_BASE_API = 'http://106.75.49.247:20400' # VUE_APP_BASE_API = 'https://yruibao.com/admin' -VUE_APP_BASE_API = 'http://192.168.2.26:20401' +VUE_APP_BASE_API = 'http://192.168.2.5:20401' diff --git a/src/api/systemInstallment.js b/src/api/systemInstallment.js new file mode 100644 index 0000000..ada2037 --- /dev/null +++ b/src/api/systemInstallment.js @@ -0,0 +1,107 @@ +import request from '@/utils/request'; + +/** + * 删除商品分期配置表 + * @param id + * @constructor + */ +export function DelInstallments(id) { + const data = { + id: id, + }; + return request({ + url: '/admin/customInstallments/delete', + method: 'GET', + params: data, + }); +} + +/** + * 商品分期配置表详情 + * @param id + * @constructor + */ +export function InfoInstallments(id) { + const data = { + id: id, + }; + return request({ + url: '/admin/customInstallments/info', + method: 'get', + params: data, + }); +} + +/** + * 商品分期配置表列表 + * @param pram + * @constructor + */ +export function ListInstallments(pram) { + const data = { + productName: pram.productName, + productId: pram.productId, + page: pram.page, + limit: pram.limit, + }; + return request({ + url: '/admin/customInstallments/list', + method: 'GET', + params: data, + }); +} + +/** + * 新增商品分期配置表 + * @param pram + * @constructor + */ +export function AddInstallments(pram) { + const data = { + name: pram.name, + tips:pram.tips + }; + return request({ + url: '/admin/customInstallments/save', + method: 'post', + data: data, + }); +} + + +/** + * 新增自定义账单 + * @param pram + * @constructor + */ +export function AddInstallmentsDetail(pram) { + const data = { + installmentsId: pram.id, + installmentNumber: pram.installmentNumber, + repaymentPercent: pram.repaymentPercent, + repaymentDeadlineStr: pram.repaymentDeadlineStr, + }; + return request({ + url: '/admin/customInstallmentsDetail/save', + method: 'post', + data: data, + }); +} + +/** + * 更新商品分期配置表 + * @param pram + * @constructor + */ +export function UpdateInstallments(pram) { + const data = { + name: pram.name, + tips:pram.tips + }; + return request({ + url: '/admin/customInstallments/update', + method: 'post', + params: { id: pram.id }, + data: data, + }); +} diff --git a/src/components/CustomInstallments/edit.vue b/src/components/CustomInstallments/edit.vue new file mode 100644 index 0000000..3c3fe48 --- /dev/null +++ b/src/components/CustomInstallments/edit.vue @@ -0,0 +1,222 @@ + + + + + diff --git a/src/components/CustomInstallments/info.vue b/src/components/CustomInstallments/info.vue new file mode 100644 index 0000000..d5410b2 --- /dev/null +++ b/src/components/CustomInstallments/info.vue @@ -0,0 +1,110 @@ + + + + + diff --git a/src/components/CustomInstallments/list.vue b/src/components/CustomInstallments/list.vue new file mode 100644 index 0000000..e5694f4 --- /dev/null +++ b/src/components/CustomInstallments/list.vue @@ -0,0 +1,360 @@ + + + + + diff --git a/src/router/modules/operation.js b/src/router/modules/operation.js index e6f7849..c8e6315 100644 --- a/src/router/modules/operation.js +++ b/src/router/modules/operation.js @@ -31,6 +31,15 @@ const operationRouter = { icon: 'clipboard', }, }, + { + path: 'installment', + name: 'installment', + component: () => import('@/views/systemSetting/installment'), + meta: { + title: '自定义分期配置', + icon: 'clipboard', + }, + }, { path: 'notification', name: 'notification', diff --git a/src/views/systemSetting/installment/creatDetail.vue b/src/views/systemSetting/installment/creatDetail.vue new file mode 100644 index 0000000..7e5eb51 --- /dev/null +++ b/src/views/systemSetting/installment/creatDetail.vue @@ -0,0 +1,150 @@ + + + + + diff --git a/src/views/systemSetting/installment/creatSetting.vue b/src/views/systemSetting/installment/creatSetting.vue new file mode 100644 index 0000000..44417a3 --- /dev/null +++ b/src/views/systemSetting/installment/creatSetting.vue @@ -0,0 +1,158 @@ + + + + + diff --git a/src/views/systemSetting/installment/index.vue b/src/views/systemSetting/installment/index.vue new file mode 100644 index 0000000..4250d04 --- /dev/null +++ b/src/views/systemSetting/installment/index.vue @@ -0,0 +1,193 @@ + + + + +