diff --git a/src/api/bst/ad.js b/src/api/bst/ad.js new file mode 100644 index 0000000..a0f057e --- /dev/null +++ b/src/api/bst/ad.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询广告列表 +export function listAd(query) { + return request({ + url: '/bst/ad/list', + method: 'get', + params: query + }) +} + +// 查询广告详细 +export function getAd(adId) { + return request({ + url: '/bst/ad/' + adId, + method: 'get' + }) +} + +// 新增广告 +export function addAd(data) { + return request({ + url: '/bst/ad', + method: 'post', + data: data + }) +} + +// 修改广告 +export function updateAd(data) { + return request({ + url: '/bst/ad', + method: 'put', + data: data + }) +} + +// 删除广告 +export function delAd(adId) { + return request({ + url: '/bst/ad/' + adId, + method: 'delete' + }) +} diff --git a/src/api/bst/customerService.js b/src/api/bst/customerService.js new file mode 100644 index 0000000..0d6b88f --- /dev/null +++ b/src/api/bst/customerService.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询客服列表 +export function listCustomerService(query) { + return request({ + url: '/bst/customerService/list', + method: 'get', + params: query + }) +} + +// 查询客服详细 +export function getCustomerService(id) { + return request({ + url: '/bst/customerService/' + id, + method: 'get' + }) +} + +// 新增客服 +export function addCustomerService(data) { + return request({ + url: '/bst/customerService', + method: 'post', + data: data + }) +} + +// 修改客服 +export function updateCustomerService(data) { + return request({ + url: '/bst/customerService', + method: 'put', + data: data + }) +} + +// 删除客服 +export function delCustomerService(id) { + return request({ + url: '/bst/customerService/' + id, + method: 'delete' + }) +} diff --git a/src/views/bst/ad/index.vue b/src/views/bst/ad/index.vue new file mode 100644 index 0000000..0f5d6d9 --- /dev/null +++ b/src/views/bst/ad/index.vue @@ -0,0 +1,340 @@ + + + diff --git a/src/views/bst/customerService/index.vue b/src/views/bst/customerService/index.vue new file mode 100644 index 0000000..4469b1d --- /dev/null +++ b/src/views/bst/customerService/index.vue @@ -0,0 +1,387 @@ + + +