diff --git a/pages/activity/GroupDetails/index.vue b/pages/activity/GroupDetails/index.vue
index e333f4c..40d8cd8 100644
--- a/pages/activity/GroupDetails/index.vue
+++ b/pages/activity/GroupDetails/index.vue
@@ -599,7 +599,7 @@ export default {
openTeam: function() {
var that = this
console.log(this.attr)
- if(this.subType) this.subscribeMessage()
+ if(this.subType && this.$yroute.query.tabType==0) this.subscribeMessage()
if (that.attr.cartAttr == false) { // 展示弹框
console.log(this.attr.cartAttr)
that.attr.cartAttr = !this.attr.cartAttr
diff --git a/pages/activity/activity/index.vue b/pages/activity/activity/index.vue
index 4051e8c..eb398e6 100644
--- a/pages/activity/activity/index.vue
+++ b/pages/activity/activity/index.vue
@@ -257,7 +257,7 @@
} else if (this.activityType === 1) {
this.$yrouter.push({
path: '/pages/activity/GroupDetails/index',
- query: { id }
+ query: { id,tabType:this.tabType }
})
} else {
let isParticipation=item.isParticipation
diff --git a/pages/home/index.vue b/pages/home/index.vue
index d444cb9..e335ca9 100644
--- a/pages/home/index.vue
+++ b/pages/home/index.vue
@@ -134,13 +134,13 @@
热门榜单
-
+
-
+
{{item.listName}}
-
+
@@ -602,6 +602,11 @@
},
methods: {
...mapActions(['getLocation']),
+ //榜单切换
+ hotNum(e){
+ this.classifyType = e.detail.current
+ this.goodsList = this.sortData(this.hotList[this.classifyType].productInfo, 4);
+ },
// 发起砍价
getBargainList() {
if (this.bargainLoaded) return;
@@ -757,28 +762,30 @@
// },
// })
// },
- // goGoodsCon(item) {
- // if(item.isIntegral === 1) {
- // this.$yrouter.push({
- // path: '/pages/shop/IntegralGoodsCon/index',
- // query: {
- // id: item.id,
- // },
- // })
- // } else {
- // this.$yrouter.push({
- // path: '/pages/shop/GoodsCon/index',
- // query: {
- // id: item.id,
- // },
- // })
- // }
- // },
- goGoodsCon(item) {
+ goHot(item){
this.$yrouter.push({
path: '/pages/shop/HotNewGoods/index',
+ query: {
+ hotName: item.listName,
+ },
})
-
+ },
+ goGoodsCon(item) {
+ if(item.isIntegral === 1) {
+ this.$yrouter.push({
+ path: '/pages/shop/IntegralGoodsCon/index',
+ query: {
+ id: item.id,
+ },
+ })
+ } else {
+ this.$yrouter.push({
+ path: '/pages/shop/GoodsCon/index',
+ query: {
+ id: item.id,
+ },
+ })
+ }
},
// goGoodsPromotion() {
// this.$yrouter.push('/pages/shop/GoodsPromotion/index')
@@ -796,6 +803,7 @@
// }).exec();
// }, 160)
// },
+
// 数据分层
sortData(oArr, length) {
let arr = [];
diff --git a/pages/shop/HotNewGoods/index.vue b/pages/shop/HotNewGoods/index.vue
index 01863c8..f234730 100644
--- a/pages/shop/HotNewGoods/index.vue
+++ b/pages/shop/HotNewGoods/index.vue
@@ -162,6 +162,7 @@ export default {
};
},
mounted: function() {
+
// this.titleInfo();
// this.getIndexGroomList();
getBanner(4).then(res => {
@@ -191,20 +192,27 @@ export default {
})
return this.hotListData.hotListDTOS
})
-
this.form.mouth = this.mouthList[0];
this.classifyList = this.hotListData[this.form.mouth].hotListDTOS;
- // this.form.hotListId = this.classifyList[this.classifyType].id;
- this.form.hotListId = '';
- this.subclassList = this.classifyList[this.classifyType].cateDtos;
- // this.subclassList.unshift({
- // cateId:'',
- // cateName:'全部',
- // })
- this.subclass = this.subclassList[0];
- // this.form.cateId = this.subclass.cateId;
- this.form.cateId = ' ';
- this.getHotList();
+ if(this.$yroute.query.hotName){
+ this.classifyList.forEach((hot,hotIndex)=>{
+ if(hot.listName===this.$yroute.query.hotName) {
+ this.subclassList = this.classifyList[hotIndex].cateDtos;
+ this.subclass = this.subclassList[0];
+ this.form.cateId = this.subclass.cateId;
+ this.changeClassify(hotIndex)
+ }
+ })
+ }else{
+ // this.form.hotListId = this.classifyList[this.classifyType].id;
+ this.form.hotListId = '';
+ this.subclassList = this.classifyList[this.classifyType].cateDtos;
+ this.subclass = this.subclassList[0];
+ // this.form.cateId = this.subclass.cateId;
+ this.form.cateId = ' ';
+ this.getHotList();
+ }
+
})
},
// 月份