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 @@