From 061f1cbe48252cd01359d14be0e5ac225073214d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Tue, 24 Feb 2026 16:44:20 +0800 Subject: [PATCH] =?UTF-8?q?feat(shop):=20=E6=B7=BB=E5=8A=A0=E5=95=86?= =?UTF-8?q?=E5=93=81=E9=85=8D=E9=80=81=E5=A5=96=E9=87=91=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在商品模型中新增配送奖金字段 deliveryMoney - 添加配送奖金表单项,支持0-0.2范围内的数值输入 - 初始化表单时设置配送奖金默认值为0 - 配送奖金输入框支持两位小数精度和0.01步长调整 --- .env.development | 4 ++-- src/api/shop/shopGoods/model/index.ts | 2 ++ .../shop/shopGoods/components/shopGoodsEdit.vue | 15 +++++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.env.development b/.env.development index 5f14a43..3249194 100644 --- a/.env.development +++ b/.env.development @@ -1,6 +1,6 @@ VITE_APP_NAME=后台管理(开发环境) -#VITE_API_URL=http://127.0.0.1:9200/api +VITE_API_URL=http://127.0.0.1:9200/api #VITE_SERVER_API_URL=http://127.0.0.1:8000/api -VITE_API_URL=https://glt-api.websoft.top/api +#VITE_API_URL=https://glt-api.websoft.top/api diff --git a/src/api/shop/shopGoods/model/index.ts b/src/api/shop/shopGoods/model/index.ts index 3b8f926..2fc4c27 100644 --- a/src/api/shop/shopGoods/model/index.ts +++ b/src/api/shop/shopGoods/model/index.ts @@ -137,6 +137,8 @@ export interface ShopGoods { // 一级/二级分红(单位以服务端为准) firstDividend?: number; secondDividend?: number; + // 配送奖金 + deliveryMoney?: number; } export interface BathSet { diff --git a/src/views/shop/shopGoods/components/shopGoodsEdit.vue b/src/views/shop/shopGoods/components/shopGoodsEdit.vue index ff67464..08cfb85 100644 --- a/src/views/shop/shopGoods/components/shopGoodsEdit.vue +++ b/src/views/shop/shopGoods/components/shopGoodsEdit.vue @@ -580,6 +580,19 @@ + + + + +