diff --git a/admin/src/api/car/product/index.js b/admin/src/api/car/product/index.js index 852a5f1..0810d0a 100644 --- a/admin/src/api/car/product/index.js +++ b/admin/src/api/car/product/index.js @@ -76,3 +76,14 @@ export async function updateProductCps(data) { } return Promise.reject(new Error(res.data.message)); } + +export async function updateProductSort(id, sort) { + const res = await request.put('/car/product/sort', { + id, + sort + }); + if (res.data.code === 0) { + return res.data.message; + } + return Promise.reject(new Error(res.data.message)); +} diff --git a/admin/src/views/car/product/components/edit.vue b/admin/src/views/car/product/components/edit.vue index 5c4cfe0..3a29591 100644 --- a/admin/src/views/car/product/components/edit.vue +++ b/admin/src/views/car/product/components/edit.vue @@ -79,6 +79,15 @@ v-model="form.discounts3" /> + + + --> +