From edef393535f2225835aeee0410a1a0a6db698829 Mon Sep 17 00:00:00 2001 From: paulGao Date: Sat, 11 Dec 2021 13:50:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8D=E9=87=8D=E6=9E=84=E4=BF=83?= =?UTF-8?q?=E9=94=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/goodsDetail/ShowGoods.vue | 308 ++++++++++++------ buyer/src/pages/Cart.vue | 240 +++++++++----- manager/src/api/promotion.js | 12 +- manager/src/router/router.js | 72 ++-- manager/src/utils/promotions.js | 60 ++++ .../coupon-activity/coupon-info.vue} | 45 +-- .../coupon-activity/coupon-publish.vue} | 158 +++++---- .../coupon-activity}/coupon.vue | 116 ++++--- .../coupon/coupon-publish.vue} | 254 ++++++++++----- .../coupon/coupon.vue | 254 +++++++++------ .../full-discount/full-discount-detail.vue} | 87 +++-- .../full-discount/full-discount.vue} | 117 ++++--- .../kanjia/kanjia-activity-add-goods.vue} | 54 +-- .../kanjia/kanjia-activity-edit-goods.vue} | 0 .../kanjia/kanjia-activity-goods.vue} | 155 ++++++--- .../live/live-detail.vue} | 0 .../{promotion => promotions}/live/live.vue | 44 ++- .../pintuan/pintuan-goods.vue} | 109 +++---- .../pintuan/pintuan.vue | 57 +--- .../points-goods-category.vue} | 0 .../points-goods/points-goods-add.vue} | 83 ++--- .../points-goods/points-goods-edit.vue} | 0 .../points-goods/points-goods.vue} | 158 ++++++--- .../seckill/seckill-add.vue} | 34 +- .../seckill/seckill-goods.vue} | 0 .../seckill/seckill-setup.vue} | 0 .../seckill/seckill.vue | 130 ++++++-- .../src/views/sys/menu-manage/menuManage.vue | 174 ++++------ seller/src/api/promotion.js | 13 +- seller/src/libs/routerJson.js | 4 +- seller/src/router/router.js | 18 +- seller/src/utils/promotions.js | 60 ++++ .../{couponPublish.vue => coupon-publish.vue} | 172 +++++++--- seller/src/views/promotion/coupon/coupon.vue | 188 +++++------ .../full-discount-add.vue} | 253 ++++++++++---- .../full-discount.vue} | 171 ++++++++-- .../{newPintuan.vue => pintuan-edit.vue} | 0 .../{pintuanGoods.vue => pintuan-goods.vue} | 155 ++++++--- .../src/views/promotion/pintuan/pintuan.vue | 147 +++++---- .../{seckillGoods.vue => seckill-goods.vue} | 116 +++++-- 40 files changed, 2532 insertions(+), 1486 deletions(-) create mode 100644 manager/src/utils/promotions.js rename manager/src/views/{promotion/couponActivity/couponInfo.vue => promotions/coupon-activity/coupon-info.vue} (80%) rename manager/src/views/{promotion/couponActivity/couponPublish.vue => promotions/coupon-activity/coupon-publish.vue} (70%) rename manager/src/views/{promotion/couponActivity => promotions/coupon-activity}/coupon.vue (64%) rename manager/src/views/{promotion/coupon/couponPublish.vue => promotions/coupon/coupon-publish.vue} (69%) rename manager/src/views/{promotion => promotions}/coupon/coupon.vue (60%) rename manager/src/views/{promotion/fullCut/fullCutDetail.vue => promotions/full-discount/full-discount-detail.vue} (83%) rename manager/src/views/{promotion/fullCut/full-cut.vue => promotions/full-discount/full-discount.vue} (66%) rename manager/src/views/{promotion/kanjia/kanjiaActivityAddGoods.vue => promotions/kanjia/kanjia-activity-add-goods.vue} (89%) rename manager/src/views/{promotion/kanjia/kanjiaActivityEditGoods.vue => promotions/kanjia/kanjia-activity-edit-goods.vue} (100%) rename manager/src/views/{promotion/kanjia/kanjiaActivityGoods.vue => promotions/kanjia/kanjia-activity-goods.vue} (70%) rename manager/src/views/{promotion/live/liveDetail.vue => promotions/live/live-detail.vue} (100%) rename manager/src/views/{promotion => promotions}/live/live.vue (82%) rename manager/src/views/{promotion/pintuan/pintuanGoods.vue => promotions/pintuan/pintuan-goods.vue} (60%) rename manager/src/views/{promotion => promotions}/pintuan/pintuan.vue (79%) rename manager/src/views/{promotion/pointsGoodsCategory/pointsGoodsCategory.vue => promotions/points-goods-category/points-goods-category.vue} (100%) rename manager/src/views/{promotion/pointsGoods/addPointsGoods.vue => promotions/points-goods/points-goods-add.vue} (87%) rename manager/src/views/{promotion/pointsGoods/editPointsGoods.vue => promotions/points-goods/points-goods-edit.vue} (100%) rename manager/src/views/{promotion/pointsGoods/pointsGoods.vue => promotions/points-goods/points-goods.vue} (63%) rename manager/src/views/{promotion/seckill/addSeckill.vue => promotions/seckill/seckill-add.vue} (88%) rename manager/src/views/{promotion/seckill/seckillGoods.vue => promotions/seckill/seckill-goods.vue} (100%) rename manager/src/views/{promotion/seckill/setupSeckill.vue => promotions/seckill/seckill-setup.vue} (100%) rename manager/src/views/{promotion => promotions}/seckill/seckill.vue (62%) create mode 100644 seller/src/utils/promotions.js rename seller/src/views/promotion/coupon/{couponPublish.vue => coupon-publish.vue} (77%) rename seller/src/views/promotion/{fullCut/newFullCut.vue => full-discount/full-discount-add.vue} (64%) rename seller/src/views/promotion/{fullCut/fullCut.vue => full-discount/full-discount.vue} (57%) rename seller/src/views/promotion/pintuan/{newPintuan.vue => pintuan-edit.vue} (100%) rename seller/src/views/promotion/pintuan/{pintuanGoods.vue => pintuan-goods.vue} (69%) rename seller/src/views/promotion/seckill/{seckillGoods.vue => seckill-goods.vue} (78%) diff --git a/buyer/src/components/goodsDetail/ShowGoods.vue b/buyer/src/components/goodsDetail/ShowGoods.vue index 1ad574a4..d2c9c86a 100644 --- a/buyer/src/components/goodsDetail/ShowGoods.vue +++ b/buyer/src/components/goodsDetail/ShowGoods.vue @@ -19,7 +19,11 @@
- {{isCollected?'已收藏':'收藏'}} + {{ + isCollected ? "已收藏" : "收藏" + }}
@@ -30,10 +34,13 @@

- {{skuDetail.sellingPoint}} + {{ skuDetail.sellingPoint }}
- +
@@ -41,19 +48,25 @@

价     格 - {{skuDetail.price | unitPrice("¥")}} + {{ skuDetail.price | unitPrice("¥") }}

- 秒  杀 价 - {{skuDetail.promotionPrice | unitPrice("¥")}} - {{skuDetail.price | unitPrice("¥")}} + 秒  杀 价 + {{ + skuDetail.promotionPrice | unitPrice("¥") + }} + {{ + skuDetail.price | unitPrice("¥") + }}

-
+

优 惠 券 + 满{{ item.consumeThreshold }}减{{ item.price }} - 满{{ item.consumeThreshold }}减{{item.price}} - 满{{ item.consumeThreshold }}打{{item.couponDiscount}}折 - + 满{{ item.consumeThreshold }}打{{ item.couponDiscount }}折 +

@@ -72,8 +89,20 @@

促     销 满减 - 满{{ promotionMap['FULL_DISCOUNT'].fullMoney }}元,立减现金{{ promotionMap['FULL_DISCOUNT'].fullMinus}}元 - 满{{ promotionMap['FULL_DISCOUNT'].fullMoney }}元,立享{{ promotionMap['FULL_DISCOUNT'].fullRate}}折 + 满{{ promotionMap["FULL_DISCOUNT"].fullMoney }}元,立减现金{{ + promotionMap["FULL_DISCOUNT"].fullMinus + }}元 + 满{{ promotionMap["FULL_DISCOUNT"].fullMoney }}元,立享{{ + promotionMap["FULL_DISCOUNT"].fullRate + }}折

@@ -92,9 +121,13 @@

{{ sku.name }}

-
-
+

{{ item.value }}

@@ -110,26 +143,57 @@

数量

- - 库存{{skuDetail.quantity}} + + 库存{{ skuDetail.quantity }}
-
+

重量

- {{skuDetail.weight}}kg + {{ skuDetail.weight }}kg
-
- +
+
-
- - +
+ +
-
@@ -137,20 +201,25 @@ @@ -346,7 +439,6 @@ export default { } .inventory { padding-left: 4px; - } .global_color { @@ -597,7 +689,7 @@ export default { .add-buy-car { margin-top: 15px; - >*{ + > * { margin: 0 4px; } } @@ -607,7 +699,7 @@ export default { justify-content: space-between; > span { padding-right: 10px; - &:hover{ + &:hover { cursor: pointer; color: $theme_color; } diff --git a/buyer/src/pages/Cart.vue b/buyer/src/pages/Cart.vue index f9834a60..eac00dd7 100644 --- a/buyer/src/pages/Cart.vue +++ b/buyer/src/pages/Cart.vue @@ -4,9 +4,10 @@