Authored by 郝肖肖

代码检查

... ... @@ -139,7 +139,7 @@ const formatCartGoods = (cartGoods, isAdvanceCart, inValid, isOffShelves, analys
productPrice: transPrice(it.last_vip_price), // self::transPrice($value['real_price']);
productNum: Number(it.buy_number),
storageNum: Number(it.storage_number),
isSoldOut: parseInt(it.storage_number, 10) === 0 || parseInt(it.off_shelves, 10) === 1,// 已售罄
isSoldOut: parseInt(it.storage_number, 10) === 0 || parseInt(it.off_shelves, 10) === 1, // 已售罄
isVipPrice: it.sales_price !== it.last_vip_price && it.discount_tag === 'V',
isStuPrice: it.sales_price !== it.last_vip_price && it.discount_tag === 'S',
yohoIcon: Number(it.get_yoho_coin) || 0,
... ... @@ -534,6 +534,7 @@ const formatPromotionPools = (pools, selectedGiftsList, isAdvance, analysis) =>
return pool;
});
};
// 失效处理
const formatSoldOutPools = (pools, selectedGiftsList, isAdvance, analysis) => {
return _.map(pools, p => {
... ...
... ... @@ -417,7 +417,7 @@ Cart = {
capi.cartItemNumChg($.extend(countJSON, {
sku: $item.data('id'),
batch_no: $item.data('batch-no'),
activity_id: $item.data('pool-id'),
activity_id: $item.data('pool-id')
}));
if (!$btn.hasClass('cart-item-checked')) {
... ...
... ... @@ -100,7 +100,7 @@ ColorPanelAction = {
selected: 'Y',
new_product_sku: newSku,
old_product_sku: oldSku
}
};
// 套餐编辑尺码
if (poolId) {
... ...
... ... @@ -91,9 +91,9 @@ $('.phoneapp').mouseenter(function() {
});
$('.we-chat').mouseenter(function() {
_hmt.push(['_trackEvent', '二维码', '头部手机版', '', '']);
window._html && window._hmt.push(['_trackEvent', '二维码', '头部手机版', '', '']);
}).click(function() {
_hmt.push(['_trackEvent', '二维码', '头部手机版', '', '']);
window._html && window._hmt.push(['_trackEvent', '二维码', '头部手机版', '', '']);
});
// handlebars模板
... ...
var $ = require('yoho-jquery'),
dialog = require('../common/dialog'),
Alert = dialog.Alert;
dialog = require('../common/dialog');
var payPage = {};
var $btnby = $('input.btnby'),
... ... @@ -10,6 +9,7 @@ var $btnby = $('input.btnby'),
orderCode = $btnby.data('order'),
amount = $btnby.data('amount'),
$formGo = $('.form-go'),
Alert = dialog.Alert,
C_ID;
require('../simple-header');
... ...