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) {
|
render(h) {
|
||||||
const emit = name => () => {
|
const emit = name => () => {
|
||||||
this.skuEventBus.$emit('sku:addCart');
|
this.skuEventBus.$emit(name);
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -207,11 +207,11 @@ export default {
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
onBuyClicked(data) {
|
onBuyClicked(data) {
|
||||||
this.$toast(JSON.stringify(data));
|
this.$toast('buy:' + JSON.stringify(data));
|
||||||
},
|
},
|
||||||
|
|
||||||
onAddCartClicked(data) {
|
onAddCartClicked(data) {
|
||||||
this.$toast(JSON.stringify(data));
|
this.$toast('add cart:' + JSON.stringify(data));
|
||||||
},
|
},
|
||||||
|
|
||||||
onPointClicked() {
|
onPointClicked() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user