Authored by 周少峰

gulp ge

... ... @@ -46,6 +46,9 @@ require("js/shopping/pay");
//微信扫码支付
require("js/pay/wechatqrcode");
//支付成功页
require("js/pay/success");
//关于我们
require("js/about/entry");
... ... @@ -18987,6 +18990,43 @@ var jQuery = require("jquery");
/* jscs: enable */
/* jshint ignore:end */
});
define("js/pay/success", ["jquery"], function(require, exports, module){
/**
* 支付成功页
*/
require("js/pay/best-for-you");
});
define("js/pay/best-for-you", ["jquery"], function(require, exports, module){
var $ = require("jquery");
(function() {
var $bestForYou = $('#best-for-you');
var $box, boxInfo;
if (!$bestForYou.length) {
return;
}
$box = $bestForYou.children('.product-wrap');
boxInfo = {
index: 0,
width: $box.find('li').width() + 10,
totalPage: Math.ceil(($box.find('li').length + 1) / 5)
};
if (boxInfo.totalPage > 1) {
boxInfo.totalPage = boxInfo.totalPage > 3 ? 3 : boxInfo.totalPage;
$bestForYou.find('.change-btn').show().click(function() {
boxInfo.index++;
$box.get(0).scrollLeft = (boxInfo.index % boxInfo.totalPage) * boxInfo.width * 5;
});
}
})();
});
define("js/about/entry", ["jquery","jquery.placeholder","handlebars","source-map"], function(require, exports, module){
/**
* 逛打包入口
... ...
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.