From fa767f00dec10efb2decb1ac44551a38912ed7c9 Mon Sep 17 00:00:00 2001 From: axlrose2333 <690927457@qq.com> Date: Wed, 15 Mar 2023 18:54:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91=E7=AB=9E=E6=8B=8D=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/integral.js | 29 ++ src/view/auctionManage/index.vue | 445 ++++++++++++++++++++++++++++ src/view/course/addCourse/index.vue | 3 +- src/view/lbtManage/index.vue | 2 +- 4 files changed, 477 insertions(+), 2 deletions(-) create mode 100644 src/view/auctionManage/index.vue diff --git a/src/api/integral.js b/src/api/integral.js index f947676..040ba1c 100644 --- a/src/api/integral.js +++ b/src/api/integral.js @@ -7,6 +7,35 @@ const api = { method: 'get', params:data }) + }, + // 竞拍 + getAuctionList : data => { // 竞拍列表 + return service({ + url: '/auction', + method: 'get', + params:data + }) + }, + addAucitonData: data => { // 创建竞拍 + return service({ + url: '/auction', + method: 'post', + data + }) + }, + editAucitonData: data => { // 编辑竞拍 + return service({ + url: '/auction', + method: 'post', + data + }) + }, + delAucitonData: data => { // 删除竞拍 + return service({ + url: '/auction', + method: 'delete', + data + }) } } export default api diff --git a/src/view/auctionManage/index.vue b/src/view/auctionManage/index.vue new file mode 100644 index 0000000..37a3d33 --- /dev/null +++ b/src/view/auctionManage/index.vue @@ -0,0 +1,445 @@ + + + + diff --git a/src/view/course/addCourse/index.vue b/src/view/course/addCourse/index.vue index 455039a..2ecaa3d 100644 --- a/src/view/course/addCourse/index.vue +++ b/src/view/course/addCourse/index.vue @@ -87,6 +87,7 @@ async function saveStep1() { form.value.course_category_id = subjectList.value.filter((item,i) => { return item.name === form.value.subject })[0].id + form.value.price = parseFloat(form.value.price)<0?0:form.value.price let params = { step1:{ ...form.value @@ -219,7 +220,7 @@ function handlerChange(e) { - + diff --git a/src/view/lbtManage/index.vue b/src/view/lbtManage/index.vue index 807b4dd..743ecfd 100644 --- a/src/view/lbtManage/index.vue +++ b/src/view/lbtManage/index.vue @@ -265,7 +265,7 @@ function handleSizeChange(val) { - +