Authored by wangqing

代码样式修正

... ... @@ -16,12 +16,11 @@ var noticeSuccess = false;
* @param {[type]} options) { if (v1 [description]
* @return {[type]} [description]
*/
handlebars.registerHelper("equalone", function(v1, options) {
handlebars.registerHelper('equalone', function(v1, options) {
if (v1 === '1') {
//满足添加继续执行
return options.fn(this);
} else {
//不满足条件执行{{else}}部分
return options.inverse(this);
}
});
... ... @@ -632,7 +631,7 @@ function actionListenDelCarGoods() {
goodsid = $delcargoods.attr('goodsid');
cheapest = $delcargoods.attr('cheapest');
delCartGoods(goodsid, cheapest);
})
});
}
/**
* 监听点击更多打折商品
... ... @@ -643,9 +642,9 @@ function actionListenCartMore() {
$(document).on('click', '.mycart_i_down', function(e) {
$morecart = $(this);
$morecart.toggleClass("mycart_i_up");
$morecart.toggleClass('mycart_i_up');
$('#mycartmore').slideToggle(300);
})
});
}
/**
* 点击购物车
... ... @@ -816,6 +815,7 @@ function actionLoopUpdCartNum() {
*/
function actionExeTemplate() {
var resulthtml = $('#goodcartempwarpper').html().replace(/\\/g, '');
$('#goodcartempwarpper').html(resulthtml);
}
/**
... ... @@ -849,5 +849,6 @@ function init() {
actionClickMiniCartBox(); //点击购物车跳转
actionListenDelCarGoods(); //监听购物车删除
actionListenCartMore(); //
};
}
init();
\ No newline at end of file
... ...