From 7317e7ba96d98a7b8d7f39e77979710f6921edf9 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, 30 Jul 2024 14:48:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B4=AD=E7=89=A9=E8=BD=A6?= =?UTF-8?q?=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/shop/cart/model/index.ts | 8 +++++--- src/views/shop/cart/components/cartEdit.vue | 20 ++++++-------------- src/views/shop/cart/index.vue | 6 +++--- 3 files changed, 14 insertions(+), 20 deletions(-) diff --git a/src/api/shop/cart/model/index.ts b/src/api/shop/cart/model/index.ts index 0898bfd..30f211c 100644 --- a/src/api/shop/cart/model/index.ts +++ b/src/api/shop/cart/model/index.ts @@ -6,12 +6,14 @@ import type { PageParam } from '@/api'; export interface Cart { // 购物车表ID id?: string; - // 类型 0商城 1预定 + // 类型 0商城 1预定 type?: number; // 商品ID goodsId?: string; - // 商品属性 - goodsAttrUnique?: string; + // 唯一标识 + code?: string; + // 商品规格 + spec?: string; // 商品数量 cartNum?: number; // 0 = 未购买 1 = 已购买 diff --git a/src/views/shop/cart/components/cartEdit.vue b/src/views/shop/cart/components/cartEdit.vue index 2b7e91c..1e5b34d 100644 --- a/src/views/shop/cart/components/cartEdit.vue +++ b/src/views/shop/cart/components/cartEdit.vue @@ -33,11 +33,11 @@ v-model:value="form.goodsId" /> - + @@ -151,23 +151,15 @@ id: undefined, type: undefined, goodsId: undefined, - goodsAttrUnique: undefined, + code: undefined, + spec: undefined, cartNum: undefined, isPay: undefined, isNew: undefined, combinationId: undefined, seckillId: undefined, bargainId: undefined, - userId: undefined, - deleted: undefined, - tenantId: undefined, - createTime: undefined, - updateTime: undefined, - cartId: undefined, - cartName: '', - status: 0, - comments: '', - sortNumber: 100 + userId: undefined }); /* 更新visible */ diff --git a/src/views/shop/cart/index.vue b/src/views/shop/cart/index.vue index 4923246..c27c932 100644 --- a/src/views/shop/cart/index.vue +++ b/src/views/shop/cart/index.vue @@ -120,9 +120,9 @@ align: 'center', }, { - title: '商品属性', - dataIndex: 'goodsAttrUnique', - key: 'goodsAttrUnique', + title: '唯一标识', + dataIndex: 'code', + key: 'code', align: 'center', }, {