Skip to content

Commit

Permalink
修复加入购物按钮连续点击失效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
bailicangdu committed Nov 6, 2018
1 parent bd5a7af commit 12587be
Show file tree
Hide file tree
Showing 13 changed files with 11 additions and 31 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ package-lock.json
.vscode
tree.md
*.idea

elm/
1 change: 0 additions & 1 deletion elm/static/js/find.5f22e70832c001add72b.min.js

This file was deleted.

3 changes: 0 additions & 3 deletions elm/static/js/food.d101c4b166470b04cb4e.min.js

This file was deleted.

1 change: 0 additions & 1 deletion elm/static/js/foodDetail.50c49429856dc2a902e7.min.js

This file was deleted.

1 change: 0 additions & 1 deletion elm/static/js/home.1dc91b7f1871d0f53c30.min.js

This file was deleted.

2 changes: 1 addition & 1 deletion elm/static/js/manifest.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions elm/static/js/msite.edb3b50d0940ddefc49e.min.js

This file was deleted.

2 changes: 0 additions & 2 deletions elm/static/js/order.ce78543ed77350deeb86.min.js

This file was deleted.

2 changes: 0 additions & 2 deletions elm/static/js/profile.1775fc4abb6adf570569.min.js

This file was deleted.

1 change: 0 additions & 1 deletion elm/static/js/search.07d919259a487398c61b.min.js

This file was deleted.

4 changes: 0 additions & 4 deletions elm/static/js/shop.9c4da92268bcea756d76.min.js

This file was deleted.

8 changes: 4 additions & 4 deletions src/components/common/buyCart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<transition name="fade">
<span class="cart_num" v-if="foodNum">{{foodNum}}</span>
</transition>
<svg class="add_icon" @touchstart="addToCart(foods.category_id, foods.item_id, foods.specfoods[0].food_id, foods.specfoods[0].name, foods.specfoods[0].price, '', foods.specfoods[0].packing_fee, foods.specfoods[0].sku_id, foods.specfoods[0].stock, $event)">
<svg class="add_icon" @click="addToCart(foods.category_id, foods.item_id, foods.specfoods[0].food_id, foods.specfoods[0].name, foods.specfoods[0].price, '', foods.specfoods[0].packing_fee, foods.specfoods[0].sku_id, foods.specfoods[0].stock, $event)">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#cart-add"></use>
</svg>
</section>
Expand Down Expand Up @@ -40,7 +40,7 @@
}
},
mounted(){
},
computed: {
...mapState([
Expand Down Expand Up @@ -95,7 +95,7 @@
showReduceTip(){
this.$emit('showReduceTip')
},
},
}
</script>
Expand Down Expand Up @@ -159,6 +159,6 @@
opacity: 0;
transform: scale(.7);
}
</style>

9 changes: 4 additions & 5 deletions src/page/home/home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
<svg class="arrow_right">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#arrow-right"></use>
</svg>
</router-link>
</router-link>
</nav>
<section id="hot_city_container">
<h4 class="city_title">热门城市</h4>
<ul class="citylistul clear">
<router-link tag="li" v-for="item in hotcity" :to="'/city/' + item.id" :key="item.id">
{{item.name}}
</router-link>
</router-link>
</ul>
</section>
<section class="group_city_container">
Expand All @@ -32,7 +32,7 @@
<ul class="groupcity_name_container citylistul clear">
<router-link tag="li" v-for="item in value" :to="'/city/' + item.id" :key="item.id" class="ellipsis">
{{item.name}}
</router-link>
</router-link>
</ul>
</li>
</ul>
Expand Down Expand Up @@ -69,7 +69,6 @@ export default {
//获取所有城市
groupcity().then(res => {
this.groupcity = res;
console.log(res)
})
},
Expand Down Expand Up @@ -173,7 +172,7 @@ export default {
@include sc(0.475rem, #999);
}
}
.letter_classify_li{
margin-bottom: 0.4rem;
background-color: #fff;
Expand Down

0 comments on commit 12587be

Please sign in to comment.