From 24f25635d5bc22054d940d7f44879076a94986bf Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Tue, 11 Mar 2025 11:08:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E6=89=8B=E8=BD=A6=E4=BA=A4=E6=98=93?= =?UTF-8?q?=EF=BC=8C=E5=85=A8=E9=83=A8=E9=A1=B5=E9=9D=A2&=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5=E9=83=A8=E5=88=86=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/secondHandCar.js | 88 ++++++++++++++++++++++++++++++++ src/router/second-hand-router.js | 44 +++++++++++++++- 2 files changed, 130 insertions(+), 2 deletions(-) create mode 100644 src/api/secondHandCar.js diff --git a/src/api/secondHandCar.js b/src/api/secondHandCar.js new file mode 100644 index 00000000..5fc7d32e --- /dev/null +++ b/src/api/secondHandCar.js @@ -0,0 +1,88 @@ +import request from '@/utils/http' +// 车源/求购列表 +export function appPageList(data){ + return request({ + url: '/toc-user/car-app/appPageList', + method:'POST', + contentType: 'application/json', + data + }) +} +// 我的发布列表 +export function minePublishPageList(data){ + return request({ + url: '/toc-user/car-app/minePublishPageList', + method:'POST', + contentType: 'application/json', + data + }) +} + +// 审核不通过数量 +export function auditFailCount (data){ + return request({ + url: '/toc-user/car-app/auditFailCount ', + method:'POST', + // contentType: 'application/json', + data + }) +} +// 信息详情查询 +export function carInfoDetail(data){ + return request({ + url: '/toc-user/car-app/carInfoDetail', + method:'POST', + contentType: 'application/json', + data + }) +} +// 发布编辑信息 +export function publishCarInfo(data){ + return request({ + url: '/toc-user/car-app/publishCarInfo', + method:'POST', + contentType: 'application/json', + data + }) +} +// 用户信息反馈 +export function userFeedback(data){ + return request({ + url: '/toc-user/car-app/userFeedback', + method:'POST', + contentType: 'application/json', + data + }) +} +//二手车信息擦亮 +export function usedCarPolish(data){ + return request({ + url: `/toc-user/car-app/usedCarPolish/${data}`, + method:'POST', + }) +} +//二手车信息下架 +export function usedCarRemove(data){ + return request({ + url: '/toc-user/car-app/usedCarRemove', + method:'POST', + contentType: 'application/json', + data + }) +} +//二手车信息重新上架 +export function usedCarReShelf(data){ + return request({ + url: `/toc-user/car-app/usedCarReShelf/${data}`, + method:'POST', + }) +} +//审批信息 +export function auditCarInfo(data){ + return request({ + url: '/toc-user/car-admin/auditCarInfo', + method:'POST', + // contentType: 'application/json', + data + }) +} \ No newline at end of file diff --git a/src/router/second-hand-router.js b/src/router/second-hand-router.js index 47a047e4..39f492f6 100644 --- a/src/router/second-hand-router.js +++ b/src/router/second-hand-router.js @@ -1,4 +1,4 @@ -const kpiRouter = [ +const secondHandCar = [ { path: '/indexList', name: 'indexList', @@ -7,5 +7,45 @@ const kpiRouter = [ title: '首页列表', } }, + { + path: '/carSource', + name: 'carSource', + component: () => import('@/views/secondHandCar/carSource.vue'), + meta:{ + title: '车源发布', + } + }, + { + path: '/wantBuy', + name: 'wantBuy', + component: () => import('@/views/secondHandCar/wantBuy.vue'), + meta:{ + title: '求购发布', + } + }, + { + path: '/forSale', + name: 'forSale', + component: () => import('@/views/secondHandCar/forSale.vue'), + meta:{ + title: '查看车源', + } + }, + { + path: '/wantBuySale', + name: 'wantBuySale', + component: () => import('@/views/secondHandCar/wantBuySale.vue'), + meta:{ + title: '查看求购', + } + }, + { + path: '/mineRelease', + name: 'mineRelease', + component: () => import('@/views/secondHandCar/mineRelease.vue'), + meta:{ + title: '我的发布', + } + }, ] -export default kpiRouter +export default secondHandCar