[bugfix] Sku: buy event incorrect triggered (#2741)

This commit is contained in:
neverland 2019-02-14 20:56:44 +08:00 committed by GitHub
parent 8bdc223285
commit cade7c281c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ export default sfc({
render(h) {
const emit = name => () => {
this.skuEventBus.$emit('sku:addCart');
this.skuEventBus.$emit(name);
};
return (

View File

@ -207,11 +207,11 @@ export default {
methods: {
onBuyClicked(data) {
this.$toast(JSON.stringify(data));
this.$toast('buy:' + JSON.stringify(data));
},
onAddCartClicked(data) {
this.$toast(JSON.stringify(data));
this.$toast('add cart:' + JSON.stringify(data));
},
onPointClicked() {