Authored by 周少峰

consult once

... ... @@ -869,7 +869,7 @@ const _getMaterialDataBySizeInfo = (sizeInfo) => {
})),
washTips: {
tip: _.get(sizeInfo, 'washRemindTipsBo.remindTips', ''),
img: _.get(sizeInfo, 'washRemindTipsBo.img', '')
img: _.replace(_.get(sizeInfo, 'washRemindTipsBo.img', ''), 'http:', '')
}
};
};
... ...
... ... @@ -1265,7 +1265,8 @@ function loadConsult() {
var consultsTpl = require('hbs/product/consult-item.hbs');
var $consultsUl = $('#consults-ul'),
$consultNum = $('.consult-num'),
loadingConsults = false;
loadingConsults = false,
passFlag = true;
// 顾客咨询
function loadConsults(nowPage) {
... ... @@ -1399,17 +1400,17 @@ function loadConsult() {
learn: '及时了解回复内容'
};
var pass = true;
if (content === '') {
$textArea.attr('placeholder', '请输入咨询内容');
$textArea.addClass('err');
pass = false;
passFlag = false;
}
if (pass === false) {
if (passFlag === false) {
return;
}
passFlag = false;
$.ajax({
type: 'POST',
url: '/product/detail/consult',
... ... @@ -1440,6 +1441,8 @@ function loadConsult() {
// 跳转登录页
location.href = data.data.refer;
}
passFlag = true;
});
});
... ...