diff --git a/src/page/shop/shop.vue b/src/page/shop/shop.vue
index 8b72dac6c37ec54775af60a77e9d792396a1e9de..c777df38e338d223d4be2cb29a0d6fff06e4b5d5 100644
--- a/src/page/shop/shop.vue
+++ b/src/page/shop/shop.vue
@@ -27,7 +27,7 @@
-
+
@@ -55,19 +55,19 @@
-
+
@@ -288,7 +288,7 @@
多规格商品只能去购物车删除哦
- {
- this.shopListTop.forEach((item, index) => {
+ this.shopListTop.forEach((item, index) => {
if (this.menuIndexChange && Math.abs(Math.round(pos.y)) >= item) {
this.menuIndex = index;
}
})
+ let wrapMenuHeight = this.$refs.wrapperMenu.clientHeight;
+ let menuList=this.$refs.wrapperMenu.querySelectorAll('.activity_menu');
+ let el = menuList[0];
+ this.wrapperMenu.scrollToElement(el, 800);
})
},
//控制活动详情页的显示隐藏
@@ -503,7 +507,7 @@
initCategoryNum(){
let newArr = [];
let cartFoodNum = 0;
- this.totalPrice = 0;
+ this.totalPrice = 0;
this.cartFoodList = [];
this.menuList.forEach((item, index) => {
if (this.shopCart&&this.shopCart[item.foods[0].category_id]) {
@@ -728,7 +732,7 @@
left: 0;
height: 100%;
}
-
+
.shop_detail_header{
overflow: hidden;
position: relative;
@@ -868,7 +872,7 @@
@include cl;
}
}
-
+
.food_container{
display: flex;
flex: 1;
@@ -878,6 +882,7 @@
display: flex;
flex: 1;
overflow-y: hidden;
+ position: relative;
.menu_left{
background-color: #f8f8f8;
width: 3.8rem;
@@ -979,7 +984,7 @@
padding: .6rem .4rem;
border-bottom: 1px solid #f8f8f8;
position: relative;
- overflow: hidden;
+ overflow: hidden;
.menu_detail_link{
display:flex;
.menu_food_img{
@@ -1139,7 +1144,7 @@
margin-bottom: .1rem;
}
div:nth-of-type(2){
- font-size: .4rem;
+ font-size: .4rem;
}
}
}
@@ -1509,7 +1514,7 @@
position: fixed;
bottom: 30px;
left: 30px;
-
+
svg{
@include wh(.9rem, .9rem);
fill: #3190e8;