Skip to content

Commit 12587be

Browse files
committed
修复加入购物按钮连续点击失效的问题
1 parent bd5a7af commit 12587be

13 files changed

+11
-31
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ package-lock.json
88
.vscode
99
tree.md
1010
*.idea
11+
12+
elm/

elm/static/js/find.5f22e70832c001add72b.min.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

elm/static/js/food.d101c4b166470b04cb4e.min.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

elm/static/js/foodDetail.50c49429856dc2a902e7.min.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

elm/static/js/home.1dc91b7f1871d0f53c30.min.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

elm/static/js/manifest.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

elm/static/js/msite.edb3b50d0940ddefc49e.min.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

elm/static/js/order.ce78543ed77350deeb86.min.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

elm/static/js/profile.1775fc4abb6adf570569.min.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

elm/static/js/search.07d919259a487398c61b.min.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

elm/static/js/shop.9c4da92268bcea756d76.min.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/components/common/buyCart.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<transition name="fade">
1212
<span class="cart_num" v-if="foodNum">{{foodNum}}</span>
1313
</transition>
14-
<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)">
14+
<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)">
1515
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#cart-add"></use>
1616
</svg>
1717
</section>
@@ -40,7 +40,7 @@
4040
}
4141
},
4242
mounted(){
43-
43+
4444
},
4545
computed: {
4646
...mapState([
@@ -95,7 +95,7 @@
9595
showReduceTip(){
9696
this.$emit('showReduceTip')
9797
},
98-
98+
9999
},
100100
}
101101
</script>
@@ -159,6 +159,6 @@
159159
opacity: 0;
160160
transform: scale(.7);
161161
}
162-
162+
163163
</style>
164164

src/page/home/home.vue

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
<svg class="arrow_right">
1414
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#arrow-right"></use>
1515
</svg>
16-
</router-link>
16+
</router-link>
1717
</nav>
1818
<section id="hot_city_container">
1919
<h4 class="city_title">热门城市</h4>
2020
<ul class="citylistul clear">
2121
<router-link tag="li" v-for="item in hotcity" :to="'/city/' + item.id" :key="item.id">
2222
{{item.name}}
23-
</router-link>
23+
</router-link>
2424
</ul>
2525
</section>
2626
<section class="group_city_container">
@@ -32,7 +32,7 @@
3232
<ul class="groupcity_name_container citylistul clear">
3333
<router-link tag="li" v-for="item in value" :to="'/city/' + item.id" :key="item.id" class="ellipsis">
3434
{{item.name}}
35-
</router-link>
35+
</router-link>
3636
</ul>
3737
</li>
3838
</ul>
@@ -69,7 +69,6 @@ export default {
6969
//获取所有城市
7070
groupcity().then(res => {
7171
this.groupcity = res;
72-
console.log(res)
7372
})
7473
},
7574
@@ -173,7 +172,7 @@ export default {
173172
@include sc(0.475rem, #999);
174173
}
175174
}
176-
175+
177176
.letter_classify_li{
178177
margin-bottom: 0.4rem;
179178
background-color: #fff;

0 commit comments

Comments
 (0)