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