From 2d8abc2feaf8995c5e9c2c4d0f8b65c8ee73954a Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Wed, 12 Nov 2025 10:09:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E5=AE=A2=E4=B8=8B=E5=8D=95=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E9=99=90=E6=97=B6=E6=8A=98=E6=89=A3=E8=A7=92=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 8 +- src/api/order/pay.ts | 6 +- src/store/modules/carts.ts | 8 +- src/views/login/index.vue | 1 + .../marketing_center/super_vip/index.vue | 1 + .../online-shop/goodsGroupconfig/search2.ts | 4 +- src/views/product/indexconfig/addgoods.vue | 2 +- src/views/shop/config/components/shopInfo.vue | 4 +- .../tool/Instead/components/carts/item.vue | 12 ++ .../tool/Instead/components/carts/list.vue | 129 +++++++----------- .../tool/Instead/components/choose-user.vue | 31 +++-- src/views/tool/Instead/components/control.vue | 53 ++++--- .../tool/Instead/components/goods-item.vue | 66 +++++++-- src/views/tool/Instead/components/order.vue | 12 +- src/views/tool/Instead/index.vue | 36 ++--- src/views/tool/table/index.vue | 4 +- src/views/user/list/config/edit.ts | 8 +- 17 files changed, 222 insertions(+), 163 deletions(-) diff --git a/.env.development b/.env.development index 34d306e..bf19431 100644 --- a/.env.development +++ b/.env.development @@ -7,14 +7,14 @@ VITE_APP_BASE_API=/dev-api # 接口地址 # VITE_APP_API_URL=https://tapi.cashier.sxczgkj.cn/ # 测试 -# VITE_APP_API_URL=https://cashier.sxczgkj.com/ # 正式 - VITE_APP_API_URL=http://192.168.1.42/ # 本地 +VITE_APP_API_URL=https://cashier.sxczgkj.com/ # 正式 +# VITE_APP_API_URL=http://192.168.1.42/ # 本地 # WebSocket 端点(不配置则关闭),线上 ws://api.youlai.tech/ws ,本地 ws://localhost:8989/ws # VITE_APP_WS_ENDPOINT=wss://sockets.sxczgkj.com/wss -# VITE_APP_WS_ENDPOINT=wss://czgeatws.sxczgkj.com/wss # 正式 -VITE_APP_WS_ENDPOINT=ws://192.168.1.42:2348 # 本地 +VITE_APP_WS_ENDPOINT=wss://czgeatws.sxczgkj.com/wss # 正式 +# VITE_APP_WS_ENDPOINT=ws://192.168.1.42:2348 # 本地 # 启用 Mock 服务 diff --git a/src/api/order/pay.ts b/src/api/order/pay.ts index 0f3faa5..57419ae 100644 --- a/src/api/order/pay.ts +++ b/src/api/order/pay.ts @@ -44,11 +44,11 @@ const Api = { }); }, // 获取店铺订单支付URL - orderPayUrl(params: any) { + orderPayUrl(data: any) { return request({ url: `${baseURL}/shopPayApi/orderPayUrl`, - method: "get", - params + method: "post", + data }); }, //挂账支付 diff --git a/src/store/modules/carts.ts b/src/store/modules/carts.ts index 2490523..b05ad9c 100644 --- a/src/store/modules/carts.ts +++ b/src/store/modules/carts.ts @@ -80,7 +80,8 @@ export const useCartsStore = defineStore("carts", () => { : undefined, skuData, is_time_discount: item.isTimeDiscount, - isTimeDiscount: item.isTimeDiscount + isTimeDiscount: item.isTimeDiscount, + salePrice: item.limitDiscountPrice }; }; @@ -311,7 +312,7 @@ export const useCartsStore = defineStore("carts", () => { userPoints: userPoints.value, isMember: useVipPrice.value, memberDiscountRate: shopUser.userInfo.memberDiscountRate || 1, - fullReductionActivities: fullReductionActivities.value, + fullReductionActivities: [fullReductionActivities.value], currentDinnerType: dinnerType.value, limitTimeDiscount: limitDiscountRes.value, shopUserInfo: shopUser.userInfo, @@ -915,7 +916,8 @@ export const useCartsStore = defineStore("carts", () => { coupons, setCoupons, payParamsInit, - limitDiscountRes + limitDiscountRes, + getAllGoodsList }; }); diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 2bdf234..ea3a3db 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -75,6 +75,7 @@ const accountList = reactive([ { username: "19107220837", type: 'danger', label: '快乐时光店铺' }, { username: "18199991111", type: 'success', label: '草莓加盟主店可直接管理' }, { username: "18821670757", type: 'primary', label: '强盛集团' }, + { username: "19107220837", type: 'warning', label: '万维时光' }, ]); // 快捷模拟登录 diff --git a/src/views/marketing_center/super_vip/index.vue b/src/views/marketing_center/super_vip/index.vue index 8d5d691..21b4ec2 100644 --- a/src/views/marketing_center/super_vip/index.vue +++ b/src/views/marketing_center/super_vip/index.vue @@ -152,6 +152,7 @@ + %
diff --git a/src/views/online-shop/goodsGroupconfig/search2.ts b/src/views/online-shop/goodsGroupconfig/search2.ts index e9237eb..ccf9357 100644 --- a/src/views/online-shop/goodsGroupconfig/search2.ts +++ b/src/views/online-shop/goodsGroupconfig/search2.ts @@ -2,6 +2,7 @@ import DeptAPI from "@/api/product/specificationsconfig"; import UserAPI from "@/api/onlineShop/goodsGroupconfig"; import type { ISearchConfig } from "@/components/CURD/types"; +import { getCategoryList } from '@/api/coupon' const searchConfig: ISearchConfig = { pageName: "sys:user", @@ -31,10 +32,9 @@ const searchConfig: ISearchConfig = { }, options: [], async initFn(formItem) { - formItem.options = await UserAPI.getList(); + formItem.options = await getCategoryList(); }, }, - ], }; diff --git a/src/views/product/indexconfig/addgoods.vue b/src/views/product/indexconfig/addgoods.vue index 93ca7e8..d89ed47 100644 --- a/src/views/product/indexconfig/addgoods.vue +++ b/src/views/product/indexconfig/addgoods.vue @@ -213,7 +213,7 @@
-
注:关闭则不计算出入库数据
+
注:关闭则不计算出库数据
diff --git a/src/views/shop/config/components/shopInfo.vue b/src/views/shop/config/components/shopInfo.vue index 66111e3..3ca5f61 100644 --- a/src/views/shop/config/components/shopInfo.vue +++ b/src/views/shop/config/components/shopInfo.vue @@ -37,7 +37,7 @@
- + 快餐版(先支付后下单) diff --git a/src/views/tool/Instead/components/carts/item.vue b/src/views/tool/Instead/components/carts/item.vue index 48fa00e..7d9cbea 100644 --- a/src/views/tool/Instead/components/carts/item.vue +++ b/src/views/tool/Instead/components/carts/item.vue @@ -27,6 +27,7 @@
+
限时折扣
{{ item.name }}
@@ -461,6 +462,17 @@ onMounted(() => { position: relative; margin-right: 10px; + .xszk { + padding: 2px 4px 2px 6px; + background-color: var(--el-color-danger); + position: absolute; + top: 0; + right: 0; + z-index: 10; + color: #fff; + font-size: 8px; + } + img { width: 59px; height: 59px; diff --git a/src/views/tool/Instead/components/carts/list.vue b/src/views/tool/Instead/components/carts/list.vue index 83187c9..94e4941 100644 --- a/src/views/tool/Instead/components/carts/list.vue +++ b/src/views/tool/Instead/components/carts/list.vue @@ -4,38 +4,22 @@
以下是优惠菜品
- +
@@ -74,14 +50,9 @@
- + - - - + + + + + +