...
|
...
|
@@ -57,10 +57,11 @@ var BRAND_FAV = { |
|
|
var $saleReturn = $('#saleReturn');
|
|
|
|
|
|
var dialogTpl = require('hbs/product/coupon-dialog.hbs');
|
|
|
var consultsuccessTpl = require('hbs/product/consult-success.hbs');
|
|
|
var consultSuccessTpl = require('hbs/product/consult-success.hbs');
|
|
|
|
|
|
var pkgData;// 套餐数据
|
|
|
var notifyTpl = require('hbs/product/notify.hbs');
|
|
|
var notifySuccessTpl = require('hbs/product/notify-ok.hbs');
|
|
|
|
|
|
var $goodsIdArr = [];
|
|
|
|
...
|
...
|
@@ -533,8 +534,15 @@ bindEvent.add(function() { |
|
|
content: notifyTpl({pid: id, sku: getSku()})
|
|
|
};
|
|
|
|
|
|
var opt2 = {
|
|
|
className: 'notify-goods-wrapper',
|
|
|
closeIcon: true,
|
|
|
content: notifySuccessTpl()
|
|
|
};
|
|
|
|
|
|
var dialog = new Dialog(opt); // eslint-disable-line
|
|
|
|
|
|
|
|
|
var FAV = { //eslint-disable-line
|
|
|
checked: '',
|
|
|
unchecked: ''
|
...
|
...
|
@@ -550,6 +558,10 @@ bindEvent.add(function() { |
|
|
$('#collect-product').triggerHandler('click');
|
|
|
}
|
|
|
|
|
|
dialog.close();
|
|
|
|
|
|
new Dialog(opt2).show();
|
|
|
|
|
|
$enableNotifyYou.addClass('dis');
|
|
|
$enableNotifyYou.find('span').text('已订阅到货通知');
|
|
|
}).fail(function(err) {
|
...
|
...
|
@@ -604,7 +616,7 @@ bindEvent.add(function() { |
|
|
}
|
|
|
|
|
|
// 数目为1时点+则移除-不可点状态
|
|
|
if (num === 1) {
|
|
|
if (num === goodsBaseNum) {
|
|
|
$minusNum.removeClass('dis');
|
|
|
}
|
|
|
|
...
|
...
|
@@ -621,7 +633,7 @@ bindEvent.add(function() { |
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (num === 2) {
|
|
|
if (num === (goodsBaseNum + 1)) {
|
|
|
$(this).addClass('dis');
|
|
|
}
|
|
|
|
...
|
...
|
@@ -1195,7 +1207,7 @@ function fetchComment() { |
|
|
if (code === 200) {
|
|
|
$textarea.removeClass('err');
|
|
|
new Dialog({
|
|
|
content: consultsuccessTpl({success: consultdata}),
|
|
|
content: consultSuccessTpl({success: consultdata}),
|
|
|
className: 'consult-alert',
|
|
|
btns: [
|
|
|
{
|
...
|
...
|
@@ -1583,7 +1595,7 @@ bindEvent.fire(); |
|
|
});
|
|
|
|
|
|
favorite.getFavNum(shopId, brandId).then(function(result) {
|
|
|
$('#brand-favour').find('span').html(result.count);
|
|
|
$('#brand-favour').find('span').html(result);
|
|
|
});
|
|
|
|
|
|
favorite.statusFav(shopId, brandId).then(function() {
|
...
|
...
|
|