From df9a29359f33562940fe93a9cbb6528fc9f9e14e Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Fri, 22 Nov 2024 09:34:14 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=95=86=E5=93=81?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=A5=97=E9=A4=90=E3=80=81=E7=A7=B0=E9=87=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/shop.js | 2 +- src/components/shopList/index.vue | 4 +- src/views/coupon_manage/couponEnum.js | 48 +-- src/views/product/add_shop.vue | 458 +++++++++++++++++++++----- src/views/shop/components/addShop.vue | 30 +- 5 files changed, 432 insertions(+), 110 deletions(-) diff --git a/src/api/shop.js b/src/api/shop.js index 55e9508..abdfd4d 100644 --- a/src/api/shop.js +++ b/src/api/shop.js @@ -6,7 +6,7 @@ import request from "@/utils/request"; */ export function tbProduct(params) { return request({ - url: "/api/tbProduct", + url: "/api/tbProduct/list", method: "get", params }); diff --git a/src/components/shopList/index.vue b/src/components/shopList/index.vue index c59d543..9d3396f 100644 --- a/src/components/shopList/index.vue +++ b/src/components/shopList/index.vue @@ -54,7 +54,7 @@ - + @@ -146,6 +146,8 @@ export default { categoryId: this.searhForm.category, shopId: localStorage.getItem('shopId'), sort: 'id', + createdAt: [], + sort: 'createdAt,desc' }) this.tableData.list = res.content this.tableData.total = res.totalElements diff --git a/src/views/coupon_manage/couponEnum.js b/src/views/coupon_manage/couponEnum.js index f4cbaf5..0b246e5 100644 --- a/src/views/coupon_manage/couponEnum.js +++ b/src/views/coupon_manage/couponEnum.js @@ -1,51 +1,51 @@ export default { classType: [ { - value: 'product', - label: '商品券' + value: "product", + label: "商品券" }, { - value: 'common', - label: '通用券' + value: "common", + label: "通用券" } ], type: [ { - value: '0', - label: '满减' + value: "0", + label: "满减" }, { - value: '1', - label: '折扣' + value: "1", + label: "折扣" } ], cycle: [ - { label: '周一' }, - { label: '周二' }, - { label: '周三' }, - { label: '周四' }, - { label: '周五' }, - { label: '周六' }, - { label: '周七' } + { label: "周一", value: "Monday" }, + { label: "周二", value: "Tuesday" }, + { label: "周三", value: "Wednesday" }, + { label: "周四", value: "Thursday" }, + { label: "周五", value: "Friday" }, + { label: "周六", value: "Saturday" }, + { label: "周七", value: "Sunday" } ], validityType: [ { - value: 'fixed', - label: '领券后有效期内可用' + value: "fixed", + label: "领券后有效期内可用" }, { - value: 'custom', - label: '固定有效期范围内可用' + value: "custom", + label: "固定有效期范围内可用" } ], useTimeType: [ { - value: 'all', - label: '全时段可用' + value: "all", + label: "全时段可用" }, { - value: 'custom', - label: '指定时间段' + value: "custom", + label: "指定时间段" } ] -} +}; diff --git a/src/views/product/add_shop.vue b/src/views/product/add_shop.vue index abc83fd..e468e83 100644 --- a/src/views/product/add_shop.vue +++ b/src/views/product/add_shop.vue @@ -1,9 +1,8 @@