From c52c092d85d3ccc59996c5a2ad6e5c6d37ca464b Mon Sep 17 00:00:00 2001
From: zjf <1799650030@qq.com>
Date: Thu, 12 Feb 2026 22:08:24 +0800
Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E5=A6=82=E9=87=8D=E6=9E=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/mall/product/spu.ts | 2 +
src/api/product/device/index.ts | 1 +
.../product/containergoods/form/InfoForm.vue | 62 ++++++++++++++++++-
.../product/containergoods/form/index.vue | 4 +-
.../mall/product/containergoods/index.vue | 34 ++++++++--
src/views/mall/product/device/DeviceForm.vue | 10 +++
src/views/mall/product/device/index.vue | 6 ++
7 files changed, 111 insertions(+), 8 deletions(-)
diff --git a/src/api/mall/product/spu.ts b/src/api/mall/product/spu.ts
index 7862f8b8..60248dd1 100644
--- a/src/api/mall/product/spu.ts
+++ b/src/api/mall/product/spu.ts
@@ -64,6 +64,8 @@ export interface Spu {
status?: number // 商品状态
types?: number // 商品类型
deviceId?: number // 设备号
+ purchaseLimitType?: number // 限购类型:0-不限购,1-每天限购,2-每周限购,3-终身限购
+ purchaseLimitCount?: number // 限购数量
}
// 获得 Spu 列表
diff --git a/src/api/product/device/index.ts b/src/api/product/device/index.ts
index 24a4187d..8aef4f6b 100644
--- a/src/api/product/device/index.ts
+++ b/src/api/product/device/index.ts
@@ -10,6 +10,7 @@ export interface DeviceVO {
adType: string // 广告类型
adUrl: string // 广告链接
adImage: string // 广告图片
+ showInApp?: boolean // 是否在 APP 中显示
}
diff --git a/src/views/mall/product/containergoods/form/InfoForm.vue b/src/views/mall/product/containergoods/form/InfoForm.vue
index ef237c59..875f110a 100644
--- a/src/views/mall/product/containergoods/form/InfoForm.vue
+++ b/src/views/mall/product/containergoods/form/InfoForm.vue
@@ -54,6 +54,35 @@
class="w-80!"
/>
+ 限购配置
+
+
+
+
+
+
+
+
+
+
+
+ 配合限购类型使用,例如:每天限购 2 件
+
+