From 35881e30e00e4e6102d1370cb7c5e2a23528c3b9 Mon Sep 17 00:00:00 2001 From: mabo Date: Thu, 5 Aug 2021 11:19:12 +0800 Subject: [PATCH 01/13] =?UTF-8?q?=E7=A7=AF=E5=88=86=E5=95=86=E5=93=81?= =?UTF-8?q?=EF=BC=8C=E6=90=9C=E7=B4=A2=E7=83=AD=E8=AF=8D=E4=B8=BAnull?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/src/components/Search.vue | 6 +- buyer/src/pages/Index.vue | 1 - .../src/pages/promotion/PointGoodsDetail.vue | 189 ++++ buyer/src/pages/{ => promotion}/PointMall.vue | 19 +- buyer/src/router/index.js | 9 +- manager/src/config/index.js | 16 +- .../lili-floor-renovation/renovation.vue | 886 ------------------ 7 files changed, 219 insertions(+), 907 deletions(-) create mode 100644 buyer/src/pages/promotion/PointGoodsDetail.vue rename buyer/src/pages/{ => promotion}/PointMall.vue (90%) diff --git a/buyer/src/components/Search.vue b/buyer/src/components/Search.vue index 6c8afeac..e52c4b44 100644 --- a/buyer/src/components/Search.vue +++ b/buyer/src/components/Search.vue @@ -97,12 +97,14 @@ export default { const time = new Date().getTime() - 5 * 60 * 1000 if (!reloadTime) { hotWords({count: 5}).then(res => { - if (res.success) storage.setItem('hotWordsList', res.result) + console.log(res); + if (res.success && res.result) storage.setItem('hotWordsList', res.result) }) storage.setItem('hotWordsReloadTime', new Date().getTime()) } else if (reloadTime && time > reloadTime) { hotWords({count: 5}).then(res => { - if (res.success) storage.setItem('hotWordsList', res.result) + console.log(res); + if (res.success && res.result) storage.setItem('hotWordsList', res.result) }) storage.setItem('hotWordsReloadTime', new Date().getTime()) } diff --git a/buyer/src/pages/Index.vue b/buyer/src/pages/Index.vue index 5ed806ed..4a059584 100644 --- a/buyer/src/pages/Index.vue +++ b/buyer/src/pages/Index.vue @@ -70,7 +70,6 @@ export default { }, async getListByDay () { // 当天秒杀活动 const res = await seckillByDay() - console.log(res); if (res.success && res.result.length) { return res.result } else { diff --git a/buyer/src/pages/promotion/PointGoodsDetail.vue b/buyer/src/pages/promotion/PointGoodsDetail.vue new file mode 100644 index 00000000..63d8e4c3 --- /dev/null +++ b/buyer/src/pages/promotion/PointGoodsDetail.vue @@ -0,0 +1,189 @@ + + + + diff --git a/buyer/src/pages/PointMall.vue b/buyer/src/pages/promotion/PointMall.vue similarity index 90% rename from buyer/src/pages/PointMall.vue rename to buyer/src/pages/promotion/PointMall.vue index d5afcccf..91330eaf 100644 --- a/buyer/src/pages/PointMall.vue +++ b/buyer/src/pages/promotion/PointMall.vue @@ -15,7 +15,7 @@ class="goods-show-info" v-for="(item, index) in goodsList" :key="index" - @click="goGoodsDetail(item.skuId, item.goodsSku.goodsId)" + @click="goGoodsDetail(item.id)" >
@@ -97,12 +97,13 @@ export default { this.getList() this.$router.push({query: {categoryId: cateId}}) }, - goGoodsDetail (skuId, goodsId) { // 跳转商品详情 - let routerUrl = this.$router.resolve({ - path: '/goodsDetail', - query: {skuId, goodsId, way: 'POINT'} - }) - window.open(routerUrl.href, '_blank') + goGoodsDetail (id) { // 跳转商品详情 + this.$router.push({path: '/pointGoodsDetail', query: {id}}) + // let routerUrl = this.$router.resolve({ + // path: '/pointGoodsDetail', + // query: {id} + // }) + // window.open(routerUrl.href, '_blank') }, changePageNum (val) { // 修改页码 this.params.pageNumber = val; @@ -117,7 +118,7 @@ export default { } diff --git a/manager/src/views/promotion/seckill/seckill.vue b/manager/src/views/promotion/seckill/seckill.vue index 248f44f5..662a5dc4 100644 --- a/manager/src/views/promotion/seckill/seckill.vue +++ b/manager/src/views/promotion/seckill/seckill.vue @@ -21,10 +21,10 @@ - + +
@@ -74,7 +75,7 @@ ¥{{ row.commission | unitPrice }}
@@ -158,7 +159,7 @@