diff --git a/packages/button/index.wxml b/packages/button/index.wxml index f77ea3b5..f49a8004 100644 --- a/packages/button/index.wxml +++ b/packages/button/index.wxml @@ -13,7 +13,7 @@ send-message-path="{{ sendMessagePath }}" send-message-img="{{ sendMessageImg }}" show-message-card="{{ showMessageCard }}" - bindtap="onTap" + catch:tap="onTap" bindcontact="bindcontact" bindgetuserinfo="bindgetuserinfo" bindgetphonenumber="bindgetphonenumber" diff --git a/packages/cell/index.js b/packages/cell/index.js index 17a8d004..8d600e9e 100644 --- a/packages/cell/index.js +++ b/packages/cell/index.js @@ -36,7 +36,6 @@ Component({ methods: { onTap() { - this.triggerEvent('tap'); const { url } = this.data; if (url) { wx[this.data.linkType]({ url }); diff --git a/packages/switch/index.js b/packages/switch/index.js index b965b6cb..aef3dec9 100644 --- a/packages/switch/index.js +++ b/packages/switch/index.js @@ -12,7 +12,7 @@ Component({ }, methods: { - onClick() { + onTap() { if (!this.data.disabled && !this.data.loading) { const checked = !this.data.checked; this.triggerEvent('input', checked); diff --git a/packages/switch/index.wxml b/packages/switch/index.wxml index 4b719f1d..2f216352 100644 --- a/packages/switch/index.wxml +++ b/packages/switch/index.wxml @@ -1,7 +1,7 @@