diff --git a/src/api/api.config.js b/src/api/api.config.js index 96a79aa..43a9322 100644 --- a/src/api/api.config.js +++ b/src/api/api.config.js @@ -34,6 +34,11 @@ export default { getVersion: 'wxwholesaler/getVersion', auditBeforeCheck: 'wxwholesaler/auditBeforeCheck', audit: 'wxwholesaler/audit', + // 授权其他操作 + setDomain: 'wxwholesaler/setDomain', + privacySetting: 'wxwholesaler/privacySetting', + modifyJumpDomain: 'wxwholesaler/modifyJumpDomain', + setOrderPath: 'wxwholesaler/setOrderPath', // 商家功能模块管理 module: { default: 'store.module/default', diff --git a/src/api/store.js b/src/api/store.js index f9d4840..7ddd04b 100644 --- a/src/api/store.js +++ b/src/api/store.js @@ -267,3 +267,32 @@ export function getGoodsList (params) { params }) } + +export function setDomain (params) { + return axios({ + url: api.store.setDomain, + method: 'get', + params + }) +} +export function privacySetting (params) { + return axios({ + url: api.store.privacySetting, + method: 'get', + params + }) +} +export function modifyJumpDomain (params) { + return axios({ + url: api.store.modifyJumpDomain, + method: 'get', + params + }) +} +export function setOrderPath (params) { + return axios({ + url: api.store.setOrderPath, + method: 'get', + params + }) +} diff --git a/src/views/store/auth.vue b/src/views/store/auth.vue index d10d11f..583bebc 100644 --- a/src/views/store/auth.vue +++ b/src/views/store/auth.vue @@ -58,6 +58,13 @@ 发布正式版 刷新版本 + + + 隐私 + 服务器域名 + 业务域名 + 订单页path + @@ -147,6 +154,13 @@ const columns = [ key: 'action', fixed: 'right', scopedSlots: { customRender: 'action' } + }, + { + title: '其他操作', + width: '280px', + key: 'other_action', + fixed: 'right', + scopedSlots: { customRender: 'other_action' } } ] export default { @@ -257,6 +271,34 @@ export default { this.fetchData() }) }, + + handleDomain (item) { + this.isLoading = true + Api.setDomain({ appid: item.appid }).then((result) => { + this.$message.success(result.message, 1.5) + }) + }, + + handlePrivacySetting (item) { + this.isLoading = true + Api.privacySetting({ appid: item.appid }).then((result) => { + this.$message.success(result.message, 1.5) + }) + }, + + handleModifyJumpDomain (item) { + this.isLoading = true + Api.modifyJumpDomain({ appid: item.appid }).then((result) => { + this.$message.success(result.message, 1.5) + }) + }, + + handleOrderPath (item) { + this.isLoading = true + Api.setOrderPath({ appid: item.appid }).then((result) => { + this.$message.success(result.message, 1.5) + }) + }, // 重置搜索表单 handleReset () { this.searchForm.resetFields()