...
|
...
|
@@ -5382,22 +5382,28 @@ if (goodsDiscountHammer && $discountFolder.children().length > 0) { |
|
|
}
|
|
|
|
|
|
limitSaleHammer && limitSaleHammer.on('tap', function(e) {
|
|
|
var loginUrl = $('#loginUrl').val();
|
|
|
|
|
|
e.srcEvent.stopPropagation();
|
|
|
dialog.showDialog({
|
|
|
dialogText: '打开有货APP限定发售频道\n获取限购码',
|
|
|
hasFooter: {
|
|
|
rightBtnText: '打开Yoho!Buy有货APP'
|
|
|
}
|
|
|
}, function() {
|
|
|
window.location.href = appUrl;
|
|
|
}, undefined, true);
|
|
|
if(loginUrl) {
|
|
|
window.location = loginUrl;
|
|
|
} else {
|
|
|
dialog.showDialog({
|
|
|
dialogText: '打开有货APP限定发售频道\n获取限购码',
|
|
|
hasFooter: {
|
|
|
rightBtnText: '打开Yoho!Buy有货APP'
|
|
|
}
|
|
|
}, function() {
|
|
|
window.location.href = appUrl;
|
|
|
}, undefined, true);
|
|
|
|
|
|
$('.dialog-wrapper').off('touchstart').on('touchstart', function(e) {
|
|
|
e.stopPropagation();
|
|
|
if ($(e.target).hasClass('dialog-wrapper')) {
|
|
|
dialog.hideDialog();
|
|
|
}
|
|
|
});
|
|
|
$('.dialog-wrapper').off('touchstart').on('touchstart', function(e) {
|
|
|
e.stopPropagation();
|
|
|
if ($(e.target).hasClass('dialog-wrapper')) {
|
|
|
dialog.hideDialog();
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
|
|
|
require("js/product/detail/desc");
|
...
|
...
|
@@ -5569,6 +5575,16 @@ var limitProductCode, |
|
|
// 限购商品的skn。只有限购商品时才会设置。
|
|
|
skn;
|
|
|
|
|
|
//禁用数字编辑
|
|
|
function disableNumEdit() {
|
|
|
var $numBtn = $('.chose-panel').find('.num .btn>.iconfont');
|
|
|
|
|
|
//添加disabled样式
|
|
|
$numBtn.hasClass('disabled') ? null : $numBtn.addClass('disabled');
|
|
|
|
|
|
$yohoPage.off('touchstart', '.btn-minus');
|
|
|
$yohoPage.off('touchstart', '.btn-plus');
|
|
|
}
|
|
|
|
|
|
// 初始化购物车面板显示
|
|
|
function init() {
|
...
|
...
|
@@ -5614,6 +5630,7 @@ function setEditModeWithSknId(sknId, isThisGoodSelected) { |
|
|
* @return {undefined}
|
|
|
*/
|
|
|
function setLimitGoodModeWithSknId(code, sknId) {
|
|
|
disableNumEdit();
|
|
|
$('#chose-btn-sure').html('立即购买');
|
|
|
limitProductCode = code;
|
|
|
skn = sknId;
|
...
|
...
|
@@ -5647,16 +5664,6 @@ function checkColorSizeNum() { |
|
|
return true;
|
|
|
}
|
|
|
|
|
|
//禁用数字编辑
|
|
|
function disableNumEdit() {
|
|
|
var $numBtn = $('.chose-panel').find('.num .btn>.iconfont');
|
|
|
|
|
|
//添加disabled样式
|
|
|
$numBtn.hasClass('disabled') ? null : $numBtn.addClass('disabled');
|
|
|
|
|
|
$yohoPage.off('touchstart', '.btn-minus');
|
|
|
$yohoPage.off('touchstart', '.btn-plus');
|
|
|
}
|
|
|
|
|
|
|
|
|
function show(html, cb) {
|
...
|
...
|
|