- iphone12及以上sendcoupon回调不触发,其他机型无这个问题
<template> <view class="x-send-coupon"> <send-coupon v-if="coupon" :sign="coupon.sign" data-com-type="wx" :send_coupon_params="coupon.send_coupon_params" :send_coupon_merchant="coupon.send_coupon_merchant" :suggest_immediate_use="suggestImmediateUse" @sendcoupon="handleCustomEvent" @userconfirm="handleUserConfirm" > <slot /> </send-coupon> <slot v-else /> </view> </template> <script> export default { name: 'XSendCoupon', props: { coupon: { type: Object, default: () => null }, suggestImmediateUse: { type: Boolean, default: true } }, data() { return {}; }, created() {}, methods: { handleCustomEvent({ detail }) { console.log('handleCustomEvent') this.$store.dispatch('product/setCouponSend', detail).then(() => { this.handleConfirm(); }).catch(() => { this.handleConfirm(); }); this.$XTrack('HandleSendCouponConfirm', detail); }, handleConfirm() { console.log('handleConfirm') this.$emit('sendcoupon'); }, handleUserConfirm() { console.log('handleUserConfirm') this.$emit('userconfirm'); } } }; </script> <style> </style>
06-25 - send-coupon部分机型无法触发sendcoupon方法(iphone12及以上无法触发)
<template> <view class="x-send-coupon"> <send-coupon v-if="coupon" :sign="coupon.sign" data-com-type="wx" :send_coupon_params="coupon.send_coupon_params" :send_coupon_merchant="coupon.send_coupon_merchant" :suggest_immediate_use="suggestImmediateUse" @sendcoupon="handleCustomEvent" @userconfirm="handleUserConfirm" > <slot /> </send-coupon> <slot v-else /> </view> </template> <script> export default { name: 'XSendCoupon', props: { coupon: { type: Object, default: () => null }, suggestImmediateUse: { type: Boolean, default: true } }, data() { return {}; }, created() {}, methods: { handleCustomEvent({ detail }) { console.log('handleCustomEvent') this.$store.dispatch('product/setCouponSend', detail).then(() => { this.handleConfirm(); }).catch(() => { this.handleConfirm(); }); this.$XTrack('HandleSendCouponConfirm', detail); }, handleConfirm() { console.log('handleConfirm') this.$emit('sendcoupon'); }, handleUserConfirm() { console.log('handleUserConfirm') this.$emit('userconfirm'); } } }; </script> <style> </style>
06-25 - we分析的自定义分析选择事件名称,属性名称显示不全如何解决?
we分析的自定义分析选择事件名称,属性名称显示不全[图片]
2022-02-07 - 为什么会存在支付风险提示?
[图片]为什么会提示商品价格低于市场价
2021-12-01 - 开发者工具更新后,vim为什么会自动进入normal模式?
[图片][图片][图片]只要一进入,自动进入normal模式,需要手动按insert键才能继续输入
2021-06-15