From 3dc6c233af246b3db1f6c3188da64a7b1494863d Mon Sep 17 00:00:00 2001 From: ch Date: Thu, 26 May 2022 17:15:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=99=9A=E6=8B=9F=E5=95=86=E5=93=81=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/dicts/goods.js | 19 +++++++++++++++++++ src/common/dicts/order.js | 13 ++++++++++--- .../goods/detail/components/SkuPopup.vue | 4 ++-- src/pages/order/detail/index.vue | 17 ++++++++++++++--- src/pages/order/submit.vue | 16 +++++++++------- 5 files changed, 54 insertions(+), 15 deletions(-) create mode 100644 src/common/dicts/goods.js diff --git a/src/common/dicts/goods.js b/src/common/dicts/goods.js new file mode 100644 index 0000000..6009067 --- /dev/null +++ b/src/common/dicts/goods.js @@ -0,0 +1,19 @@ +/* + * @Author: ch + * @Date: 2022-05-26 15:39:52 + * @LastEditors: ch + * @LastEditTime: 2022-05-26 15:47:28 + * @Description: file content + */ + +// 商品类型 +const GOODS_TYPE = { + // 虚拟 + VIRTUAL: 2, + // 实物 + ENTITY : 1 +} + +export { + GOODS_TYPE +} \ No newline at end of file diff --git a/src/common/dicts/order.js b/src/common/dicts/order.js index a412175..f9adb0b 100644 --- a/src/common/dicts/order.js +++ b/src/common/dicts/order.js @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-05-26 11:49:16 * @LastEditors: ch - * @LastEditTime: 2022-05-26 14:16:49 + * @LastEditTime: 2022-05-26 17:00:06 * @Description: file content */ @@ -11,6 +11,13 @@ export const ORDER_STATUS = { // 待支付 AWAIT_PAY: 1 } -export const ORDER_SOURCE = { - +export const ORDER_TYPE = { + //(1, "普通订单"), + NORMAL: 1, + //(2, "免费订单"), + FREE: 2, + //(3, "秒杀订单"), + SECKILL: 3, + //(4, "虚拟商品订单"), + VIRTUAL : 4 } \ No newline at end of file diff --git a/src/pages/goods/detail/components/SkuPopup.vue b/src/pages/goods/detail/components/SkuPopup.vue index 9c9b229..6486b24 100644 --- a/src/pages/goods/detail/components/SkuPopup.vue +++ b/src/pages/goods/detail/components/SkuPopup.vue @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-03-24 11:30:55 * @LastEditors: ch - * @LastEditTime: 2022-05-25 15:55:43 + * @LastEditTime: 2022-05-26 15:43:55 * @Description: file content -->