Authored by 陈轩

商品详情页领券: 限定商品不参加

... ... @@ -1254,6 +1254,7 @@ const _detailDataPkg = (origin, ua) => {
dest.brandId = origin.brand_id || 0;
dest.productSkn = origin.product_skn;
dest.isLimitBuy = Number(origin.isLimitBuy); // 1 限购商品, 0 非限购商品
// 商品信息
if (origin.goods_list.length) {
... ...
... ... @@ -160,6 +160,7 @@
<input id="productSkn" type="hidden" value="{{productSkn}}">
<input id="brand-id" type="hidden" value="{{brandId}}">
<input id="product-limit" type="hidden" value="{{isLimitBuy}}">
<input type="hidden" class="data-bind" name="loginUrl" id="loginUrl" value="">
... ...
... ... @@ -117,6 +117,10 @@ var brandCoupon = {
$(function() {
if ($('#product-limit').val() !== '0') { // 限购商品 不展示优惠券
return;
}
brandCoupon.init(
$('#productSkn').val(),
$('#brand-id').val()
... ...