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 { }