From 2dc243a18f38cad72812b35f9f6dd6d4fd774533 Mon Sep 17 00:00:00 2001 From: xiaofeng Date: Tue, 16 Jul 2019 01:08:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=95=86=E5=93=81=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0=E5=92=8C=E4=BB=B7=E6=A0=BC=E5=86=97=E4=BD=99=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile-web/src/page/product/detail.vue | 19 +++++++++++------ mobile-web/src/page/user/favorite/list.vue | 21 ++++++++++++++----- .../message/ProductSpuCollectionMessage.java | 10 +++++++++ .../ProductSpuCollectionServiceImpl.java | 12 +++++++++-- .../api/bo/UserProductSpuCollectionsBO.java | 10 +++++++++ .../dto/UserProductSpuCollectionsAddDTO.java | 10 +++++++++ .../UserProductSpuCollectionsDO.java | 10 +++++++++ .../UserProductSpuCollectionsServiceImpl.java | 11 ++++++++++ .../UserProductSpuCollectionsMapper.xml | 2 +- 9 files changed, 91 insertions(+), 14 deletions(-) diff --git a/mobile-web/src/page/product/detail.vue b/mobile-web/src/page/product/detail.vue index f2184ee14..55e073ed0 100644 --- a/mobile-web/src/page/product/detail.vue +++ b/mobile-web/src/page/product/detail.vue @@ -98,7 +98,7 @@ - + 收藏 @@ -208,6 +208,7 @@ calSkuPriceResult: { }, + hasCollectionType:0 }; }, @@ -327,11 +328,14 @@ // alert("hasCollectionType==" + hasCollectionType); collectionSpu(id,hasCollectionType).then(data =>{ let v = data; - if (hasCollectionType == 1 && v){ - alert("商品已收藏"); - }else if (hasCollectionType == 2 && v){ - alert("商品已取消"); - } + this.hasCollectionType = hasCollectionType; + // if (hasCollectionType == 1 && v){ + // // alert("商品已收藏"); + // this.hasCollectionType = hasCollectionType; + // }else if (hasCollectionType == 2 && v){ + // // alert("商品已取消"); + // this.hasCollectionType = hasCollectionType; + // } }) }); @@ -448,6 +452,9 @@