mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[bugfix] Sku: buy event incorrect triggered (#2741)
This commit is contained in:
parent
8bdc223285
commit
cade7c281c
@ -12,7 +12,7 @@ export default sfc({
|
||||
|
||||
render(h) {
|
||||
const emit = name => () => {
|
||||
this.skuEventBus.$emit('sku:addCart');
|
||||
this.skuEventBus.$emit(name);
|
||||
};
|
||||
|
||||
return (
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user