var $ = require('yoho-jquery'); var yas = require('../common/data-yas'); var $couponUse = $('#coupon-use'); require('../common'); $couponUse.on('click', function() { var couponid = $couponUse.parents('.coupon').data('couponid'); yas.yasEvent('YB_COUPON_IMMEDIATE_USE_C', {COUPON_ID: couponid}); });