Skip to content

Commit fd4c4ab

Browse files
committed
uddate
1 parent 2aea238 commit fd4c4ab

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/page/shop/shop.vue

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -357,11 +357,9 @@
357357
created(){
358358
this.geohash = this.$route.query.geohash;
359359
this.shopId = this.$route.query.id;
360-
//初始化购物车,获取存储在localStorage中的购物车商品信息
361360
this.INIT_BUYCART();
362361
},
363362
mounted(){
364-
//初始化数据
365363
this.initData();
366364
this.windowHeight = window.innerHeight;
367365
},
@@ -375,11 +373,9 @@
375373
...mapState([
376374
'latitude','longitude','cartList'
377375
]),
378-
//商铺公告
379376
promotionInfo: function (){
380377
return this.shopDetailData.promotion_info || '欢迎光临,用餐高峰期请提前下单,谢谢。'
381378
},
382-
//配送费
383379
deliveryFee: function () {
384380
if (this.shopDetailData) {
385381
return this.shopDetailData.float_delivery_fee;
@@ -458,7 +454,6 @@
458454
click: true,
459455
});
460456
461-
//判断scrollTop的值,则满足条件,改变对应列表标题样式
462457
this.foodScroll.on('scroll', (pos) => {
463458
this.shopListTop.forEach((item, index) => {
464459
if (this.menuIndexChange && Math.abs(Math.round(pos.y)) >= item) {
@@ -481,7 +476,6 @@
481476
this.menuIndexChange = true;
482477
})
483478
},
484-
//控制显示列表标题详情提示
485479
showTitleDetail(index){
486480
if (this.TitleDetailIndex == index) {
487481
this.TitleDetailIndex = null;
@@ -606,7 +600,6 @@
606600
this.ADD_CART({shopid: this.shopId, category_id, item_id, food_id, name, price, specs, packing_fee, sku_id, stock});
607601
this.showChooseList();
608602
},
609-
//点击多规格商品的减按钮,弹出提示
610603
showReduceTip(){
611604
this.showDeleteTip = true;
612605
clearTimeout(this.timer);
@@ -630,10 +623,8 @@
630623
el.children[0].style.transform = `translate3d(0,0,0)`;
631624
el.style.transition = 'transform .55s cubic-bezier(0.3, -0.25, 0.7, -0.15)';
632625
el.children[0].style.transition = 'transform .55s linear';
633-
//圆点到达目标点后移出
634626
this.showMoveDot = this.showMoveDot.map(item => false);
635627
el.children[0].style.opacity = 1;
636-
//监听运动结束,通知父级进行后续操作
637628
el.children[0].addEventListener('transitionend', () => {
638629
this.listenInCart();
639630
})

0 commit comments

Comments
 (0)