...
|
...
|
@@ -14,6 +14,7 @@ var $ = require('yoho-jquery'); |
|
|
var lazyLoad = require('yoho-jquery-lazyload');
|
|
|
var yas = require('../common/data-yas');
|
|
|
var dataLazyLoad = require('../plugins/lazy-load')(document);
|
|
|
var handlebars = require('yoho-handlebars');
|
|
|
|
|
|
var bindEvent = $.Callbacks(); // eslint-disable-line
|
|
|
var clickAcquireCouponEvent = $.Callbacks('unique'); // eslint-disable-line
|
...
|
...
|
@@ -48,7 +49,8 @@ var $saleReturn = $('#saleReturn'); |
|
|
|
|
|
var dialogTpl = require('hbs/product/coupon-dialog.hbs');
|
|
|
|
|
|
var $goodsIdArr = [];
|
|
|
var $goodsIdArr = [],
|
|
|
pkgFn = '';
|
|
|
|
|
|
function limitedProductUrl(s) {
|
|
|
return window.location.href + '?openby:yohobuy={"action":"go.limitpurchase","params":{"lp":"' + s + '"}}';
|
...
|
...
|
@@ -61,6 +63,9 @@ function isEmpty(el) { |
|
|
require('../plugins/slider');
|
|
|
require('../common/center-slider');
|
|
|
|
|
|
// handlebars模板
|
|
|
pkgFn = handlebars.compile($('#packageDialog').html() || '');
|
|
|
|
|
|
bindEvent.add(function() {
|
|
|
var $imgShow = $('#img-show'),
|
|
|
$thumbs = $('#thumbs > .thumb-wrap');
|
...
|
...
|
@@ -512,6 +517,16 @@ bindEvent.add(function() { |
|
|
}
|
|
|
});
|
|
|
|
|
|
//套餐
|
|
|
$('#buy-detail').click(function () {
|
|
|
var opt = {
|
|
|
className: 'pkg-dialog',
|
|
|
closeIcon: false,
|
|
|
content: pkgFn({msg: '测试信息!'})
|
|
|
};
|
|
|
|
|
|
new Dialog(opt).show();
|
|
|
});
|
|
|
// 继续购物
|
|
|
$('#keep-shopping').click(function() {
|
|
|
$('#type-chose').slideDown(SLIDETIME);
|
...
|
...
|
|