wanghousheng 4 months ago
parent 85ee991a84
commit 75d98aaec3
  1. 5
      src/api/api.config.js
  2. 29
      src/api/store.js
  3. 42
      src/views/store/auth.vue

@ -34,6 +34,11 @@ export default {
getVersion: 'wxwholesaler/getVersion', getVersion: 'wxwholesaler/getVersion',
auditBeforeCheck: 'wxwholesaler/auditBeforeCheck', auditBeforeCheck: 'wxwholesaler/auditBeforeCheck',
audit: 'wxwholesaler/audit', audit: 'wxwholesaler/audit',
// 授权其他操作
setDomain: 'wxwholesaler/setDomain',
privacySetting: 'wxwholesaler/privacySetting',
modifyJumpDomain: 'wxwholesaler/modifyJumpDomain',
setOrderPath: 'wxwholesaler/setOrderPath',
// 商家功能模块管理 // 商家功能模块管理
module: { module: {
default: 'store.module/default', default: 'store.module/default',

@ -267,3 +267,32 @@ export function getGoodsList (params) {
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
})
}

@ -58,6 +58,13 @@
<a @click="handleAuditOne(item.appid)">发布正式版</a> <a @click="handleAuditOne(item.appid)">发布正式版</a>
<a @click="handleVersion(item)">刷新版本</a> <a @click="handleVersion(item)">刷新版本</a>
</span> </span>
<!-- 操作项 -->
<span class="actions" slot="other_action" slot-scope="text, item">
<a @click="handlePrivacySetting(item)">隐私</a>
<a @click="handleDomain(item)">服务器域名</a>
<a @click="handleModifyJumpDomain(item)">业务域名</a>
<a @click="handleOrderPath(item)">订单页path</a>
</span>
</a-table> </a-table>
<Qrcode ref="qrcode" /> <Qrcode ref="qrcode" />
<Commit ref="commit" /> <Commit ref="commit" />
@ -147,6 +154,13 @@ const columns = [
key: 'action', key: 'action',
fixed: 'right', fixed: 'right',
scopedSlots: { customRender: 'action' } scopedSlots: { customRender: 'action' }
},
{
title: '其他操作',
width: '280px',
key: 'other_action',
fixed: 'right',
scopedSlots: { customRender: 'other_action' }
} }
] ]
export default { export default {
@ -257,6 +271,34 @@ export default {
this.fetchData() 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 () { handleReset () {
this.searchForm.resetFields() this.searchForm.resetFields()

Loading…
Cancel
Save