diff --git a/src/api/goods/index.js b/src/api/goods/index.js index e6ad5e3..2e26104 100644 --- a/src/api/goods/index.js +++ b/src/api/goods/index.js @@ -17,7 +17,50 @@ const api = { pool: '/goods/pool', collector:'/goods/collector' } - +/** + * 大牌 + * @param {*} data + */ +export function setBrand (data) { + return axios({ + url: '/goods/setBrand', + method: 'post', + data: data + }) +} +/** + * 新品 + * @param {*} data + */ +export function setNew (data) { + return axios({ + url: '/goods/setNew', + method: 'post', + data: data + }) +} +/** + * 是否店内 + * @param {*} data + */ +export function setInstore (data) { + return axios({ + url: '/goods/setInstore', + method: 'post', + data: data + }) +} +/** + * 是否店内 + * @param {*} data + */ +export function setRank (data) { + return axios({ + url: '/goods/setRank', + method: 'post', + data: data + }) +} export function getCollector (params) { return axios({ url: api.collector, diff --git a/src/views/goods/Index.vue b/src/views/goods/Index.vue index 616374f..ded10d9 100644 --- a/src/views/goods/Index.vue +++ b/src/views/goods/Index.vue @@ -1,168 +1,147 @@ diff --git a/src/views/recovery/Index.vue b/src/views/recovery/Index.vue index d60f89c..d2096e1 100644 --- a/src/views/recovery/Index.vue +++ b/src/views/recovery/Index.vue @@ -63,8 +63,8 @@ > - - 回收图片 + + 回收图片 diff --git a/src/views/recovery/modules/Edit.vue b/src/views/recovery/modules/Edit.vue index b698be4..7643897 100644 --- a/src/views/recovery/modules/Edit.vue +++ b/src/views/recovery/modules/Edit.vue @@ -50,7 +50,7 @@ - + @@ -109,6 +109,12 @@ export default { methods: { // 显示对话框 edit(record) { + let list = [] + list.push({ + preview_url: record.recovery_image, + file_id: 9999 + }) + record.recovery_image = list this.getCategoryList() // 显示窗口 this.visible = true diff --git a/src/views/server/Index.vue b/src/views/server/Index.vue index b954cb2..91aa56b 100644 --- a/src/views/server/Index.vue +++ b/src/views/server/Index.vue @@ -63,8 +63,8 @@ > - - 服务图片 + + 服务图片 diff --git a/src/views/server/modules/Edit.vue b/src/views/server/modules/Edit.vue index c840f47..3f3db37 100644 --- a/src/views/server/modules/Edit.vue +++ b/src/views/server/modules/Edit.vue @@ -1,208 +1,178 @@