...
|
...
|
@@ -193,8 +193,6 @@ var Cart = { |
|
|
var dialog;
|
|
|
|
|
|
if (products.length) {
|
|
|
// Cart.showRemovedProducts(products, extraInfos);
|
|
|
|
|
|
dialog = new _confirm({
|
|
|
content: '您确定要从购物车中删除该商品吗?',
|
|
|
cb: function() {
|
...
|
...
|
@@ -269,10 +267,6 @@ var Cart = { |
|
|
}
|
|
|
|
|
|
// 刷新
|
|
|
// template = hbs.compile($('#removed-products').html());
|
|
|
// $('#removed_products').html(template({
|
|
|
// removedProducts: removedProsInfo
|
|
|
// }));
|
|
|
$('#removed_products').html(removedGoodsTpl({
|
|
|
removedProducts: removedProsInfo
|
|
|
}));
|
...
|
...
|
@@ -341,7 +335,6 @@ var Cart = { |
|
|
* @params { Function } setEditable 编辑商品回调
|
|
|
*/
|
|
|
editColorOrSize: function(productId, skn, defaultColor, defaultSize, setEditable) {
|
|
|
// var template;
|
|
|
var index = 0;
|
|
|
var colors;
|
|
|
var colorsLen;
|
...
|
...
|
@@ -391,31 +384,6 @@ var Cart = { |
|
|
}
|
|
|
}
|
|
|
|
|
|
// helpers start
|
|
|
// hbs.registerHelper('isEqual', function(v1, v2, options) {
|
|
|
// if (v1 === v2) {
|
|
|
// return options.fn(this);
|
|
|
// }
|
|
|
// return options.inverse(this);
|
|
|
// });
|
|
|
|
|
|
// hbs.registerHelper('image', function(url, width, height, mode) {
|
|
|
// mode = parseInt(mode, 10) ? mode : 2;
|
|
|
// url = url || '';
|
|
|
// return url.replace(/{width}/g, width).replace(/{height}/g, height).replace(/{mode}/g, mode);
|
|
|
// });
|
|
|
|
|
|
// helpers end
|
|
|
// template = hbs.compile($('#edit-color-size-tpl').html());
|
|
|
|
|
|
// editTarget.append(
|
|
|
// template({
|
|
|
// colors: filterSet,
|
|
|
// defaultColor: defaultColor,
|
|
|
// defaultSize: defaultSize,
|
|
|
// defaultImg: defaultImg
|
|
|
// })
|
|
|
// );
|
|
|
editTarget.append(editTpl({
|
|
|
colors: filterSet,
|
|
|
defaultColor: defaultColor,
|
...
|
...
|
|