...
|
...
|
@@ -5,6 +5,7 @@ |
|
|
*/
|
|
|
|
|
|
var $ = require('jquery'),
|
|
|
ellipsis = require('mlellipsis'),
|
|
|
lazyLoad = require('yoho.lazyload'),
|
|
|
Hammer = require('yoho.hammer'),
|
|
|
tip = require('../plugin/tip'),
|
...
|
...
|
@@ -17,6 +18,7 @@ var $page = $('.gift-advance-page'), |
|
|
require('../common');
|
|
|
|
|
|
lazyLoad($('.lazy'));
|
|
|
ellipsis.init();
|
|
|
|
|
|
function getProductInfo(skn, promotionId) {
|
|
|
loading.showLoadingMask();
|
...
|
...
|
@@ -50,10 +52,8 @@ $page.find('.chose').each(function(i, elem) { |
|
|
});
|
|
|
});
|
|
|
|
|
|
// $page.on('touchend', '.chose', function() {
|
|
|
// var $this = $(this),
|
|
|
// id = $this.closest('.gift-advance-good').data('id'),
|
|
|
// promotionId = $this.closest('.advance-block').data('promotion-id');
|
|
|
//
|
|
|
// getProductInfo(id, promotionId);
|
|
|
// }); |
|
|
setTimeout(function() {
|
|
|
$('.gift-advance-good .name').each(function() {
|
|
|
this.mlellipsis(2);
|
|
|
});
|
|
|
}, 0); |
...
|
...
|
|